|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("6MrE"),A=d.n(C)},"+QRC":function(H,B,d){"use strict";var _=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,l=!1;f||(f={}),c=f.debug||!1;try{r=_(),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 s=E[f.format]||E.default;window.clipboardData.setData(s,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");l=!0}catch(a){c&&console.error("unable to copy using execCommand: ",a),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",m),f.onCopy&&f.onCopy(window.clipboardData),l=!0}catch(s){c&&console.error("unable to copy using clipboardData: ",s),c&&console.error("falling back to prompt"),o=A("message"in f?f.message:C),window.prompt(o,m)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(i):n.removeAllRanges()),e&&document.body.removeChild(e),r()}return l}H.exports=w},"+TT/":function(H,B,d){var _=d("bYtY"),E=d("mFDi"),C=d("OELB"),A=C.parsePercent,w=d("7aKB"),m=_.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(O,I){var L=O.position,N=O.getBoundingRect(),D=g.childAt(I+1),R=D&&D.getBoundingRect(),k,M;if(p==="horizontal"){var j=N.width+(R?-R.x+N.x:0);k=T+j,k>y||O.newline?(T=0,k=j,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||O.newline?(T+=b+v,S=0,M=F,b=N.width):b=Math.max(b,N.width)}if(O.newline)return;L[0]=T,L[1]=S,p==="horizontal"?T=k+v:S=M+v})}var r=o,i=_.curry(o,"vertical"),n=_.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),O=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(O)||isNaN(parseFloat(p.y2)))&&(O=x),v=w.normalizeCssArray(v||0),{width:Math.max(b-T-v[1]-v[3],0),height:Math.max(O-S-v[0]-v[2],0)}}function l(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),O=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-O-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-O-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-(O||0));var k=new E(T+v[3],S+v[0],I,L);return k.margin=v,k}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 O;if(b==="raw")O=p.type==="group"?new E(0,0,+g.width||0,+g.height||0):p.getBoundingRect();else if(O=p.getBoundingRect(),p.needLocalTransform()){var I=p.getLocalTransform();O=O.clone(),O.applyTransform(I)}g=l(_.defaults({width:O.width,height:O.height},g),v,y);var L=p.position,N=T?g.x-O.x:0,D=S?g.y-O.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 s(p,g,v){!_.isObject(v)&&(v={});var y=v.ignoreSize;!_.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,k={},M=0,j=2;if(m(L,function(K){k[K]=p[K]}),m(L,function(K){b(g,K)&&(D[K]=k[K]=g[K]),O(D,K)&&R++,O(k,K)&&M++}),y[N])return O(g,L[1])?k[L[2]]=null:O(g,L[2])&&(k[L[1]]=null),k;if(M===j||!R)return k;if(R>=j)return D;for(var F=0;F<L.length;F++){var U=L[F];if(!b(D,U)&&b(p,U)){D[U]=p[U];break}}return D}function b(L,N){return L.hasOwnProperty(N)}function O(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=l,B.positionElement=t,B.sizeCalculable=a,B.mergeLayoutParam=s,B.getLayoutParams=u,B.copyLayoutParams=h},"+Zaj":function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=E(d("y3Yb"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},"+eQT":function(H,B,d){"use strict";var _=d("wd/R"),E=d.n(_),C=d("Kwbf"),A={getNow:function(){return E()()},getWeekDay:function(cr){var kr=cr.clone().locale("en_US");return kr.weekday()+kr.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,kr){var Lr=cr.clone();return Lr.add(kr,"year")},addMonth:function(cr,kr){var Lr=cr.clone();return Lr.add(kr,"month")},addDate:function(cr,kr){var Lr=cr.clone();return Lr.add(kr,"day")},setYear:function(cr,kr){var Lr=cr.clone();return Lr.year(kr)},setMonth:function(cr,kr){var Lr=cr.clone();return Lr.month(kr)},setDate:function(cr,kr){var Lr=cr.clone();return Lr.date(kr)},setHour:function(cr,kr){var Lr=cr.clone();return Lr.hour(kr)},setMinute:function(cr,kr){var Lr=cr.clone();return Lr.minute(kr)},setSecond:function(cr,kr){var Lr=cr.clone();return Lr.second(kr)},isAfter:function(cr,kr){return cr.isAfter(kr)},isValidate:function(cr){return cr.isValid()},locale:{getWeekFirstDay:function(cr){var kr=E()().locale(cr);return kr.localeData().firstDayOfWeek()},getWeek:function(cr,kr){var Lr=kr.clone(),_n=Lr.locale(cr);return _n.week()},getShortWeekDays:function(cr){var kr=E()().locale(cr);return kr.localeData().weekdaysMin()},getShortMonths:function(cr){var kr=E()().locale(cr);return kr.localeData().monthsShort()},format:function(cr,kr,Lr){var _n=kr.clone(),Vr=_n.locale(cr);return Vr.format(Lr)},parse:function(cr,kr,Lr){for(var _n=[],Vr=0;Vr<Lr.length;Vr+=1){var _r=Lr[Vr],Pn=kr;if(_r.includes("wo")||_r.includes("Wo")){_r=_r.replace(/wo/g,"w").replace(/Wo/g,"W");var Ur=_r.match(/[-YyMmDdHhSsWwGg]+/g),En=Pn.match(/[-\d]+/g);Ur&&En?(_r=Ur.join(""),Pn=En.join("")):_n.push(_r.replace(/o/g,""))}var jn=E()(Pn,_r,cr,!0);if(jn.isValid())return jn}for(var Hn=0;Hn<_n.length;Hn+=1){var Bn=E()(kr,_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(tt){return c.createElement(r.a,f()({size:"small",type:"primary"},tt))}var n=d("mr32");function e(tt){return c.createElement(n.a,f()({color:"blue"},tt))}var l=d("lSNA"),t=d.n(l),a=d("lwsE"),s=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),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),O=d("XzQk"),I=d.n(O),L=d("kbBi"),N=d.n(L),D=d("1OyB"),R=d("vuIU"),k=d("Ji7U"),M=d("LK+K"),j=d("rePB"),F=d("VTBJ"),U=d("ODXe"),K=d("6cGi"),V=d("U8pU"),z=d("4IlW"),Q=c.createContext({}),Z=Q,le={visibility:"hidden"};function ne(tt){var cr=tt.prefixCls,kr=tt.prevIcon,Lr=kr===void 0?"\u2039":kr,_n=tt.nextIcon,Vr=_n===void 0?"\u203A":_n,_r=tt.superPrevIcon,Pn=_r===void 0?"\xAB":_r,Ur=tt.superNextIcon,En=Ur===void 0?"\xBB":Ur,jn=tt.onSuperPrev,Hn=tt.onSuperNext,Bn=tt.onPrev,ri=tt.onNext,Yn=tt.children,ii=c.useContext(Z),ai=ii.hideNextBtn,Pi=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:Pi?le:{}},Pn),Bn&&c.createElement("button",{type:"button",onClick:Bn,tabIndex:-1,className:"".concat(cr,"-prev-btn"),style:Pi?le:{}},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?le:{}},Vr),Hn&&c.createElement("button",{type:"button",onClick:Hn,tabIndex:-1,className:"".concat(cr,"-super-next-btn"),style:ai?le:{}},En))}var ve=ne;function xe(tt){var cr=c.useContext(Z),kr=cr.hideHeader;if(kr)return null;var Lr=tt.prefixCls,_n=tt.generateConfig,Vr=tt.locale,_r=tt.value,Pn=tt.format,Ur="".concat(Lr,"-header");return c.createElement(ve,{prefixCls:Ur},_r?_n.locale.format(Vr.locale,_r,Pn):"\xA0")}var _e=xe,Be=d("YrtM"),me=d("KQm4"),Fe=new Map;function ie(tt,cr,kr){if(Fe.get(tt)&&cancelAnimationFrame(Fe.get(tt)),kr<=0){Fe.set(tt,requestAnimationFrame(function(){tt.scrollTop=cr}));return}var Lr=cr-tt.scrollTop,_n=Lr/kr*10;Fe.set(tt,requestAnimationFrame(function(){tt.scrollTop+=_n,tt.scrollTop!==cr&&ie(tt,cr,kr-10)}))}function te(tt,cr){var kr=cr.onLeftRight,Lr=cr.onCtrlLeftRight,_n=cr.onUpDown,Vr=cr.onPageUpDown,_r=cr.onEnter,Pn=tt.which,Ur=tt.ctrlKey,En=tt.metaKey;switch(Pn){case z.a.LEFT:if(Ur||En){if(Lr)return Lr(-1),!0}else if(kr)return kr(-1),!0;break;case z.a.RIGHT:if(Ur||En){if(Lr)return Lr(1),!0}else if(kr)return kr(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 Ge(tt,cr,kr,Lr){var _n=tt;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=kr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return _n}function oe(tt,cr){var kr=tt==="time"?8:10;return Math.max(kr,cr.length)+2}var Y=null,G=new Set;function X(tt){return!Y&&typeof window!="undefined"&&window.addEventListener&&(Y=function(kr){Object(me.a)(G).forEach(function(Lr){Lr(kr)})},window.addEventListener("mousedown",Y)),G.add(tt),function(){G.delete(tt),G.size===0&&(window.removeEventListener("mousedown",Y),Y=null)}}var fe=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},Me=function(cr){return cr==="date"?"week":cr},ue={year:fe,month:de,quarter:Ce,week:Me,time:null,date:null};function Ae(tt,cr){return tt.some(function(kr){return kr&&kr.contains(cr)})}function Te(tt){var cr=tt.prefixCls,kr=tt.units,Lr=tt.onSelect,_n=tt.value,Vr=tt.active,_r=tt.hideDisabledOptions,Pn="".concat(cr,"-cell"),Ur=c.useContext(Z),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&&ie(jn.current,Bn.offsetTop,120)},[_n]),c.useLayoutEffect(function(){if(En){var Bn=Hn.current.get(_n);Bn&&ie(jn.current,Bn.offsetTop,0)}},[En]),c.createElement("ul",{className:T()("".concat(cr,"-column"),Object(j.a)({},"".concat(cr,"-column-active"),Vr)),ref:jn,style:{position:"relative"}},kr.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()(Pn,(ri={},Object(j.a)(ri,"".concat(Pn,"-disabled"),Bn.disabled),Object(j.a)(ri,"".concat(Pn,"-selected"),_n===Bn.value),ri)),onClick:function(){if(Bn.disabled)return;Lr(Bn.value)}},c.createElement("div",{className:"".concat(Pn,"-inner")},Bn.label))}))}var Je=Te;function At(tt,cr){for(var kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Lr=String(tt);Lr.length<cr;)Lr="".concat(kr).concat(tt);return Lr}var qe=function(){for(var cr=arguments.length,kr=new Array(cr),Lr=0;Lr<cr;Lr++)kr[Lr]=arguments[Lr];return kr};function Re(tt){return tt==null?[]:Array.isArray(tt)?tt:[tt]}function Lt(tt){var cr={};return Object.keys(tt).forEach(function(kr){(kr.substr(0,5)==="data-"||kr.substr(0,5)==="aria-"||kr==="role"||kr==="name")&&kr.substr(0,7)!=="data-__"&&(cr[kr]=tt[kr])}),cr}function $e(tt,cr){return tt?tt[cr]:null}function Et(tt,cr,kr){var Lr=[$e(tt,0),$e(tt,1)];return Lr[kr]=typeof cr=="function"?cr(Lr[kr]):cr,!Lr[0]&&!Lr[1]?null:Lr}function Ut(tt,cr,kr,Lr,_n){var Vr=tt.setHour(cr,kr);return Vr=tt.setMinute(Vr,Lr),Vr=tt.setSecond(Vr,_n),Vr}function Bt(tt,cr,kr,Lr,_n,Vr){var _r=Math.floor(tt/Lr)*Lr;if(_r<tt)return[_r,60-_n,60-Vr];var Pn=Math.floor(cr/_n)*_n;if(Pn<cr)return[_r,Pn,60-Vr];var Ur=Math.floor(kr/Vr)*Vr;return[_r,Pn,Ur]}function _t(tt,cr){if(tt.length!==cr.length)return!0;for(var kr=0;kr<tt.length;kr+=1)if(tt[kr].disabled!==cr[kr].disabled)return!0;return!1}function jt(tt,cr,kr,Lr){for(var _n=[],Vr=tt;Vr<=cr;Vr+=kr)_n.push({label:At(Vr,2),value:Vr,disabled:(Lr||[]).includes(Vr)});return _n}function He(tt){var cr=tt.generateConfig,kr=tt.prefixCls,Lr=tt.operationRef,_n=tt.activeColumnIndex,Vr=tt.value,_r=tt.showHour,Pn=tt.showMinute,Ur=tt.showSecond,En=tt.use12Hours,jn=tt.hourStep,Hn=jn===void 0?1:jn,Bn=tt.minuteStep,ri=Bn===void 0?1:Bn,Yn=tt.secondStep,ii=Yn===void 0?1:Yn,ai=tt.disabledHours,Pi=tt.disabledMinutes,bi=tt.disabledSeconds,Ki=tt.hideDisabledOptions,Aa=tt.onSelect,ea=[],Ji="".concat(kr,"-content"),sa="".concat(kr,"-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,Po,Qo){var so=Vr||cr.getNow(),Os=Math.max(0,Ta),ho=Math.max(0,Po),bo=Math.max(0,Qo);return so=Ut(cr,so,!En||!za?Os:Os+12,ho,bo),so},ca=jt(0,23,Hn,ai&&ai()),ma=Object(Be.a)(function(){return ca},ca,_t);En&&(fa=xo>=12,xo%=12);var Pa=c.useMemo(function(){if(!En)return[!1,!1];var Ba=[!0,!0];return ma.forEach(function(za){var Ta=za.disabled,Po=za.value;if(Ta)return;Po>=12?Ba[1]=!1:Ba[0]=!1}),Ba},[En,ma]),La=Object(U.a)(Pa,2),Za=La[0],eo=La[1],ko=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":At(za,2);return Object(F.a)(Object(F.a)({},Ba),{},{label:Ta,value:za})}):ma},[En,ma]),jo=jt(0,59,ri,Pi&&Pi(xo)),cs=jt(0,59,ii,bi&&bi(xo,Qa));Lr.current={onUpDown:function(za){var Ta=ea[_n];if(Ta)for(var Po=Ta.units.findIndex(function(ho){return ho.value===Ta.value}),Qo=Ta.units.length,so=1;so<Qo;so+=1){var Os=Ta.units[(Po+za*so+Qo)%Qo];if(Os.disabled!==!0){Ta.onSelect(Os.value);break}}}};function Mo(Ba,za,Ta,Po,Qo){Ba!==!1&&ea.push({node:c.cloneElement(za,{prefixCls:sa,value:Ta,active:_n===ea.length,onSelect:Qo,units:Po,hideDisabledOptions:Ki}),onSelect:Qo,value:Ta,units:Po})}Mo(_r,c.createElement(Je,{key:"hour"}),xo,ko,function(Ba){Aa(qi(fa,Ba,Qa,Wi),"mouse")}),Mo(Pn,c.createElement(Je,{key:"minute"}),Qa,jo,function(Ba){Aa(qi(fa,xo,Ba,Wi),"mouse")}),Mo(Ur,c.createElement(Je,{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(Je,{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 se=He,J=function(cr){return cr.filter(function(kr){return kr!==!1}).length};function Ue(tt){var cr=tt.generateConfig,kr=tt.format,Lr=kr===void 0?"HH:mm:ss":kr,_n=tt.prefixCls,Vr=tt.active,_r=tt.operationRef,Pn=tt.showHour,Ur=tt.showMinute,En=tt.showSecond,jn=tt.use12Hours,Hn=jn===void 0?!1:jn,Bn=tt.onSelect,ri=tt.value,Yn="".concat(_n,"-time-panel"),ii=c.useRef(),ai=c.useState(-1),Pi=Object(U.a)(ai,2),bi=Pi[0],Ki=Pi[1],Aa=J([Pn,Ur,En,Hn]);return _r.current={onKeyDown:function(Ji){return te(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(j.a)({},"".concat(Yn,"-active"),Vr))},c.createElement(_e,Object.assign({},tt,{format:Lr,prefixCls:_n})),c.createElement(se,Object.assign({},tt,{prefixCls:_n,activeColumnIndex:bi,operationRef:ii})))}var Le=Ue,ee=7;function ct(tt,cr){return!tt&&!cr?!0:!tt||!cr?!1:void 0}function Mt(tt,cr,kr){var Lr=ct(cr,kr);if(typeof Lr=="boolean")return Lr;var _n=Math.floor(tt.getYear(cr)/10),Vr=Math.floor(tt.getYear(kr)/10);return _n===Vr}function ot(tt,cr,kr){var Lr=ct(cr,kr);return typeof Lr=="boolean"?Lr:tt.getYear(cr)===tt.getYear(kr)}function Yt(tt,cr){var kr=Math.floor(tt.getMonth(cr)/3);return kr+1}function or(tt,cr,kr){var Lr=ct(cr,kr);return typeof Lr=="boolean"?Lr:ot(tt,cr,kr)&&Yt(tt,cr)===Yt(tt,kr)}function Zr(tt,cr,kr){var Lr=ct(cr,kr);return typeof Lr=="boolean"?Lr:ot(tt,cr,kr)&&tt.getMonth(cr)===tt.getMonth(kr)}function ir(tt,cr,kr){var Lr=ct(cr,kr);return typeof Lr=="boolean"?Lr:tt.getYear(cr)===tt.getYear(kr)&&tt.getMonth(cr)===tt.getMonth(kr)&&tt.getDate(cr)===tt.getDate(kr)}function dr(tt,cr,kr){var Lr=ct(cr,kr);return typeof Lr=="boolean"?Lr:tt.getHour(cr)===tt.getHour(kr)&&tt.getMinute(cr)===tt.getMinute(kr)&&tt.getSecond(cr)===tt.getSecond(kr)}function qt(tt,cr,kr,Lr){var _n=ct(kr,Lr);return typeof _n=="boolean"?_n:tt.locale.getWeek(cr,kr)===tt.locale.getWeek(cr,Lr)}function Ht(tt,cr,kr){return ir(tt,cr,kr)&&dr(tt,cr,kr)}function lt(tt,cr,kr,Lr){return!cr||!kr||!Lr?!1:!ir(tt,cr,Lr)&&!ir(tt,kr,Lr)&&tt.isAfter(Lr,cr)&&tt.isAfter(kr,Lr)}function Hr(tt,cr,kr){var Lr=cr.locale.getWeekFirstDay(tt),_n=cr.setDate(kr,1),Vr=cr.getWeekDay(_n),_r=cr.addDate(_n,Lr-Vr);return cr.getMonth(_r)===cr.getMonth(kr)&&cr.getDate(_r)>1&&(_r=cr.addDate(_r,-7)),_r}function dn(tt,cr,kr){var Lr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(cr){case"year":return kr.addYear(tt,Lr*10);case"quarter":case"month":return kr.addYear(tt,Lr);default:return kr.addMonth(tt,Lr)}}var Nn=c.createContext({}),Wn=Nn;function gi(tt){var cr=tt.cellPrefixCls,kr=tt.generateConfig,Lr=tt.rangedValue,_n=tt.hoverRangedValue,Vr=tt.isInView,_r=tt.isSameCell,Pn=tt.offsetCell,Ur=tt.today,En=tt.value;function jn(Hn){var Bn,ri=Pn(Hn,-1),Yn=Pn(Hn,1),ii=$e(Lr,0),ai=$e(Lr,1),Pi=$e(_n,0),bi=$e(_n,1),Ki=lt(kr,Pi,bi,Hn);function Aa(Qa){return _r(ii,Qa)}function ea(Qa){return _r(ai,Qa)}var Ji=_r(Pi,Hn),sa=_r(bi,Hn),fa=(Ki||sa)&&(!Vr(ri)||ea(ri)),xo=(Ki||Ji)&&(!Vr(Yn)||Aa(Yn));return Bn={},Object(j.a)(Bn,"".concat(cr,"-in-view"),Vr(Hn)),Object(j.a)(Bn,"".concat(cr,"-in-range"),lt(kr,ii,ai,Hn)),Object(j.a)(Bn,"".concat(cr,"-range-start"),Aa(Hn)),Object(j.a)(Bn,"".concat(cr,"-range-end"),ea(Hn)),Object(j.a)(Bn,"".concat(cr,"-range-start-single"),Aa(Hn)&&!ai),Object(j.a)(Bn,"".concat(cr,"-range-end-single"),ea(Hn)&&!ii),Object(j.a)(Bn,"".concat(cr,"-range-start-near-hover"),Aa(Hn)&&(_r(ri,Pi)||lt(kr,Pi,bi,ri))),Object(j.a)(Bn,"".concat(cr,"-range-end-near-hover"),ea(Hn)&&(_r(Yn,bi)||lt(kr,Pi,bi,Yn))),Object(j.a)(Bn,"".concat(cr,"-range-hover"),Ki),Object(j.a)(Bn,"".concat(cr,"-range-hover-start"),Ji),Object(j.a)(Bn,"".concat(cr,"-range-hover-end"),sa),Object(j.a)(Bn,"".concat(cr,"-range-hover-edge-start"),fa),Object(j.a)(Bn,"".concat(cr,"-range-hover-edge-end"),xo),Object(j.a)(Bn,"".concat(cr,"-range-hover-edge-start-near-range"),fa&&_r(ri,ai)),Object(j.a)(Bn,"".concat(cr,"-range-hover-edge-end-near-range"),xo&&_r(Yn,ii)),Object(j.a)(Bn,"".concat(cr,"-today"),_r(Ur,Hn)),Object(j.a)(Bn,"".concat(cr,"-selected"),_r(En,Hn)),Bn}return jn}function yn(tt){for(var cr=tt.prefixCls,kr=tt.disabledDate,Lr=tt.onSelect,_n=tt.rowNum,Vr=tt.colNum,_r=tt.prefixColumn,Pn=tt.rowClassName,Ur=tt.baseDate,En=tt.getCellClassName,jn=tt.getCellText,Hn=tt.getCellNode,Bn=tt.getCellDate,ri=tt.titleCell,Yn=tt.headerCells,ii=c.useContext(Z),ai=ii.onDateMouseEnter,Pi=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=kr&&kr(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(j.a)({},"".concat(bi,"-disabled"),ca),En(qi))),onClick:function(){ca||Lr(qi)},onMouseEnter:function(){!ca&&ai&&ai(qi)},onMouseLeave:function(){!ca&&Pi&&Pi(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:Pn&&Pn(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(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.prefixColumn,_n=tt.locale,Vr=tt.rowCount,_r=tt.viewDate,Pn=tt.value,Ur=tt.dateRender,En=c.useContext(Wn),jn=En.rangedValue,Hn=En.hoverRangedValue,Bn=Hr(_n.locale,kr,_r),ri="".concat(cr,"-cell"),Yn=kr.locale.getWeekFirstDay(_n.locale),ii=kr.getNow(),ai=[],Pi=_n.shortWeekDays||(kr.locale.getShortWeekDays?kr.locale.getShortWeekDays(_n.locale):[]);Lr&&ai.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var bi=0;bi<ee;bi+=1)ai.push(c.createElement("th",{key:bi},Pi[(bi+Yn)%ee]));var Ki=gi({cellPrefixCls:ri,today:ii,value:Pn,generateConfig:kr,rangedValue:Lr?null:jn,hoverRangedValue:Lr?null:Hn,isSameCell:function(Ji,sa){return ir(kr,Ji,sa)},isInView:function(Ji){return Zr(kr,Ji,_r)},offsetCell:function(Ji,sa){return kr.addDate(Ji,sa)}}),Aa=Ur?function(ea){return Ur(ea,ii)}:void 0;return c.createElement(yn,Object.assign({},tt,{rowNum:Vr,colNum:ee,baseDate:Bn,getCellNode:Aa,getCellText:kr.getDate,getCellClassName:Ki,getCellDate:kr.addDate,titleCell:function(Ji){return kr.locale.format(_n.locale,Ji,"YYYY-MM-DD")},headerCells:ai}))}var Ft=Mn;function bt(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.locale,_n=tt.viewDate,Vr=tt.onNextMonth,_r=tt.onPrevMonth,Pn=tt.onNextYear,Ur=tt.onPrevYear,En=tt.onYearClick,jn=tt.onMonthClick,Hn=c.useContext(Z),Bn=Hn.hideHeader;if(Bn)return null;var ri="".concat(cr,"-header"),Yn=Lr.shortMonths||(kr.locale.getShortMonths?kr.locale.getShortMonths(Lr.locale):[]),ii=kr.getMonth(_n),ai=c.createElement("button",{type:"button",key:"year",onClick:En,tabIndex:-1,className:"".concat(cr,"-year-btn")},kr.locale.format(Lr.locale,_n,Lr.yearFormat)),Pi=c.createElement("button",{type:"button",key:"month",onClick:jn,tabIndex:-1,className:"".concat(cr,"-month-btn")},Lr.monthFormat?kr.locale.format(Lr.locale,_n,Lr.monthFormat):Yn[ii]),bi=Lr.monthBeforeYear?[Pi,ai]:[ai,Pi];return c.createElement(ve,Object.assign({},tt,{prefixCls:ri,onSuperPrev:Ur,onPrev:_r,onNext:Vr,onSuperNext:Pn}),bi)}var Oe=bt,Ee=6;function Ie(tt){var cr=tt.prefixCls,kr=tt.panelName,Lr=kr===void 0?"date":kr,_n=tt.keyboardConfig,Vr=tt.active,_r=tt.operationRef,Pn=tt.generateConfig,Ur=tt.value,En=tt.viewDate,jn=tt.onViewDateChange,Hn=tt.onPanelChange,Bn=tt.onSelect,ri="".concat(cr,"-").concat(Lr,"-panel");_r.current={onKeyDown:function(Pi){return te(Pi,Object(F.a)({onLeftRight:function(Ki){Bn(Pn.addDate(Ur||En,Ki),"key")},onCtrlLeftRight:function(Ki){Bn(Pn.addYear(Ur||En,Ki),"key")},onUpDown:function(Ki){Bn(Pn.addDate(Ur||En,Ki*ee),"key")},onPageUpDown:function(Ki){Bn(Pn.addMonth(Ur||En,Ki),"key")}},_n))}};var Yn=function(Pi){var bi=Pn.addYear(En,Pi);jn(bi),Hn(null,bi)},ii=function(Pi){var bi=Pn.addMonth(En,Pi);jn(bi),Hn(null,bi)};return c.createElement("div",{className:T()(ri,Object(j.a)({},"".concat(ri,"-active"),Vr))},c.createElement(Oe,Object.assign({},tt,{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(Ft,Object.assign({},tt,{onSelect:function(Pi){return Bn(Pi,"mouse")},prefixCls:cr,value:Ur,viewDate:En,rowCount:Ee})))}var Ye=Ie;function rt(tt,cr,kr){if(!kr)return cr;var Lr=cr;return Lr=tt.setHour(Lr,tt.getHour(kr)),Lr=tt.setMinute(Lr,tt.getMinute(kr)),Lr=tt.setSecond(Lr,tt.getSecond(kr)),Lr}var ut=qe("date","time");function Ot(tt){var cr=tt.prefixCls,kr=tt.operationRef,Lr=tt.generateConfig,_n=tt.value,Vr=tt.defaultValue,_r=tt.disabledTime,Pn=tt.showTime,Ur=tt.onSelect,En="".concat(cr,"-datetime-panel"),jn=c.useState(null),Hn=Object(U.a)(jn,2),Bn=Hn[0],ri=Hn[1],Yn=c.useRef({}),ii=c.useRef({}),ai=Object(V.a)(Pn)==="object"?Object(F.a)({},Pn):{};function Pi(ea){var Ji=ut.indexOf(Bn)+ea,sa=ut[Ji]||null;return sa}var bi=function(Ji){ii.current.onBlur&&ii.current.onBlur(Ji),ri(null)};kr.current={onKeyDown:function(Ji){if(Ji.which===z.a.TAB){var sa=Pi(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(j.a)({},"".concat(En,"-active"),Bn))},c.createElement(Ye,Object.assign({},tt,{operationRef:Yn,active:Bn==="date",onSelect:function(Ji){Ki(rt(Lr,Ji,Pn&&Object(V.a)(Pn)==="object"?Pn.defaultValue:null),"date")}})),c.createElement(Le,Object.assign({},tt,{format:void 0},ai,Aa,{defaultValue:void 0,operationRef:ii,active:Bn==="time",onSelect:function(Ji){Ki(Ji,"time")}})))}var Ar=Ot;function Pr(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.locale,_n=tt.value,Vr="".concat(cr,"-cell"),_r=function(jn){return c.createElement("td",{key:"week",className:T()(Vr,"".concat(Vr,"-week"))},kr.locale.getWeek(Lr.locale,jn))},Pn="".concat(cr,"-week-panel-row"),Ur=function(jn){return T()(Pn,Object(j.a)({},"".concat(Pn,"-selected"),qt(kr,Lr.locale,_n,jn)))};return c.createElement(Ye,Object.assign({},tt,{panelName:"week",prefixColumn:_r,rowClassName:Ur,keyboardConfig:{onLeftRight:null}}))}var un=Pr;function It(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.locale,_n=tt.viewDate,Vr=tt.onNextYear,_r=tt.onPrevYear,Pn=tt.onYearClick,Ur=c.useContext(Z),En=Ur.hideHeader;if(En)return null;var jn="".concat(cr,"-header");return c.createElement(ve,Object.assign({},tt,{prefixCls:jn,onSuperPrev:_r,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:Pn,className:"".concat(cr,"-year-btn")},kr.locale.format(Lr.locale,_n,Lr.yearFormat)))}var nt=It,at=3,rr=4;function Pt(tt){var cr=tt.prefixCls,kr=tt.locale,Lr=tt.value,_n=tt.viewDate,Vr=tt.generateConfig,_r=tt.monthCellRender,Pn=c.useContext(Wn),Ur=Pn.rangedValue,En=Pn.hoverRangedValue,jn="".concat(cr,"-cell"),Hn=gi({cellPrefixCls:jn,value:Lr,generateConfig:Vr,rangedValue:Ur,hoverRangedValue:En,isSameCell:function(ai,Pi){return Zr(Vr,ai,Pi)},isInView:function(){return!0},offsetCell:function(ai,Pi){return Vr.addMonth(ai,Pi)}}),Bn=kr.shortMonths||(Vr.locale.getShortMonths?Vr.locale.getShortMonths(kr.locale):[]),ri=Vr.setMonth(_n,0),Yn=_r?function(ii){return _r(ii,kr)}:void 0;return c.createElement(yn,Object.assign({},tt,{rowNum:rr,colNum:at,baseDate:ri,getCellNode:Yn,getCellText:function(ai){return kr.monthFormat?Vr.locale.format(kr.locale,ai,kr.monthFormat):Bn[Vr.getMonth(ai)]},getCellClassName:Hn,getCellDate:Vr.addMonth,titleCell:function(ai){return Vr.locale.format(kr.locale,ai,"YYYY-MM")}}))}var xt=Pt;function Kt(tt){var cr=tt.prefixCls,kr=tt.operationRef,Lr=tt.onViewDateChange,_n=tt.generateConfig,Vr=tt.value,_r=tt.viewDate,Pn=tt.onPanelChange,Ur=tt.onSelect,En="".concat(cr,"-month-panel");kr.current={onKeyDown:function(Bn){return te(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*at),"key")},onEnter:function(){Pn("date",Vr||_r)}})}};var jn=function(Bn){var ri=_n.addYear(_r,Bn);Lr(ri),Pn(null,ri)};return c.createElement("div",{className:En},c.createElement(nt,Object.assign({},tt,{prefixCls:cr,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){Pn("year",_r)}})),c.createElement(xt,Object.assign({},tt,{prefixCls:cr,onSelect:function(Bn){Ur(Bn,"mouse"),Pn("date",Bn)}})))}var yt=Kt;function kt(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.locale,_n=tt.viewDate,Vr=tt.onNextYear,_r=tt.onPrevYear,Pn=tt.onYearClick,Ur=c.useContext(Z),En=Ur.hideHeader;if(En)return null;var jn="".concat(cr,"-header");return c.createElement(ve,Object.assign({},tt,{prefixCls:jn,onSuperPrev:_r,onSuperNext:Vr}),c.createElement("button",{type:"button",onClick:Pn,className:"".concat(cr,"-year-btn")},kr.locale.format(Lr.locale,_n,Lr.yearFormat)))}var Sr=kt,hr=4,gr=1;function Jr(tt){var cr=tt.prefixCls,kr=tt.locale,Lr=tt.value,_n=tt.viewDate,Vr=tt.generateConfig,_r=c.useContext(Wn),Pn=_r.rangedValue,Ur=_r.hoverRangedValue,En="".concat(cr,"-cell"),jn=gi({cellPrefixCls:En,value:Lr,generateConfig:Vr,rangedValue:Pn,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(yn,Object.assign({},tt,{rowNum:gr,colNum:hr,baseDate:Hn,getCellText:function(ri){return Vr.locale.format(kr.locale,ri,kr.quarterFormat||"[Q]Q")},getCellClassName:jn,getCellDate:function(ri,Yn){return Vr.addMonth(ri,Yn*3)},titleCell:function(ri){return Vr.locale.format(kr.locale,ri,"YYYY-[Q]Q")}}))}var $r=Jr;function kn(tt){var cr=tt.prefixCls,kr=tt.operationRef,Lr=tt.onViewDateChange,_n=tt.generateConfig,Vr=tt.value,_r=tt.viewDate,Pn=tt.onPanelChange,Ur=tt.onSelect,En="".concat(cr,"-quarter-panel");kr.current={onKeyDown:function(Bn){return te(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),Pn(null,ri)};return c.createElement("div",{className:En},c.createElement(Sr,Object.assign({},tt,{prefixCls:cr,onPrevYear:function(){jn(-1)},onNextYear:function(){jn(1)},onYearClick:function(){Pn("year",_r)}})),c.createElement($r,Object.assign({},tt,{prefixCls:cr,onSelect:function(Bn){Ur(Bn,"mouse")}})))}var Dn=kn;function Zn(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.viewDate,_n=tt.onPrevDecade,Vr=tt.onNextDecade,_r=tt.onDecadeClick,Pn=c.useContext(Z),Ur=Pn.hideHeader;if(Ur)return null;var En="".concat(cr,"-header"),jn=kr.getYear(Lr),Hn=Math.floor(jn/Ne)*Ne,Bn=Hn+Ne-1;return c.createElement(ve,Object.assign({},tt,{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 Qe(tt){var cr=tt.prefixCls,kr=tt.value,Lr=tt.viewDate,_n=tt.locale,Vr=tt.generateConfig,_r=c.useContext(Wn),Pn=_r.rangedValue,Ur=_r.hoverRangedValue,En="".concat(cr,"-cell"),jn=Vr.getYear(Lr),Hn=Math.floor(jn/Ne)*Ne,Bn=Hn+Ne-1,ri=Vr.setYear(Lr,Hn-Math.ceil((Ai*Ii-Ne)/2)),Yn=function(Pi){var bi=Vr.getYear(Pi);return Hn<=bi&&bi<=Bn},ii=gi({cellPrefixCls:En,value:kr,generateConfig:Vr,rangedValue:Pn,hoverRangedValue:Ur,isSameCell:function(Pi,bi){return ot(Vr,Pi,bi)},isInView:Yn,offsetCell:function(Pi,bi){return Vr.addYear(Pi,bi)}});return c.createElement(yn,Object.assign({},tt,{rowNum:Ii,colNum:Ai,baseDate:ri,getCellText:Vr.getYear,getCellClassName:ii,getCellDate:Vr.addYear,titleCell:function(Pi){return Vr.locale.format(_n.locale,Pi,"YYYY")}}))}var Se=Qe,Ne=10;function je(tt){var cr=tt.prefixCls,kr=tt.operationRef,Lr=tt.onViewDateChange,_n=tt.generateConfig,Vr=tt.value,_r=tt.viewDate,Pn=tt.sourceMode,Ur=tt.onSelect,En=tt.onPanelChange,jn="".concat(cr,"-year-panel");kr.current={onKeyDown:function(ri){return te(ri,{onLeftRight:function(ii){Ur(_n.addYear(Vr||_r,ii),"key")},onCtrlLeftRight:function(ii){Ur(_n.addYear(Vr||_r,ii*Ne),"key")},onUpDown:function(ii){Ur(_n.addYear(Vr||_r,ii*Ai),"key")},onEnter:function(){En(Pn==="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({},tt,{prefixCls:cr,onPrevDecade:function(){Hn(-1)},onNextDecade:function(){Hn(1)},onDecadeClick:function(){En("decade",_r)}})),c.createElement(Se,Object.assign({},tt,{prefixCls:cr,onSelect:function(ri){En(Pn==="date"?"date":"month",ri),Ur(ri,"mouse")}})))}var Xe=je;function ze(tt){var cr=tt.prefixCls,kr=tt.generateConfig,Lr=tt.viewDate,_n=tt.onPrevDecades,Vr=tt.onNextDecades,_r=c.useContext(Z),Pn=_r.hideHeader;if(Pn)return null;var Ur="".concat(cr,"-header"),En=kr.getYear(Lr),jn=Math.floor(En/Xr)*Xr,Hn=jn+Xr-1;return c.createElement(ve,Object.assign({},tt,{prefixCls:Ur,onSuperPrev:_n,onSuperNext:Vr}),jn,"-",Hn)}var Ze=ze,wt=3,st=4;function Jt(tt){var cr=Ir-1,kr=tt.prefixCls,Lr=tt.viewDate,_n=tt.generateConfig,Vr=tt.disabledDate,_r="".concat(kr,"-cell"),Pn=_n.getYear(Lr),Ur=Math.floor(Pn/Ir)*Ir,En=Math.floor(Pn/Xr)*Xr,jn=En+Xr-1,Hn=_n.setYear(Lr,En-Math.ceil((wt*st*Ir-Xr)/2)),Bn=function(Yn){var ii,ai=Vr&&Vr(Yn),Pi=_n.getYear(Yn),bi=Pi+cr;return ii={},Object(j.a)(ii,"".concat(_r,"-disabled"),ai),Object(j.a)(ii,"".concat(_r,"-in-view"),En<=Pi&&bi<=jn),Object(j.a)(ii,"".concat(_r,"-selected"),Pi===Ur),ii};return c.createElement(yn,Object.assign({},tt,{rowNum:st,colNum:wt,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 er(tt){var cr=tt.prefixCls,kr=tt.onViewDateChange,Lr=tt.generateConfig,_n=tt.viewDate,Vr=tt.operationRef,_r=tt.onSelect,Pn=tt.onPanelChange,Ur="".concat(cr,"-decade-panel");Vr.current={onKeyDown:function(Bn){return te(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*wt),"key")},onEnter:function(){Pn("year",_n)}})}};var En=function(Bn){var ri=Lr.addYear(_n,Bn*Xr);kr(ri),Pn(null,ri)},jn=function(Bn){_r(Bn,"mouse"),Pn("year",Bn)};return c.createElement("div",{className:Ur},c.createElement(Ze,Object.assign({},tt,{prefixCls:cr,onPrevDecades:function(){En(-1)},onNextDecades:function(){En(1)}})),c.createElement(Rr,Object.assign({},tt,{prefixCls:cr,onSelect:jn})))}var pn=er;function fr(tt,cr,kr){return kr?c.createElement("div",{className:"".concat(tt,"-footer-extra")},kr(cr)):null}function mn(tt){var cr=tt.prefixCls,kr=tt.rangeList,Lr=kr===void 0?[]:kr,_n=tt.components,Vr=_n===void 0?{}:_n,_r=tt.needConfirmButton,Pn=tt.onNow,Ur=tt.onOk,En=tt.okDisabled,jn=tt.showNow,Hn=tt.locale,Bn,ri;if(Lr.length){var Yn=Vr.rangeItem||"span";Bn=c.createElement(c.Fragment,null,Lr.map(function(ai){var Pi=ai.label,bi=ai.onClick,Ki=ai.onMouseEnter,Aa=ai.onMouseLeave;return c.createElement("li",{key:Pi,className:"".concat(cr,"-preset")},c.createElement(Yn,{onClick:bi,onMouseEnter:Ki,onMouseLeave:Aa},Pi))}))}if(_r){var ii=Vr.button||"button";Pn&&!Bn&&jn!==!1&&(Bn=c.createElement("li",{className:"".concat(cr,"-now")},c.createElement("a",{className:"".concat(cr,"-now-btn"),onClick:Pn},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(tt){var cr,kr=tt.prefixCls,Lr=kr===void 0?"rc-picker":kr,_n=tt.className,Vr=tt.style,_r=tt.locale,Pn=tt.generateConfig,Ur=tt.value,En=tt.defaultValue,jn=tt.pickerValue,Hn=tt.defaultPickerValue,Bn=tt.disabledDate,ri=tt.mode,Yn=tt.picker,ii=Yn===void 0?"date":Yn,ai=tt.tabIndex,Pi=ai===void 0?0:ai,bi=tt.showNow,Ki=tt.showTime,Aa=tt.showToday,ea=tt.renderExtraFooter,Ji=tt.hideHeader,sa=tt.onSelect,fa=tt.onChange,xo=tt.onPanelChange,Qa=tt.onMouseDown,Wi=tt.onPickerValueChange,qi=tt.onOk,ca=tt.components,ma=tt.direction,Pa=tt.hourStep,La=Pa===void 0?1:Pa,Za=tt.minuteStep,eo=Za===void 0?1:Za,ko=tt.secondStep,jo=ko===void 0?1:ko,cs=ii==="date"&&!!Ki||ii==="time",Mo=24%La===0,Lo=60%eo===0,Ba=60%jo===0,za=c.useContext(Z),Ta=za.operationRef,Po=za.panelRef,Qo=za.onSelect,so=za.hideRanges,Os=za.defaultOpenValue,ho=c.useContext(Wn),bo=ho.inRange,ds=ho.panelPosition,Ho=ho.rangedValue,zo=ho.hoverRangedValue,rn=c.useRef({}),es=c.useRef(!0),Js=Object(K.a)(null,{value:Ur,defaultValue:En,postState:function(Qn){return!Qn&&Os&&ii==="time"?Os:Qn}}),Es=Object(U.a)(Js,2),gs=Es[0],Ko=Es[1],hs=Object(K.a)(null,{value:jn,defaultValue:Hn||gs,postState:function(Qn){return Qn||Pn.getNow()}}),bs=Object(U.a)(hs,2),ws=bs[0],qo=bs[1],us=function(Qn){qo(Qn),Wi&&Wi(Qn)},_s=function(Qn){var Ei=ue[ii];return Ei?Ei(Qn):Qn},vs=Object(K.a)(function(){return ii==="time"?"time":_s("date")},{value:ri}),vo=Object(U.a)(vs,2),to=vo[0],Jo=vo[1];c.useEffect(function(){Jo(ii)},[ii]);var ts=c.useState(function(){return to}),Ha=Object(U.a)(ts,2),Tt=Ha[0],Vt=Ha[1],hn=function(Qn,Ei){var Fi=_s(Qn||to);Vt(to),Jo(Fi),xo&&(to!==Fi||Ht(Pn,ws,ws))&&xo(Ei,Fi)},Vn=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(Pn,Qn,gs)&&fa(Qn))},pt=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:pt,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 pe,be=Object(F.a)(Object(F.a)({},tt),{},{operationRef:rn,prefixCls:Lr,viewDate:ws,value:gs,onViewDateChange:us,sourceMode:Tt,onPanelChange:hn,disabledDate:to!=="decade"?Bn:void 0});delete be.onChange,delete be.onSelect;switch(to){case"decade":pe=c.createElement(pn,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}));break;case"year":pe=c.createElement(Xe,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}));break;case"month":pe=c.createElement(yt,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}));break;case"quarter":pe=c.createElement(Dn,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}));break;case"week":pe=c.createElement(un,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}));break;case"time":delete be.showTime,pe=c.createElement(Le,Object.assign({},be,Object(V.a)(Ki)==="object"?Ki:null,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}));break;default:Ki?pe=c.createElement(Ar,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}})):pe=c.createElement(Ye,Object.assign({},be,{onSelect:function(Qn,Ei){us(Qn),Vn(Qn,Ei)}}))}var Ke,mt,Gt=function(){var Qn=Pn.getNow(),Ei=Bt(Pn.getHour(Qn),Pn.getMinute(Qn),Pn.getSecond(Qn),Mo?La:1,Lo?eo:1,Ba?jo:1),Fi=Ut(Pn,Qn,Ei[0],Ei[1],Ei[2]);Vn(Fi,"submit")};so||(Ke=fr(Lr,to,ea),mt=mn({prefixCls:Lr,components:ca,needConfirmButton:cs,okDisabled:!gs||Bn&&Bn(gs),locale:_r,showNow:bi,onNow:cs&&Gt,onOk:function(){gs&&(Vn(gs,"submit",!0),qi&&qi(gs))}}));var Dr;if(Aa&&to==="date"&&ii==="date"&&!Ki){var Gr=Pn.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||Vn(Gr,"mouse",!0)}},_r.today)}return c.createElement(Z.Provider,{value:Object(F.a)(Object(F.a)({},za),{},{hideHeader:"hideHeader"in tt?Ji:za.hideHeader,hidePrevBtn:bo&&ds==="right",hideNextBtn:bo&&ds==="left"})},c.createElement("div",{tabIndex:Pi,className:T()("".concat(Lr,"-panel"),_n,(cr={},Object(j.a)(cr,"".concat(Lr,"-panel-has-range"),Ho&&Ho[0]&&Ho[1]),Object(j.a)(cr,"".concat(Lr,"-panel-has-range-hover"),zo&&zo[0]&&zo[1]),Object(j.a)(cr,"".concat(Lr,"-panel-rtl"),ma==="rtl"),cr)),style:Vr,onKeyDown:pt,onBlur:ae,onMouseDown:Qa,ref:Po},pe,Ke||mt||Dr?c.createElement("div",{className:"".concat(Lr,"-footer")},Ke,mt,Dr):null))}var Mr=en,Gn=d("JX7q"),di=d("i8i4"),_i=d.n(di),Br=d("l4aY"),sn=d("m+aA"),Sn=d("c+Xe"),Dt=d("zT1h"),ft=d("QC+M");function St(tt,cr,kr){return kr?tt[0]===cr[0]:tt[0]===cr[0]&&tt[1]===cr[1]}function Ct(tt,cr,kr){var Lr=tt[cr]||{};return Object(F.a)(Object(F.a)({},Lr),kr)}function Nt(tt,cr,kr,Lr){for(var _n=kr.points,Vr=Object.keys(tt),_r=0;_r<Vr.length;_r+=1){var Pn=Vr[_r];if(St(tt[Pn].points,_n,Lr))return"".concat(cr,"-placement-").concat(Pn)}return""}var gt=d("Ff2n"),Qt=d("xEkU"),tr=d.n(Qt),ar=d("9mu1"),yr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function xn(tt,cr){var kr={};return kr[tt.toLowerCase()]=cr.toLowerCase(),kr["Webkit".concat(tt)]="webkit".concat(cr),kr["Moz".concat(tt)]="moz".concat(cr),kr["ms".concat(tt)]="MS".concat(cr),kr["O".concat(tt)]="o".concat(cr.toLowerCase()),kr}function vn(tt,cr){var kr={animationend:xn("Animation","AnimationEnd"),transitionend:xn("Transition","TransitionEnd")};return tt&&("AnimationEvent"in cr||delete kr.animationend.animation,"TransitionEvent"in cr||delete kr.transitionend.transition),kr}var zn=vn(yr,typeof window!="undefined"?window:{}),Yr={};if(yr){var xr=document.createElement("div");Yr=xr.style}var ln={};function On(tt){if(ln[tt])return ln[tt];var cr=zn[tt];if(cr)for(var kr=Object.keys(cr),Lr=kr.length,_n=0;_n<Lr;_n+=1){var Vr=kr[_n];if(Object.prototype.hasOwnProperty.call(cr,Vr)&&Vr in Yr)return ln[tt]=cr[Vr],ln[tt]}return""}var In=On("animationend"),Un=On("transitionend"),ti=!!(In&&Un);function ui(tt,cr){if(!tt)return null;if(Object(V.a)(tt)==="object"){var kr=cr.replace(/-\w/g,function(Lr){return Lr[1].toUpperCase()});return tt[kr]}return"".concat(tt,"-").concat(cr)}var si="none",ki="appear",zi="enter",Ri="leave";function Yi(tt){var cr=tt,kr=!!c.forwardRef;Object(V.a)(tt)==="object"&&(cr=tt.transitionSupport,kr="forwardRef"in tt?tt.forwardRef:kr);function Lr(Vr){return!!(Vr.motionName&&cr)}var _n=function(Vr){Object(k.a)(Pn,Vr);var _r=Object(M.a)(Pn);function Pn(){var Ur;return Object(D.a)(this,Pn),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,Pi=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===ki&&Ki?Ur.updateStatus(ri,null,null,function(){Ur.updateActiveStatus(ai,ki)}):Hn&&jn===zi&&Aa?Ur.updateStatus(Yn,null,null,function(){Ur.updateActiveStatus(Pi,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===ki&&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)(Pn,[{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,Pi=Yn.visible,bi=Yn.removeOnLeave,Ki=Yn.leavedClassName,Aa=Yn.eventProps;return ii?Hn===si||!Lr(this.props)?Pi?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(j.a)(En,ui(ai,"".concat(Hn,"-active")),Bn),Object(j.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,Pi=En.motionLeaveImmediately,bi={prevProps:En};return(Bn===ki&&!Yn||Bn===zi&&!ii||Bn===Ri&&!ai)&&(bi.status=si,bi.statusActive=!1,bi.newStatus=!1),!Hn&&ri&&Yn&&(bi.status=ki,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&&Pi&&!ri&&ai)&&(bi.status=Ri,bi.statusActive=!1,bi.newStatus=!0),bi}}]),Pn}(c.Component);return _n.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},kr?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(tt){var cr;return tt&&Object(V.a)(tt)==="object"&&"key"in tt?cr=tt:cr={key:tt},Object(F.a)(Object(F.a)({},cr),{},{key:String(cr.key)})}function wr(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return tt.map(Bi)}function lr(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kr=[],Lr=0,_n=cr.length,Vr=wr(tt),_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&&(kr=kr.concat(_r.slice(Lr,Hn).map(function(ri){return Object(F.a)(Object(F.a)({},ri),{},{status:gn})})),Lr=Hn),kr.push(Object(F.a)(Object(F.a)({},Bn),{},{status:mi})),Lr+=1,jn=!0;break}}jn||kr.push(Object(F.a)(Object(F.a)({},En),{},{status:Hi}))}),Lr<_n&&(kr=kr.concat(_r.slice(Lr).map(function(En){return Object(F.a)(Object(F.a)({},En),{},{status:gn})})));var Pn={};kr.forEach(function(En){var jn=En.key;Pn[jn]=(Pn[jn]||0)+1});var Ur=Object.keys(Pn).filter(function(En){return Pn[En]>1});return Ur.forEach(function(En){kr=kr.filter(function(jn){var Hn=jn.key,Bn=jn.status;return Hn!==En||Bn!==Hi}),kr.forEach(function(jn){jn.key===En&&(jn.status=mi)})}),kr}var on=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Zt(tt){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$n,kr=function(Lr){Object(k.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(Pn){_r.setState(function(Ur){var En=Ur.keyEntities;return{keyEntities:En.map(function(jn){return jn.key!==Pn?jn:Object(F.a)(Object(F.a)({},jn),{},{status:Li})})}})},_r}return Object(R.a)(Vr,[{key:"render",value:function(){var Pn=this,Ur=this.state.keyEntities,En=this.props,jn=En.component,Hn=En.children,Bn=Object(gt.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,Pi=Object(gt.a)(ii,["status"]),bi=ai===gn||ai===mi;return c.createElement(cr,Object.assign({},Yn,{key:Pi.key,visible:bi,eventProps:Pi,onLeaveEnd:function(){Yn.onLeaveEnd&&Yn.onLeaveEnd.apply(Yn,arguments),Pn.removeKey(Pi.key)}}),Hn)}))}}],[{key:"getDerivedStateFromProps",value:function(Pn,Ur){var En=Pn.keys,jn=Ur.keyEntities,Hn=wr(En);if(!tt)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 Pi=jn[ai];if(Pi.key===Yn.key){ii=Pi;break}}return!(ii&&ii.status===Li&&Yn.status===Hi)})}}}]),Vr}(c.Component);return kr.defaultProps={component:"div"},kr}var br=Zt(ti),Or=$n,Wr=function(cr,kr){var Lr=cr.prefixCls,_n=cr.className,Vr=cr.style,_r=cr.children,Pn=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:kr,className:_n,onMouseEnter:Pn,onMouseLeave:Ur,onMouseDown:En,onTouchStart:jn,style:Vr},Hn)},An=c.forwardRef(Wr);An.displayName="PopupInner";var vt=An;function mr(tt){var cr=tt.prefixCls,kr=tt.motion,Lr=tt.animation,_n=tt.transitionName;return kr||(Lr?{motionName:"".concat(cr,"-").concat(Lr)}:_n?{motionName:_n}:null)}function vr(tt){return tt&&tt.motionName}var Fr=function(tt){Object(k.a)(kr,tt);var cr=Object(M.a)(kr);function kr(){var Lr;return Object(D.a)(this,kr),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,Pn=Lr.props,Ur=Pn.getClassNameFromAlign,En=Pn.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,Pn=_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,Pi=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=Pn:ri.indexOf("minWidth")!==-1&&(fa.minWidth=Pn));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 Pa=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];Pa==null||Pa.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,Pa){var La=ma.style,Za=ma.className;return o.a.createElement(ar.a,{target:Lr.getAlignTarget(),key:"popup",ref:Lr.alignRef,monitorWindowResize:!0,disabled:qi,align:ii,onAlign:Lr.onAlign},o.a.createElement(vt,{prefixCls:jn,className:T()(Ji,Za),ref:Object(Sn.a)(Pa,Lr.popupRef),onMouseEnter:Pi,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,Pn=_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:Pn,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)(kr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _n=this.state.status,Vr=this.props,_r=Vr.getRootDomNode,Pn=Vr.visible,Ur=Vr.stretch;if(this.cancelFrameState(),Pn&&_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,Pn=Object(gt.a)(_n,["visible"]),Ur=Vr.prevVisible,En=Vr.status,jn=Vr.inMotion,Hn={prevVisible:_r,status:En},Bn=mr(Pn);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}}]),kr}(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(tt){var cr=function(kr){Object(k.a)(_n,kr);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(Nt(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,Pi=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:Pi,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 Pn;return"popupVisible"in Vr?Pn=!!Vr.popupVisible:Pn=!!Vr.defaultPopupVisible,_r.state={prevPopupVisible:Pn,popupVisible:Pn},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,Pn=this.state;if(Pn.popupVisible){var Ur;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ur=_r.getDocument(),this.clickOutsideHandler=Object(Dt.a)(Ur,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ur=Ur||_r.getDocument(),this.touchOutsideHandler=Object(Dt.a)(Ur,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ur=Ur||_r.getDocument(),this.contextMenuOutsideHandler1=Object(Dt.a)(Ur,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Dt.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,Pn=_r.popupPlacement,Ur=_r.popupAlign,En=_r.builtinPlacements;return Pn&&En?Ct(En,Pn,Ur):Ur}},{key:"setPopupVisible",value:function(_r,Pn){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&&Pn&&this.setPoint(Pn)}},{key:"delaySetPopupVisible",value:function(_r,Pn,Ur){var En=this,jn=Pn*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 Pn=this.props.children.props,Ur=this.props;return Pn[_r]&&Ur[_r]?this["fire".concat(_r)]:Pn[_r]||Ur[_r]}},{key:"isClickToShow",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.showAction;return Pn.indexOf("click")!==-1||Ur.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.showAction;return Pn.indexOf("contextMenu")!==-1||Ur.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.hideAction;return Pn.indexOf("click")!==-1||Ur.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.showAction;return Pn.indexOf("hover")!==-1||Ur.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.hideAction;return Pn.indexOf("hover")!==-1||Ur.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.showAction;return Pn.indexOf("focus")!==-1||Ur.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var _r=this.props,Pn=_r.action,Ur=_r.hideAction;return Pn.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,Pn){var Ur=this.props.children.props[_r];Ur&&Ur(Pn);var En=this.props[_r];En&&En(Pn)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var _r=this.state.popupVisible,Pn=this.props,Ur=Pn.children,En=Pn.forceRender,jn=Pn.alignPoint,Hn=Pn.className,Bn=Pn.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 Pi=o.a.cloneElement(ri,ai),bi;return(_r||this.popupRef.current||En)&&(bi=o.a.createElement(tt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!_r&&Bn&&(bi=null),o.a.createElement(tn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Pi,bi)}}],[{key:"getDerivedStateFromProps",value:function(_r,Pn){var Ur=_r.popupVisible,En={};return Ur!==void 0&&Pn.popupVisible!==Ur&&(En.popupVisible=Ur,En.prevPopupVisible=Pn.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(ft.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(tt){var cr,kr=tt.prefixCls,Lr=tt.popupElement,_n=tt.popupStyle,Vr=tt.visible,_r=tt.dropdownClassName,Pn=tt.dropdownAlign,Ur=tt.transitionName,En=tt.getPopupContainer,jn=tt.children,Hn=tt.range,Bn=tt.popupPlacement,ri=tt.direction,Yn="".concat(kr,"-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:Pn,popupVisible:Vr,popupClassName:T()(_r,(cr={},Object(j.a)(cr,"".concat(Yn,"-range"),Hn),Object(j.a)(cr,"".concat(Yn,"-rtl"),ri==="rtl"),cr)),popupStyle:_n,getPopupContainer:En},jn)}var xi=Ni;function yi(tt){var cr=tt.open,kr=tt.value,Lr=tt.isClickOutside,_n=tt.triggerOpen,Vr=tt.forwardKeyDown,_r=tt.blurToCancel,Pn=tt.onSubmit,Ur=tt.onCancel,En=tt.onFocus,jn=tt.onBlur,Hn=Object(c.useState)(!1),Bn=Object(U.a)(Hn,2),ri=Bn[0],Yn=Bn[1],ii=Object(c.useState)(!1),ai=Object(U.a)(ii,2),Pi=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?Pn()!==!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&&Pn()),bi(!1),jn&&jn(sa)}};return Object(c.useEffect)(function(){Aa.current=!1},[cr]),Object(c.useEffect)(function(){Aa.current=!0},[kr]),Object(c.useEffect)(function(){return X(function(Ji){var sa=Ji.target;cr&&(Lr(sa)?Pi||_n(!1):(Ki.current=!0,requestAnimationFrame(function(){Ki.current=!1})))})}),[ea,{focused:Pi,typing:ri}]}function vi(tt){var cr=tt.valueTexts,kr=tt.onTextChange,Lr=c.useState(""),_n=Object(U.a)(Lr,2),Vr=_n[0],_r=_n[1],Pn=c.useRef([]);Pn.current=cr;function Ur(jn){_r(jn),kr(jn)}function En(){_r(Pn.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(tt,cr){var kr=cr.formatList,Lr=cr.generateConfig,_n=cr.locale;return Object(Be.a)(function(){if(!tt)return[[""],""];for(var Vr="",_r=[],Pn=0;Pn<kr.length;Pn+=1){var Ur=kr[Pn],En=Lr.locale.format(_n.locale,tt,Ur);_r.push(En),Pn===0&&(Vr=En)}return[_r,Vr]},[tt,kr],function(Vr,_r){return Vr[0]!==_r[0]||!Ui()(Vr[1],_r[1])})}function Di(tt,cr){var kr=cr.formatList,Lr=cr.generateConfig,_n=cr.locale,Vr=Object(c.useState)(null),_r=Object(U.a)(Vr,2),Pn=_r[0],Ur=_r[1],En=Object(c.useRef)(null);function jn(ai){var Pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(En.current),Pi){Ur(ai);return}En.current=requestAnimationFrame(function(){Ur(ai)})}var Hn=$i(Pn,{formatList:kr,generateConfig:Lr,locale:_n}),Bn=Object(U.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)},[tt]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(En.current)}},[]),[ri,Yn,ii]}function ua(tt){var cr,kr=tt.prefixCls,Lr=kr===void 0?"rc-picker":kr,_n=tt.id,Vr=tt.tabIndex,_r=tt.style,Pn=tt.className,Ur=tt.dropdownClassName,En=tt.dropdownAlign,jn=tt.popupStyle,Hn=tt.transitionName,Bn=tt.generateConfig,ri=tt.locale,Yn=tt.inputReadOnly,ii=tt.allowClear,ai=tt.autoFocus,Pi=tt.showTime,bi=tt.picker,Ki=bi===void 0?"date":bi,Aa=tt.format,ea=tt.use12Hours,Ji=tt.value,sa=tt.defaultValue,fa=tt.open,xo=tt.defaultOpen,Qa=tt.defaultOpenValue,Wi=tt.suffixIcon,qi=tt.clearIcon,ca=tt.disabled,ma=tt.disabledDate,Pa=tt.placeholder,La=tt.getPopupContainer,Za=tt.pickerRef,eo=tt.panelRender,ko=tt.onChange,jo=tt.onOpenChange,cs=tt.onFocus,Mo=tt.onBlur,Lo=tt.onMouseDown,Ba=tt.onMouseUp,za=tt.onMouseEnter,Ta=tt.onMouseLeave,Po=tt.onContextMenu,Qo=tt.onClick,so=tt.direction,Os=tt.autoComplete,ho=Os===void 0?"off":Os,bo=c.useRef(null),ds=Ki==="date"&&!!Pi||Ki==="time",Ho=Re(Ge(Aa,Ki,Pi,ea)),zo=c.useRef(null),rn=c.useRef(null),es=Object(K.a)(null,{value:Ji,defaultValue:sa}),Js=Object(U.a)(es,2),Es=Js[0],gs=Js[1],Ko=c.useState(Es),hs=Object(U.a)(Ko,2),bs=hs[0],ws=hs[1],qo=c.useRef(null),us=Object(K.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(U.a)(us,2),vs=_s[0],vo=_s[1],to=$i(bs,{formatList:Ho,generateConfig:Bn,locale:ri}),Jo=Object(U.a)(to,2),ts=Jo[0],Ha=Jo[1],Tt=vi({valueTexts:ts,onTextChange:function(Ka){var is=Bn.locale.parse(ri.locale,Ka,Ho);is&&(!ma||!ma(is))&&ws(is)}}),Vt=Object(U.a)(Tt,3),hn=Vt[0],Vn=Vt[1],pt=Vt[2],ae=function(Ka){ws(Ka),gs(Ka),ko&&!Ht(Bn,Es,Ka)&&ko(Ka,Ka?Bn.locale.format(ri.locale,Ka,Ho[0]):"")},pe=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(),pe(!0))},mt=yi({blurToCancel:ds,open:vs,value:hn,triggerOpen:pe,forwardKeyDown:be,isClickOutside:function(Ka){return!Ae([zo.current,rn.current],Ka)},onSubmit:function(){return ma&&ma(bs)?!1:(ae(bs),pe(!1),pt(),!0)},onCancel:function(){pe(!1),ws(Es),pt()},onFocus:cs,onBlur:Mo}),Gt=Object(U.a)(mt,2),Dr=Gt[0],Gr=Gt[1],fn=Gr.focused,Kn=Gr.typing;c.useEffect(function(){vs||(ws(Es),!ts.length||ts[0]===""?Vn(""):Ha!==hn&&pt())},[vs,ts]),c.useEffect(function(){vs||pt()},[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)({},tt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Qn=c.createElement(Mr,Object.assign({},qn,{generateConfig:Bn,className:T()(Object(j.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),pe(!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),pe(!1))},fo=so==="rtl"?"bottomRight":"bottomLeft",wo=Di(hn,{formatList:Ho,generateConfig:Bn,locale:ri}),lo=Object(U.a)(wo,3),Yo=lo[0],Vo=lo[1],No=lo[2];return c.createElement(Z.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,Pn,(cr={},Object(j.a)(cr,"".concat(Lr,"-disabled"),ca),Object(j.a)(cr,"".concat(Lr,"-focused"),fn),Object(j.a)(cr,"".concat(Lr,"-rtl"),so==="rtl"),cr)),style:_r,onMouseDown:Lo,onMouseUp:Ke,onMouseEnter:za,onMouseLeave:Ta,onContextMenu:Po,onClick:Qo},c.createElement("div",{className:T()("".concat(Lr,"-input"),Object(j.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){Vn(Ka.target.value)},autoFocus:ai,placeholder:Pa,ref:bo,title:hn},Dr,{size:oe(Ki,Ho[0])},Lt(tt),{autoComplete:ho})),Fi,va))))}var aa=function(tt){Object(k.a)(kr,tt);var cr=Object(M.a)(kr);function kr(){var Lr;return Object(D.a)(this,kr),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)(kr,[{key:"render",value:function(){return c.createElement(ua,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),kr}(c.Component),Gi=aa;function Vi(tt,cr,kr){var Lr=tt.picker,_n=tt.locale,Vr=tt.selectedValue,_r=tt.disabledDate,Pn=tt.disabled,Ur=tt.generateConfig,En=$e(Vr,0),jn=$e(Vr,1);function Hn(ai){var Pi=Ur.getYear(ai),bi=Ur.locale.getWeek(_n.locale,ai);return Pi*100+bi}function Bn(ai){var Pi=Ur.getYear(ai),bi=Ur.getMonth(ai);return Pi*100+bi}function ri(ai){var Pi=Ur.getYear(ai),bi=Yt(Ur,ai);return Pi*10+bi}var Yn=c.useCallback(function(ai){if(_r&&_r(ai))return!0;if(Pn[1]&&jn)return!ir(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!ir(Ur,ai,jn)&&Ur.isAfter(ai,jn)}return!1},[_r,Pn[1],jn,cr]),ii=c.useCallback(function(ai){if(_r&&_r(ai))return!0;if(Pn[0]&&En)return!ir(Ur,ai,jn)&&Ur.isAfter(En,ai);if(kr&&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!ir(Ur,ai,En)&&Ur.isAfter(En,ai)}return!1},[_r,Pn[0],En,kr]);return[Yn,ii]}function ta(tt,cr,kr,Lr){var _n=dn(tt,kr,Lr,1);function Vr(_r){return _r(tt,cr)?"same":_r(_n,cr)?"closing":"far"}switch(kr){case"year":return Vr(function(_r,Pn){return Mt(Lr,_r,Pn)});case"quarter":case"month":return Vr(function(_r,Pn){return ot(Lr,_r,Pn)});default:return Vr(function(_r,Pn){return Zr(Lr,_r,Pn)})}}function Xi(tt,cr,kr,Lr){var _n=$e(tt,0),Vr=$e(tt,1);if(cr===0)return _n;if(_n&&Vr){var _r=ta(_n,Vr,kr,Lr);switch(_r){case"same":return _n;case"closing":return _n;default:return dn(Vr,kr,Lr,-1)}}return _n}function ga(tt){var cr=tt.values,kr=tt.picker,Lr=tt.defaultDates,_n=tt.generateConfig,Vr=c.useState(function(){return[$e(Lr,0),$e(Lr,1)]}),_r=Object(U.a)(Vr,2),Pn=_r[0],Ur=_r[1],En=c.useState(null),jn=Object(U.a)(En,2),Hn=jn[0],Bn=jn[1],ri=$e(cr,0),Yn=$e(cr,1);function ii(Pi){return Pn[Pi]?Pn[Pi]:$e(Hn,Pi)||Xi(cr,Pi,kr,_n)||ri||Yn||_n.getNow()}function ai(Pi,bi){if(Pi){var Ki=Et(Hn,Pi,bi);Ur(Et(Pn,null,bi)||[null,null]);var Aa=(bi+1)%2;$e(cr,Aa)||(Ki=Et(Ki,Pi,Aa)),Bn(Ki)}else(ri||Yn)&&Bn(null)}return[ii,ai]}function ra(tt,cr){return tt&&tt[0]&&tt[1]&&cr.isAfter(tt[0],tt[1])?[tt[1],tt[0]]:tt}function pa(tt,cr,kr,Lr){return tt||Lr&&Lr[cr]?!0:!!kr[(cr+1)%2]}function _a(tt){var cr,kr,Lr,_n=tt.prefixCls,Vr=_n===void 0?"rc-picker":_n,_r=tt.id,Pn=tt.style,Ur=tt.className,En=tt.popupStyle,jn=tt.dropdownClassName,Hn=tt.transitionName,Bn=tt.dropdownAlign,ri=tt.getPopupContainer,Yn=tt.generateConfig,ii=tt.locale,ai=tt.placeholder,Pi=tt.autoFocus,bi=tt.disabled,Ki=tt.format,Aa=tt.picker,ea=Aa===void 0?"date":Aa,Ji=tt.showTime,sa=tt.use12Hours,fa=tt.separator,xo=fa===void 0?"~":fa,Qa=tt.value,Wi=tt.defaultValue,qi=tt.defaultPickerValue,ca=tt.open,ma=tt.defaultOpen,Pa=tt.disabledDate,La=tt.disabledTime,Za=tt.dateRender,eo=tt.panelRender,ko=tt.ranges,jo=tt.allowEmpty,cs=tt.allowClear,Mo=tt.suffixIcon,Lo=tt.clearIcon,Ba=tt.pickerRef,za=tt.inputReadOnly,Ta=tt.mode,Po=tt.renderExtraFooter,Qo=tt.onChange,so=tt.onOpenChange,Os=tt.onPanelChange,ho=tt.onCalendarChange,bo=tt.onFocus,ds=tt.onBlur,Ho=tt.onOk,zo=tt.components,rn=tt.order,es=tt.direction,Js=tt.activePickerIndex,Es=tt.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=Re(Ge(Ki,ea,Ji,sa)),Jo=Object(K.a)(0,{value:Js}),ts=Object(U.a)(Jo,2),Ha=ts[0],Tt=ts[1],Vt=Object(c.useRef)(null),hn=c.useMemo(function(){return Array.isArray(bi)?bi:[bi||!1,bi||!1]},[bi]),Vn=Object(K.a)(null,{value:Qa,defaultValue:Wi,postState:function(Na){return ea==="time"&&!rn?Na:ra(Na,Yn)}}),pt=Object(U.a)(Vn,2),ae=pt[0],pe=pt[1],be=ga({values:ae,picker:ea,defaultDates:qi,generateConfig:Yn}),Ke=Object(U.a)(be,2),mt=Ke[0],Gt=Ke[1],Dr=Object(K.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]&&!$e(ro,Io)&&!$e(jo,Io)&&(ro=Et(ro,Yn.getNow(),Io));return ro}}),Gr=Object(U.a)(Dr,2),fn=Gr[0],Kn=Gr[1],qn=Object(K.a)([ea,ea],{value:Ta}),Qn=Object(U.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:Pa,generateConfig:Yn},hs.current[1],hs.current[0]),fo=Object(U.a)(Oa,2),wo=fo[0],lo=fo[1],Yo=Object(K.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(U.a)(Yo,2),No=Vo[0],ao=Vo[1],Ka=No&&Ha===0,is=No&&Ha===1,Is=Object(c.useState)(0),Go=Object(U.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,Tt(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=$e(ro,0),Bs=$e(ro,1);Io&&Bs&&Yn.isAfter(Io,Bs)&&(ea==="week"&&!qt(Yn,ii.locale,Io,Bs)||ea==="quarter"&&!or(Yn,Io,Bs)||ea!=="week"&&ea!=="quarter"&&ea!=="time"&&!ir(Yn,Io,Bs)?(Na===0?(ro=[Io,null],Bs=null):(Io=null,ro=[null,Bs]),hs.current=Object(j.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&&(pe(ro),Qo&&(!Ht(Yn,$e(ae,0),Io)||!Ht(Yn,$e(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]||!$e(ro,Ks))&&$e(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($e(fn,0),vl),Zo=Object(U.a)(zs,2),As=Zo[0],nl=Zo[1],ks=$i($e(fn,1),vl),po=Object(U.a)(ks,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(Et(fn,Io,ro)),Gt(Io,ro))},$o=vi({valueTexts:As,onTextChange:function(Na){return Xo(Na,0)}}),Co=Object(U.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(U.a)(ol,3),dl=Zs[0],hl=Zs[1],sl=Zs[2],yl=Object(c.useState)(null),Ns=Object(U.a)(yl,2),ys=Ns[0],Ds=Ns[1],xs=Object(c.useState)(null),Xs=Object(U.a)(xs,2),ll=Xs[0],El=Xs[1],jl=Di(rs,{formatList:to,generateConfig:Yn,locale:ii}),$s=Object(U.a)(jl,3),Nl=$s[0],Pl=$s[1],yu=$s[2],cu=Di(dl,{formatList:to,generateConfig:Yn,locale:ii}),eu=Object(U.a)(cu,3),tu=eu[0],Vl=eu[1],Ys=eu[2],il=function(Na){El(Et(fn,Na,Ha)),Ha===0?Pl(Na):Vl(Na)},fl=function(){El(Et(fn,null,Ha)),Ha===0?yu():Ys()},kl=function(Na,ro){return{blurToCancel:Ko,forwardKeyDown:xl,onBlur:ds,isClickOutside:function(Bs){return!Ae([ws.current,qo.current,us.current],Bs)},onFocus:function(Bs){Tt(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)({},kl(0,Fs)),{},{open:Ka,value:rs})),ru=Object(U.a)(du,2),nu=ru[0],Qs=ru[1],iu=Qs.focused,au=Qs.typing,bu=yi(Object(F.a)(Object(F.a)({},kl(1,sl)),{},{open:is,value:dl})),bl=Object(U.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(ko||{}),su=hu.map(function(Bo){var Na=ko[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:$e(Bs,Ha)||void 0})}var Ol=null;return Za&&(Ol=function(ml,Al){return Za(ml,Al,{range:Ha?"end":"start"})}),c.createElement(Wn.Provider,{value:{inRange:!0,panelPosition:Bo,rangedValue:ys||fn,hoverRangedValue:ro}},c.createElement(Mr,Object.assign({},tt,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(j.a)({},"".concat(Vr,"-panel-focused"),Ha===0?!au:!Tl)),value:$e(fn,Ha),locale:ii,tabIndex:-1,onPanelChange:function(ml,Al){va(Et(Ei,Al,Ha),Et(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],Po),ro=mn({prefixCls:Vr,components:zo,needConfirmButton:Ko,okDisabled:!$e(fn,Ha)||Pa&&Pa(fn[Ha]),locale:ii,rangeList:su,onOk:function(){$e(fn,Ha)&&(Ss(fn,Ha),Ho&&Ho(fn))}});if(ea!=="time"&&!Ji){var Io=mt(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&&($e(ae,0)&&!hn[0]||$e(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=Et(ro,null,0)),hn[1]||(ro=Et(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:oe(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=Et(fn,Na,Ha);ro==="submit"||ro!=="key"&&!Ko?(Ss(Io,Ha),Ha===0?yu():Ys()):Kn(Io)};return c.createElement(Z.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(j.a)(cr,"".concat(Vr,"-disabled"),hn[0]&&hn[1]),Object(j.a)(cr,"".concat(Vr,"-focused"),Ha===0?iu:Gl),Object(j.a)(cr,"".concat(Vr,"-rtl"),es==="rtl"),cr)),style:Pn,onClick:Tu,onMouseDown:Cu},Lt(tt)),c.createElement("div",{className:T()("".concat(Vr,"-input"),(kr={},Object(j.a)(kr,"".concat(Vr,"-input-active"),Ha===0),Object(j.a)(kr,"".concat(Vr,"-input-placeholder"),!!Nl),kr)),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:Pi,placeholder:$e(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(j.a)(Lr,"".concat(Vr,"-input-active"),Ha===1),Object(j.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:$e(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(tt){Object(k.a)(kr,tt);var cr=Object(M.a)(kr);function kr(){var Lr;return Object(D.a)(this,kr),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)(kr,[{key:"render",value:function(){return c.createElement(_a,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),kr}(c.Component),Ra=Da,Ao=Gi,ja=d("61s2");function Ya(tt,cr,kr){return kr!==void 0?kr:tt==="year"&&cr.lang.yearPlaceholder?cr.lang.yearPlaceholder:tt==="quarter"&&cr.lang.quarterPlaceholder?cr.lang.quarterPlaceholder:tt==="month"&&cr.lang.monthPlaceholder?cr.lang.monthPlaceholder:tt==="week"&&cr.lang.weekPlaceholder?cr.lang.weekPlaceholder:tt==="time"&&cr.timePickerLocale.placeholder?cr.timePickerLocale.placeholder:cr.lang.placeholder}function Ia(tt,cr,kr){return kr!==void 0?kr:tt==="year"&&cr.lang.yearPlaceholder?cr.lang.rangeYearPlaceholder:tt==="month"&&cr.lang.monthPlaceholder?cr.lang.rangeMonthPlaceholder:tt==="week"&&cr.lang.weekPlaceholder?cr.lang.rangeWeekPlaceholder:tt==="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(tt,cr){var kr={};for(var Lr in tt)Object.prototype.hasOwnProperty.call(tt,Lr)&&cr.indexOf(Lr)<0&&(kr[Lr]=tt[Lr]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Lr=Object.getOwnPropertySymbols(tt);_n<Lr.length;_n++)cr.indexOf(Lr[_n])<0&&Object.prototype.propertyIsEnumerable.call(tt,Lr[_n])&&(kr[Lr[_n]]=tt[Lr[_n]]);return kr};function Ga(tt){function cr(Ur,En){var jn=function(Hn){g()(ri,Hn);var Bn=y()(ri);function ri(Yn){var ii;return s()(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,Pi=f()(f()({},ja.a),ai);return Pi.lang=f()(f()({},Pi.lang),(ai||{}).lang),Pi},ii.renderPicker=function(ai){var Pi=ii.context,bi=Pi.getPrefixCls,Ki=Pi.direction,Aa=Pi.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,Pa=ma.format,La=ma.showTime,Za=bi("picker",Ji),eo={showToday:!0},ko={};Ur&&(ko.picker=Ur);var jo=Ur||ii.props.picker;return ko=f()(f()(f()({},ko),La?_o(f()({format:Pa,picker:jo},La)):{}),jo==="time"?_o(f()(f()({format:Pa},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,ko,{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:tt,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 kr=cr(),Lr=cr("week","WeekPicker"),_n=cr("month","MonthPicker"),Vr=cr("year","YearPicker"),_r=cr("time","TimePicker"),Pn=cr("quarter","QuarterPicker");return{DatePicker:kr,WeekPicker:Lr,MonthPicker:_n,YearPicker:Vr,TimePicker:_r,QuarterPicker:Pn}}var Oo=d("8ISB"),oa=d.n(Oo),qa=function(tt,cr){var kr={};for(var Lr in tt)Object.prototype.hasOwnProperty.call(tt,Lr)&&cr.indexOf(Lr)<0&&(kr[Lr]=tt[Lr]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Lr=Object.getOwnPropertySymbols(tt);_n<Lr.length;_n++)cr.indexOf(Lr[_n])<0&&Object.prototype.propertyIsEnumerable.call(tt,Lr[_n])&&(kr[Lr[_n]]=tt[Lr[_n]]);return kr};function oo(tt){var cr=function(kr){g()(_n,kr);var Lr=y()(_n);function _n(){var Vr;return s()(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,Pn=f()(f()({},ja.a),_r);return Pn.lang=f()(f()({},Pn.lang),(_r||{}).lang),Pn},Vr.renderPicker=function(_r){var Pn=Vr.context,Ur=Pn.getPrefixCls,En=Pn.direction,jn=Pn.getPopupContainer,Hn=Vr.props,Bn=Hn.prefixCls,ri=Hn.getPopupContainer,Yn=Hn.className,ii=Hn.size,ai=Hn.bordered,Pi=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"),!Pi),Wi)),locale:_r.lang,prefixCls:fa,getPopupContainer:ri||jn,generateConfig:tt,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(tt){return tt?Array.isArray(tt)?tt:[tt]:[]}function _o(tt){var cr=tt.format,kr=tt.picker,Lr=tt.showHour,_n=tt.showMinute,Vr=tt.showSecond,_r=tt.use12Hours,Pn=Xa(cr)[0],Ur=f()({},tt);return Pn&&(!Pn.includes("s")&&Vr===void 0&&(Ur.showSecond=!1),!Pn.includes("m")&&_n===void 0&&(Ur.showMinute=!1),!Pn.includes("H")&&!Pn.includes("h")&&Lr===void 0&&(Ur.showHour=!1),(Pn.includes("a")||Pn.includes("A"))&&_r===void 0&&(Ur.use12Hours=!0)),kr==="time"?Ur:{showTime:Ur}}function go(tt){var cr=Ga(tt),kr=cr.DatePicker,Lr=cr.WeekPicker,_n=cr.MonthPicker,Vr=cr.YearPicker,_r=cr.TimePicker,Pn=cr.QuarterPicker,Ur=oo(tt),En=kr;return En.WeekPicker=Lr,En.MonthPicker=_n,En.YearPicker=Vr,En.RangePicker=Ur,En.TimePicker=_r,En.QuarterPicker=Pn,En}var Ja=go,Fa=Ja(w),ha=B.a=Fa},"+lIL":function(H,B,d){var _=d("ProS");d("/ry/"),d("3OrL");var E=d("L5E0"),C=d("7Phj");_.registerVisual(E),_.registerLayout(C)},"+nKL":function(H,B,d){"use strict";var _=d("q1tI"),E=d("TSYQ"),C=d.n(E),A=d("t23M");function w(J,Ue){var Le=Object.keys(J);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(J);Ue&&(ee=ee.filter(function(ct){return Object.getOwnPropertyDescriptor(J,ct).enumerable})),Le.push.apply(Le,ee)}return Le}function m(J){for(var Ue=1;Ue<arguments.length;Ue++){var Le=arguments[Ue]!=null?arguments[Ue]:{};Ue%2?w(Object(Le),!0).forEach(function(ee){f(J,ee,Le[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(Le)):w(Object(Le)).forEach(function(ee){Object.defineProperty(J,ee,Object.getOwnPropertyDescriptor(Le,ee))})}return J}function f(J,Ue,Le){return Ue in J?Object.defineProperty(J,Ue,{value:Le,enumerable:!0,configurable:!0,writable:!0}):J[Ue]=Le,J}var c=_.forwardRef(function(J,Ue){var Le=J.height,ee=J.offset,ct=J.children,Mt=J.prefixCls,ot=J.onInnerResize,Yt={},or={display:"flex",flexDirection:"column"};return ee!==void 0&&(Yt={height:Le,position:"relative",overflow:"hidden"},or=m(m({},or),{},{transform:"translateY(".concat(ee,"px)"),position:"absolute",left:0,right:0,top:0})),_.createElement("div",{style:Yt},_.createElement(A.a,{onResize:function(ir){var dr=ir.offsetHeight;dr&&ot&&ot()}},_.createElement("div",{style:or,className:C()(f({},"".concat(Mt,"-holder-inner"),Mt)),ref:Ue},ct)))});c.displayName="Filler";var o=c,r=d("wgJM");function i(J){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ue){return typeof Ue}:function(Ue){return Ue&&typeof Symbol=="function"&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},i(J)}function n(J,Ue,Le){return Ue in J?Object.defineProperty(J,Ue,{value:Le,enumerable:!0,configurable:!0,writable:!0}):J[Ue]=Le,J}function e(J,Ue){if(!(J instanceof Ue))throw new TypeError("Cannot call a class as a function")}function l(J,Ue){for(var Le=0;Le<Ue.length;Le++){var ee=Ue[Le];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(J,ee.key,ee)}}function t(J,Ue,Le){return Ue&&l(J.prototype,Ue),Le&&l(J,Le),Object.defineProperty(J,"prototype",{writable:!1}),J}function a(J,Ue){if(typeof Ue!="function"&&Ue!==null)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),Object.defineProperty(J,"prototype",{writable:!1}),Ue&&s(J,Ue)}function s(J,Ue){return s=Object.setPrototypeOf||function(ee,ct){return ee.__proto__=ct,ee},s(J,Ue)}function u(J){var Ue=g();return function(){var ee=v(J),ct;if(Ue){var Mt=v(this).constructor;ct=Reflect.construct(ee,arguments,Mt)}else ct=ee.apply(this,arguments);return h(this,ct)}}function h(J,Ue){if(Ue&&(i(Ue)==="object"||typeof Ue=="function"))return Ue;if(Ue!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(J)}function p(J){if(J===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}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(J){return!1}}function v(J){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(Le){return Le.__proto__||Object.getPrototypeOf(Le)},v(J)}var y=20;function x(J){return"touches"in J?J.touches[0].pageY:J.pageY}var T=function(J){a(Le,J);var Ue=u(Le);function Le(){var ee;e(this,Le);for(var ct=arguments.length,Mt=new Array(ct),ot=0;ot<ct;ot++)Mt[ot]=arguments[ot];return ee=Ue.call.apply(Ue,[this].concat(Mt)),ee.moveRaf=null,ee.scrollbarRef=_.createRef(),ee.thumbRef=_.createRef(),ee.visibleTimeout=null,ee.state={dragging:!1,pageY:null,startTop:null,visible:!1},ee.delayHidden=function(){clearTimeout(ee.visibleTimeout),ee.setState({visible:!0}),ee.visibleTimeout=setTimeout(function(){ee.setState({visible:!1})},2e3)},ee.onScrollbarTouchStart=function(Yt){Yt.preventDefault()},ee.onContainerMouseDown=function(Yt){Yt.stopPropagation(),Yt.preventDefault()},ee.patchEvents=function(){window.addEventListener("mousemove",ee.onMouseMove),window.addEventListener("mouseup",ee.onMouseUp),ee.thumbRef.current.addEventListener("touchmove",ee.onMouseMove),ee.thumbRef.current.addEventListener("touchend",ee.onMouseUp)},ee.removeEvents=function(){var Yt;window.removeEventListener("mousemove",ee.onMouseMove),window.removeEventListener("mouseup",ee.onMouseUp),(Yt=ee.scrollbarRef.current)===null||Yt===void 0||Yt.removeEventListener("touchstart",ee.onScrollbarTouchStart),ee.thumbRef.current&&(ee.thumbRef.current.removeEventListener("touchstart",ee.onMouseDown),ee.thumbRef.current.removeEventListener("touchmove",ee.onMouseMove),ee.thumbRef.current.removeEventListener("touchend",ee.onMouseUp)),r.a.cancel(ee.moveRaf)},ee.onMouseDown=function(Yt){var or=ee.props.onStartMove;ee.setState({dragging:!0,pageY:x(Yt),startTop:ee.getTop()}),or(),ee.patchEvents(),Yt.stopPropagation(),Yt.preventDefault()},ee.onMouseMove=function(Yt){var or=ee.state,Zr=or.dragging,ir=or.pageY,dr=or.startTop,qt=ee.props.onScroll;if(r.a.cancel(ee.moveRaf),Zr){var Ht=x(Yt)-ir,lt=dr+Ht,Hr=ee.getEnableScrollRange(),dn=ee.getEnableHeightRange(),Nn=dn?lt/dn:0,Wn=Math.ceil(Nn*Hr);ee.moveRaf=Object(r.a)(function(){qt(Wn)})}},ee.onMouseUp=function(){var Yt=ee.props.onStopMove;ee.setState({dragging:!1}),Yt(),ee.removeEvents()},ee.getSpinHeight=function(){var Yt=ee.props,or=Yt.height,Zr=Yt.count,ir=or/Zr*10;return ir=Math.max(ir,y),ir=Math.min(ir,or/2),Math.floor(ir)},ee.getEnableScrollRange=function(){var Yt=ee.props,or=Yt.scrollHeight,Zr=Yt.height;return or-Zr||0},ee.getEnableHeightRange=function(){var Yt=ee.props.height,or=ee.getSpinHeight();return Yt-or||0},ee.getTop=function(){var Yt=ee.props.scrollTop,or=ee.getEnableScrollRange(),Zr=ee.getEnableHeightRange();if(Yt===0||or===0)return 0;var ir=Yt/or;return ir*Zr},ee.showScroll=function(){var Yt=ee.props,or=Yt.height,Zr=Yt.scrollHeight;return Zr>or},ee}return t(Le,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(ct){ct.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var ct=this.state,Mt=ct.dragging,ot=ct.visible,Yt=this.props.prefixCls,or=this.getSpinHeight(),Zr=this.getTop(),ir=this.showScroll(),dr=ir&&ot;return _.createElement("div",{ref:this.scrollbarRef,className:C()("".concat(Yt,"-scrollbar"),n({},"".concat(Yt,"-scrollbar-show"),ir)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:dr?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},_.createElement("div",{ref:this.thumbRef,className:C()("".concat(Yt,"-scrollbar-thumb"),n({},"".concat(Yt,"-scrollbar-thumb-moving"),Mt)),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}))}}]),Le}(_.Component);function S(J){var Ue=J.children,Le=J.setRef,ee=_.useCallback(function(ct){Le(ct)},[]);return _.cloneElement(Ue,{ref:ee})}function b(J,Ue,Le,ee,ct,Mt){var ot=Mt.getKey;return J.slice(Ue,Le+1).map(function(Yt,or){var Zr=Ue+or,ir=ct(Yt,Zr,{}),dr=ot(Yt);return _.createElement(S,{key:dr,setRef:function(Ht){return ee(Yt,Ht)}},ir)})}var O=d("m+aA");function I(J,Ue){if(!(J instanceof Ue))throw new TypeError("Cannot call a class as a function")}function L(J,Ue){for(var Le=0;Le<Ue.length;Le++){var ee=Ue[Le];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(J,ee.key,ee)}}function N(J,Ue,Le){return Ue&&L(J.prototype,Ue),Le&&L(J,Le),Object.defineProperty(J,"prototype",{writable:!1}),J}var D=function(){function J(){I(this,J),this.maps=void 0,this.maps=Object.create(null)}return N(J,[{key:"set",value:function(Le,ee){this.maps[Le]=ee}},{key:"get",value:function(Le){return this.maps[Le]}}]),J}(),R=D;function k(J,Ue){return K(J)||U(J,Ue)||j(J,Ue)||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 j(J,Ue){if(!J)return;if(typeof J=="string")return F(J,Ue);var Le=Object.prototype.toString.call(J).slice(8,-1);if(Le==="Object"&&J.constructor&&(Le=J.constructor.name),Le==="Map"||Le==="Set")return Array.from(J);if(Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le))return F(J,Ue)}function F(J,Ue){(Ue==null||Ue>J.length)&&(Ue=J.length);for(var Le=0,ee=new Array(Ue);Le<Ue;Le++)ee[Le]=J[Le];return ee}function U(J,Ue){var Le=J==null?null:typeof Symbol!="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(Le==null)return;var ee=[],ct=!0,Mt=!1,ot,Yt;try{for(Le=Le.call(J);!(ct=(ot=Le.next()).done)&&!(ee.push(ot.value),Ue&&ee.length===Ue);ct=!0);}catch(or){Mt=!0,Yt=or}finally{try{!ct&&Le.return!=null&&Le.return()}finally{if(Mt)throw Yt}}return ee}function K(J){if(Array.isArray(J))return J}function V(J,Ue,Le){var ee=_.useState(0),ct=k(ee,2),Mt=ct[0],ot=ct[1],Yt=Object(_.useRef)(new Map),or=Object(_.useRef)(new R),Zr=Object(_.useRef)();function ir(){r.a.cancel(Zr.current)}function dr(){ir(),Zr.current=Object(r.a)(function(){Yt.current.forEach(function(Ht,lt){if(Ht&&Ht.offsetParent){var Hr=Object(O.a)(Ht),dn=Hr.offsetHeight;or.current.get(lt)!==dn&&or.current.set(lt,Hr.offsetHeight)}}),ot(function(Ht){return Ht+1})})}function qt(Ht,lt){var Hr=J(Ht),dn=Yt.current.get(Hr);lt?(Yt.current.set(Hr,lt),dr()):Yt.current.delete(Hr),!dn!==!lt&&(lt?Ue==null||Ue(Ht):Le==null||Le(Ht))}return Object(_.useEffect)(function(){return ir},[]),[qt,dr,or.current,Mt]}function z(J){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ue){return typeof Ue}:function(Ue){return Ue&&typeof Symbol=="function"&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},z(J)}function Q(J,Ue,Le,ee,ct,Mt,ot,Yt){var or=_.useRef();return function(Zr){if(Zr==null){Yt();return}if(r.a.cancel(or.current),typeof Zr=="number")ot(Zr);else if(Zr&&z(Zr)==="object"){var ir,dr=Zr.align;"index"in Zr?ir=Zr.index:ir=Ue.findIndex(function(Hr){return ct(Hr)===Zr.key});var qt=Zr.offset,Ht=qt===void 0?0:qt,lt=function Hr(dn,Nn){if(dn<0||!J.current)return;var Wn=J.current.clientHeight,gi=!1,yn=Nn;if(Wn){for(var Mn=Nn||dr,Ft=0,bt=0,Oe=0,Ee=Math.min(Ue.length,ir),Ie=0;Ie<=Ee;Ie+=1){var Ye=ct(Ue[Ie]);bt=Ft;var rt=Le.get(Ye);Oe=bt+(rt===void 0?ee:rt),Ft=Oe,Ie===ir&&rt===void 0&&(gi=!0)}var ut=null;switch(Mn){case"top":ut=bt-Ht;break;case"bottom":ut=Oe-Wn+Ht;break;default:{var Ot=J.current.scrollTop,Ar=Ot+Wn;bt<Ot?yn="top":Oe>Ar&&(yn="bottom")}}ut!==null&&ut!==J.current.scrollTop&&ot(ut)}or.current=Object(r.a)(function(){gi&&Mt(),Hr(dn-1,yn)})};lt(3)}}}function Z(J,Ue,Le,ee){var ct=Le-J,Mt=Ue-Le,ot=Math.min(ct,Mt)*2;if(ee<=ot){var Yt=Math.floor(ee/2);return ee%2?Le+Yt+1:Le-Yt}return ct>Mt?Le-(ee-Mt):Le+(ee-ct)}function le(J,Ue,Le){var ee=J.length,ct=Ue.length,Mt,ot;if(ee===0&&ct===0)return null;ee<ct?(Mt=J,ot=Ue):(Mt=Ue,ot=J);var Yt={__EMPTY_ITEM__:!0};function or(lt){return lt!==void 0?Le(lt):Yt}for(var Zr=null,ir=Math.abs(ee-ct)!==1,dr=0;dr<ot.length;dr+=1){var qt=or(Mt[dr]),Ht=or(ot[dr]);if(qt!==Ht){Zr=dr,ir=ir||qt!==or(ot[dr+1]);break}}return Zr===null?null:{index:Zr,multiple:ir}}function ne(J,Ue){return me(J)||Be(J,Ue)||xe(J,Ue)||ve()}function ve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xe(J,Ue){if(!J)return;if(typeof J=="string")return _e(J,Ue);var Le=Object.prototype.toString.call(J).slice(8,-1);if(Le==="Object"&&J.constructor&&(Le=J.constructor.name),Le==="Map"||Le==="Set")return Array.from(J);if(Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le))return _e(J,Ue)}function _e(J,Ue){(Ue==null||Ue>J.length)&&(Ue=J.length);for(var Le=0,ee=new Array(Ue);Le<Ue;Le++)ee[Le]=J[Le];return ee}function Be(J,Ue){var Le=J==null?null:typeof Symbol!="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(Le==null)return;var ee=[],ct=!0,Mt=!1,ot,Yt;try{for(Le=Le.call(J);!(ct=(ot=Le.next()).done)&&!(ee.push(ot.value),Ue&&ee.length===Ue);ct=!0);}catch(or){Mt=!0,Yt=or}finally{try{!ct&&Le.return!=null&&Le.return()}finally{if(Mt)throw Yt}}return ee}function me(J){if(Array.isArray(J))return J}function Fe(J,Ue,Le){var ee=_.useState(J),ct=ne(ee,2),Mt=ct[0],ot=ct[1],Yt=_.useState(null),or=ne(Yt,2),Zr=or[0],ir=or[1];return _.useEffect(function(){var dr=le(Mt||[],J||[],Ue);(dr==null?void 0:dr.index)!==void 0&&(Le==null||Le(dr.index),ir(J[dr.index])),ot(J)},[J]),[Zr]}function ie(J){return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ue){return typeof Ue}:function(Ue){return Ue&&typeof Symbol=="function"&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},ie(J)}var te=(typeof navigator=="undefined"?"undefined":ie(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ge=te,oe=function(J,Ue){var Le=Object(_.useRef)(!1),ee=Object(_.useRef)(null);function ct(){clearTimeout(ee.current),Le.current=!0,ee.current=setTimeout(function(){Le.current=!1},50)}var Mt=Object(_.useRef)({top:J,bottom:Ue});return Mt.current.top=J,Mt.current.bottom=Ue,function(ot){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,or=ot<0&&Mt.current.top||ot>0&&Mt.current.bottom;return Yt&&or?(clearTimeout(ee.current),Le.current=!1):(!or||Le.current)&&ct(),!Le.current&&or}};function Y(J,Ue,Le,ee){var ct=Object(_.useRef)(0),Mt=Object(_.useRef)(null),ot=Object(_.useRef)(null),Yt=Object(_.useRef)(!1),or=oe(Ue,Le);function Zr(dr){if(!J)return;r.a.cancel(Mt.current);var qt=dr.deltaY;if(ct.current+=qt,ot.current=qt,or(qt))return;Ge||dr.preventDefault(),Mt.current=Object(r.a)(function(){var Ht=Yt.current?10:1;ee(ct.current*Ht),ct.current=0})}function ir(dr){if(!J)return;Yt.current=dr.detail===ot.current}return[Zr,ir]}var G=d("TNol"),X=14/15;function fe(J,Ue,Le){var ee=Object(_.useRef)(!1),ct=Object(_.useRef)(0),Mt=Object(_.useRef)(null),ot=Object(_.useRef)(null),Yt,or=function(qt){if(ee.current){var Ht=Math.ceil(qt.touches[0].pageY),lt=ct.current-Ht;ct.current=Ht,Le(lt)&&qt.preventDefault(),clearInterval(ot.current),ot.current=setInterval(function(){lt*=X,(!Le(lt,!0)||Math.abs(lt)<=.1)&&clearInterval(ot.current)},16)}},Zr=function(){ee.current=!1,Yt()},ir=function(qt){Yt(),qt.touches.length===1&&!ee.current&&(ee.current=!0,ct.current=Math.ceil(qt.touches[0].pageY),Mt.current=qt.target,Mt.current.addEventListener("touchmove",or),Mt.current.addEventListener("touchend",Zr))};Yt=function(){Mt.current&&(Mt.current.removeEventListener("touchmove",or),Mt.current.removeEventListener("touchend",Zr))},Object(G.a)(function(){return J&&Ue.current.addEventListener("touchstart",ir),function(){var dr;(dr=Ue.current)===null||dr===void 0||dr.removeEventListener("touchstart",ir),Yt(),clearInterval(ot.current)}},[J])}var de=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Ce(){return Ce=Object.assign||function(J){for(var Ue=1;Ue<arguments.length;Ue++){var Le=arguments[Ue];for(var ee in Le)Object.prototype.hasOwnProperty.call(Le,ee)&&(J[ee]=Le[ee])}return J},Ce.apply(this,arguments)}function Me(J,Ue){var Le=Object.keys(J);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(J);Ue&&(ee=ee.filter(function(ct){return Object.getOwnPropertyDescriptor(J,ct).enumerable})),Le.push.apply(Le,ee)}return Le}function ue(J){for(var Ue=1;Ue<arguments.length;Ue++){var Le=arguments[Ue]!=null?arguments[Ue]:{};Ue%2?Me(Object(Le),!0).forEach(function(ee){Ae(J,ee,Le[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(J,Object.getOwnPropertyDescriptors(Le)):Me(Object(Le)).forEach(function(ee){Object.defineProperty(J,ee,Object.getOwnPropertyDescriptor(Le,ee))})}return J}function Ae(J,Ue,Le){return Ue in J?Object.defineProperty(J,Ue,{value:Le,enumerable:!0,configurable:!0,writable:!0}):J[Ue]=Le,J}function Te(J,Ue){return Lt(J)||Re(J,Ue)||At(J,Ue)||Je()}function Je(){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 At(J,Ue){if(!J)return;if(typeof J=="string")return qe(J,Ue);var Le=Object.prototype.toString.call(J).slice(8,-1);if(Le==="Object"&&J.constructor&&(Le=J.constructor.name),Le==="Map"||Le==="Set")return Array.from(J);if(Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le))return qe(J,Ue)}function qe(J,Ue){(Ue==null||Ue>J.length)&&(Ue=J.length);for(var Le=0,ee=new Array(Ue);Le<Ue;Le++)ee[Le]=J[Le];return ee}function Re(J,Ue){var Le=J==null?null:typeof Symbol!="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(Le==null)return;var ee=[],ct=!0,Mt=!1,ot,Yt;try{for(Le=Le.call(J);!(ct=(ot=Le.next()).done)&&!(ee.push(ot.value),Ue&&ee.length===Ue);ct=!0);}catch(or){Mt=!0,Yt=or}finally{try{!ct&&Le.return!=null&&Le.return()}finally{if(Mt)throw Yt}}return ee}function Lt(J){if(Array.isArray(J))return J}function $e(J,Ue){if(J==null)return{};var Le=Et(J,Ue),ee,ct;if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(J);for(ct=0;ct<Mt.length;ct++){if(ee=Mt[ct],Ue.indexOf(ee)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(J,ee))continue;Le[ee]=J[ee]}}return Le}function Et(J,Ue){if(J==null)return{};var Le={},ee=Object.keys(J),ct,Mt;for(Mt=0;Mt<ee.length;Mt++){if(ct=ee[Mt],Ue.indexOf(ct)>=0)continue;Le[ct]=J[ct]}return Le}var Ut=[],Bt={overflowY:"auto",overflowAnchor:"none"};function _t(J,Ue){var Le=J.prefixCls,ee=Le===void 0?"rc-virtual-list":Le,ct=J.className,Mt=J.height,ot=J.itemHeight,Yt=J.fullHeight,or=Yt===void 0?!0:Yt,Zr=J.style,ir=J.data,dr=J.children,qt=J.itemKey,Ht=J.virtual,lt=J.component,Hr=lt===void 0?"div":lt,dn=J.onScroll,Nn=J.onVisibleChange,Wn=$e(J,de),gi=!!(Ht!==!1&&Mt&&ot),yn=gi&&ir&&ot*ir.length>Mt,Mn=Object(_.useState)(0),Ft=Te(Mn,2),bt=Ft[0],Oe=Ft[1],Ee=Object(_.useState)(!1),Ie=Te(Ee,2),Ye=Ie[0],rt=Ie[1],ut=C()(ee,ct),Ot=ir||Ut,Ar=Object(_.useRef)(),Pr=Object(_.useRef)(),un=Object(_.useRef)(),It=_.useCallback(function(pn){return typeof qt=="function"?qt(pn):pn==null?void 0:pn[qt]},[qt]),nt={getKey:It};function at(pn){Oe(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(_.useRef)({start:0,end:Ot.length}),Pt=Object(_.useRef)(),xt=Fe(Ot,It),Kt=Te(xt,1),yt=Kt[0];Pt.current=yt;var kt=V(It,null,null),Sr=Te(kt,4),hr=Sr[0],gr=Sr[1],Jr=Sr[2],$r=Sr[3],kn=_.useMemo(function(){if(!gi)return{scrollHeight:void 0,start:0,end:Ot.length-1,offset:void 0};if(!yn){var pn;return{scrollHeight:((pn=Pr.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Ot.length-1,offset:void 0}}for(var fr=0,mn,en,Mr,Gn=Ot.length,di=0;di<Gn;di+=1){var _i=Ot[di],Br=It(_i),sn=Jr.get(Br),Sn=fr+(sn===void 0?ot:sn);Sn>=bt&&mn===void 0&&(mn=di,en=fr),Sn>bt+Mt&&Mr===void 0&&(Mr=di),fr=Sn}return mn===void 0&&(mn=0,en=0,Mr=Math.ceil(Mt/ot)),Mr===void 0&&(Mr=Ot.length-1),Mr=Math.min(Mr+1,Ot.length),{scrollHeight:fr,start:mn,end:Mr,offset:en}},[yn,gi,bt,Ot,$r,Mt]),Dn=kn.scrollHeight,Zn=kn.start,li=kn.end,Ai=kn.offset;rr.current.start=Zn,rr.current.end=li;var Ii=Dn-Mt,Qe=Object(_.useRef)(Ii);Qe.current=Ii;function Se(pn){var fr=pn;return Number.isNaN(Qe.current)||(fr=Math.min(fr,Qe.current)),fr=Math.max(fr,0),fr}var Ne=bt<=0,je=bt>=Ii,Xe=oe(Ne,je);function ze(pn){var fr=pn;at(fr)}function Ze(pn){var fr=pn.currentTarget.scrollTop;fr!==bt&&at(fr),dn==null||dn(pn)}var wt=Y(gi,Ne,je,function(pn){at(function(fr){var mn=fr+pn;return mn})}),st=Te(wt,2),Jt=st[0],Rr=st[1];fe(gi,Ar,function(pn,fr){return Xe(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=Q(Ar,Ot,Jr,ot,It,gr,at,function(){var pn;(pn=un.current)===null||pn===void 0||pn.delayHidden()});_.useImperativeHandle(Ue,function(){return{scrollTo:Ir}}),Object(G.a)(function(){if(Nn){var pn=Ot.slice(Zn,li+1);Nn(pn,Ot)}},[Zn,li,Ot]);var Xr=b(Ot,Zn,li,hr,dr,nt),er=null;return Mt&&(er=ue(Ae({},or?"height":"maxHeight",Mt),Bt),gi&&(er.overflowY="hidden",Ye&&(er.pointerEvents="none"))),_.createElement("div",Ce({style:ue(ue({},Zr),{},{position:"relative"}),className:ut},Wn),_.createElement(Hr,{className:"".concat(ee,"-holder"),style:er,ref:Ar,onScroll:Ze},_.createElement(o,{prefixCls:ee,height:Dn,offset:Ai,onInnerResize:gr,ref:Pr},Xr)),gi&&_.createElement(T,{ref:un,prefixCls:ee,scrollTop:bt,height:Mt,scrollHeight:Dn,count:Ot.length,onScroll:ze,onStartMove:function(){rt(!0)},onStopMove:function(){rt(!1)}}))}var jt=_.forwardRef(_t);jt.displayName="List";var He=jt,se=B.a=He},"+rIm":function(H,B,d){var _=d("bYtY"),E=_.retrieve,C=_.defaults,A=_.extend,w=_.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,l=d("Fofx"),t=d("QBsz"),a=t.applyTransform,s=d("aX7z"),u=s.shouldShowAllLabels,h=Math.PI,p=function(M,j){this.opt=j,this.axisModel=M,C(j,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var F=new f.Group({position:j.position.slice(),rotation:j.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,j=this.axisModel;if(!j.get("axisLine.show"))return;var F=this.axisModel.axis.getExtent(),U=this._transform,K=[F[0],0],V=[F[1],0];U&&(a(K,K,U),a(V,V,U));var z=A({lineCap:"round"},j.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new f.Line({anid:"line",subPixelOptimize:!0,shape:{x1:K[0],y1:K[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:M.strokeContainThreshold||5,silent:!0,z2:1}));var Q=j.get("axisLine.symbol"),Z=j.get("axisLine.symbolSize"),le=j.get("axisLine.symbolOffset")||0;if(typeof le=="number"&&(le=[le,le]),Q!=null){typeof Q=="string"&&(Q=[Q,Q]),(typeof Z=="string"||typeof Z=="number")&&(Z=[Z,Z]);var ne=Z[0],ve=Z[1];w([{rotate:M.rotation+Math.PI/2,offset:le[0],r:0},{rotate:M.rotation-Math.PI/2,offset:le[1],r:Math.sqrt((K[0]-V[0])*(K[0]-V[0])+(K[1]-V[1])*(K[1]-V[1]))}],function(xe,_e){if(Q[_e]!=="none"&&Q[_e]!=null){var Be=e(Q[_e],-ne/2,-ve/2,ne,ve,z.stroke,!0),me=xe.r+xe.offset,Fe=[K[0]+me*Math.cos(M.rotation),K[1]-me*Math.sin(M.rotation)];Be.attr({rotation:xe.rotate,position:Fe,silent:!0,z2:11}),this.group.add(Be)}},this)}},axisTickLabel:function(){var M=this.axisModel,j=this.opt,F=N(this,M,j),U=R(this,M,j);S(M,U,F),D(this,M,j)},axisName:function(){var M=this.opt,j=this.axisModel,F=E(M.axisName,j.get("name"));if(!F)return;var U=j.get("nameLocation"),K=M.nameDirection,V=j.getModel("nameTextStyle"),z=j.get("nameGap")||0,Q=this.axisModel.axis.getExtent(),Z=Q[0]>Q[1]?-1:1,le=[U==="start"?Q[0]-Z*z:U==="end"?Q[1]+Z*z:(Q[0]+Q[1])/2,I(U)?M.labelOffset+K*z:0],ne,ve=j.get("nameRotate");ve!=null&&(ve=ve*h/180);var xe;I(U)?ne=y(M.rotation,ve!=null?ve:M.rotation,K):(ne=x(M,U,ve||0,Q),xe=M.axisNameAvailableWidth,xe!=null&&(xe=Math.abs(xe/Math.sin(ne.rotation)),!isFinite(xe)&&(xe=null)));var _e=V.getFont(),Be=j.get("nameTruncate",!0)||{},me=Be.ellipsis,Fe=E(M.nameTruncateMaxWidth,Be.maxWidth,xe),ie=me!=null&&Fe!=null?m.truncateText(F,Fe,_e,me,{minChar:2,placeholder:Be.placeholder}):F,te=j.get("tooltip",!0),Ge=j.mainType,oe={componentType:Ge,name:F,$vars:["name"]};oe[Ge+"Index"]=j.componentIndex;var Y=new f.Text({anid:"name",__fullText:F,__truncatedText:ie,position:le,rotation:ne.rotation,silent:T(j),z2:1,tooltip:te&&te.show?A({content:F,formatter:function(){return F},formatterParams:oe},te):null});f.setTextStyle(Y.style,V,{text:ie,textFont:_e,textFill:V.getTextColor()||j.get("axisLine.lineStyle.color"),textAlign:V.get("align")||ne.textAlign,textVerticalAlign:V.get("verticalAlign")||ne.textVerticalAlign}),j.get("triggerEvent")&&(Y.eventData=v(j),Y.eventData.targetType="axisName",Y.eventData.name=F),this._dumbGroup.add(Y),Y.updateTransform(),this.group.add(Y),Y.decomposeTransform()}},v=p.makeAxisEventDataBase=function(M){var j={componentType:M.mainType,componentIndex:M.componentIndex};return j[M.mainType+"Index"]=M.componentIndex,j},y=p.innerTextLayout=function(M,j,F){var U=i(j-M),K,V;return r(U)?(V=F>0?"top":"bottom",K="center"):r(U-h)?(V=F>0?"bottom":"top",K="center"):(V="middle",U>0&&U<h?K=F>0?"right":"left":K=F>0?"left":"right"),{rotation:U,textAlign:K,textVerticalAlign:V}};function x(M,j,F,U){var K=i(F-M.rotation),V,z,Q=U[0]>U[1],Z=j==="start"&&!Q||j!=="start"&&Q;return r(K-h/2)?(z=Z?"bottom":"top",V="center"):r(K-h*1.5)?(z=Z?"top":"bottom",V="center"):(z="middle",K<h*1.5&&K>h/2?V=Z?"left":"right":V=Z?"right":"left"),{rotation:K,textAlign:V,textVerticalAlign:z}}var T=p.isLabelSilent=function(M){var j=M.get("tooltip");return M.get("silent")||!(M.get("triggerEvent")||j&&j.show)};function S(M,j,F){if(u(M.axis))return;var U=M.get("axisLabel.showMinLabel"),K=M.get("axisLabel.showMaxLabel");j=j||[],F=F||[];var V=j[0],z=j[1],Q=j[j.length-1],Z=j[j.length-2],le=F[0],ne=F[1],ve=F[F.length-1],xe=F[F.length-2];U===!1?(b(V),b(le)):O(V,z)&&(U?(b(z),b(ne)):(b(V),b(le))),K===!1?(b(Q),b(ve)):O(Z,Q)&&(K?(b(Z),b(xe)):(b(Q),b(ve)))}function b(M){M&&(M.ignore=!0)}function O(M,j,F){var U=M&&M.getBoundingRect().clone(),K=j&&j.getBoundingRect().clone();if(!U||!K)return;var V=l.identity([]);return l.rotate(V,V,-M.rotation),U.applyTransform(l.mul([],V,M.getLocalTransform())),K.applyTransform(l.mul([],V,j.getLocalTransform())),U.intersect(K)}function I(M){return M==="middle"||M==="center"}function L(M,j,F,U,K){for(var V=[],z=[],Q=[],Z=0;Z<M.length;Z++){var le=M[Z].coord;z[0]=le,z[1]=0,Q[0]=le,Q[1]=F,j&&(a(z,z,j),a(Q,Q,j));var ne=new f.Line({anid:K+"_"+M[Z].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:Q[0],y2:Q[1]},style:U,z2:2,silent:!0});V.push(ne)}return V}function N(M,j,F){var U=j.axis,K=j.getModel("axisTick");if(!K.get("show")||U.scale.isBlank())return;for(var V=K.getModel("lineStyle"),z=F.tickDirection*K.get("length"),Q=U.getTicksCoords(),Z=L(Q,M._transform,z,C(V.getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")}),"ticks"),le=0;le<Z.length;le++)M.group.add(Z[le]);return Z}function D(M,j,F){var U=j.axis,K=j.getModel("minorTick");if(!K.get("show")||U.scale.isBlank())return;var V=U.getMinorTicksCoords();if(!V.length)return;for(var z=K.getModel("lineStyle"),Q=F.tickDirection*K.get("length"),Z=C(z.getLineStyle(),C(j.getModel("axisTick").getLineStyle(),{stroke:j.get("axisLine.lineStyle.color")})),le=0;le<V.length;le++)for(var ne=L(V[le],M._transform,Q,Z,"minorticks_"+le),ve=0;ve<ne.length;ve++)M.group.add(ne[ve])}function R(M,j,F){var U=j.axis,K=E(F.axisLabelShow,j.get("axisLabel.show"));if(!K||U.scale.isBlank())return;var V=j.getModel("axisLabel"),z=V.get("margin"),Q=U.getViewLabels(),Z=(E(F.labelRotate,V.get("rotate"))||0)*h/180,le=y(F.rotation,Z,F.labelDirection),ne=j.getCategories&&j.getCategories(!0),ve=[],xe=T(j),_e=j.get("triggerEvent");return w(Q,function(Be,me){var Fe=Be.tickValue,ie=Be.formattedLabel,te=Be.rawLabel,Ge=V;ne&&ne[Fe]&&ne[Fe].textStyle&&(Ge=new c(ne[Fe].textStyle,V,j.ecModel));var oe=Ge.getTextColor()||j.get("axisLine.lineStyle.color"),Y=U.dataToCoord(Fe),G=[Y,F.labelOffset+F.labelDirection*z],X=new f.Text({anid:"label_"+Fe,position:G,rotation:le.rotation,silent:xe,z2:10});f.setTextStyle(X.style,Ge,{text:ie,textAlign:Ge.getShallow("align",!0)||le.textAlign,textVerticalAlign:Ge.getShallow("verticalAlign",!0)||Ge.getShallow("baseline",!0)||le.textVerticalAlign,textFill:typeof oe=="function"?oe(U.type==="category"?te:U.type==="value"?Fe+"":Fe,me):oe}),_e&&(X.eventData=v(j),X.eventData.targetType="axisLabel",X.eventData.value=te),M._dumbGroup.add(X),X.updateTransform(),ve.push(X),M.group.add(X),X.decomposeTransform()}),ve}var k=p;H.exports=k},"+wW9":function(H,B,d){var _=d("bYtY"),E=_.each,C=_.isArray,A=_.isObject,w=d("JuEJ"),m=d("4NO4"),f=m.normalizeToArray;function c(l,t){t=t.split(",");for(var a=l,s=0;s<t.length&&!(a=a&&a[t[s]],a==null);s++);return a}function o(l,t,a,s){t=t.split(",");for(var u=l,h,p=0;p<t.length-1;p++)h=t[p],u[h]==null&&(u[h]={}),u=u[h];(s||u[t[p]]==null)&&(u[t[p]]=a)}function r(l){E(i,function(t){t[0]in l&&!(t[1]in l)&&(l[t[1]]=l[t[0]])})}var i=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,t){w(l,t),l.series=f(l.series),E(l.series,function(a){if(!A(a))return;var s=a.type;if(s==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(s==="pie"||s==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(s==="gauge"){var u=c(a,"pointer.color");u!=null&&o(a,"itemStyle.color",u)}r(a)}),l.dataRange&&(l.visualMap=l.dataRange),E(n,function(a){var s=l[a];s&&(C(s)||(s=[s]),E(s,function(u){r(u)}))})}H.exports=e},"/IIm":function(H,B,d){var _=d("Tghj"),E=_.__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,l=1e4,t=6,a=6,s="globalPan",u={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},p={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},g=0;function v(ue){A.call(this),this._zr=ue,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(Ae,Te){this._handlers[Te]=C.bind(Ae,this)},this)}v.prototype={constructor:v,enableBrush:function(ue){return this._brushType&&x(this),ue.brushType&&y(this,ue),this},setPanels:function(ue){if(ue&&ue.length){var Ae=this._panels={};C.each(ue,function(Te){Ae[Te.panelId]=C.clone(Te)})}else this._panels=null;return this},mount:function(ue){ue=ue||{},this._enableGlobalPan=ue.enableGlobalPan;var Ae=this.group;return this._zr.add(Ae),Ae.attr({position:ue.position||[0,0],rotation:ue.rotation||0,scale:ue.scale||[1,1]}),this._transform=Ae.getLocalTransform(),this},eachCover:function(ue,Ae){o(this._covers,ue,Ae)},updateCovers:function(ue){ue=C.map(ue,function(Ut){return C.merge(C.clone(p),Ut,!0)});var Ae="\0-brush-index-",Te=this._covers,Je=this._covers=[],At=this,qe=this._creatingCover;return new f(Te,ue,Lt,Re).add($e).update($e).remove(Et).execute(),this;function Re(Ut,Bt){return(Ut.id!=null?Ut.id:Ae+Bt)+"-"+Ut.brushType}function Lt(Ut,Bt){return Re(Ut.__brushOption,Bt)}function $e(Ut,Bt){var _t=ue[Ut];if(Bt!=null&&Te[Bt]===qe)Je[Ut]=Te[Bt];else{var jt=Je[Ut]=Bt!=null?(Te[Bt].__brushOption=_t,Te[Bt]):O(At,b(At,_t));N(At,jt)}}function Et(Ut){Te[Ut]!==qe&&At.group.remove(Te[Ut])}},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(ue,Ae){var Te=ue._zr;ue._enableGlobalPan||m.take(Te,s,ue._uid),T(Te,ue._handlers),ue._brushType=Ae.brushType,ue._brushOption=C.merge(C.clone(p),Ae,!0)}function x(ue){var Ae=ue._zr;m.release(Ae,s,ue._uid),S(Ae,ue._handlers),ue._brushType=ue._brushOption=null}function T(ue,Ae){o(Ae,function(Te,Je){ue.on(Je,Te)})}function S(ue,Ae){o(Ae,function(Te,Je){ue.off(Je,Te)})}function b(ue,Ae){var Te=de[Ae.brushType].createCover(ue,Ae);return Te.__brushOption=Ae,L(Te,Ae),ue.group.add(Te),Te}function O(ue,Ae){var Te=D(Ae);return Te.endCreating&&(Te.endCreating(ue,Ae),L(Ae,Ae.__brushOption)),Ae}function I(ue,Ae){var Te=Ae.__brushOption;D(Ae).updateCoverShape(ue,Ae,Te.range,Te)}function L(ue,Ae){var Te=Ae.z;Te==null&&(Te=l),ue.traverse(function(Je){Je.z=Te,Je.z2=Te})}function N(ue,Ae){D(Ae).updateCommon(ue,Ae),I(ue,Ae)}function D(ue){return de[ue.__brushOption.brushType]}function R(ue,Ae,Te){var Je=ue._panels;if(!Je)return!0;var At,qe=ue._transform;return o(Je,function(Re){Re.isTargetByCursor(Ae,Te,qe)&&(At=Re)}),At}function k(ue,Ae){var Te=ue._panels;if(!Te)return!0;var Je=Ae.__brushOption.panelId;return Je!=null?Te[Je]:!0}function M(ue){var Ae=ue._covers,Te=Ae.length;return o(Ae,function(Je){ue.group.remove(Je)},ue),Ae.length=0,!!Te}function j(ue,Ae){var Te=r(ue._covers,function(Je){var At=Je.__brushOption,qe=C.clone(At.range);return{brushType:At.brushType,panelId:At.panelId,range:qe}});ue.trigger("brush",Te,{isEnd:!!Ae.isEnd,removeOnClick:!!Ae.removeOnClick})}function F(ue){var Ae=ue._track;if(!Ae.length)return!1;var Te=Ae[Ae.length-1],Je=Ae[0],At=Te[0]-Je[0],qe=Te[1]-Je[1],Re=e(At*At+qe*qe,.5);return Re>t}function U(ue){var Ae=ue.length-1;return Ae<0&&(Ae=0),[ue[0],ue[Ae]]}function K(ue,Ae,Te,Je){var At=new w.Group;return At.add(new w.Rect({name:"main",style:Z(Te),silent:!0,draggable:!0,cursor:"move",drift:c(ue,Ae,At,"nswe"),ondragend:c(j,Ae,{isEnd:!0})})),o(Je,function(qe){At.add(new w.Rect({name:qe,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(ue,Ae,At,qe),ondragend:c(j,Ae,{isEnd:!0})}))}),At}function V(ue,Ae,Te,Je){var At=Je.brushStyle.lineWidth||0,qe=n(At,a),Re=Te[0][0],Lt=Te[1][0],$e=Re-At/2,Et=Lt-At/2,Ut=Te[0][1],Bt=Te[1][1],_t=Ut-qe+At/2,jt=Bt-qe+At/2,He=Ut-Re,se=Bt-Lt,J=He+At,Ue=se+At;Q(ue,Ae,"main",Re,Lt,He,se),Je.transformable&&(Q(ue,Ae,"w",$e,Et,qe,Ue),Q(ue,Ae,"e",_t,Et,qe,Ue),Q(ue,Ae,"n",$e,Et,J,qe),Q(ue,Ae,"s",$e,jt,J,qe),Q(ue,Ae,"nw",$e,Et,qe,qe),Q(ue,Ae,"ne",_t,Et,qe,qe),Q(ue,Ae,"sw",$e,jt,qe,qe),Q(ue,Ae,"se",_t,jt,qe,qe))}function z(ue,Ae){var Te=Ae.__brushOption,Je=Te.transformable,At=Ae.childAt(0);At.useStyle(Z(Te)),At.attr({silent:!Je,cursor:Je?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(qe){var Re=Ae.childOfName(qe),Lt=ve(ue,qe);Re&&Re.attr({silent:!Je,invisible:!Je,cursor:Je?h[Lt]+"-resize":null})})}function Q(ue,Ae,Te,Je,At,qe,Re){var Lt=Ae.childOfName(Te);Lt&&Lt.setShape(Fe(me(ue,Ae,[[Je,At],[Je+qe,At+Re]])))}function Z(ue){return C.defaults({strokeNoScale:!0},ue.brushStyle)}function le(ue,Ae,Te,Je){var At=[i(ue,Te),i(Ae,Je)],qe=[n(ue,Te),n(Ae,Je)];return[[At[0],qe[0]],[At[1],qe[1]]]}function ne(ue){return w.getTransform(ue.group)}function ve(ue,Ae){if(Ae.length>1){Ae=Ae.split("");var Te=[ve(ue,Ae[0]),ve(ue,Ae[1])];return(Te[0]==="e"||Te[0]==="w")&&Te.reverse(),Te.join("")}else{var Je={w:"left",e:"right",n:"top",s:"bottom"},At={left:"w",right:"e",top:"n",bottom:"s"},Te=w.transformDirection(Je[Ae],ne(ue));return At[Te]}}function xe(ue,Ae,Te,Je,At,qe,Re,Lt){var $e=Je.__brushOption,Et=ue($e.range),Ut=Be(Te,qe,Re);o(At.split(""),function(Bt){var _t=u[Bt];Et[_t[0]][_t[1]]+=Ut[_t[0]]}),$e.range=Ae(le(Et[0][0],Et[1][0],Et[0][1],Et[1][1])),N(Te,Je),j(Te,{isEnd:!1})}function _e(ue,Ae,Te,Je,At){var qe=Ae.__brushOption.range,Re=Be(ue,Te,Je);o(qe,function(Lt){Lt[0]+=Re[0],Lt[1]+=Re[1]}),N(ue,Ae),j(ue,{isEnd:!1})}function Be(ue,Ae,Te){var Je=ue.group,At=Je.transformCoordToLocal(Ae,Te),qe=Je.transformCoordToLocal(0,0);return[At[0]-qe[0],At[1]-qe[1]]}function me(ue,Ae,Te){var Je=k(ue,Ae);return Je&&Je!==!0?Je.clipPath(Te,ue._transform):C.clone(Te)}function Fe(ue){var Ae=i(ue[0][0],ue[1][0]),Te=i(ue[0][1],ue[1][1]),Je=n(ue[0][0],ue[1][0]),At=n(ue[0][1],ue[1][1]);return{x:Ae,y:Te,width:Je-Ae,height:At-Te}}function ie(ue,Ae,Te){if(!ue._brushType||fe(ue,Ae))return;var Je=ue._zr,At=ue._covers,qe=R(ue,Ae,Te);if(!ue._dragging)for(var Re=0;Re<At.length;Re++){var Lt=At[Re].__brushOption;if(qe&&(qe===!0||Lt.panelId===qe.panelId)&&de[Lt.brushType].contain(At[Re],Te[0],Te[1]))return}qe&&Je.setCursorStyle("crosshair")}function te(ue){var Ae=ue.event;Ae.preventDefault&&Ae.preventDefault()}function Ge(ue,Ae,Te){return ue.childOfName("main").contain(Ae,Te)}function oe(ue,Ae,Te,Je){var At=ue._creatingCover,qe=ue._creatingPanel,Re=ue._brushOption,Lt;if(ue._track.push(Te.slice()),F(ue)||At){if(qe&&!At){Re.brushMode==="single"&&M(ue);var $e=C.clone(Re);$e.brushType=Y($e.brushType,qe),$e.panelId=qe===!0?null:qe.panelId,At=ue._creatingCover=b(ue,$e),ue._covers.push(At)}if(At){var Et=de[Y(ue._brushType,qe)],Ut=At.__brushOption;Ut.range=Et.getCreatingRange(me(ue,At,ue._track)),Je&&(O(ue,At),Et.updateCommon(ue,At)),I(ue,At),Lt={isEnd:Je}}}else Je&&Re.brushMode==="single"&&Re.removeOnClick&&(R(ue,Ae,Te)&&M(ue)&&(Lt={isEnd:Je,removeOnClick:!0}));return Lt}function Y(ue,Ae){return ue==="auto"?Ae.defaultBrushType:ue}var G={mousedown:function(ue){if(this._dragging)X(this,ue);else if(!ue.target||!ue.target.draggable){te(ue);var Ae=this.group.transformCoordToLocal(ue.offsetX,ue.offsetY);this._creatingCover=null;var Te=this._creatingPanel=R(this,ue,Ae);Te&&(this._dragging=!0,this._track=[Ae.slice()])}},mousemove:function(ue){var Ae=ue.offsetX,Te=ue.offsetY,Je=this.group.transformCoordToLocal(Ae,Te);if(ie(this,ue,Je),this._dragging){te(ue);var At=oe(this,ue,Je,!1);At&&j(this,At)}},mouseup:function(ue){X(this,ue)}};function X(ue,Ae){if(ue._dragging){te(Ae);var Te=Ae.offsetX,Je=Ae.offsetY,At=ue.group.transformCoordToLocal(Te,Je),qe=oe(ue,Ae,At,!0);ue._dragging=!1,ue._track=[],ue._creatingCover=null,qe&&j(ue,qe)}}function fe(ue,Ae,Te){var Je=ue._zr;return Ae<0||Ae>Je.getWidth()||Te<0||Te>Je.getHeight()}var de={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(ue,Ae){return K(c(xe,function(Te){return Te},function(Te){return Te}),ue,Ae,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(ue){var Ae=U(ue);return le(Ae[1][0],Ae[1][1],Ae[0][0],Ae[0][1])},updateCoverShape:function(ue,Ae,Te,Je){V(ue,Ae,Te,Je)},updateCommon:z,contain:Ge},polygon:{createCover:function(ue,Ae){var Te=new w.Group;return Te.add(new w.Polyline({name:"main",style:Z(Ae),silent:!0})),Te},getCreatingRange:function(ue){return ue},endCreating:function(ue,Ae){Ae.remove(Ae.childAt(0)),Ae.add(new w.Polygon({name:"main",draggable:!0,drift:c(_e,ue,Ae),ondragend:c(j,ue,{isEnd:!0})}))},updateCoverShape:function(ue,Ae,Te,Je){Ae.childAt(0).setShape({points:me(ue,Ae,Te)})},updateCommon:z,contain:Ge}};function Ce(ue){return{createCover:function(Ae,Te){return K(c(xe,function(Je){var At=[Je,[0,100]];return ue&&At.reverse(),At},function(Je){return Je[ue]}),Ae,Te,[["w","e"],["n","s"]][ue])},getCreatingRange:function(Ae){var Te=U(Ae),Je=i(Te[0][ue],Te[1][ue]),At=n(Te[0][ue],Te[1][ue]);return[Je,At]},updateCoverShape:function(Ae,Te,Je,At){var qe,Re=k(Ae,Te);if(Re!==!0&&Re.getLinearBrushOtherExtent)qe=Re.getLinearBrushOtherExtent(ue,Ae._transform);else{var Lt=Ae._zr;qe=[0,[Lt.getWidth(),Lt.getHeight()][1-ue]]}var $e=[Je,qe];ue&&$e.reverse(),V(Ae,Te,$e,At)},updateCommon:z,contain:Ge}}var Me=v;H.exports=Me},"/MfK":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="DeleteOutlined";var f=B.a=E.forwardRef(m)},"/POA":function(H,B,d){!function(_,E){if(!0)H.exports=E();else var C,A}(window,function(){return function(_){var E={};function C(A){if(E[A])return E[A].exports;var w=E[A]={i:A,l:!1,exports:{}};return _[A].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=_,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(_,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(_,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(_,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(_,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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(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 l=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var t=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(l-55296)+t-56320+65536|n[f.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[f.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=n[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[f.CHAR_DATA_WIDTH_INDEX]<<22)},i.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},i}(c.AttributeData);E.CellData=o},function(_,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(_,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(_,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(_,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<=(l=f.charCodeAt(i++))&&l<=57343?c[r++]=1024*(this._interim-55296)+l-56320+65536:(c[r++]=this._interim,c[r++]=l),this._interim=0);for(var n=i;n<o;++n){var e=f.charCodeAt(n);if(55296<=e&&e<=56319){if(++n>=o)return this._interim=e,r;var l;56320<=(l=f.charCodeAt(n))&&l<=57343?c[r++]=1024*(e-55296)+l-56320+65536:(c[r++]=e,c[r++]=l)}else c[r++]=e}return r},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,l=0,t=0,a=0;if(this.interim[0]){var s=!1,u=this.interim[0];u&=(224&u)==192?31:(240&u)==224?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)u<<=6,u|=p;for(var 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--,s=!0;break}this.interim[h++]=p,u<<=6,u|=63&p}s||(g===2?u<128?a--:c[l++]=u:g===3?u<2048||u>=55296&&u<=57343||(c[l++]=u):u<65536||u>1114111||(c[l++]=u)),this.interim.fill(0)}for(var y=o-4,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[l++]=r,c[l++]=i,c[l++]=n,c[l++]=e,x+=4;if((r=f[x++])<128)c[l++]=r;else if((224&r)==192){if(x>=o)return this.interim[0]=r,l;if((192&(i=f[x++]))!=128){x--;continue}if((t=(31&r)<<6|63&i)<128){x--;continue}c[l++]=t}else if((240&r)==224){if(x>=o)return this.interim[0]=r,l;if((192&(i=f[x++]))!=128){x--;continue}if(x>=o)return this.interim[0]=r,this.interim[1]=i,l;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[l++]=t}else if((248&r)==240){if(x>=o)return this.interim[0]=r,l;if((192&(i=f[x++]))!=128){x--;continue}if(x>=o)return this.interim[0]=r,this.interim[1]=i,l;if((192&(n=f[x++]))!=128){x--;continue}if(x>=o)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=n,l;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[l++]=t}}return l},m}();E.Utf8ToUtf32=w},function(_,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(_,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,l){return l!==void 0?"#"+c(i)+c(n)+c(e)+c(l):"#"+c(i)+c(n)+c(e)},r.toRgba=function(i,n,e,l){return l===void 0&&(l=255),(i<<24|n<<16|e<<8|l)>>>0}}(A=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,l=i.rgba>>16&255,t=i.rgba>>8&255,a=r.rgba>>24&255,s=r.rgba>>16&255,u=r.rgba>>8&255,h=a+Math.round((e-a)*n),p=s+Math.round((l-s)*n),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],l=n[1],t=n[2];return{css:A.toCss(e,l,t),rgba:i}},w.opacity=function(r,i){var n=Math.round(255*i),e=f.toChannels(r.rgba),l=e[0],t=e[1],a=e[2];return{css:A.toCss(l,t,a,n),rgba:A.toRgba(l,t,a,n)}},(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,l){var t=n/255,a=e/255,s=l/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))}r.relativeLuminance=function(n){return i(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=i}(m=E.rgb||(E.rgb={})),function(r){function i(e,l,t){for(var a=e>>24&255,s=e>>16&255,u=e>>8&255,h=l>>24&255,p=l>>16&255,g=l>>8&255,v=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(a,s,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,s,u));return(h<<24|p<<16|g<<8|255)>>>0}function n(e,l,t){for(var a=e>>24&255,s=e>>16&255,u=e>>8&255,h=l>>24&255,p=l>>16&255,g=l>>8&255,v=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(a,s,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,s,u));return(h<<24|p<<16|g<<8|255)>>>0}r.ensureContrastRatio=function(e,l,t){var a=m.relativeLuminance(e>>8),s=m.relativeLuminance(l>>8);if(o(a,s)<t)return s<a?i(e,l,t):n(e,l,t)},r.reduceLuminance=i,r.increaseLuminance=n,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,l,t){return{css:A.toCss(e,l,t),rgba:A.toRgba(e,l,t)}}}(f=E.rgba||(E.rgba={})),E.toPaddedHex=c,E.contrastRatio=o},function(_,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(_,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(_,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,l,t,a,s,u,h,p){this._container=e,this._alpha=a,this._colors=s,this._rendererId=u,this._bufferService=h,this._optionsService=p,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+l+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var e;r.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},n.prototype._initCanvas=function(){this._ctx=c.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},n.prototype.onOptionsChanged=function(){},n.prototype.onBlur=function(){},n.prototype.onFocus=function(){},n.prototype.onCursorMove=function(){},n.prototype.onGridChanged=function(e,l){},n.prototype.onSelectionChanged=function(e,l,t){t===void 0&&(t=!1)},n.prototype.setColors=function(e){this._refreshCharAtlas(e)},n.prototype._setTransparency=function(e){if(e!==this._alpha){var l=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},n.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=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,l,t,a){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(e,l,t){t===void 0&&(t=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(e,l,t){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(e,l,t,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,a*this._scaledCellHeight-window.devicePixelRatio)},n.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},n.prototype._clearCells=function(e,l,t,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(e,l,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(e,l,t){var a,s,u=this._getContrastColor(e);u||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,t,u):(e.isInverse()?(a=e.isBgDefault()?w.INVERTED_DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?w.INVERTED_DEFAULT_COLOR:e.getFgColor()):(s=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),a+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=s,this._currentGlyphIdentifier.fg=a,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,t))},n.prototype._drawUncachedChars=function(e,l,t,a){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(a)this._ctx.fillStyle=a.css;else if(e.isBgDefault())this._ctx.fillStyle=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var s=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}else if(a)this._ctx.fillStyle=a.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var u=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}this._clipRow(t),e.isDim()&&(this._ctx.globalAlpha=w.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.prototype._getFont=function(e,l){return(l?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},n.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var l=this._colors.contrastCache.getColor(e.bg,e.fg);if(l!==void 0)return l||void 0;var t=e.getFgColor(),a=e.getFgColorMode(),s=e.getBgColor(),u=e.getBgColorMode(),h=!!e.isInverse(),p=!!e.isInverse();if(h){var g=t;t=s,s=g;var v=a;a=u,u=v}var y=this._resolveBackgroundRgba(u,s,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,l,t){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(e,l,t,a){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&a&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();E.BaseRenderLayer=i},function(_,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(_,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(_,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]),l=0;l<r;++l)this.setCell(l,e);this.length=r}return o.prototype.get=function(r){var i=this._data[3*r+0],n=2097151&i;return[this._data[3*r+1],2097152&i?this._combined[r]:n?A.stringFromCodePoint(n):"",i>>22,2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):n]},o.prototype.set=function(r,i){this._data[3*r+1]=i[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,l,t){268435456&l&&(this._extendedAttrs[r]=t),this._data[3*r+0]=i|n<<22,this._data[3*r+1]=e,this._data[3*r+2]=l},o.prototype.addCodepointToCell=function(r,i){var n=this._data[3*r+0];2097152&n?this._combined[r]+=A.stringFromCodePoint(i):(2097151&n?(this._combined[r]=A.stringFromCodePoint(2097151&n)+A.stringFromCodePoint(i),n&=-2097152,n|=2097152):n=i|1<<22,this._data[3*r+0]=n)},o.prototype.insertCells=function(r,i,n,e){if((r%=this.length)&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),i<this.length-r){for(var l=new m.CellData,t=this.length-r-i-1;t>=0;--t)this.setCell(r+i+t,this.loadCell(r+t,l));for(t=0;t<i;++t)this.setCell(r+t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs)},o.prototype.deleteCells=function(r,i,n,e){if(r%=this.length,i<this.length-r){for(var l=new m.CellData,t=0;t<this.length-r-i;++t)this.setCell(r+t,this.loadCell(r+i+t,l));for(t=this.length-i;t<this.length;++t)this.setCell(t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),this.getWidth(r)!==0||this.hasContent(r)||this.setCellFromCodePoint(r,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs)},o.prototype.replaceCells=function(r,i,n,e){for(r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),i<this.length&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs);r<i&&r<this.length;)this.setCell(r++,n)},o.prototype.resize=function(r,i){if(r!==this.length){if(r>this.length){var n=new Uint32Array(3*r);this.length&&(3*r<this._data.length?n.set(this._data.subarray(0,3*r)):n.set(this._data)),this._data=n;for(var e=this.length;e<r;++e)this.setCell(e,i)}else if(r){(n=new Uint32Array(3*r)).set(this._data.subarray(0,3*r)),this._data=n;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var t=parseInt(l[e],10);t>=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},o.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var i=0;i<this.length;++i)this.setCell(i,r)},o.prototype.copyFrom=function(r){for(var i in this.length!==r.length?this._data=new Uint32Array(r._data):this._data.set(r._data),this.length=r.length,this._combined={},r._combined)this._combined[i]=r._combined[i];for(var i in this._extendedAttrs={},r._extendedAttrs)this._extendedAttrs[i]=r._extendedAttrs[i];this.isWrapped=r.isWrapped},o.prototype.clone=function(){var r=new o(0);for(var i in r._data=new Uint32Array(this._data),r.length=this.length,this._combined)r._combined[i]=this._combined[i];for(var i in this._extendedAttrs)r._extendedAttrs[i]=this._extendedAttrs[i];return r.isWrapped=this.isWrapped,r},o.prototype.getTrimmedLength=function(){for(var r=this.length-1;r>=0;--r)if(4194303&this._data[3*r+0])return r+(this._data[3*r+0]>>22);return 0},o.prototype.copyCellsFrom=function(r,i,n,e,l){var t=r._data;if(l)for(var a=e-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(n+a)+s]=t[3*(i+a)+s];else for(a=0;a<e;a++)for(s=0;s<3;s++)this._data[3*(n+a)+s]=t[3*(i+a)+s];var u=Object.keys(r._combined);for(s=0;s<u.length;s++){var h=parseInt(u[s],10);h>=i&&(this._combined[h-i+n]=r._combined[h])}},o.prototype.translateToString=function(r,i,n){r===void 0&&(r=!1),i===void 0&&(i=0),n===void 0&&(n=this.length),r&&(n=Math.min(n,this.getTrimmedLength()));for(var e="";i<n;){var l=this._data[3*i+0],t=2097151&l;e+=2097152&l?this._combined[i]:t?A.stringFromCodePoint(t):w.WHITESPACE_CELL_CHAR,i+=l>>22||1}return e},o}();E.BufferLine=c},function(_,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(_,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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(T,S){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var I in O)O.hasOwnProperty(I)&&(b[I]=O[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),l=C(0),t=C(3),a=C(4),s=C(6),u=C(22),h=C(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function 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,O){this._bufferService=T,this._coreService=S,this._logService=b,this._optionsService=O,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 O={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return O-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+O+" 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,O,I,L,N,D,R,k){k===void 0&&(k=new o.EscapeSequenceParser);var M=x.call(this)||this;M._bufferService=S,M._charsetService=b,M._coreService=O,M._dirtyRowService=I,M._logService=L,M._optionsService=N,M._coreMouseService=D,M._unicodeService=R,M._parser=k,M._parseBuffer=new Uint32Array(4096),M._stringDecoder=new n.StringToUtf32,M._utf8Decoder=new n.Utf8ToUtf32,M._workCell=new a.CellData,M._windowTitle="",M._iconName="",M._windowTitleStack=[],M._iconNameStack=[],M._curAttrData=e.DEFAULT_ATTR_DATA.clone(),M._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),M._onRequestBell=new l.EventEmitter,M._onRequestRefreshRows=new l.EventEmitter,M._onRequestReset=new l.EventEmitter,M._onRequestScroll=new l.EventEmitter,M._onRequestSyncScrollBar=new l.EventEmitter,M._onRequestWindowsOptionsReport=new l.EventEmitter,M._onA11yChar=new l.EventEmitter,M._onA11yTab=new l.EventEmitter,M._onCursorMove=new l.EventEmitter,M._onLineFeed=new l.EventEmitter,M._onScroll=new l.EventEmitter,M._onTitleChange=new l.EventEmitter,M.register(M._parser),M._parser.setCsiHandlerFallback(function(K,V){M._logService.debug("Unknown CSI code: ",{identifier:M._parser.identToString(K),params:V.toArray()})}),M._parser.setEscHandlerFallback(function(K){M._logService.debug("Unknown ESC code: ",{identifier:M._parser.identToString(K)})}),M._parser.setExecuteHandlerFallback(function(K){M._logService.debug("Unknown EXECUTE code: ",{code:K})}),M._parser.setOscHandlerFallback(function(K,V,z){M._logService.debug("Unknown OSC code: ",{identifier:K,action:V,data:z})}),M._parser.setDcsHandlerFallback(function(K,V,z){V==="HOOK"&&(z=z.toArray()),M._logService.debug("Unknown DCS code: ",{identifier:M._parser.identToString(K),action:V,payload:z})}),M._parser.setPrintHandler(function(K,V,z){return M.print(K,V,z)}),M._parser.setCsiHandler({final:"@"},function(K){return M.insertChars(K)}),M._parser.setCsiHandler({intermediates:" ",final:"@"},function(K){return M.scrollLeft(K)}),M._parser.setCsiHandler({final:"A"},function(K){return M.cursorUp(K)}),M._parser.setCsiHandler({intermediates:" ",final:"A"},function(K){return M.scrollRight(K)}),M._parser.setCsiHandler({final:"B"},function(K){return M.cursorDown(K)}),M._parser.setCsiHandler({final:"C"},function(K){return M.cursorForward(K)}),M._parser.setCsiHandler({final:"D"},function(K){return M.cursorBackward(K)}),M._parser.setCsiHandler({final:"E"},function(K){return M.cursorNextLine(K)}),M._parser.setCsiHandler({final:"F"},function(K){return M.cursorPrecedingLine(K)}),M._parser.setCsiHandler({final:"G"},function(K){return M.cursorCharAbsolute(K)}),M._parser.setCsiHandler({final:"H"},function(K){return M.cursorPosition(K)}),M._parser.setCsiHandler({final:"I"},function(K){return M.cursorForwardTab(K)}),M._parser.setCsiHandler({final:"J"},function(K){return M.eraseInDisplay(K)}),M._parser.setCsiHandler({prefix:"?",final:"J"},function(K){return M.eraseInDisplay(K)}),M._parser.setCsiHandler({final:"K"},function(K){return M.eraseInLine(K)}),M._parser.setCsiHandler({prefix:"?",final:"K"},function(K){return M.eraseInLine(K)}),M._parser.setCsiHandler({final:"L"},function(K){return M.insertLines(K)}),M._parser.setCsiHandler({final:"M"},function(K){return M.deleteLines(K)}),M._parser.setCsiHandler({final:"P"},function(K){return M.deleteChars(K)}),M._parser.setCsiHandler({final:"S"},function(K){return M.scrollUp(K)}),M._parser.setCsiHandler({final:"T"},function(K){return M.scrollDown(K)}),M._parser.setCsiHandler({final:"X"},function(K){return M.eraseChars(K)}),M._parser.setCsiHandler({final:"Z"},function(K){return M.cursorBackwardTab(K)}),M._parser.setCsiHandler({final:"`"},function(K){return M.charPosAbsolute(K)}),M._parser.setCsiHandler({final:"a"},function(K){return M.hPositionRelative(K)}),M._parser.setCsiHandler({final:"b"},function(K){return M.repeatPrecedingCharacter(K)}),M._parser.setCsiHandler({final:"c"},function(K){return M.sendDeviceAttributesPrimary(K)}),M._parser.setCsiHandler({prefix:">",final:"c"},function(K){return M.sendDeviceAttributesSecondary(K)}),M._parser.setCsiHandler({final:"d"},function(K){return M.linePosAbsolute(K)}),M._parser.setCsiHandler({final:"e"},function(K){return M.vPositionRelative(K)}),M._parser.setCsiHandler({final:"f"},function(K){return M.hVPosition(K)}),M._parser.setCsiHandler({final:"g"},function(K){return M.tabClear(K)}),M._parser.setCsiHandler({final:"h"},function(K){return M.setMode(K)}),M._parser.setCsiHandler({prefix:"?",final:"h"},function(K){return M.setModePrivate(K)}),M._parser.setCsiHandler({final:"l"},function(K){return M.resetMode(K)}),M._parser.setCsiHandler({prefix:"?",final:"l"},function(K){return M.resetModePrivate(K)}),M._parser.setCsiHandler({final:"m"},function(K){return M.charAttributes(K)}),M._parser.setCsiHandler({final:"n"},function(K){return M.deviceStatus(K)}),M._parser.setCsiHandler({prefix:"?",final:"n"},function(K){return M.deviceStatusPrivate(K)}),M._parser.setCsiHandler({intermediates:"!",final:"p"},function(K){return M.softReset(K)}),M._parser.setCsiHandler({intermediates:" ",final:"q"},function(K){return M.setCursorStyle(K)}),M._parser.setCsiHandler({final:"r"},function(K){return M.setScrollRegion(K)}),M._parser.setCsiHandler({final:"s"},function(K){return M.saveCursor(K)}),M._parser.setCsiHandler({final:"t"},function(K){return M.windowOptions(K)}),M._parser.setCsiHandler({final:"u"},function(K){return M.restoreCursor(K)}),M._parser.setCsiHandler({intermediates:"'",final:"}"},function(K){return M.insertColumns(K)}),M._parser.setCsiHandler({intermediates:"'",final:"~"},function(K){return M.deleteColumns(K)}),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(K){M.setTitle(K),M.setIconName(K)})),M._parser.setOscHandler(1,new u.OscHandler(function(K){return M.setIconName(K)})),M._parser.setOscHandler(2,new u.OscHandler(function(K){return M.setTitle(K)})),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 j=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 U in c.CHARSETS)j(U);return M._parser.setEscHandler({intermediates:"#",final:"8"},function(){return M.screenAlignmentPattern()}),M._parser.setErrorHandler(function(K){return M._logService.error("Parsing error: ",K),K}),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,O=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===O&&b.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},T.prototype.print=function(S,b,O){var I,L,N=this._bufferService.buffer,D=this._charsetService.charset,R=this._optionsService.options.screenReaderMode,k=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,F=this._curAttrData,U=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&O-b>0&&U.getWidth(N.x-1)===2&&U.setCellFromCodePoint(N.x-1,0,1,F.fg,F.bg,F.extended);for(var K=b;K<O;++K){if(I=S[K],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>=k){if(M){for(;N.x<k;)U.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),U=N.lines.get(N.ybase+N.y)}else if(N.x=k-1,L===2)continue}if(j&&(U.insertCells(N.x,L,N.getNullCell(F),F),U.getWidth(k-1)===2&&U.setCellFromCodePoint(k-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,F.fg,F.bg,F.extended)),U.setCellFromCodePoint(N.x++,I,L,F.fg,F.bg,F.extended),L>0)for(;--L;)U.setCellFromCodePoint(N.x++,0,0,F.fg,F.bg,F.extended)}else U.getWidth(N.x-1)?U.addCodepointToCell(N.x-1,I):U.addCodepointToCell(N.x-2,I)}O-b>0&&(U.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<k&&O-b>0&&U.getWidth(N.x)===0&&!U.hasContent(N.x)&&U.setCellFromCodePoint(N.x,0,1,F.fg,F.bg,F.extended),this._dirtyRowService.markDirty(N.y)},T.prototype.addCsiHandler=function(S,b){var O=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],O._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 O=b.lines.get(b.ybase+b.y);O.hasWidth(b.x)&&!O.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,O=this._bufferService.buffer;b--;)O.x=O.prevStop()},T.prototype._eraseInBufferLine=function(S,b,O,I){I===void 0&&(I=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+S);L.replaceCells(b,O,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 O=this._bufferService.buffer.lines.length-this._bufferService.rows;O>0&&(this._bufferService.buffer.lines.trimStart(O),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-O,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-O,0),this._onScroll.fire(0))}},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,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){for(var I=O.ybase+O.y,L=this._bufferService.rows-1-O.scrollBottom,N=this._bufferService.rows-1+O.ybase-L+1;b--;)O.lines.splice(N-1,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.x=0}},T.prototype.deleteLines=function(S){this._restrictCursor();var b=S.params[0]||1,O=this._bufferService.buffer;if(!(O.y>O.scrollBottom||O.y<O.scrollTop)){var I,L=O.ybase+O.y;for(I=this._bufferService.rows-1-O.scrollBottom,I=this._bufferService.rows-1+O.ybase-I;b--;)O.lines.splice(L,1),O.lines.splice(I,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.y,O.scrollBottom),O.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,O=this._bufferService.buffer;b--;)O.lines.splice(O.ybase+O.scrollTop,1),O.lines.splice(O.ybase+O.scrollBottom,0,O.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},T.prototype.scrollDown=function(S){for(var b=S.params[0]||1,O=this._bufferService.buffer;b--;)O.lines.splice(O.ybase+O.scrollBottom,1),O.lines.splice(O.ybase+O.scrollTop,0,O.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(O.scrollTop,O.scrollBottom)},T.prototype.scrollLeft=function(S){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var O=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.deleteCells(0,O,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 O=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.insertCells(0,O,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 O=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,O,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 O=S.params[0]||1,I=b.scrollTop;I<=b.scrollBottom;++I){var L=b.lines.get(b.ybase+I);L.deleteCells(b.x,O,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,O=new Uint32Array(b),I=0;I<b;++I)O[I]=this._parser.precedingCodepoint;this.print(O,0,O.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,O,I,L){return b===2?(S|=50331648,S&=-16777216,S|=s.AttributeData.fromColorRGB([O,I,L])):b===5&&(S&=-50331904,S|=33554432|255&O),S},T.prototype._extractColor=function(S,b,O){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:O.fg=this._updateAttrColor(O.fg,I[1],I[3],I[4],I[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,I[1],I[3],I[4],I[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,I[1],I[3],I[4],I[5])}return 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,O=S.length,I=this._curAttrData,L=0;L<O;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,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+b+";"+O+"R")}},T.prototype.deviceStatusPrivate=function(S){switch(S.params[0]){case 6:var b=this._bufferService.buffer.y+1,O=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+b+";"+O+"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 O=b%2==1;this._optionsService.options.cursorBlink=O},T.prototype.setScrollRegion=function(S){var b,O=S.params[0]||1;(S.length<2||(b=S.params[1])>this._bufferService.rows||b===0)&&(b=this._bufferService.rows),b>O&&(this._bufferService.buffer.scrollTop=O-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 O=0;O<this._bufferService.rows;++O){var I=b.ybase+b.y+O,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(_,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(_,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(_,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(_,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PAYLOAD_LIMIT=void 0,E.PAYLOAD_LIMIT=1e7},function(_,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 l=this._active.length-1;l>=0;l--)this._active[l].put(i,n,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(i,n,e))},r.prototype.unhook=function(i){if(this._active.length){for(var n=this._active.length-1;n>=0&&this._active[n].unhook(i)===!1;n--);for(n--;n>=0;n--)this._active[n].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",i);this._active=f,this._ident=0},r}();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(_,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 l=(t=m[e]).ownedBy.indexOf(c);if(l>=0){if(A.configEquals(t.config,n))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),m.splice(e,1)):t.ownedBy.splice(l,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(_,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(_,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],l=0;l<216;l++){var t=e[l/36%6|0],a=e[l/6%6|0],s=e[l%6];n.push({css:A.channels.toCss(t,a,s),rgba:A.channels.toRgba(t,a,s)})}for(l=0;l<24;l++){var u=8+10*l;n.push({css:A.channels.toCss(u,u,u),rgba:A.channels.toRgba(u,u,u)})}return n}();var i=function(){function n(e,l){this.allowTransparency=l;var t=e.createElement("canvas");t.width=1,t.height=1;var a=t.getContext("2d");if(!a)throw new Error("Could not get rendering context");this._ctx=a,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new 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,l,t){if(t===void 0&&(t=this.allowTransparency),e===void 0)return l;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+l.css),l;this._ctx.fillRect(0,0,1,1);var a=this._ctx.getImageData(0,0,1,1).data;if(a[3]!==255){if(!t)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+l.css+"."),l;var s=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(y){return Number(y)}),u=s[0],h=s[1],p=s[2],g=s[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(_,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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(n,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,t){l.__proto__=t}||function(l,t){for(var a in t)t.hasOwnProperty(a)&&(l[a]=t[a])})(n,e)},function(i,n){function e(){this.constructor=i}A(i,n),i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(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,l,t){var a=i.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=l,a._width=t,a}return 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 l=[],t=e.translateToString(!0),a=0,s=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,s,e,a),y=0;y<v.length;y++)l.push(v[y]);a=g,u=s,h=this._workCell.fg,p=this._workCell.bg}s+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-a>1)for(v=this._getJoinedRanges(t,u,s,e,a),y=0;y<v.length;y++)l.push(v[y]);return l},i.prototype._getJoinedRanges=function(n,e,l,t,a){for(var s=n.substring(e,l),u=this._characterJoiners[0].handler(s),h=1;h<this._characterJoiners.length;h++)for(var p=this._characterJoiners[h].handler(s),g=0;g<p.length;g++)i._mergeRanges(u,p[g]);return this._stringRangesToCellRanges(u,t,a),u},i.prototype._stringRangesToCellRanges=function(n,e,l){var t=0,a=!1,s=0,u=n[t];if(u){for(var h=l;h<this._bufferService.cols;h++){var p=e.getWidth(h),g=e.getString(h).length||f.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!a&&u[0]<=s&&(u[0]=h,a=!0),u[1]<=s){if(u[1]=h,!(u=n[++t]))break;u[0]<=s?(u[0]=h,a=!0):a=!1}s+=g}}u&&(u[1]=this._bufferService.cols)}},i._mergeRanges=function(n,e){for(var l=!1,t=0;t<n.length;t++){var a=n[t];if(l){if(e[1]<=a[0])return n[t-1][1]=e[1],n;if(e[1]<=a[1])return n[t-1][1]=Math.max(e[1],a[1]),n.splice(t,1),n;n.splice(t,1),t--}else{if(e[1]<=a[0])return n.splice(t,0,e),n;if(e[1]<=a[1])return a[0]=Math.min(e[0],a[0]),n;e[0]<a[1]&&(a[0]=Math.min(e[0],a[0]),l=!0)}}return l?n[n.length-1][1]=e[1]:n.push(e),n},i}();E.CharacterJoinerRegistry=r},function(_,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(_,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(_,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(_,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(_,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 l(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),new i(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.resize=function(a,s){this._verifyIntegers(a,s),this._core.resize(a,s)},t.prototype.open=function(a){this._core.open(a)},t.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},t.prototype.registerLinkMatcher=function(a,s,u){return this._checkProposedApi(),this._core.registerLinkMatcher(a,s,u)},t.prototype.deregisterLinkMatcher=function(a){this._checkProposedApi(),this._core.deregisterLinkMatcher(a)},t.prototype.registerLinkProvider=function(a){return this._checkProposedApi(),this._core.registerLinkProvider(a)},t.prototype.registerCharacterJoiner=function(a){return this._checkProposedApi(),this._core.registerCharacterJoiner(a)},t.prototype.deregisterCharacterJoiner=function(a){this._checkProposedApi(),this._core.deregisterCharacterJoiner(a)},t.prototype.registerMarker=function(a){return this._checkProposedApi(),this._verifyIntegers(a),this._core.addMarker(a)},t.prototype.addMarker=function(a){return this.registerMarker(a)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(a,s,u){this._verifyIntegers(a,s,u),this._core.select(a,s,u)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(a,s){this._verifyIntegers(a,s),this._core.selectLines(a,s)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(a){this._verifyIntegers(a),this._core.scrollLines(a)},t.prototype.scrollPages=function(a){this._verifyIntegers(a),this._core.scrollPages(a)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(a){this._verifyIntegers(a),this._core.scrollToLine(a)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(a,s){this._core.write(a,s)},t.prototype.writeUtf8=function(a,s){this._core.write(a,s)},t.prototype.writeln=function(a,s){this._core.write(a),this._core.write(`\r
|
|
|
`,s)},t.prototype.paste=function(a){this._core.paste(a)},t.prototype.getOption=function(a){return this._core.optionsService.getOption(a)},t.prototype.setOption=function(a,s){this._core.optionsService.setOption(a,s)},t.prototype.refresh=function(a,s){this._verifyIntegers(a,s),this._core.refresh(a,s)},t.prototype.reset=function(){this._core.reset()},t.prototype.loadAddon=function(a){return this._addonManager.loadAddon(this,a)},Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];for(var u=0,h=a;u<h.length;u++){var p=h[u];if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}},t}();E.Terminal=o;var r=function(){function t(a,s){this._buffer=a,this.type=s}return t.prototype.init=function(a){return this._buffer=a,this},Object.defineProperty(t.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),t.prototype.getLine=function(a){var s=this._buffer.lines.get(a);if(s)return new n(s)},t.prototype.getNullCell=function(){return new A.CellData},t}(),i=function(){function t(a){var s=this;this._buffers=a,this._onBufferChange=new f.EventEmitter,this._normal=new r(this._buffers.normal,"normal"),this._alternate=new r(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return s._onBufferChange.fire(s.active)})}return Object.defineProperty(t.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),t}(),n=function(){function t(a){this._line=a}return Object.defineProperty(t.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),t.prototype.getCell=function(a,s){if(!(a<0||a>=this._line.length))return s?(this._line.loadCell(a,s),s):this._line.loadCell(a,new A.CellData)},t.prototype.translateToString=function(a,s,u){return this._line.translateToString(a,s,u)},t}(),e=function(){function t(a){this._core=a}return t.prototype.registerCsiHandler=function(a,s){return this._core.addCsiHandler(a,function(u){return s(u.toArray())})},t.prototype.addCsiHandler=function(a,s){return this.registerCsiHandler(a,s)},t.prototype.registerDcsHandler=function(a,s){return this._core.addDcsHandler(a,function(u,h){return s(u,h.toArray())})},t.prototype.addDcsHandler=function(a,s){return this.registerDcsHandler(a,s)},t.prototype.registerEscHandler=function(a,s){return this._core.addEscHandler(a,s)},t.prototype.addEscHandler=function(a,s){return this.registerEscHandler(a,s)},t.prototype.registerOscHandler=function(a,s){return this._core.addOscHandler(a,s)},t.prototype.addOscHandler=function(a,s){return this.registerOscHandler(a,s)},t}(),l=function(){function t(a){this._core=a}return t.prototype.register=function(a){this._core.unicodeService.register(a)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(s){this._core.unicodeService.activeVersion=s},enumerable:!1,configurable:!0}),t}()},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(M,j){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,U){F.__proto__=U}||function(F,U){for(var K in U)U.hasOwnProperty(K)&&(F[K]=U[K])})(M,j)},function(k,M){function j(){this.constructor=k}A(k,M),k.prototype=M===null?Object.create(M):(j.prototype=M.prototype,new j)});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),l=C(11),t=C(7),a=C(18),s=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),O=C(62),I=C(63),L=C(64),N=C(65),D=typeof window!="undefined"?window.document:null,R=function(k){function M(j){j===void 0&&(j={});var F=k.call(this,j)||this;return F.browser=l,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(U,K){return F.refresh(U,K)})),F.register(F._inputHandler.onRequestReset(function(){return F.reset()})),F.register(F._inputHandler.onRequestScroll(function(U,K){return F.scroll(U,K||void 0)})),F.register(F._inputHandler.onRequestWindowsOptionsReport(function(U){return F._reportWindowsOptions(U)})),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(U){return F._afterResize(U.cols,U.rows)})),F}return w(M,k),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 j,F,U;this._isDisposed||(k.prototype.dispose.call(this),(j=this._renderService)===null||j===void 0||j.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(U=(F=this.element)===null||F===void 0?void 0:F.parentNode)===null||U===void 0||U.removeChild(this.element))},M.prototype._setup=function(){k.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(j){var F,U,K,V;switch(k.prototype._updateOptions.call(this,j),j){case"fontFamily":case"fontSize":(F=this._renderService)===null||F===void 0||F.clear(),(U=this._charSizeService)===null||U===void 0||U.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":(K=this.viewport)===null||K===void 0||K.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(j){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(j),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},M.prototype.blur=function(){var j;return(j=this.textarea)===null||j===void 0?void 0:j.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 j=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),F=this._bufferService.buffer.y*j,U=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=U+"px",this.textarea.style.top=F+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=j+"px",this.textarea.style.lineHeight=j+"px",this.textarea.style.zIndex="-5"}},M.prototype._initGlobal=function(){var j=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(U){j.hasSelection()&&c.copyHandler(U,j._selectionService)}));var F=function(K){return c.handlePasteEvent(K,j.textarea,j._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",F)),this.register(t.addDisposableDomListener(this.element,"paste",F)),l.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(U){U.button===2&&c.rightClickHandler(U,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(U){c.rightClickHandler(U,j.textarea,j.screenElement,j._selectionService,j.options.rightClickSelectsWord)})),l.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(U){U.button===1&&c.moveTextAreaUnderMouseCursor(U,j.textarea,j.screenElement)}))},M.prototype._bindKeys=function(){var j=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(F){return j._keyUp(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(F){return j._keyDown(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(F){return j._keyPress(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return j._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(F){return j._compositionHelper.compositionupdate(F)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return j._compositionHelper.compositionend()})),this.register(this.onRender(function(){return j._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(F){return j._queueLinkification(F.start,F.end)}))},M.prototype.open=function(j){var F=this;if(!j)throw new Error("Terminal requires a parent element.");D.body.contains(j)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=j.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),j.appendChild(this.element);var U=D.createDocumentFragment();this._viewportElement=D.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),U.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),U.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 K=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(S.ICoreBrowserService,K),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(U),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(s.SoundService),this._instantiationService.setService(S.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(O.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,function(z,Q){return F.scrollLines(z,Q)},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(j){var F,U,K;this._theme=j,(F=this._colorManager)===null||F===void 0||F.setTheme(j),(U=this._renderService)===null||U===void 0||U.setColors(this._colorManager.colors),(K=this.viewport)===null||K===void 0||K.onThemeChange(this._colorManager.colors)},M.prototype.bindMouse=function(){var j=this,F=this,U=this.element;function K(ne){var ve,xe,_e=F._mouseService.getRawByteCoords(ne,F.screenElement,F.cols,F.rows);if(!_e)return!1;switch(ne.overrideType||ne.type){case"mousemove":xe=32,ne.buttons===void 0?(ve=3,ne.button!==void 0&&(ve=ne.button<3?ne.button:3)):ve=1&ne.buttons?0:4&ne.buttons?1:2&ne.buttons?2:3;break;case"mouseup":xe=0,ve=ne.button<3?ne.button:3;break;case"mousedown":xe=1,ve=ne.button<3?ne.button:3;break;case"wheel":ne.deltaY!==0&&(xe=ne.deltaY<0?0:1),ve=4;break;default:return!1}return!(xe===void 0||ve===void 0||ve>4)&&F._coreMouseService.triggerMouseEvent({col:_e.x-33,row:_e.y-33,button:ve,action:xe,ctrl:ne.ctrlKey,alt:ne.altKey,shift:ne.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(ve){return K(ve),ve.buttons||(j._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&j._document.removeEventListener("mousemove",V.mousedrag)),j.cancel(ve)},Q=function(ve){return K(ve),ve.preventDefault(),j.cancel(ve)},Z=function(ve){ve.buttons&&K(ve)},le=function(ve){ve.buttons||K(ve)};this.register(this._coreMouseService.onProtocolChange(function(ne){ne?(j.optionsService.options.logLevel==="debug"&&j._logService.debug("Binding to mouse events:",j._coreMouseService.explainEvents(ne)),j.element.classList.add("enable-mouse-events"),j._selectionService.disable()):(j._logService.debug("Unbinding from mouse events."),j.element.classList.remove("enable-mouse-events"),j._selectionService.enable()),8&ne?V.mousemove||(U.addEventListener("mousemove",le),V.mousemove=le):(U.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&ne?V.wheel||(U.addEventListener("wheel",Q,{passive:!1}),V.wheel=Q):(U.removeEventListener("wheel",V.wheel),V.wheel=null),2&ne?V.mouseup||(V.mouseup=z):(j._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&ne?V.mousedrag||(V.mousedrag=Z):(j._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(U,"mousedown",function(ne){if(ne.preventDefault(),j.focus(),j._coreMouseService.areMouseEventsActive&&!j._selectionService.shouldForceSelection(ne))return K(ne),V.mouseup&&j._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&j._document.addEventListener("mousemove",V.mousedrag),j.cancel(ne)})),this.register(t.addDisposableDomListener(U,"wheel",function(ne){if(!V.wheel){if(!j.buffer.hasScrollback){var ve=j.viewport.getLinesScrolled(ne);if(ve===0)return;for(var xe=o.C0.ESC+(j._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ne.deltaY<0?"A":"B"),_e="",Be=0;Be<Math.abs(ve);Be++)_e+=xe;j._coreService.triggerDataEvent(_e,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(U,"wheel",function(ne){if(!V.wheel)return j.viewport.onWheel(ne)?void 0:j.cancel(ne)},{passive:!1})),this.register(t.addDisposableDomListener(U,"touchstart",function(ne){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchStart(ne),j.cancel(ne)},{passive:!0})),this.register(t.addDisposableDomListener(U,"touchmove",function(ne){if(!j._coreMouseService.areMouseEventsActive)return j.viewport.onTouchMove(ne)?void 0:j.cancel(ne)},{passive:!1}))},M.prototype.refresh=function(j,F){var U;(U=this._renderService)===null||U===void 0||U.refreshRows(j,F)},M.prototype._queueLinkification=function(j,F){var U;(U=this.linkifier)===null||U===void 0||U.linkifyRows(j,F)},M.prototype.updateCursorStyle=function(j){this._selectionService&&this._selectionService.shouldColumnSelect(j)?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(j,F){k.prototype.scrollLines.call(this,j,F),this.refresh(0,this.rows-1)},M.prototype.paste=function(j){c.paste(j,this.textarea,this._coreService)},M.prototype.attachCustomKeyEventHandler=function(j){this._customKeyEventHandler=j},M.prototype.registerLinkMatcher=function(j,F,U){var K=this.linkifier.registerLinkMatcher(j,F,U);return this.refresh(0,this.rows-1),K},M.prototype.deregisterLinkMatcher=function(j){this.linkifier.deregisterLinkMatcher(j)&&this.refresh(0,this.rows-1)},M.prototype.registerLinkProvider=function(j){return this.linkifier2.registerLinkProvider(j)},M.prototype.registerCharacterJoiner=function(j){var F=this._renderService.registerCharacterJoiner(j);return this.refresh(0,this.rows-1),F},M.prototype.deregisterCharacterJoiner=function(j){this._renderService.deregisterCharacterJoiner(j)&&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(j){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+j)},M.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},M.prototype.select=function(j,F,U){this._selectionService.setSelection(j,F,U)},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 j;(j=this._selectionService)===null||j===void 0||j.clearSelection()},M.prototype.selectAll=function(){var j;(j=this._selectionService)===null||j===void 0||j.selectAll()},M.prototype.selectLines=function(j,F){var U;(U=this._selectionService)===null||U===void 0||U.selectLines(j,F)},M.prototype._keyDown=function(j){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(!this._compositionHelper.keydown(j))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var F=g.evaluateKeyboardEvent(j,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(j),F.type===3||F.type===2){var U=this.rows-1;return this.scrollLines(F.type===2?-U:U),this.cancel(j,!0)}return F.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,j)||(F.cancel&&this.cancel(j,!0),!F.key||(F.key!==o.C0.ETX&&F.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:F.key,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(F.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(j,!0)))},M.prototype._isThirdLevelShift=function(j,F){var U=j.isMac&&!this.options.macOptionIsMeta&&F.altKey&&!F.ctrlKey&&!F.metaKey||j.isWindows&&F.altKey&&F.ctrlKey&&!F.metaKey;return F.type==="keypress"?U:U&&(!F.keyCode||F.keyCode>47)},M.prototype._keyUp=function(j){this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1||(function(F){return F.keyCode===16||F.keyCode===17||F.keyCode===18}(j)||this.focus(),this.updateCursorStyle(j))},M.prototype._keyPress=function(j){var F;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(j)===!1)return!1;if(this.cancel(j),j.charCode)F=j.charCode;else if(j.which===null||j.which===void 0)F=j.keyCode;else{if(j.which===0||j.charCode===0)return!1;F=j.which}return!(!F||(j.altKey||j.ctrlKey||j.metaKey)&&!this._isThirdLevelShift(this.browser,j))&&(F=String.fromCharCode(F),this._onKey.fire({key:F,domEvent:j}),this._showCursor(),this._coreService.triggerDataEvent(F,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(j,F){j!==this.cols||F!==this.rows?k.prototype.resize.call(this,j,F):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(j,F){var U,K;(U=this._charSizeService)===null||U===void 0||U.measure(),(K=this.viewport)===null||K===void 0||K.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 j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(y.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},M.prototype.reset=function(){var j,F;this.options.rows=this.rows,this.options.cols=this.cols;var U=this._customKeyEventHandler;this._setup(),k.prototype.reset.call(this),(j=this._selectionService)===null||j===void 0||j.reset(),this._customKeyEventHandler=U,this.refresh(0,this.rows-1),(F=this.viewport)===null||F===void 0||F.syncScrollArea()},M.prototype._reportWindowsOptions=function(j){if(this._renderService)switch(j){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var F=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),U=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+U+";"+F+"t");break;case r.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var K=this._renderService.dimensions.scaledCellWidth.toFixed(0),V=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+V+";"+K+"t")}},M.prototype.cancel=function(j,F){if(this.options.cancelEvents||F)return j.preventDefault(),j.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(N.CoreTerminal);E.Terminal=R},function(_,E,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,l=arguments.length,t=l<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(t=(l<3?e(t):l>3?e(r,i,t):e(r,i))||t);return l>3&&t&&Object.defineProperty(r,i,t),t},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,l,t){this._textarea=r,this._compositionView=i,this._bufferService=n,this._optionsService=e,this._charSizeService=l,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(o.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),o.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},o.prototype.compositionupdate=function(r){var i=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){i._compositionPosition.end=i._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.prototype.keydown=function(r){if(this._isComposing||this._isSendingComposition){if(r.keyCode===229)return!1;if(r.keyCode===16||r.keyCode===17||r.keyCode===18)return!1;this._finalizeComposition(!1)}return r.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},o.prototype._finalizeComposition=function(r){var i=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(i._isSendingComposition){i._isSendingComposition=!1;var l=void 0;l=i._isComposing?i._textarea.value.substring(n.start,n.end):i._textarea.value.substring(n.start),i._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},o.prototype._handleAnyTextareaChanges=function(){var r=this,i=this._textarea.value;setTimeout(function(){if(!r._isComposing){var n=r._textarea.value.replace(i,"");n.length>0&&r._coreService.triggerDataEvent(n,!0)}},0)},o.prototype.updateCompositionElements=function(r){var i=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*n,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}r||setTimeout(function(){return i.updateCompositionElements(!0)},0)}},o=A([w(2,f.IBufferService),w(3,f.IOptionsService),w(4,m.ICharSizeService),w(5,f.ICoreService)],o)}();E.CompositionHelper=c},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),m=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(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 l(t,a,s,u,h,p,g){var v=e.call(this)||this;return v._scrollLines=t,v._viewportElement=a,v._scrollArea=s,v._bufferService=u,v._optionsService=h,v._charSizeService=p,v._renderService=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(l,e),l.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},l.prototype._refresh=function(t){var a=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return a._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==a&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=a),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===a&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},l.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var a=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(a,!0)}},l.prototype._bubbleScroll=function(t,a){var s=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&s<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},l.prototype.onWheel=function(t){var a=this._getPixelsScrolled(t);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},l.prototype._getPixelsScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_LINE?a*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._currentRowHeight*this._bufferService.rows),a},l.prototype.getLinesScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(a/=this._currentRowHeight+0,this._wheelPartialScroll+=a,a=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._bufferService.rows),a},l.prototype._applyScrollModifier=function(t,a){var s=this._optionsService.options.fastScrollModifier;return s==="alt"&&a.altKey||s==="ctrl"&&a.ctrlKey||s==="shift"&&a.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},l.prototype.onTouchMove=function(t){var a=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},l=m([f(3,i.IBufferService),f(4,i.IOptionsService),f(5,r.ICharSizeService),f(6,r.IRenderService)],l)}(c.Disposable);E.Viewport=n},function(_,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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(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(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,t){f.fill(this.table,l<<4|t)},e.prototype.add=function(l,t,a,s){this.table[t<<8|l]=a<<4|s},e.prototype.addMany=function(l,t,a,s){for(var u=0;u<l.length;u++)this.table[t<<8|l[u]]=a<<4|s},e}();E.TransitionTable=i,E.VT500_TRANSITION_TABLE=function(){var e=new i(4095),l=Array.apply(null,Array(256)).map(function(p,g){return g}),t=function(g,v){return l.slice(g,v)},a=t(32,127),s=t(0,24);s.push(25),s.push.apply(s,t(28,32));var u,h=t(0,14);for(u in e.setDefault(1,0),e.addMany(a,0,2,0),h)e.addMany([24,26,153,154],u,3,0),e.addMany(t(128,144),u,3,0),e.addMany(t(144,152),u,3,0),e.add(156,u,0,0),e.add(27,u,11,1),e.add(157,u,4,8),e.addMany([152,158,159],u,0,7),e.add(155,u,11,3),e.add(144,u,11,9);return e.addMany(s,0,3,0),e.addMany(s,1,3,1),e.add(127,1,0,1),e.addMany(s,8,0,8),e.addMany(s,3,3,3),e.add(127,3,0,3),e.addMany(s,4,3,4),e.add(127,4,0,4),e.addMany(s,6,3,6),e.addMany(s,5,3,5),e.add(127,5,0,5),e.addMany(s,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(a,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(a,7,0,7),e.addMany(s,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(s,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(s,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(s,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(s,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(s,13,13,13),e.addMany(a,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var n=function(e){function l(t){t===void 0&&(t=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(s,u,h){},a._executeHandlerFb=function(s){},a._csiHandlerFb=function(s,u){},a._escHandlerFb=function(s){},a._errorHandlerFb=function(s){return s},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new o.OscParser,a._dcsParser=new r.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return w(l,e),l.prototype._identifier=function(t,a){a===void 0&&(a=[64,126]);var s=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((s=t.prefix.charCodeAt(0))&&60>s||s>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var u=0;u<t.intermediates.length;++u){var h=t.intermediates.charCodeAt(u);if(32>h||h>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");s<<=8,s|=h}}if(t.final.length!==1)throw new Error("final must be a single byte");var p=t.final.charCodeAt(0);if(a[0]>p||p>a[1])throw new Error("final must be in range "+a[0]+" .. "+a[1]);return s<<=8,s|=p},l.prototype.identToString=function(t){for(var a=[];t;)a.push(String.fromCharCode(255&t)),t>>=8;return a.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(t){this._printHandler=t},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(t,a){var s=this._identifier(t,[48,126]);this._escHandlers[s]===void 0&&(this._escHandlers[s]=[]);var u=this._escHandlers[s];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},l.prototype.setEscHandler=function(t,a){this._escHandlers[this._identifier(t,[48,126])]=[a]},l.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},l.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},l.prototype.setExecuteHandler=function(t,a){this._executeHandlers[t.charCodeAt(0)]=a},l.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},l.prototype.addCsiHandler=function(t,a){var s=this._identifier(t);this._csiHandlers[s]===void 0&&(this._csiHandlers[s]=[]);var u=this._csiHandlers[s];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},l.prototype.setCsiHandler=function(t,a){this._csiHandlers[this._identifier(t)]=[a]},l.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},l.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},l.prototype.addDcsHandler=function(t,a){return this._dcsParser.addHandler(this._identifier(t),a)},l.prototype.setDcsHandler=function(t,a){this._dcsParser.setHandler(this._identifier(t),a)},l.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},l.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},l.prototype.addOscHandler=function(t,a){return this._oscParser.addHandler(t,a)},l.prototype.setOscHandler=function(t,a){this._oscParser.setHandler(t,a)},l.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},l.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},l.prototype.setErrorHandler=function(t){this._errorHandler=t},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},l.prototype.parse=function(t,a){for(var s=0,u=0,h=this.currentState,p=this._oscParser,g=this._dcsParser,v=this._collect,y=this._params,x=this._transitions.table,T=0;T<a;++T){switch((u=x[h<<8|((s=t[T])<160?s:160)])>>4){case 2:for(var S=T+1;;++S){if(S>=a||(s=t[S])<32||s>126&&s<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(s=t[S])<32||s>126&&s<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(s=t[S])<32||s>126&&s<160){this._printHandler(t,T,S),T=S-1;break}if(++S>=a||(s=t[S])<32||s>126&&s<160){this._printHandler(t,T,S),T=S-1;break}}break;case 3:this._executeHandlers[s]?this._executeHandlers[s]():this._executeHandlerFb(s),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:T,code:s,currentState:h,collect:v,params:y,abort:!1}).abort)return;break;case 7:for(var b=this._csiHandlers[v<<8|s],O=b?b.length-1:-1;O>=0&&b[O](y)===!1;O--);O<0&&this._csiHandlerFb(v<<8|s,y),this.precedingCodepoint=0;break;case 8:do switch(s){case 59:y.addParam(0);break;case 58:y.addSubParam(-1);break;default:y.addDigit(s-48)}while(++T<a&&(s=t[T])>47&&s<60);T--;break;case 9:v<<=8,v|=s;break;case 10:for(var I=this._escHandlers[v<<8|s],L=I?I.length-1:-1;L>=0&&I[L]()===!1;L--);L<0&&this._escHandlerFb(v<<8|s),this.precedingCodepoint=0;break;case 11:y.reset(),y.addParam(0),v=0;break;case 12:g.hook(v<<8|s,y);break;case 13:for(var N=T+1;;++N)if(N>=a||(s=t[N])===24||s===26||s===27||s>127&&s<160){g.put(t,T,N),T=N-1;break}break;case 14:g.unhook(s!==24&&s!==26),s===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0;break;case 4:p.start();break;case 5:for(var D=T+1;;D++)if(D>=a||(s=t[D])<32||s>127&&s<=159){p.put(t,T,D),T=D-1;break}break;case 6:p.end(s!==24&&s!==26),s===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0}h=15&u}this._collect=v,this.currentState=h},l}(m.Disposable);E.EscapeSequenceParser=n},function(_,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),l=C(5),t=C(1),a=C(25),s=C(0),u=1,h=function(p){function g(v,y,x,T,S,b,O,I,L){var N=p.call(this)||this;N._colors=v,N._screenElement=y,N._bufferService=S,N._charSizeService=b,N._optionsService=O,N._id=u++,N._onRequestRedraw=new s.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,O),new o.SelectionRenderLayer(N._screenElement,1,N._colors,N._id,N._bufferService,O),new i.LinkRenderLayer(N._screenElement,2,N._colors,N._id,x,T,N._bufferService,O),new r.CursorRenderLayer(N._screenElement,3,N._colors,N._id,N._onRequestRedraw,N._bufferService,O,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,l.ICharSizeService),f(6,t.IOptionsService),f(7,t.ICoreService),f(8,l.ICoreBrowserService)],g)}(e.Disposable);E.Renderer=h},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(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 l(t,a,s,u,h,p,g,v){var y=e.call(this,t,"text",a,h,s,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(l,e),l.prototype.resize=function(t){e.prototype.resize.call(this,t);var a=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===a||(this._characterWidth=t.scaledCharWidth,this._characterFont=a,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(t,a,s,u){for(var h=t;h<=a;h++)for(var p=h+this._bufferService.buffer.ydisp,g=this._bufferService.buffer.lines.get(p),v=s?s.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}}},l.prototype._drawBackground=function(t,a){var s=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()?s._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":s._colors.ansi[y.getFgColor()].css:y.isBgRGB()?S="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(S=s._colors.ansi[y.getBgColor()].css),v===null&&(p=x,g=T),T!==g?(u.fillStyle=v||"",s._fillCells(p,g,h-p,1),p=x,g=T):v!==S&&(u.fillStyle=v||"",s._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()},l.prototype._drawForeground=function(t,a){var s=this;this._forEachCell(t,a,this._characterJoinerRegistry,function(u,h,p){if(!u.isInvisible()&&(s._drawChars(u,h,p),u.isUnderline())){if(s._ctx.save(),u.isInverse())if(u.isBgDefault())s._ctx.fillStyle=s._colors.background.css;else if(u.isBgRGB())s._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getBgColor()).join(",")+")";else{var g=u.getBgColor();s._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&g<8&&(g+=8),s._ctx.fillStyle=s._colors.ansi[g].css}else if(u.isFgDefault())s._ctx.fillStyle=s._colors.foreground.css;else if(u.isFgRGB())s._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getFgColor()).join(",")+")";else{var v=u.getFgColor();s._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&v<8&&(v+=8),s._ctx.fillStyle=s._colors.ansi[v].css}s._fillBottomLineAtCells(h,p,u.getWidth()),s._ctx.restore()}})},l.prototype.onGridChanged=function(t,a){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,t,this._bufferService.cols,a-t+1),this._drawBackground(t,a),this._drawForeground(t,a))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(t){if(t.getWidth()!==1)return!1;if(t.getCode()<256)return!1;var a=t.getChars();if(this._characterOverlapCache.hasOwnProperty(a))return this._characterOverlapCache[a];this._ctx.save(),this._ctx.font=this._characterFont;var s=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=s,s},l}(f.BaseRenderLayer);E.TextRenderLayer=n},function(_,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(_,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(s,u){function h(){this.constructor=s}A(s,u),s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)});Object.defineProperty(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 l(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}E.getGlyphCacheKey=l;var t=function(s){function u(h,p){var g=s.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,s),u.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},u.prototype.beginFrame=function(){this._drawToCacheCount=0},u.prototype.draw=function(h,p,g,v){if(p.code===32)return!0;if(!this._canCache(p))return!1;var y=l(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,k=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]===k?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 O={index:p,isEmpty:T,inBitmap:!1};return this._addGlyphToBitmap(O),O},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(s){function u(h,p){return s.call(this)||this}return w(u,s),u.prototype.draw=function(h,p,g,v){return!1},u}(f.BaseCharAtlas);E.NoneCharAtlas=a},function(_,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(_,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(_,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(_,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,l){var t=f.call(this,o,"selection",r,!0,i,n,e,l)||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,l=Math.max(n,0),t=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var a=o[0],s=r[0]-a,u=t-l+1;this._fillCells(a,l,s,u)}else{a=n===l?o[0]:0;var h=l===t?r[0]:this._bufferService.cols;this._fillCells(a,l,h-a,1);var p=Math.max(t-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,p),l!==t){var 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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(E,"__esModule",{value:!0}),E.CursorRenderLayer=void 0;var m=C(13),f=C(4),c=function(r){function i(n,e,l,t,a,s,u,h,p){var g=r.call(this,n,"cursor",e,!0,l,t,s,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,l=e-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var a=this._optionsService.options.cursorStyle;return a&&a!=="block"?this._cursorRenderers[a](t,l,this._cell):this._renderBlurCursor(t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=a,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},i.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},i.prototype._renderBarCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,e,this._optionsService.options.cursorWidth),this._ctx.restore()},i.prototype._renderBlockCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,n,e),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},i.prototype._renderBlurCursor=function(n,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,l.getWidth(),1),this._ctx.restore()},i}(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 l=600-(Date.now()-n._animationTimeRestarted);return n._animationTimeRestarted=void 0,void n._restartInterval(l)}n.isCursorVisible=!n.isCursorVisible,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})},600)},i)},r.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(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,l,t,a,s,u,h){var p=r.call(this,n,"link",e,!0,l,t,u,h)||this;return a.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),a.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),s.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),s.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(_,E,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var l,t=arguments.length,a=t<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,n,e);else for(var s=r.length-1;s>=0;s--)(l=r[s])&&(a=(t<3?l(a):t>3?l(i,n,a):l(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},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,l=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,n,e,l,l);t.hasNext();)for(var a=t.next(),s=0;s<this._linkMatchers.length;s++)this._doLinkifyRow(a.range.first,a.content,this._linkMatchers[s]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(i,n,e){if(e===void 0&&(e={}),!n)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:i,handler:n,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},r.prototype._addLinkMatcherToList=function(i){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(i.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},r.prototype.deregisterLinkMatcher=function(i){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===i)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(i,n,e){for(var l,t=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),s=-1,u=function(){var g=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!g)return h._logService.debug("match found without corresponding matchIndex",l,e),"break";if(s=n.indexOf(g,s+1),a.lastIndex=s+g.length,s<0)return"break";var v=h._bufferService.buffer.stringIndexToBufferIndex(i,s);if(v[0]<0)return"break";var y=h._bufferService.buffer.lines.get(v[0]);if(!y)return"break";var 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;(l=a.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(i,n,e,l,t){var a=this;if(this._mouseZoneManager&&this._element){var s=this._unicodeService.getStringCellWidth(e),u=i%this._bufferService.cols,h=n+Math.floor(i/this._bufferService.cols),p=(u+s)%this._bufferService.cols,g=h+Math.floor((u+s)/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(l.handler)return l.handler(v,e);var y=window.open();y?(y.opener=null,y.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){a._onShowLinkUnderline.fire(a._createLinkHoverEvent(u,h,p,g,t)),a._element.classList.add("xterm-cursor-pointer")},function(v){a._onLinkTooltip.fire(a._createLinkHoverEvent(u,h,p,g,t)),l.hoverTooltipCallback&&l.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"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(v){return!l.willLinkActivate||l.willLinkActivate(v,e)}))}},r.prototype._createLinkHoverEvent=function(i,n,e,l,t){return{x1:i,y1:n,x2:e,y2:l,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=A([w(0,f.IBufferService),w(1,f.ILogService),w(2,f.IUnicodeService)],r)}();E.Linkifier=c;var o=function(i,n,e,l,t,a,s,u,h){this.x1=i,this.y1=n,this.x2=e,this.y2=l,this.clickCallback=t,this.hoverCallback=a,this.tooltipCallback=s,this.leaveCallback=u,this.willLinkActivate=h};E.MouseZone=o},function(_,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),l=C(30),t=C(53),a=C(2),s=String.fromCharCode(160),u=new RegExp(s,"g"),h=function(p){function g(v,y,x,T,S,b,O){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=O,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 O=T.translateBufferLineToString(b,!0,y[0],x[0]);S.push(O)}}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);O=T.translateBufferLineToString(b,!0),L&&L.isWrapped?S[S.length-1]+=O:S.push(O)}y[1]!==x[1]&&(L=T.lines.get(x[1]),O=T.translateBufferLineToString(x[1],!0,0,x[0]),L&&L.isWrapped?S[S.length-1]+=O:S.push(O))}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=l.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 O=S.translateBufferLineToString(v[1],!1),I=this._convertViewportColToCharacterIndex(b,v),L=I,N=v[0]-I,D=0,R=0,k=0,M=0;if(O.charAt(I)===" "){for(;I>0&&O.charAt(I-1)===" ";)I--;for(;L<O.length&&O.charAt(L+1)===" ";)L++}else{var j=v[0],F=v[0];b.getWidth(j)===0&&(D++,j--),b.getWidth(F)===2&&(R++,F++);var U=b.getString(F).length;for(U>1&&(M+=U-1,L+=U-1);j>0&&I>0&&!this._isCharWordSeparator(b.loadCell(j-1,this._workCell));){b.loadCell(j-1,this._workCell);var K=this._workCell.getChars().length;this._workCell.getWidth()===0?(D++,j--):K>1&&(k+=K-1,I-=K-1),I--,j--}for(;F<b.length&&L+1<O.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+k,Q=Math.min(this._bufferService.cols,L-I+D+R-k-M);if(y||O.slice(I,L).trim()!==""){if(x&&z===0&&b.getCodePoint(0)!==32){var Z=S.lines.get(v[1]-1);if(Z&&b.isWrapped&&Z.getCodePoint(this._bufferService.cols-1)!==32){var le=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(le){var ne=this._bufferService.cols-le.start;z-=ne,Q+=ne}}}if(T&&z+Q===this._bufferService.cols&&b.getCodePoint(this._bufferService.cols-1)!==32){var ve=S.lines.get(v[1]+1);if(ve&&ve.isWrapped&&ve.getCodePoint(0)!==32){var xe=this._getWordAt([0,v[1]+1],!1,!1,!0);xe&&(Q+=xe.length)}}return{start:z,length:Q}}}}},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(_,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(_,E,C){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.moveToCellSequence=void 0;var A=C(12);function w(i,n,e,l){var t=i-m(e,i),a=n-m(e,n);return r(Math.abs(t-a)-function(s,u,h){for(var p=0,g=s-m(h,s),v=u-m(h,u),y=0;y<Math.abs(g-v);y++){var x=f(s,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),l))}function m(i,n){for(var e=0,l=i.buffer.lines.get(n),t=l&&l.isWrapped;t&&n>=0&&n<i.rows;)e++,t=(l=i.buffer.lines.get(--n))&&l.isWrapped;return e}function f(i,n){return i>n?"A":"B"}function c(i,n,e,l,t,a){for(var s=i,u=n,h="";s!==e||u!==l;)s+=t?1:-1,t&&s>a.cols-1?(h+=a.buffer.translateBufferLineToString(u,!1,i,s),s=0,i=0,u++):!t&&s<0&&(h+=a.buffer.translateBufferLineToString(u,!1,0,i+1),i=s=a.cols-1,u--);return h+a.buffer.translateBufferLineToString(u,!1,i,s)}function o(i,n){var e=n?"O":"[";return A.C0.ESC+e+i}function r(i,n){i=Math.floor(i);for(var e="",l=0;l<i;l++)e+=n;return e}E.moveToCellSequence=function(i,n,e,l){var t,a=e.buffer.x,s=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,s,0,n,e,l)+w(s,n,e,l)+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(O,I,L,N,D,R){var k;return k=w(L,N,D,R).length>0?N-m(D,N):I,O<L&&k<=N||O>=L&&k<N?"C":"D"}(h,p,g,v,y,x);return r(c(h,T,g,S,b==="C",y).length,o(b,x))}(a,s,i,n,e,l);if(s===n)return t=a>i?"D":"C",r(Math.abs(a-i),o(t,l));t=s>n?"D":"C";var u=Math.abs(s-n);return r(function(h,p){return p.cols-h}(s>n?i:a,e)+(u-1)*e.cols+1+((s>n?a:i)-1),o(t,l))}},function(_,E,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,l=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(l=(e<3?n(l):e>3?n(o,r,l):n(o,r))||l);return e>3&&l&&Object.defineProperty(o,r,l),l},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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),m=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(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 l(t,a,s,u,h,p){var g=e.call(this)||this;return g._element=t,g._screenElement=a,g._bufferService=s,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(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(t,a){if(this._zones.length!==0){t&&a||(t=0,a=this._bufferService.rows-1);for(var s=0;s<this._zones.length;s++){var u=this._zones[s];(u.y1>t&&u.y1<=a+1||u.y2>t&&u.y2<=a+1||u.y1<t&&u.y2>a+1)&&(this._currentZone&&this._currentZone===u&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(s--,1))}this._zones.length===0&&this._deactivate()}},l.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},l.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},l.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},l.prototype._onHover=function(t){var a=this,s=this._findZoneEventAt(t);s!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),s&&(this._currentZone=s,s.hoverCallback&&s.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return a._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(t);a&&a.tooltipCallback&&a.tooltipCallback(t)},l.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var a=this._findZoneEventAt(t);(a==null?void 0:a.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(t){var a=this._findZoneEventAt(t),s=this._getSelectionLength();a&&s===this._initialSelectionLength&&(a.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},l.prototype._findZoneEventAt=function(t){var a=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var s=a[0],u=a[1],h=0;h<this._zones.length;h++){var p=this._zones[h];if(p.y1===p.y2){if(u===p.y1&&s>=p.x1&&s<p.x2)return p}else if(u===p.y1&&s>=p.x1||u===p.y2&&s<p.x2||u>p.y1&&u<p.y2)return p}},l=m([f(2,i.IBufferService),f(3,r.IMouseService),f(4,r.ISelectionService),f(5,i.IOptionsService)],l)}(c.Disposable);E.MouseZoneManager=n},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(t,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var h in u)u.hasOwnProperty(h)&&(s[h]=u[h])})(t,a)},function(l,t){function a(){this.constructor=l}A(l,t),l.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(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(l){function t(a,s){var u=l.call(this)||this;u._terminal=a,u._renderService=s,u._liveRegionLineCount=0,u._charsToConsume=[],u._charsToAnnounce="",u._accessibilityTreeRoot=document.createElement("div"),u._accessibilityTreeRoot.classList.add("xterm-accessibility"),u._rowContainer=document.createElement("div"),u._rowContainer.classList.add("xterm-accessibility-tree"),u._rowContainer.setAttribute("role","list"),u._rowElements=[];for(var h=0;h<u._terminal.rows;h++)u._rowElements[h]=u._createAccessibilityTreeNode(),u._rowContainer.appendChild(u._rowElements[h]);if(u._topBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,0)},u._bottomBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,1)},u._rowElements[0].addEventListener("focus",u._topBoundaryFocusListener),u._rowElements[u._rowElements.length-1].addEventListener("focus",u._bottomBoundaryFocusListener),u._refreshRowsDimensions(),u._accessibilityTreeRoot.appendChild(u._rowContainer),u._renderRowsDebouncer=new c.RenderDebouncer(u._renderRows.bind(u)),u._refreshRows(),u._liveRegion=document.createElement("div"),u._liveRegion.classList.add("live-region"),u._liveRegion.setAttribute("aria-live","assertive"),u._accessibilityTreeRoot.appendChild(u._liveRegion),!u._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return u._terminal.element.insertAdjacentElement("afterbegin",u._accessibilityTreeRoot),u.register(u._renderRowsDebouncer),u.register(u._terminal.onResize(function(p){return u._onResize(p.rows)})),u.register(u._terminal.onRender(function(p){return u._refreshRows(p.start,p.end)})),u.register(u._terminal.onScroll(function(){return u._refreshRows()})),u.register(u._terminal.onA11yChar(function(p){return u._onChar(p)})),u.register(u._terminal.onLineFeed(function(){return u._onChar(`
|
|
|
`)})),u.register(u._terminal.onA11yTab(function(p){return u._onTab(p)})),u.register(u._terminal.onKey(function(p){return u._onKey(p.key)})),u.register(u._terminal.onBlur(function(){return u._clearLiveRegion()})),u.register(u._renderService.onDimensionsChange(function(){return u._refreshRowsDimensions()})),u._screenDprMonitor=new i.ScreenDprMonitor,u.register(u._screenDprMonitor),u._screenDprMonitor.setListener(function(){return u._refreshRowsDimensions()}),u.register(o.addDisposableDomListener(window,"resize",function(){return u._refreshRowsDimensions()})),u}return w(t,l),t.prototype.dispose=function(){l.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(a,s){var u=a.target,h=this._rowElements[s===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(s===0?"1":""+this._terminal.buffer.lines.length)&&a.relatedTarget===h){var p,g;if(s===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),s===0){var v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else v=this._createAccessibilityTreeNode(),this._rowElements.push(v),this._rowContainer.appendChild(v);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(s===0?-1:1),this._rowElements[s===0?1:this._rowElements.length-2].focus(),a.preventDefault(),a.stopImmediatePropagation()}},t.prototype._onResize=function(a){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var s=this._rowContainer.children.length;s<this._terminal.rows;s++)this._rowElements[s]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[s]);for(;this._rowElements.length>a;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var a=document.createElement("div");return a.setAttribute("role","listitem"),a.tabIndex=-1,this._refreshRowDimensions(a),a},t.prototype._onTab=function(a){for(var s=0;s<a;s++)this._onChar(" ")},t.prototype._onChar=function(a){var s=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==a&&(this._charsToAnnounce+=a):this._charsToAnnounce+=a,a===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=m.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){s._accessibilityTreeRoot.appendChild(s._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&n.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},t.prototype._refreshRows=function(a,s){this._renderRowsDebouncer.refresh(a,s,this._terminal.rows)},t.prototype._renderRows=function(a,s){for(var u=this._terminal.buffer,h=u.lines.length.toString(),p=a;p<=s;p++){var 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(_,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),l=C(10),t=C(17),a=1,s=function(u){function h(p,g,v,y,x,T,S,b,O){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=O,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: "+l.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 O=y===T?p[0]:0,I=T===S?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(T,O,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,O=this._bufferService.buffer.lines.get(b),I=this._optionsService.options.cursorStyle;S.appendChild(this._rowFactory.createRow(O,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=s},function(_,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,l,t,a,s){for(var u=this._document.createDocumentFragment(),h=0,p=Math.min(i.length,s)-1;p>=0;p--)if(i.loadCell(p,this._workCell).getCode()!==w.NULL_CELL_CODE||n&&p===l){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===l)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 O=y;y=T,T=O;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 l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return l===void 0&&(l=f.color.ensureContrastRatio(n,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(i,"color:"+l.css),!0)},r.prototype._addStyle=function(i,n){i.setAttribute("style",""+(i.getAttribute("style")||"")+n+";")},r}();function o(r,i,n){for(;r.length<n;)r=i+r;return r}E.DomRendererRowFactory=c},function(_,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 l=m.ctrlKey?m.keyCode-64:m.keyCode+32;r.key=A.C0.ESC+String.fromCharCode(l)}}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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(s,u){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g])})(s,u)},function(a,s){function u(){this.constructor=a}A(a,s),a.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}),m=this&&this.__decorate||function(a,s,u,h){var p,g=arguments.length,v=g<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,u):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(a,s,u,h);else for(var y=a.length-1;y>=0;y--)(p=a[y])&&(v=(g<3?p(v):g>3?p(s,u,v):p(s,u))||v);return g>3&&v&&Object.defineProperty(s,u,v),v},f=this&&this.__param||function(a,s){return function(u,h){s(u,h,a)}};Object.defineProperty(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),l=C(5),t=function(a){function s(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(s,a),Object.defineProperty(s.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),s.prototype._onIntersectionChange=function(u){this._isPaused=u.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},s.prototype.refreshRows=function(u,h,p){p===void 0&&(p=!1),this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,h,this._rowCount))},s.prototype._renderRows=function(u,h){this._renderer.renderRows(u,h),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:u,end:h}),this._isNextRenderRedrawOnly=!0},s.prototype.resize=function(u,h){this._rowCount=h,this._fireOnCanvasResize()},s.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},s.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},s.prototype.dispose=function(){a.prototype.dispose.call(this)},s.prototype.setRenderer=function(u){var h=this;this._renderer.dispose(),this._renderer=u,this._renderer.onRequestRedraw(function(p){return h.refreshRows(p.start,p.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},s.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},s.prototype.setColors=function(u){this._renderer.setColors(u),this._fullRefresh()},s.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},s.prototype.onResize=function(u,h){this._renderer.onResize(u,h),this._fullRefresh()},s.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},s.prototype.onBlur=function(){this._renderer.onBlur()},s.prototype.onFocus=function(){this._renderer.onFocus()},s.prototype.onSelectionChanged=function(u,h,p){this._selectionState.start=u,this._selectionState.end=h,this._selectionState.columnSelectMode=p,this._renderer.onSelectionChanged(u,h,p)},s.prototype.onCursorMove=function(){this._renderer.onCursorMove()},s.prototype.clear=function(){this._renderer.clear()},s.prototype.registerCharacterJoiner=function(u){return this._renderer.registerCharacterJoiner(u)},s.prototype.deregisterCharacterJoiner=function(u){return this._renderer.deregisterCharacterJoiner(u)},s=m([f(3,e.IOptionsService),f(4,l.ICharSizeService),f(5,e.IBufferService)],s)}(r.Disposable);E.RenderService=t},function(_,E,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var l,t=arguments.length,a=t<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,n,e);else for(var s=r.length-1;s>=0;s--)(l=r[s])&&(a=(t<3?l(a):t>3?l(i,n,a):l(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},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(_,E,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,l=arguments.length,t=l<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(t=(l<3?e(t):l>3?e(r,i,t):e(r,i))||t);return l>3&&t&&Object.defineProperty(r,i,t),t},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,l){return f.getCoords(r,i,n,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},o.prototype.getRawByteCoords=function(r,i,n,e){var l=this.getCoords(r,i,n,e);return f.getRawByteCoords(l)},o=A([w(0,m.IRenderService),w(1,m.ICharSizeService)],o)}();E.MouseService=c},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),m=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(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 l(t){var a=e.call(this)||this;return a._bufferService=t,a._linkProviders=[],a._linkCacheDisposables=[],a._isMouseOut=!0,a._activeLine=-1,a._onShowLinkUnderline=a.register(new o.EventEmitter),a._onHideLinkUnderline=a.register(new o.EventEmitter),a.register(r.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return w(l,e),Object.defineProperty(l.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),l.prototype.registerLinkProvider=function(t){var a=this;return this._linkProviders.push(t),{dispose:function(){var u=a._linkProviders.indexOf(t);u!==-1&&a._linkProviders.splice(u,1)}}},l.prototype.attachToDom=function(t,a,s){var u=this;this._element=t,this._mouseService=a,this._renderService=s,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);if(a){this._isMouseOut=!1;for(var s=t.composedPath(),u=0;u<s.length;u++){var h=s[u];if(h.classList.contains("xterm"))break;if(h.classList.contains("xterm-hover"))return}this._lastBufferCell&&a.x===this._lastBufferCell.x&&a.y===this._lastBufferCell.y||(this._onHover(a),this._lastBufferCell=a)}}},l.prototype._onHover=function(t){if(this._activeLine!==t.y)return this._clearCurrentLink(),void this._askForLink(t,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,t)||(this._clearCurrentLink(),this._askForLink(t,!0))},l.prototype._askForLink=function(t,a){var s=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=t.y);var u=!1;this._linkProviders.forEach(function(h,p){var g;a?((g=s._activeProviderReplies)===null||g===void 0?void 0:g.get(p))&&(u=s._checkLinkProviderResult(p,t,u)):h.provideLinks(t.y,function(v){var y,x;if(!s._isMouseOut){var T=v==null?void 0:v.map(function(S){return{link:S}});(y=s._activeProviderReplies)===null||y===void 0||y.set(p,T),u=s._checkLinkProviderResult(p,t,u),((x=s._activeProviderReplies)===null||x===void 0?void 0:x.size)===s._linkProviders.length&&s._removeIntersectingLinks(t.y,s._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(t,a){for(var s=new Set,u=0;u<a.size;u++){var h=a.get(u);if(h)for(var p=0;p<h.length;p++)for(var 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(s.has(x)){h.splice(p--,1);break}s.add(x)}}},l.prototype._checkLinkProviderResult=function(t,a,s){var u,h=this;if(!this._activeProviderReplies)return s;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&&(s=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviders.length&&!s)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){s=!0,this._handleNewLink(x);break}}return s},l.prototype._onClick=function(t){if(this._element&&this._mouseService&&this._currentLink){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);a&&this._linkAtPosition(this._currentLink.link,a)&&this._currentLink.link.activate(t,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(t,a){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!a||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=a)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,r.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(t){var a=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(t.link,s)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var h,p;return(p=(h=a._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(h){var p,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)})))}},l.prototype._linkHover=function(t,a,s){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),a.hover&&a.hover(s,a.text)},l.prototype._fireUnderlineEvent=function(t,a){var s=t.range,u=this._bufferService.buffer.ydisp,h=this._createLinkUnderlineEvent(s.start.x-1,s.start.y-u-1,s.end.x,s.end.y-u-1,void 0);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(h)},l.prototype._linkLeave=function(t,a,s){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),a.leave&&a.leave(s,a.text)},l.prototype._linkAtPosition=function(t,a){var s=t.range.start.y===t.range.end.y,u=t.range.start.y<a.y,h=t.range.end.y>a.y;return(s&&t.range.start.x<=a.x&&t.range.end.x>=a.x||u&&t.range.end.x>=a.x||h&&t.range.start.x<=a.x||u&&h)&&t.range.start.y<=a.y&&t.range.end.y>=a.y},l.prototype._positionFromMouseEvent=function(t,a,s){var u=s.getCoords(t,a,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(t,a,s,u,h){return{x1:t,y1:a,x2:s,y2:u,cols:this._bufferService.cols,fg:h}},l=m([f(0,c.IBufferService)],l)}(r.Disposable);E.Linkifier2=n},function(_,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(_,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),l=C(76),t=C(77),a=C(78),s=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(l.CoreMouseService),T._instantiationService.setService(f.ICoreMouseService,T._coreMouseService),T._dirtyRowService=T._instantiationService.createInstance(t.DirtyRowService),T._instantiationService.setService(f.IDirtyRowService,T._dirtyRowService),T.unicodeService=T._instantiationService.createInstance(a.UnicodeService),T._instantiationService.setService(f.IUnicodeService,T.unicodeService),T._charsetService=T._instantiationService.createInstance(s.CharsetService),T._instantiationService.setService(f.ICharsetService,T._charsetService),T._inputHandler=new h.InputHandler(T._bufferService,T._charsetService,T._coreService,T._dirtyRowService,T._logService,T.optionsService,T._coreMouseService,T.unicodeService),T.register(e.forwardEvent(T._inputHandler.onLineFeed,T._onLineFeed)),T.register(T._inputHandler),T.register(e.forwardEvent(T._bufferService.onResize,T._onResize)),T.register(e.forwardEvent(T._coreService.onData,T._onData)),T.register(e.forwardEvent(T._coreService.onBinary,T._onBinary)),T.register(T.optionsService.onOptionChange(function(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 O=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-O+1;b.lines.shiftElements(O+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,O=T;b<O.length;b++)O[b].dispose()}}}},y}(m.Disposable);E.CoreTerminal=g},function(_,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 l=arguments[r],t=0,a=l.length;t<a;t++,e++)n[e]=l[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 l=e[n],t=l[0],a=l[1];this.set(t,a)}}return o.prototype.set=function(r,i){var n=this._entries.get(r);return this._entries.set(r,i),n},o.prototype.forEach=function(r){this._entries.forEach(function(i,n){return r(n,i)})},o.prototype.has=function(r){return this._entries.has(r)},o.prototype.get=function(r){return this._entries.get(r)},o}();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}),l=[],t=0,a=e;t<a.length;t++){var s=a[t],u=this._services.get(s.id);if(!u)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+s.id+".");l.push(u)}var h=e.length>0?e[0].index:i.length;if(i.length!==h)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(h+1)+" conflicts with "+i.length+" static arguments");return new(r.bind.apply(r,A([void 0],A(i,l))))},o}();E.InstantiationService=c},function(_,E,C){"use strict";var A=this&&this.__decorate||function(i,n,e,l){var t,a=arguments.length,s=a<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,n,e,l);else for(var u=i.length-1;u>=0;u--)(t=i[u])&&(s=(a<3?t(s):a>3?t(n,e,s):t(n,e))||s);return a>3&&s&&Object.defineProperty(n,e,s),s},w=this&&this.__param||function(i,n){return function(e,l){n(e,l,i)}},m=this&&this.__spreadArrays||function(){for(var i=0,n=0,e=arguments.length;n<e;n++)i+=arguments[n].length;var l=Array(i),t=0;for(n=0;n<e;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,t++)l[t]=a[s];return l};Object.defineProperty(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(l){l==="logLevel"&&e._updateLogLevel()})}return i.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},i.prototype._evalLazyOptionalParams=function(n){for(var e=0;e<n.length;e++)typeof n[e]=="function"&&(n[e]=n[e]())},i.prototype._log=function(n,e,l){this._evalLazyOptionalParams(l),n.call.apply(n,m([console,"xterm.js: "+e],l))},i.prototype.debug=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.DEBUG&&this._log(console.log,n,e)},i.prototype.info=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.INFO&&this._log(console.info,n,e)},i.prototype.warn=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.WARN&&this._log(console.warn,n,e)},i.prototype.error=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.ERROR&&this._log(console.error,n,e)},i=A([w(0,c.IOptionsService)],i)}();E.LogService=r},function(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),m=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(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 l(t){var a=e.call(this)||this;return a._optionsService=t,a.isUserScrolling=!1,a._onResize=new r.EventEmitter,a.cols=Math.max(t.options.cols,E.MINIMUM_COLS),a.rows=Math.max(t.options.rows,E.MINIMUM_ROWS),a.buffers=new o.BufferSet(t,a),a}return w(l,e),Object.defineProperty(l.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),l.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(t,a){this.cols=t,this.rows=a,this.buffers.resize(t,a),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:a})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=m([f(0,c.IOptionsService)],l)}(i.Disposable);E.BufferService=n},function(_,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 l in e)e.hasOwnProperty(l)&&(n[l]=e[l])})(r,i)},function(o,r){function i(){this.constructor=o}A(o,r),o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)});Object.defineProperty(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(_,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 l(t,a,s){this._hasScrollback=t,this._optionsService=a,this._bufferService=s,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=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 l.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new i.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(t,a){return new w.BufferLine(this._bufferService.cols,this.getNullCell(t),a)},Object.defineProperty(l.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCursorInViewport",{get:function(){var a=this.ybase+this.y-this.ydisp;return a>=0&&a<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var a=t+this._optionsService.options.scrollback;return a>E.MAX_BUFFER_SIZE?E.MAX_BUFFER_SIZE:a},l.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))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(t,a){var s=this.getNullCell(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,s);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,s)):this.ybase>0&&this.lines.length<=this.ybase+this.y+p+1?(this.ybase--,p++,this.ydisp>0&&this.ydisp--):this.lines.push(new w.BufferLine(t,s)));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,s);this._cols=t,this._rows=a},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(t,a){this._cols!==t&&(t>this._cols?this._reflowLarger(t,a):this._reflowSmaller(t,a))},l.prototype._reflowLarger=function(t,a){var s=c.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(w.DEFAULT_ATTR_DATA));if(s.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,s);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(t,a,u.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(t,a,s){for(var u=this.getNullCell(w.DEFAULT_ATTR_DATA),h=s;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-s,0)},l.prototype._reflowSmaller=function(t,a){for(var s=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 O=[],I=0;I<S;I++){var L=this.getBlankLine(w.DEFAULT_ATTR_DATA,!0);O.push(L)}O.length>0&&(u.push({start:p+v.length+h,newLines:O}),h+=O.length),v.push.apply(v,O);var N=T.length-1,D=T[N];D===0&&(D=T[--N]);for(var R=v.length-S-1,k=x;R>=0;){var M=Math.min(k,D);if(v[N].copyCellsFrom(v[R],k-M,D-M,M,!0),(D-=M)===0&&(D=T[--N]),(k-=M)===0){R--;var j=Math.max(R,0);k=c.getWrappedLineTrimmedLength(v,j,this._cols)}}for(I=0;I<v.length;I++)T[I]<t&&v[I].setCell(T[I],s);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 U=[],K=[];for(I=0;I<this.lines.length;I++)K.push(this.lines.get(I));var V=this.lines.length,z=V-1,Q=0,Z=u[Q];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+h);var le=0;for(I=Math.min(this.lines.maxLength-1,V+h-1);I>=0;I--)if(Z&&Z.start>z+le){for(var ne=Z.newLines.length-1;ne>=0;ne--)this.lines.set(I--,Z.newLines[ne]);I++,U.push({index:z+1,amount:Z.newLines.length}),le+=Z.newLines.length,Z=u[++Q]}else this.lines.set(I,K[z--]);var ve=0;for(I=U.length-1;I>=0;I--)U[I].index+=ve,this.lines.onInsertEmitter.fire(U[I]),ve+=U[I].amount;var xe=Math.max(0,V+h-this.lines.maxLength);xe>0&&this.lines.onTrimEmitter.fire(xe)}},l.prototype.stringIndexToBufferIndex=function(t,a,s){for(s===void 0&&(s=!1);a;){var u=this.lines.get(t);if(!u)return[-1,-1];for(var h=s?u.getTrimmedLength():u.length,p=0;p<h;++p)if(u.get(p)[f.CHAR_DATA_WIDTH_INDEX]&&(a-=u.get(p)[f.CHAR_DATA_CHAR_INDEX].length||1),a<0)return[t,p];t++}return[t,0]},l.prototype.translateBufferLineToString=function(t,a,s,u){s===void 0&&(s=0);var h=this.lines.get(t);return h?h.translateToString(a,s,u):""},l.prototype.getWrappedRangeForLine=function(t){for(var a=t,s=t;a>0&&this.lines.get(a).isWrapped;)a--;for(;s+1<this.lines.length&&this.lines.get(s+1).isWrapped;)s++;return{first:a,last:s}},l.prototype.setupTabStops=function(t){for(t!=null?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._cols;t+=this._optionsService.options.tabStopWidth)this.tabs[t]=!0},l.prototype.prevStop=function(t){for(t==null&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._cols?this._cols-1:t<0?0:t},l.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t<this._cols;);return t>=this._cols?this._cols-1:t<0?0:t},l.prototype.addMarker=function(t){var a=this,s=new o.Marker(t);return this.markers.push(s),s.register(this.lines.onTrim(function(u){s.line-=u,s.line<0&&s.dispose()})),s.register(this.lines.onInsert(function(u){s.line>=u.index&&(s.line+=u.amount)})),s.register(this.lines.onDelete(function(u){s.line>=u.index&&s.line<u.index+u.amount&&s.dispose(),s.line>u.index&&(s.line-=u.amount)})),s.register(s.onDispose(function(){return a._removeMarker(s)})),s},l.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},l.prototype.iterator=function(t,a,s,u,h){return new e(this,t,a,s,u,h)},l}();E.Buffer=n;var e=function(){function l(t,a,s,u,h,p){s===void 0&&(s=0),u===void 0&&(u=t.lines.length),h===void 0&&(h=0),p===void 0&&(p=0),this._buffer=t,this._trimRight=a,this._startIndex=s,this._endIndex=u,this._startOverscan=h,this._endOverscan=p,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return l.prototype.hasNext=function(){return this._current<this._endIndex},l.prototype.next=function(){var t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var a="",s=t.first;s<=t.last;++s)a+=this._buffer.translateBufferLineToString(s,this._trimRight);return this._current=t.last+1,{range:t,content:a}},l}();E.BufferStringIterator=e},function(_,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(_,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 l=[w.get(i)];n<w.length&&e.isWrapped;)l.push(e),e=w.get(++n);if(c>=i&&c<n)i+=l.length-1;else{for(var t=0,a=A(l,t,m),s=1,u=0;s<l.length;){var h=A(l,s,m),p=h-u,g=f-a,v=Math.min(p,g);l[t].copyCellsFrom(l[s],u,a,v,!1),(a+=v)===f&&(t++,a=0),(u+=v)===h&&(s++,u=0),a===0&&t!==0&&l[t-1].getWidth(f-1)===2&&(l[t].copyCellsFrom(l[t-1],f-1,a++,1,!1),l[t-1].setCell(f-1,o))}l[t].replaceCells(a,f,o);for(var y=0,x=l.length-1;x>0&&(x>t||l[x].getTrimmedLength()===0);x--)y++;y>0&&(r.push(i+l.length-y),r.push(y)),i+=l.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,s){return A(w,s,m)}).reduce(function(a,s){return a+s}),r=0,i=0,n=0;n<o;){if(o-n<f){c.push(o-n);break}r+=f;var e=A(w,i,m);r>e&&(r-=e,i++);var l=w[i].getWidth(r-1)===2;l&&r--;var t=l?f-1:f;c.push(t),n+=t}return c},E.getWrappedLineTrimmedLength=A},function(_,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(_,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 l=r[e];this.options[e]=l}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(r,i){if(!(r in 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(_,E,C){"use strict";var A,w=this&&this.__extends||(A=function(a,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])})(a,s)},function(t,a){function s(){this.constructor=t}A(t,a),t.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}),m=this&&this.__decorate||function(t,a,s,u){var h,p=arguments.length,g=p<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,s):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(t,a,s,u);else for(var v=t.length-1;v>=0;v--)(h=t[v])&&(g=(p<3?h(g):p>3?h(a,s,g):h(a,s))||g);return p>3&&g&&Object.defineProperty(a,s,g),g},f=this&&this.__param||function(t,a){return function(s,u){a(s,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}),l=function(t){function a(s,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=s,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(s,u){if(u===void 0&&(u=!1),!this._optionsService.options.disableStdin){var h=this._bufferService.buffer;h.ybase!==h.ydisp&&this._scrollToBottom(),u&&this._onUserInput.fire(),this._logService.debug('sending data "'+s+'"',function(){return s.split("").map(function(p){return p.charCodeAt(0)})}),this._onData.fire(s)}},a.prototype.triggerBinaryEvent=function(s){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+s+'"',function(){return s.split("").map(function(u){return u.charCodeAt(0)})}),this._onBinary.fire(s))},a=m([f(1,c.IBufferService),f(2,c.ILogService),f(3,c.IOptionsService)],a)}(i.Disposable);E.CoreService=l},function(_,E,C){"use strict";var A=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},w=this&&this.__param||function(e,l){return function(t,a){l(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(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function o(e,l){var t=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(t|=64,t|=e.action):(t|=3&e.button,4&e.button&&(t|=64),8&e.button&&(t|=128),e.action===32?t|=32:e.action!==0||l||(t|=3)),t}var r=String.fromCharCode,i={DEFAULT:function(l){var t=[o(l,!1)+32,l.col+32,l.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"[M"+r(t[0])+r(t[1])+r(t[2])},SGR:function(l){var t=l.action===0&&l.button!==4?"m":"M";return"[<"+o(l,!0)+";"+l.col+";"+l.row+t}},n=function(){function e(l,t){this._bufferService=l,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var a=0,s=Object.keys(c);a<s.length;a++){var u=s[a];this.addProtocol(u,c[u])}for(var h=0,p=Object.keys(i);h<p.length;h++){var g=p[h];this.addEncoding(g,i[g])}this.reset()}return e.prototype.addProtocol=function(l,t){this._protocols[l]=t},e.prototype.addEncoding=function(l,t){this._encodings[l]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(t){if(!this._protocols[t])throw new Error('unknown protocol "'+t+'"');this._activeProtocol=t,this._onProtocolChange.fire(this._protocols[t].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(t){if(!this._encodings[t])throw new Error('unknown encoding "'+t+'"');this._activeEncoding=t},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(l){if(l.col<0||l.col>=this._bufferService.cols||l.row<0||l.row>=this._bufferService.rows)return!1;if(l.button===4&&l.action===32)return!1;if(l.button===3&&l.action!==32)return!1;if(l.button!==4&&(l.action===2||l.action===3))return!1;if(l.col++,l.row++,l.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,l))return!1;if(!this._protocols[this._activeProtocol].restrict(l))return!1;var t=this._encodings[this._activeEncoding](l);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=l,!0},e.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},e.prototype._compareEvents=function(l,t){return l.col===t.col&&l.row===t.row&&l.button===t.button&&l.action===t.action&&l.ctrl===t.ctrl&&l.alt===t.alt&&l.shift===t.shift},e=A([w(0,m.IBufferService),w(1,m.ICoreService)],e)}();E.CoreMouseService=n},function(_,E,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,l=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(l=(e<3?n(l):e>3?n(o,r,l):n(o,r))||l);return e>3&&l&&Object.defineProperty(o,r,l),l},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(_,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(_,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,l=0,t=n.length-1;if(i<n[0][0]||i>n[t][1])return!1;for(;t>=l;)if(i>n[e=l+t>>1][1])l=e+1;else{if(!(i<n[e][0]))return!0;t=e-1}return!1}(r,f)?0:r>=131072&&r<=196605||r>=196608&&r<=262141?2:1},o}();E.UnicodeV6=c},function(_,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(_,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(_,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(_,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 _=d("knOB"),E=d("qZFw"),C=function(w){this.name=w||"",this.cx=0,this.cy=0,this._radiusAxis=new _,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,l=e<r?1:-1;e<r||e>i;)e+=l*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,l=n*n+e*e,t=this.r,a=this.r0;return l<=t*t&&l>=a*a}}}};var A=C;H.exports=A},"/WM3":function(H,B,d){var _=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: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(l){f.setItemVisual(l,"color",r(w.getDataParams(l)))});var e=function(l,t){var a=l.getItemModel(t),s=a.get(c,!0),u=a.get(i,!0);s!=null&&l.setItemVisual(t,"color",s),u!=null&&l.setItemVisual(t,"borderColor",u)};return{dataEach:f.hasItemOption?e:null}}}};H.exports=A},"/d5a":function(H,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]}},_=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],l=Math.round(f.count()/e);if(l>1){var t;typeof c=="string"?t=d[c]:typeof c=="function"&&(t=c),t&&A.setData(f.downSample(f.mapDimension(i.dim),1/l,t,_))}}}}}H.exports=E},"/ezw":function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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 U=F.prefixCls,K=F.className,V=F.width,z=F.style;return f.createElement("h3",{className:o()(U,K),style:A()({width:V},z)})},i=r,n=d("RIqP"),e=d.n(n),l=function(F){var U=function(ne){var ve=F.width,xe=F.rows,_e=xe===void 0?2:xe;return Array.isArray(ve)?ve[ne]:_e-1===ne?ve:void 0},K=F.prefixCls,V=F.className,z=F.style,Q=F.rows,Z=e()(Array(Q)).map(function(le,ne){return f.createElement("li",{key:ne,style:{width:U(ne)}})});return f.createElement("ul",{className:o()(K,V),style:z},Z)},t=l,a=d("H84U"),s=function(F){var U,K,V=F.prefixCls,z=F.className,Q=F.style,Z=F.size,le=F.shape,ne=o()((U={},E()(U,"".concat(V,"-lg"),Z==="large"),E()(U,"".concat(V,"-sm"),Z==="small"),U)),ve=o()((K={},E()(K,"".concat(V,"-circle"),le==="circle"),E()(K,"".concat(V,"-square"),le==="square"),E()(K,"".concat(V,"-round"),le==="round"),K)),xe=typeof Z=="number"?{width:Z,height:Z,lineHeight:"".concat(Z,"px")}:{};return f.createElement("span",{className:o()(V,z,ne,ve),style:A()(A()({},xe),Q)})},u=s,h=d("BGR+"),p=function(F){var U=function(V){var z=V.getPrefixCls,Q=F.prefixCls,Z=F.className,le=F.active,ne=z("skeleton",Q),ve=Object(h.default)(F,["prefixCls"]),xe=o()(ne,Z,"".concat(ne,"-element"),E()({},"".concat(ne,"-active"),le));return f.createElement("div",{className:xe},f.createElement(u,A()({prefixCls:"".concat(ne,"-avatar")},ve)))};return f.createElement(a.a,null,U)};p.defaultProps={size:"default",shape:"circle"};var g=p,v=function(F){var U=function(V){var z=V.getPrefixCls,Q=F.prefixCls,Z=F.className,le=F.active,ne=z("skeleton",Q),ve=Object(h.default)(F,["prefixCls"]),xe=o()(ne,Z,"".concat(ne,"-element"),E()({},"".concat(ne,"-active"),le));return f.createElement("div",{className:xe},f.createElement(u,A()({prefixCls:"".concat(ne,"-button")},ve)))};return f.createElement(a.a,null,U)};v.defaultProps={size:"default"};var y=v,x=function(F){var U=function(V){var z=V.getPrefixCls,Q=F.prefixCls,Z=F.className,le=F.active,ne=z("skeleton",Q),ve=Object(h.default)(F,["prefixCls"]),xe=o()(ne,Z,"".concat(ne,"-element"),E()({},"".concat(ne,"-active"),le));return f.createElement("div",{className:xe},f.createElement(u,A()({prefixCls:"".concat(ne,"-input")},ve)))};return f.createElement(a.a,null,U)};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 U=function(V){var z=V.getPrefixCls,Q=F.prefixCls,Z=F.className,le=F.style,ne=z("skeleton",Q),ve=o()(ne,Z,"".concat(ne,"-element"));return f.createElement("div",{className:ve},f.createElement("div",{className:o()("".concat(ne,"-image"),Z),style:le},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,U)},O=b;function I(j){return j&&m()(j)==="object"?j:{}}function L(j,F){return j&&!F?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function N(j,F){return!j&&F?{width:"38%"}:j&&F?{width:"50%"}:{}}function D(j,F){var U={};return(!j||!F)&&(U.width="61%"),!j&&F?U.rows=3:U.rows=2,U}var R=function(F){var U=function(V){var z=V.getPrefixCls,Q=V.direction,Z=F.prefixCls,le=F.loading,ne=F.className,ve=F.children,xe=F.avatar,_e=F.title,Be=F.paragraph,me=F.active,Fe=F.round,ie=z("skeleton",Z);if(le||!("loading"in F)){var te,Ge=!!xe,oe=!!_e,Y=!!Be,G;if(Ge){var X=A()(A()({prefixCls:"".concat(ie,"-avatar")},L(oe,Y)),I(xe));G=f.createElement("div",{className:"".concat(ie,"-header")},f.createElement(u,X))}var fe;if(oe||Y){var de;if(oe){var Ce=A()(A()({prefixCls:"".concat(ie,"-title")},N(Ge,Y)),I(_e));de=f.createElement(i,Ce)}var Me;if(Y){var ue=A()(A()({prefixCls:"".concat(ie,"-paragraph")},D(Ge,oe)),I(Be));Me=f.createElement(t,ue)}fe=f.createElement("div",{className:"".concat(ie,"-content")},de,Me)}var Ae=o()(ie,ne,(te={},E()(te,"".concat(ie,"-with-avatar"),Ge),E()(te,"".concat(ie,"-active"),me),E()(te,"".concat(ie,"-rtl"),Q==="rtl"),E()(te,"".concat(ie,"-round"),Fe),te));return f.createElement("div",{className:Ae},G,fe)}return ve};return f.createElement(a.a,null,U)};R.defaultProps={avatar:!1,title:!0,paragraph:!0},R.Button=y,R.Avatar=g,R.Input=T,R.Image=O;var k=R,M=B.a=k},"/iHx":function(H,B,d){var _=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 _.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 _=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}});_.mixin(w,A,!0);var m=w;H.exports=m},"/stD":function(H,B,d){var _=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:_.clone(A.title)};var m=w.prototype;m.render=m.updateView=function(c,o,r){var i,n,e;o.eachComponent({mainType:"brush"},function(l){i=l.brushType,n=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=i,this._brushMode=n,_.each(c.get("type",!0),function(l){c.setIconStatus(l,(l==="keep"?n==="multiple":l==="clear"?e:l===i)?"emphasis":"normal")})},m.getIcons=function(){var c=this.model,o=c.get("icon",!0),r={};return _.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 _=d("lSNA"),E=d.n(_),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"),l=d.n(e),t=d("q1tI"),a=d("Ff2n"),s=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"),O=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,Me,ue){de.addEventListener?de.addEventListener(Ce,Me,ue):de.attachEvent&&de.attachEvent("on".concat(Ce),Me)}function k(de,Ce,Me,ue){de.removeEventListener?de.removeEventListener(Ce,Me,ue):de.attachEvent&&de.detachEvent("on".concat(Ce),Me)}function M(de,Ce){var Me=typeof de=="function"?de(Ce):de;return Array.isArray(Me)?Me.length===2?Me:[Me[0],Me[1]]:[Me]}var j=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},F=!(typeof window!="undefined"&&window.document&&window.document.createElement),U=function de(Ce,Me,ue,Ae){if(!Me||Me===document||Me instanceof Document)return!1;if(Me===Ce.parentNode)return!0;var Te=Math.max(Math.abs(ue),Math.abs(Ae))===Math.abs(Ae),Je=Math.max(Math.abs(ue),Math.abs(Ae))===Math.abs(ue),At=Me.scrollHeight-Me.clientHeight,qe=Me.scrollWidth-Me.clientWidth,Re=document.defaultView.getComputedStyle(Me),Lt=Re.overflowY==="auto"||Re.overflowY==="scroll",$e=Re.overflowX==="auto"||Re.overflowX==="scroll",Et=At&&Lt,Ut=qe&&$e;return Te&&(!Et||Et&&(Me.scrollTop>=At&&Ae<0||Me.scrollTop<=0&&Ae>0))||Je&&(!Ut||Ut&&(Me.scrollLeft>=qe&&ue<0||Me.scrollLeft<=0&&ue>0))?de(Ce,Me.parentNode,ue,Ae):!1};function K(de){var Ce=V();return function(){var ue=Object(g.a)(de),Ae;if(Ce){var Te=Object(g.a)(this).constructor;Ae=Reflect.construct(ue,arguments,Te)}else Ae=ue.apply(this,arguments);return Object(p.a)(this,Ae)}}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={},Q=function(de){Object(h.a)(Me,de);var Ce=K(Me);function Me(ue){var Ae;return Object(s.a)(this,Me),Ae=Ce.call(this,ue),Ae.domFocus=function(){Ae.dom&&Ae.dom.focus()},Ae.removeStartHandler=function(Te){if(Te.touches.length>1)return;Ae.startPos={x:Te.touches[0].clientX,y:Te.touches[0].clientY}},Ae.removeMoveHandler=function(Te){if(Te.changedTouches.length>1)return;var Je=Te.currentTarget,At=Te.changedTouches[0].clientX-Ae.startPos.x,qe=Te.changedTouches[0].clientY-Ae.startPos.y;(Je===Ae.maskDom||Je===Ae.handlerDom||Je===Ae.contentDom&&U(Je,Te.target,At,qe))&&Te.cancelable&&Te.preventDefault()},Ae.transitionEnd=function(Te){var Je=Te.target;k(Je,D,Ae.transitionEnd),Je.style.transition=""},Ae.onKeyDown=function(Te){if(Te.keyCode===O.a.ESC){var Je=Ae.props.onClose;Te.stopPropagation(),Je&&Je(Te)}},Ae.onWrapperTransitionEnd=function(Te){var Je=Ae.props,At=Je.open,qe=Je.afterVisibleChange;Te.target===Ae.contentWrapper&&Te.propertyName.match(/transform$/)&&(Ae.dom.style.transition="",!At&&Ae.getCurrentDrawerSome()&&(document.body.style.overflowX="",Ae.maskDom&&(Ae.maskDom.style.left="",Ae.maskDom.style.width="")),qe&&qe(!!At))},Ae.openLevelTransition=function(){var Te=Ae.props,Je=Te.open,At=Te.width,qe=Te.height,Re=Ae.getHorizontalBoolAndPlacementName(),Lt=Re.isHorizontal,$e=Re.placementName,Et=Ae.contentDom?Ae.contentDom.getBoundingClientRect()[Lt?"width":"height"]:0,Ut=(Lt?At:qe)||Et;Ae.setLevelAndScrolling(Je,$e,Ut)},Ae.setLevelTransform=function(Te,Je,At,qe){var Re=Ae.props,Lt=Re.placement,$e=Re.levelMove,Et=Re.duration,Ut=Re.ease,Bt=Re.showMask;Ae.levelDom.forEach(function(_t){_t.style.transition="transform ".concat(Et," ").concat(Ut),R(_t,D,Ae.transitionEnd);var jt=Te?At:0;if($e){var He=M($e,{target:_t,open:Te});jt=Te?He[0]:He[1]||0}var se=typeof jt=="number"?"".concat(jt,"px"):jt,J=Lt==="left"||Lt==="top"?se:"-".concat(se);J=Bt&&Lt==="right"&&qe?"calc(".concat(J," + ").concat(qe,"px)"):J,_t.style.transform=jt?"".concat(Je,"(").concat(J,")"):""})},Ae.setLevelAndScrolling=function(Te,Je,At){var qe=Ae.props.onChange;if(!F){var Re=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(b.a)(!0):0;Ae.setLevelTransform(Te,Je,At,Re),Ae.toggleScrollingToDrawerAndBody(Re)}qe&&qe(Te)},Ae.toggleScrollingToDrawerAndBody=function(Te){var Je=Ae.props,At=Je.getOpenCount,qe=Je.getContainer,Re=Je.showMask,Lt=Je.open,$e=qe&&qe(),Et=At&&At();if($e&&$e.parentNode===document.body&&Re){var Ut=["touchstart"],Bt=[document.body,Ae.maskDom,Ae.handlerDom,Ae.contentDom];Lt&&document.body.style.overflow!=="hidden"?(Te&&Ae.addScrollingEffect(Te),Et===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Bt.forEach(function(_t,jt){if(!_t)return;R(_t,Ut[jt]||"touchmove",jt?Ae.removeMoveHandler:Ae.removeStartHandler,Ae.passive)})):Ae.getCurrentDrawerSome()&&(Et||(document.body.style.overflow=""),document.body.style.touchAction="",Te&&Ae.remScrollingEffect(Te),Bt.forEach(function(_t,jt){if(!_t)return;k(_t,Ut[jt]||"touchmove",jt?Ae.removeMoveHandler:Ae.removeStartHandler,Ae.passive)}))}},Ae.addScrollingEffect=function(Te){var Je=Ae.props,At=Je.placement,qe=Je.duration,Re=Je.ease,Lt=Je.getOpenCount,$e=Je.switchScrollingEffect,Et=Lt&&Lt();Et===1&&$e();var Ut="width ".concat(qe," ").concat(Re),Bt="transform ".concat(qe," ").concat(Re);Ae.dom.style.transition="none";switch(At){case"right":Ae.dom.style.transform="translateX(-".concat(Te,"px)");break;case"top":case"bottom":Ae.dom.style.width="calc(100% - ".concat(Te,"px)"),Ae.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(Ae.timeout),Ae.timeout=setTimeout(function(){Ae.dom&&(Ae.dom.style.transition="".concat(Bt,",").concat(Ut),Ae.dom.style.width="",Ae.dom.style.transform="")})},Ae.remScrollingEffect=function(Te){var Je=Ae.props,At=Je.placement,qe=Je.duration,Re=Je.ease,Lt=Je.getOpenCount,$e=Je.switchScrollingEffect,Et=Lt&&Lt();Et||$e(!0),N&&(document.body.style.overflowX="hidden"),Ae.dom.style.transition="none";var Ut,Bt="width ".concat(qe," ").concat(Re),_t="transform ".concat(qe," ").concat(Re);switch(At){case"left":{Ae.dom.style.width="100%",Bt="width 0s ".concat(Re," ").concat(qe);break}case"right":{Ae.dom.style.transform="translateX(".concat(Te,"px)"),Ae.dom.style.width="100%",Bt="width 0s ".concat(Re," ").concat(qe),Ae.maskDom&&(Ae.maskDom.style.left="-".concat(Te,"px"),Ae.maskDom.style.width="calc(100% + ".concat(Te,"px)"));break}case"top":case"bottom":{Ae.dom.style.width="calc(100% + ".concat(Te,"px)"),Ae.dom.style.height="100%",Ae.dom.style.transform="translateZ(0)",Ut="height 0s ".concat(Re," ").concat(qe);break}default:break}clearTimeout(Ae.timeout),Ae.timeout=setTimeout(function(){Ae.dom&&(Ae.dom.style.transition="".concat(_t,",").concat(Ut?"".concat(Ut,","):"").concat(Bt),Ae.dom.style.transform="",Ae.dom.style.width="",Ae.dom.style.height="")})},Ae.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(Te){return z[Te]})},Ae.getLevelDom=function(Te){var Je=Te.level,At=Te.getContainer;if(F)return;var qe=At&&At(),Re=qe?qe.parentNode:null;if(Ae.levelDom=[],Je==="all"){var Lt=Re?Array.prototype.slice.call(Re.children):[];Lt.forEach(function($e){$e.nodeName!=="SCRIPT"&&$e.nodeName!=="STYLE"&&$e.nodeName!=="LINK"&&$e!==qe&&Ae.levelDom.push($e)})}else Je&&I(Je).forEach(function($e){document.querySelectorAll($e).forEach(function(Et){Ae.levelDom.push(Et)})})},Ae.getHorizontalBoolAndPlacementName=function(){var Te=Ae.props.placement,Je=Te==="left"||Te==="right",At="translate".concat(Je?"X":"Y");return{isHorizontal:Je,placementName:At}},Ae.state={_self:Object(x.a)(Ae)},Ae}return Object(u.a)(Me,[{key:"componentDidMount",value:function(){var Ae=this;if(!F){var Te=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Te=!0,null}}))}catch(Lt){}this.passive=Te?{passive:!1}:!1}var Je=this.props,At=Je.open,qe=Je.getContainer,Re=qe&&qe();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),At&&(Re&&Re.parentNode===document.body&&(z[this.drawerId]=At),this.openLevelTransition(),this.forceUpdate(function(){Ae.domFocus()}))}},{key:"componentDidUpdate",value:function(Ae){var Te=this.props,Je=Te.open,At=Te.getContainer,qe=At&&At();Je!==Ae.open&&(Je&&this.domFocus(),qe&&qe.parentNode===document.body&&(z[this.drawerId]=!!Je),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var Ae=this.props,Te=Ae.getOpenCount,Je=Ae.open,At=Ae.switchScrollingEffect,qe=typeof Te=="function"&&Te();delete z[this.drawerId],Je&&(this.setLevelTransform(!1),document.body.style.touchAction=""),qe||(document.body.style.overflow="",At(!0))}},{key:"render",value:function(){var Ae,Te=this,Je=this.props,At=Je.className,qe=Je.children,Re=Je.style,Lt=Je.width,$e=Je.height,Et=Je.defaultOpen,Ut=Je.open,Bt=Je.prefixCls,_t=Je.placement,jt=Je.level,He=Je.levelMove,se=Je.ease,J=Je.duration,Ue=Je.getContainer,Le=Je.handler,ee=Je.onChange,ct=Je.afterVisibleChange,Mt=Je.showMask,ot=Je.maskClosable,Yt=Je.maskStyle,or=Je.onClose,Zr=Je.onHandleClick,ir=Je.keyboard,dr=Je.getOpenCount,qt=Je.switchScrollingEffect,Ht=Object(a.a)(Je,["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"]),lt=this.dom?Ut:!1,Hr=S()(Bt,(Ae={},Object(y.a)(Ae,"".concat(Bt,"-").concat(_t),!0),Object(y.a)(Ae,"".concat(Bt,"-open"),lt),Object(y.a)(Ae,At||"",!!At),Object(y.a)(Ae,"no-mask",!Mt),Ae)),dn=this.getHorizontalBoolAndPlacementName(),Nn=dn.placementName,Wn=_t==="left"||_t==="top"?"-100%":"100%",gi=lt?"":"".concat(Nn,"(").concat(Wn,")"),yn=Le&&t.cloneElement(Le,{onClick:function(Ft){Le.props.onClick&&Le.props.onClick(),Zr&&Zr(Ft)},ref:function(Ft){Te.handlerDom=Ft}});return t.createElement("div",Object.assign({},Ht,{tabIndex:-1,className:Hr,style:Re,ref:function(Ft){Te.dom=Ft},onKeyDown:lt&&ir?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Mt&&t.createElement("div",{className:"".concat(Bt,"-mask"),onClick:ot?or:void 0,style:Yt,ref:function(Ft){Te.maskDom=Ft}}),t.createElement("div",{className:"".concat(Bt,"-content-wrapper"),style:{transform:gi,msTransform:gi,width:j(Lt)?"".concat(Lt,"px"):Lt,height:j($e)?"".concat($e,"px"):$e},ref:function(Ft){Te.contentWrapper=Ft}},t.createElement("div",{className:"".concat(Bt,"-content"),ref:function(Ft){Te.contentDom=Ft},onTouchStart:lt&&Mt?this.removeStartHandler:void 0,onTouchMove:lt&&Mt?this.removeMoveHandler:void 0},qe),yn))}}],[{key:"getDerivedStateFromProps",value:function(Ae,Te){var Je=Te.prevProps,At=Te._self,qe={prevProps:Ae};if(Je!==void 0){var Re=Ae.placement,Lt=Ae.level;Re!==Je.placement&&(At.contentDom=null),Lt!==Je.level&&At.getLevelDom(Ae)}return qe}}]),Me}(t.Component);Q.defaultProps={switchScrollingEffect:function(){}};var Z=Q;function le(de){var Ce=ne();return function(){var ue=Object(g.a)(de),Ae;if(Ce){var Te=Object(g.a)(this).constructor;Ae=Reflect.construct(ue,arguments,Te)}else Ae=ue.apply(this,arguments);return Object(p.a)(this,Ae)}}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 ve=function(de){Object(h.a)(Me,de);var Ce=le(Me);function Me(ue){var Ae;Object(s.a)(this,Me),Ae=Ce.call(this,ue),Ae.onHandleClick=function(Je){var At=Ae.props,qe=At.onHandleClick,Re=At.open;if(qe&&qe(Je),typeof Re=="undefined"){var Lt=Ae.state.open;Ae.setState({open:!Lt})}},Ae.onClose=function(Je){var At=Ae.props,qe=At.onClose,Re=At.open;qe&&qe(Je),typeof Re=="undefined"&&Ae.setState({open:!1})};var Te=typeof ue.open!="undefined"?ue.open:!!ue.defaultOpen;return Ae.state={open:Te},"onMaskClick"in ue&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),Ae}return Object(u.a)(Me,[{key:"render",value:function(){var Ae=this,Te=this.props,Je=Te.defaultOpen,At=Te.getContainer,qe=Te.wrapperClassName,Re=Te.forceRender,Lt=Te.handler,$e=Object(a.a)(Te,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),Et=this.state.open;if(!At)return t.createElement("div",{className:qe,ref:function(_t){Ae.dom=_t}},t.createElement(Z,Object.assign({},$e,{open:Et,handler:Lt,getContainer:function(){return Ae.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ut=!!Lt||Re;return t.createElement(v.a,{visible:Et,forceRender:Ut,getContainer:At,wrapperClassName:qe},function(Bt){var _t=Bt.visible,jt=Bt.afterClose,He=Object(a.a)(Bt,["visible","afterClose"]);return t.createElement(Z,Object.assign({},$e,He,{open:_t!==void 0?_t:Et,afterVisibleChange:jt!==void 0?jt:$e.afterVisibleChange,handler:Lt,onClose:Ae.onClose,onHandleClick:Ae.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(Ae,Te){var Je=Te.prevProps,At={prevProps:Ae};return typeof Je!="undefined"&&Ae.open!==Je.open&&(At.open=Ae.open),At}}]),Me}(t.Component);ve.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:t.createElement("div",{className:"drawer-handle"},t.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var xe=ve,_e=xe,Be=d("V/uB"),me=d.n(Be),Fe=d("BGR+"),ie=d("H84U"),te=d("CWQg"),Ge=function(de,Ce){var Me={};for(var ue in de)Object.prototype.hasOwnProperty.call(de,ue)&&Ce.indexOf(ue)<0&&(Me[ue]=de[ue]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ue=Object.getOwnPropertySymbols(de);Ae<ue.length;Ae++)Ce.indexOf(ue[Ae])<0&&Object.prototype.propertyIsEnumerable.call(de,ue[Ae])&&(Me[ue[Ae]]=de[ue[Ae]]);return Me},oe=t.createContext(null),Y=Object(te.a)("top","right","bottom","left"),G={distance:180},X=function(de){n()(Me,de);var Ce=l()(Me);function Me(){var ue;return m()(this,Me),ue=Ce.apply(this,arguments),ue.state={push:!1},ue.push=function(){ue.props.push&&ue.setState({push:!0})},ue.pull=function(){ue.props.push&&ue.setState({push:!1})},ue.onDestroyTransitionEnd=function(){var Ae=ue.getDestroyOnClose();if(!Ae)return;ue.props.visible||(ue.destroyClose=!0,ue.forceUpdate())},ue.getDestroyOnClose=function(){return ue.props.destroyOnClose&&!ue.props.visible},ue.getPushDistance=function(){var Ae=ue.props.push,Te;return typeof Ae=="boolean"?Te=Ae?G.distance:0:Te=Ae.distance,parseFloat(String(Te||0))},ue.getPushTransform=function(Ae){var Te=ue.getPushDistance();if(Ae==="left"||Ae==="right")return"translateX(".concat(Ae==="left"?Te:-Te,"px)");if(Ae==="top"||Ae==="bottom")return"translateY(".concat(Ae==="top"?Te:-Te,"px)")},ue.getRcDrawerStyle=function(){var Ae=ue.props,Te=Ae.zIndex,Je=Ae.placement,At=Ae.mask,qe=Ae.style,Re=ue.state.push,Lt=At?{}:ue.getOffsetStyle();return A()(A()({zIndex:Te,transform:Re?ue.getPushTransform(Je):void 0},Lt),qe)},ue.renderBody=function(){var Ae=ue.props,Te=Ae.bodyStyle,Je=Ae.drawerStyle,At=Ae.prefixCls,qe=Ae.visible;if(ue.destroyClose&&!qe)return null;ue.destroyClose=!1;var Re={},Lt=ue.getDestroyOnClose();return Lt&&(Re.opacity=0,Re.transition="opacity .3s"),t.createElement("div",{className:"".concat(At,"-wrapper-body"),style:A()(A()({},Re),Je),onTransitionEnd:ue.onDestroyTransitionEnd},ue.renderHeader(),t.createElement("div",{className:"".concat(At,"-body"),style:Te},ue.props.children),ue.renderFooter())},ue.renderProvider=function(Ae){return ue.parentDrawer=Ae,t.createElement(ie.a,null,function(Te){var Je=Te.getPopupContainer,At=Te.getPrefixCls,qe=ue.props,Re=qe.prefixCls,Lt=qe.placement,$e=qe.className,Et=qe.mask,Ut=qe.direction,Bt=qe.visible,_t=Ge(qe,["prefixCls","placement","className","mask","direction","visible"]),jt=At("select",Re),He=S()($e,E()({"no-mask":!Et},"".concat(jt,"-rtl"),Ut==="rtl")),se=Et?ue.getOffsetStyle():{};return t.createElement(oe.Provider,{value:r()(ue)},t.createElement(_e,A()({handler:!1},Object(Fe.default)(_t,["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:_t.getContainer===void 0&&Je?function(){return Je(document.body)}:_t.getContainer},se,{prefixCls:jt,open:Bt,showMask:Et,placement:Lt,style:ue.getRcDrawerStyle(),className:He}),ue.renderBody()))})},ue}return c()(Me,[{key:"componentDidMount",value:function(){var Ae=this.props.visible;Ae&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(Ae){var Te=this.props.visible;Ae.visible!==Te&&this.parentDrawer&&(Te?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var Ae=this.props,Te=Ae.placement,Je=Ae.width,At=Ae.height,qe=Ae.visible,Re=Ae.mask;if(!qe&&!Re)return{};var Lt={};return Te==="left"||Te==="right"?Lt.width=Je:Lt.height=At,Lt}},{key:"renderHeader",value:function(){var Ae=this.props,Te=Ae.title,Je=Ae.prefixCls,At=Ae.closable,qe=Ae.headerStyle;if(!Te&&!At)return null;var Re=Te?"".concat(Je,"-header"):"".concat(Je,"-header-no-title");return t.createElement("div",{className:Re,style:qe},Te&&t.createElement("div",{className:"".concat(Je,"-title")},Te),At&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var Ae=this.props,Te=Ae.footer,Je=Ae.footerStyle,At=Ae.prefixCls;if(!Te)return null;var qe="".concat(At,"-footer");return t.createElement("div",{className:qe,style:Je},Te)}},{key:"renderCloseIcon",value:function(){var Ae=this.props,Te=Ae.closable,Je=Ae.closeIcon,At=Je===void 0?t.createElement(me.a,null):Je,qe=Ae.prefixCls,Re=Ae.onClose;return Te&&t.createElement("button",{onClick:Re,"aria-label":"Close",className:"".concat(qe,"-close"),style:{"--scroll-bar":"".concat(Object(b.a)(),"px")}},At)}},{key:"render",value:function(){return t.createElement(oe.Consumer,null,this.renderProvider)}}]),Me}(t.Component);X.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:G};var fe=B.a=Object(ie.c)({prefixCls:"drawer"})(X)},"/y7N":function(H,B,d){var _=d("bYtY"),E=d("IwbS"),C=d("6GrX"),A=d("7aKB"),w=d("Fofx"),m=d("aX7z"),f=d("+rIm");function c(s){var u=s.get("type"),h=s.getModel(u+"Style"),p;return u==="line"?(p=h.getLineStyle(),p.fill=null):u==="shadow"&&(p=h.getAreaStyle(),p.stroke=null),p}function o(s,u,h,p,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),O=g.position,I=b.width+T[1]+T[3],L=b.height+T[0]+T[2],N=g.align;N==="right"&&(O[0]-=I),N==="center"&&(O[0]-=I/2);var D=g.verticalAlign;D==="bottom"&&(O[1]-=L),D==="middle"&&(O[1]-=L/2),r(O,I,L,p);var R=x.get("backgroundColor");(!R||R==="auto")&&(R=u.get("axisLine.lineStyle.color")),s.label={shape:{x:0,y:0,width:I,height:L,r:x.get("borderRadius")},position:O.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(s,u,h,p){var g=p.getWidth(),v=p.getHeight();s[0]=Math.min(s[0]+u,g)-u,s[1]=Math.min(s[1]+h,v)-h,s[0]=Math.max(s[0],0),s[1]=Math.max(s[1],0)}function i(s,u,h,p,g){s=u.scale.parse(s);var v=u.scale.getLabel(s,{precision:g.precision}),y=g.formatter;if(y){var x={value:m.getAxisRawValue(u,s),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};_.each(p,function(T){var S=h.getSeriesByIndex(T.seriesIndex),b=T.dataIndexInside,O=S&&S.getDataParams(b);O&&x.seriesData.push(O)}),_.isString(y)?v=y.replace("{value}",v):_.isFunction(y)&&(v=y(x))}return v}function n(s,u,h){var p=w.create();return w.rotate(p,p,h.rotation),w.translate(p,p,h.position),E.applyTransform([s.dataToCoord(u),(h.labelOffset||0)+(h.labelDirection||1)*(h.labelMargin||0)],p)}function e(s,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,s,h),align:y.textAlign,verticalAlign:y.textVerticalAlign})}function l(s,u,h){return h=h||0,{x1:s[h],y1:s[1-h],x2:u[h],y2:u[1-h]}}function t(s,u,h){return h=h||0,{x:s[h],y:s[1-h],width:u[h],height:u[1-h]}}function a(s,u,h,p,g,v){return{cx:s,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=l,B.makeRectShape=t,B.makeSectorShape=a},"/zsF":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("bE4E"),A=d.n(C)},"0/Rx":function(H,B){function d(_){return{seriesType:_,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 _=d("bYtY"),E=_.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 l=0;l<n.count();l++){for(var t=[],a=!1,s=0;s<e.length;s++){var u=n.get(e[s],l);isNaN(u)||(a=!0),t.push(u)}a?n.setItemLayout(l,i.dataToPoint(t)):n.setItemLayout(l,[NaN,NaN])}w(n.graph)}else(!r||r==="none")&&A(o)})}H.exports=m},"06DH":function(H,B,d){var _=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"),l={};return E.each(n.get("type"),function(t){e[t]&&(l[t]=e[t])}),l};var o={line:function(n,e,l,t){if(n==="bar")return E.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},t.get("option.line")||{},!0)},bar:function(n,e,l,t){if(n==="line")return E.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},t.get("option.bar")||{},!0)},stack:function(n,e,l,t){var a=l.get("stack")===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,l){var t=this.model,a=t.get("seriesIndex."+l);if(!o[l])return;var s={series:[]},u=function(g){var v=g.subType,y=g.id,x=o[l](v,y,g,t);x&&(E.defaults(x,g.option),s.series.push(x));var T=g.coordinateSystem;if(T&&T.type==="cartesian2d"&&(l==="line"||l==="bar")){var S=T.getAxesByScale("ordinal")[0];if(S){var b=S.dim,O=b+"Axis",I=n.queryComponents({mainType:O,index:g.get(name+"Index"),id:g.get(name+"Id")})[0],L=I.componentIndex;s[O]=s[O]||[];for(var N=0;N<=L;N++)s[O][L]=s[O][L]||{};s[O][L].boundaryGap=l==="bar"}}};E.each(r,function(g){E.indexOf(g,l)>=0&&E.each(g,function(v){t.setIconStatus(v,"normal")})}),t.setIconStatus(l,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},u);var h;if(l==="stack"){var p=s.series&&s.series[0]&&s.series[0].stack===m;h=p?E.merge({stack:w.title.tiled},w.title):E.clone(w.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:s,newTitle:h,featureName:"magicType"})},_.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 _=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&&!_.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 _=d("CWQg"),E=Object(_.a)("success","processing","error","default","warning"),C=Object(_.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(H,B,d){var _=d("T4UG"),E=d("I3/A"),C=d("7aKB"),A=C.encodeHTML,w=d("Qxkt"),m=d("Tghj"),f=m.__DEV__,c=_.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,i){for(var n=r.edges||r.links,e=r.data||r.nodes,l=r.levels,t=this.levelModels={},a=0;a<l.length;a++)l[a].depth!=null&&l[a].depth>=0&&(t[l[a].depth]=new w(l[a],this,i));if(e&&n){var s=E(e,n,this,!0,u);return s.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),l=e.data,t=l.source+" -- "+l.target;return e.value&&(t+=" : "+e.value),A(t)}else if(n==="node"){var a=this.getGraph().getNodeByIndex(r),s=a.getLayout().value,u=this.getDataParams(r,n).data.name;if(s)var t=u+" : "+s;return A(t)}return c.superCall(this,"formatTooltip",r,i)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,i){var n=c.superCall(this,"getDataParams",r,i);if(n.value==null&&i==="node"){var e=this.getGraph().getNodeByIndex(r),l=e.getLayout().value;n.value=l}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),o=c;H.exports=o},"0HBW":function(H,B,d){var _=d("ProS"),E=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function C(A,w){w.update="updateView",_.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 _=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(),l=this._model.getBoxLayoutParams(),t=this._orient==="horizontal"?[i,7]:[7,i];_.each([0,1],function(h){u(e,h)&&(l[n[h]]=e[h]*t[h])});var a={width:r.getWidth(),height:r.getHeight()},s=this._rect=E.getLayoutRect(l,a);_.each([0,1],function(h){u(e,h)||(e[h]=s[n[h]]/t[h])});function u(h,p){return h[p]!=null&&h[p]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(o,r){_.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 l=i.day,t=this._getRangeInfo([n.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(o){var r=this.pointToDate(o);return r&&r.time},dataToRect:function(o,r){var i=this.dataToPoint(o,r);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(o){var r=Math.floor((o[0]-this._rect.x)/this._sw)+1,i=Math.floor((o[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,r-1,n):this._getDateByWeeksAndDay(r,i-1,n)},convertToPixel:_.curry(f,"dataToPoint"),convertFromPixel:_.curry(f,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),r=o;if(_.isArray(r)&&r.length===1&&(r=r[0]),/^\d{4}$/.test(r)&&(o=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),n=i.date;n.setMonth(n.getMonth()+1);var e=this.getNextNDay(n,-1);o=[i.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(o=[r,r]);var l=this._getRangeInfo(o);return l.start.time>l.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var r;o[0].time>o[1].time&&(r=!0,o.reverse());var i=Math.floor(o[1].time/w)-Math.floor(o[0].time/w)+1,n=new Date(o[0].time),e=n.getDate(),l=o[1].date.getDate();n.setDate(e+i-1);var t=n.getDate();if(t!==l)for(var a=n.getTime()-o[1].time>0?1:-1;(t=n.getDate())!==l&&(n.getTime()-o[1].time)*a>0;)i-=a,n.setDate(t-a);var s=Math.floor((i+o[0].day+6)/7),u=r?-s+1:s-1;return r&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:i,weeks:s,nthWeek:u,fweek:o[0].day,lweek:o[1].day}},_getDateByWeeksAndDay:function(o,r,i){var n=this._getRangeInfo(i);if(o>n.weeks||o===0&&r<n.fweek||o===n.weeks&&r>n.lweek)return!1;var e=(o-1)*7-n.fweek+r,l=new Date(n.start.time);return l.setDate(n.start.d+e),this.getDateInfo(l)}},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,l=i.seriesModel,t=e?e.coordinateSystem:l?l.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",_="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=_+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",l=o+"?",t="["+w+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+l+")*",s=t+l+a,u="(?:"+[r+f+"?",f,i,n,m].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+s,"g");function p(g){return g.match(h)||[]}H.exports=p},"0NbB":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="CaretDownOutlined";var f=B.a=E.forwardRef(m)},"0V0F":function(H,B,d){var _=d("bYtY"),E=_.createHashMap,C=_.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,l=n.map(i,function(t,a,s){var u=n.get(f.stackedDimension,s);if(isNaN(u))return r;var h,p;e?p=n.getRawIndex(s):h=n.get(f.stackedByDimension,s);for(var 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(l),f.data=l})}H.exports=A},"0XgM":function(H,B,d){},"0fbx":function(H,B,d){},"0o9m":function(H,B,d){var _=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var E=d("kDyi"),C=d("bLfw");_.registerProcessor(_.PRIORITY.PROCESSOR.SERIES_FILTER,E),C.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(H,B,d){var _=d("ProS");_.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),_.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(H,B){var d=arguments[3],_=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}_[m]=["function(require,module,exports){"+A+"(self); }",n]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[m]=m,_[e]=["function(require,module,exports){var f = require("+C(m)+");(f.default ? f.default : f)(self);}",l];var t={};a(e);function a(v){t[v]=!0;for(var y in _[v][1]){var x=_[v][1][y];t[x]||a(x)}}var s="("+d+")({"+Object.keys(t).map(function(v){return C(v)+":["+_[v][0]+","+C(_[v][1])+"]"}).join(",")+"},{},["+C(e)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,h=new Blob([s],{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 _=d("bYtY"),E=d("QBsz"),C=d("y23F"),A=d("H6uX"),w=d("YH21"),m=d("C0SR"),f="silent";function c(a,s,u){return{type:a,event:u,target:s.target,topTarget:s.topTarget,cancelBubble:!1,offsetX:u.zrX,offsetY:u.zrY,gestureEvent:u.gestureEvent,pinchX:u.pinchX,pinchY:u.pinchY,pinchScale:u.pinchScale,wheelDelta:u.zrDelta,zrByTouch:u.zrByTouch,which:u.which,stop:o}}function o(){w.stop(this.event)}function r(){}r.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(s,u,h,p){A.call(this),this.storage=s,this.painter=u,this.painterRoot=p,h=h||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,C.call(this),this.setHandlerProxy(h)};n.prototype={constructor:n,setHandlerProxy:function(s){this.proxy&&this.proxy.dispose(),s&&(_.each(i,function(u){s.on&&s.on(u,this[u],this)},this),s.handler=this),this.proxy=s},mousemove:function(s){var u=s.zrX,h=s.zrY,p=l(this,u,h),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",s),this.dispatchToElement(y,"mousemove",s),x&&x!==v&&this.dispatchToElement(y,"mouseover",s)},mouseout:function(s){var u=s.zrEventControl,h=s.zrIsToLocalDOM;u!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",s),u!=="no_globalout"&&(!h&&this.trigger("globalout",{type:"globalout",event:s}))},resize:function(s){this._hovered={}},dispatch:function(s,u){var h=this[s];h&&h.call(this,u)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(s){var u=this.proxy;u.setCursor&&u.setCursor(s)},dispatchToElement:function(s,u,h){s=s||{};var p=s.target;if(p&&p.silent)return;for(var g="on"+u,v=c(u,s,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(s,u,h){for(var p=this.storage.getDisplayList(),g={x:s,y:u},v=p.length-1;v>=0;v--){var y;if(p[v]!==h&&!p[v].ignore&&(y=e(p[v],s,u))&&(!g.topTarget&&(g.topTarget=p[v]),y!==f)){g.target=p[v];break}}return g},processGesture:function(s,u){this._gestureMgr||(this._gestureMgr=new m);var h=this._gestureMgr;u==="start"&&h.clear();var p=h.recognize(s,this.findHover(s.zrX,s.zrY,null).target,this.proxy.dom);if(u==="end"&&h.clear(),p){var g=p.type;s.gestureEvent=g,this.dispatchToElement({target:p.target},g,p.event)}}},_.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){n.prototype[a]=function(s){var u=s.zrX,h=s.zrY,p=l(this,u,h),g,v;if((a!=="mouseup"||!p)&&(g=this.findHover(u,h),v=g.target),a==="mousedown")this._downEl=v,this._downPoint=[s.zrX,s.zrY],this._upEl=v;else if(a==="mouseup")this._upEl=v;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||E.dist(this._downPoint,[s.zrX,s.zrY])>4)return;this._downPoint=null}this.dispatchToElement(g,a,s)}});function e(a,s,u){if(a[a.rectHover?"rectContain":"contain"](s,u)){for(var h=a,p;h;){if(h.clipPath&&!h.clipPath.contain(s,u))return!1;h.silent&&(p=!0),h=h.parent}return p?f:!0}return!1}function l(a,s,u){var h=a.painter;return s<0||s>h.getWidth()||u<0||u>h.getHeight()}_.mixin(n,A),_.mixin(n,C);var t=n;H.exports=t},"10cm":function(H,B,d){var _=d("ProS"),E=d("2B6p"),C=E.updateCenterAndZoom;d("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};_.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(_){_(d("VrN/"))})(function(_){_.defineOption("placeholder","",function(c,o,r){var i=r&&r!=_.Init;if(o&&!i)c.on("blur",w),c.on("change",m),c.on("swapDoc",m),_.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),_.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 _=d("y+Vt"),E=d("T6xi"),C=_.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 _=d("ProS"),E=d("F9bG"),C=_.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 _=d("y+Vt"),E=_.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(),_.prototype.getBoundingRect.call(this)}});H.exports=E},"1NG9":function(H,B,d){var _=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,O){return b==="none"||!b?l.apply(this,arguments):e.apply(this,arguments)}function e(u,h,p,g,v,y,x,T,S,b,O){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(O){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](D[0],D[1]);else if(S>0){var R=h[I],k=b==="y"?1:0,M=(D[k]-R[k])*S;f(o,R),o[k]=R[k]+M,f(r,D),r[k]=D[k]-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 l(u,h,p,g,v,y,x,T,S,b,O){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(O){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,k=h[R];if(O)for(;k&&i(h[R]);)R+=y,k=h[R];var M=.5,j=h[I],k=h[R];if(!k||i(k))f(r,D);else{i(k)&&!O&&(k=D),E.sub(c,k,j);var F,U;if(b==="x"||b==="y"){var K=b==="x"?0:1;F=Math.abs(D[K]-j[K]),U=Math.abs(D[K]-k[K])}else F=E.dist(D,j),U=E.dist(D,k);M=U/(U+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=_.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:C(_.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}}),s=_.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:C(_.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=s},"1RvN":function(H,B){var d=function(){this.head=null,this.tail=null,this._len=0},_=d.prototype;_.insert=function(m){var f=new E(m);return this.insertEntry(f),f},_.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++},_.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--},_.len=function(){return this._len},_.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 _=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||_()};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 _=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")),l=T(d("Mmt2")),t=T(d("iUHT")),a=T(d("mHUz")),s=T(d("P2ho")),u=d("NBmB");d("mdZa");var h=T(d("34/K")),p=T(d("hXwI")),g=T(d("SgaC")),v=T(d("3690")),y=T(d("8K/p")),x=T(d("xO64"));function T(fe){return fe&&fe.__esModule?fe:{default:fe}}function S(){if(typeof WeakMap!="function")return null;var fe=new WeakMap;return S=function(){return fe},fe}function b(fe){if(fe&&fe.__esModule)return fe;if(fe===null||O(fe)!=="object"&&typeof fe!="function")return{default:fe};var de=S();if(de&&de.has(fe))return de.get(fe);var Ce={},Me=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ue in fe)if(Object.prototype.hasOwnProperty.call(fe,ue)){var Ae=Me?Object.getOwnPropertyDescriptor(fe,ue):null;Ae&&(Ae.get||Ae.set)?Object.defineProperty(Ce,ue,Ae):Ce[ue]=fe[ue]}return Ce.default=fe,de&&de.set(fe,Ce),Ce}function O(fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ce){return typeof Ce}:O=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},O(fe)}function I(fe,de){if(!(fe instanceof de))throw new TypeError("Cannot call a class as a function")}function L(fe,de){for(var Ce=0;Ce<de.length;Ce++){var Me=de[Ce];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(fe,Me.key,Me)}}function N(fe,de,Ce){return de&&L(fe.prototype,de),Ce&&L(fe,Ce),fe}function D(fe,de){if(typeof de!="function"&&de!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(de&&de.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),de&&R(fe,de)}function R(fe,de){return R=Object.setPrototypeOf||function(Me,ue){return Me.__proto__=ue,Me},R(fe,de)}function k(fe){var de=F();return function(){var Me=U(fe),ue;if(de){var Ae=U(this).constructor;ue=Reflect.construct(Me,arguments,Ae)}else ue=Me.apply(this,arguments);return M(this,ue)}}function M(fe,de){return de&&(O(de)==="object"||typeof de=="function")?de:j(fe)}function j(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function 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(fe){return!1}}function U(fe){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},U(fe)}var K=3,V="rgb(40, 40, 40)",z=17,Q=50,Z=19,le=75,ne=50,ve=1e3,xe=50,_e=1,Be=1<<1,me=1<<2,Fe=1<<3,ie=1<<4,te=1<<24,Ge=1<<25,oe=1<<26,Y=1<<27,G=1<<28,X=function(fe){D(Ce,fe);var de=k(Ce);function Ce(Me,ue,Ae){var Te;if(I(this,Ce),!Me)throw new Error("Must specify target");if(!ue)throw new Error("Must specify URL");Te=de.call(this),Te._target=Me,Te._url=ue,Ae=Ae||{},Te._rfbCredentials=Ae.credentials||{},Te._shared="shared"in Ae?!!Ae.shared:!0,Te._repeaterID=Ae.repeaterID||"",Te._wsProtocols=Ae.wsProtocols||[],Te._rfbConnectionState="",Te._rfbInitState="",Te._rfbAuthScheme=-1,Te._rfbCleanDisconnect=!0,Te._rfbVersion=0,Te._rfbMaxVersion=3.8,Te._rfbTightVNC=!1,Te._rfbVeNCryptState=0,Te._rfbXvpVer=0,Te._fbWidth=0,Te._fbHeight=0,Te._fbName="",Te._capabilities={power:!1},Te._supportsFence=!1,Te._supportsContinuousUpdates=!1,Te._enabledContinuousUpdates=!1,Te._supportsSetDesktopSize=!1,Te._screenID=0,Te._screenFlags=0,Te._qemuExtKeyEventSupported=!1,Te._clipboardText=null,Te._clipboardServerCapabilitiesActions={},Te._clipboardServerCapabilitiesFormats={},Te._sock=null,Te._display=null,Te._flushing=!1,Te._keyboard=null,Te._gestures=null,Te._disconnTimer=null,Te._resizeTimeout=null,Te._mouseMoveTimer=null,Te._decoders={},Te._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Te._mousePos={},Te._mouseButtonMask=0,Te._mouseLastMoveTime=0,Te._viewportDragging=!1,Te._viewportDragPos={},Te._viewportHasMoved=!1,Te._accumulatedWheelDeltaX=0,Te._accumulatedWheelDeltaY=0,Te._gestureLastTapTime=null,Te._gestureFirstDoubleTapEv=null,Te._gestureLastMagnitudeX=0,Te._gestureLastMagnitudeY=0,Te._eventHandlers={focusCanvas:Te._focusCanvas.bind(j(Te)),windowResize:Te._windowResize.bind(j(Te)),handleMouse:Te._handleMouse.bind(j(Te)),handleWheel:Te._handleWheel.bind(j(Te)),handleGesture:Te._handleGesture.bind(j(Te))},E.Debug(">> RFB.constructor"),Te._screen=document.createElement("div"),Te._screen.style.display="flex",Te._screen.style.width="100%",Te._screen.style.height="100%",Te._screen.style.overflow="auto",Te._screen.style.background=V,Te._canvas=document.createElement("canvas"),Te._canvas.style.margin="auto",Te._canvas.style.outline="none",Te._canvas.style.flexShrink="0",Te._canvas.width=0,Te._canvas.height=0,Te._canvas.tabIndex=-1,Te._screen.appendChild(Te._canvas),Te._cursor=new e.default,Te._cursorImage=Ce.cursors.none,Te._decoders[u.encodings.encodingRaw]=new h.default,Te._decoders[u.encodings.encodingCopyRect]=new p.default,Te._decoders[u.encodings.encodingRRE]=new g.default,Te._decoders[u.encodings.encodingHextile]=new v.default,Te._decoders[u.encodings.encodingTight]=new y.default,Te._decoders[u.encodings.encodingTightPNG]=new x.default;try{Te._display=new c.default(Te._canvas)}catch(Je){throw E.Error("Display exception: "+Je),Je}return Te._display.onflush=Te._onFlush.bind(j(Te)),Te._keyboard=new i.default(Te._canvas),Te._keyboard.onkeyevent=Te._handleKeyEvent.bind(j(Te)),Te._gestures=new n.default,Te._sock=new l.default,Te._sock.on("message",function(){Te._handleMessage()}),Te._sock.on("open",function(){Te._rfbConnectionState==="connecting"&&Te._rfbInitState===""?(Te._rfbInitState="ProtocolVersion",E.Debug("Starting VNC handshake")):Te._fail("Unexpected server connection while "+Te._rfbConnectionState)}),Te._sock.on("close",function(Je){E.Debug("WebSocket on-close event");var At="";Je.code&&(At="(code: "+Je.code,Je.reason&&(At+=", reason: "+Je.reason),At+=")");switch(Te._rfbConnectionState){case"connecting":Te._fail("Connection closed "+At);break;case"connected":Te._updateConnectionState("disconnecting"),Te._updateConnectionState("disconnected");break;case"disconnecting":Te._updateConnectionState("disconnected");break;case"disconnected":Te._fail("Unexpected server disconnect when already disconnected "+At);break;default:Te._fail("Unexpected server disconnect before connecting "+At);break}Te._sock.off("close")}),Te._sock.on("error",function(Je){return E.Warn("WebSocket on-error event")}),setTimeout(Te._updateConnectionState.bind(j(Te),"connecting")),E.Debug("<< RFB.constructor"),Te.dragViewport=!1,Te.focusOnClick=!0,Te._viewOnly=!1,Te._clipViewport=!1,Te._scaleViewport=!1,Te._resizeSession=!1,Te._showDotCursor=!1,Ae.showDotCursor!==void 0&&(E.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Te._showDotCursor=Ae.showDotCursor),Te._qualityLevel=6,Te._compressionLevel=2,Te}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(ue){this._rfbCredentials=ue,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(ue,Ae,Te){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Te===void 0){this.sendKey(ue,Ae,!0),this.sendKey(ue,Ae,!1);return}var Je=s.default[Ae];if(this._qemuExtKeyEventSupported&&Je)ue=ue||0,E.Info("Sending key ("+(Te?"down":"up")+"): keysym "+ue+", scancode "+Je),Ce.messages.QEMUExtendedKeyEvent(this._sock,ue,Te,Je);else{if(!ue)return;E.Info("Sending keysym ("+(Te?"down":"up")+"): "+ue),Ce.messages.keyEvent(this._sock,ue,Te?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(ue){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[_e]&&this._clipboardServerCapabilitiesActions[Y])this._clipboardText=ue,Ce.messages.extendedClipboardNotify(this._sock,[_e]);else{for(var Ae=new Uint8Array(ue.length),Te=0;Te<ue.length;Te++)Ae[Te]=ue.charCodeAt(Te);Ce.messages.clientCutText(this._sock,Ae)}}},{key:"_connect",value:function(){E.Debug(">> RFB.connect"),E.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(ue){ue.name==="SyntaxError"?this._fail("Invalid host or port ("+ue+")"):this._fail("Error when opening socket ("+ue+")")}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(ue){if(!(ue.name==="NotFoundError"))throw ue}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),E.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(ue){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(ue){this._fbName=ue,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(ue){var Ae=this;window.requestAnimationFrame(function(){Ae._updateClip(),Ae._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var ue=this._display.clipViewport,Ae=this._clipViewport;if(this._scaleViewport&&(Ae=!1),ue!==Ae&&(this._display.clipViewport=Ae),Ae){var Te=this._screenSize();this._display.viewportChangeSize(Te.w,Te.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var ue=this._screenSize();this._display.autoscale(ue.w,ue.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var ue=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(ue.w),Math.floor(ue.h),this._screenID,this._screenFlags),E.Debug("Requested new desktop size: "+ue.w+"x"+ue.h)}},{key:"_screenSize",value:function(){var ue=this._screen.getBoundingClientRect();return{w:ue.width,h:ue.height}}},{key:"_fixScrollbars",value:function(){var ue=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=ue}},{key:"_updateConnectionState",value:function(ue){var Ae=this,Te=this._rfbConnectionState;if(ue===Te){E.Debug("Already in state '"+ue+"', ignoring");return}if(Te==="disconnected"){E.Error("Tried changing state of a disconnected RFB object");return}switch(ue){case"connected":if(Te!=="connecting"){E.Error("Bad transition to connected state, previous connection state: "+Te);return}break;case"disconnected":if(Te!=="disconnecting"){E.Error("Bad transition to disconnected state, previous connection state: "+Te);return}break;case"connecting":if(Te!==""){E.Error("Bad transition to connecting state, previous connection state: "+Te);return}break;case"disconnecting":if(Te!=="connected"&&Te!=="connecting"){E.Error("Bad transition to disconnecting state, previous connection state: "+Te);return}break;default:E.Error("Unknown connection state: "+ue);return}this._rfbConnectionState=ue,E.Debug("New state '"+ue+"', was '"+Te+"'."),this._disconnTimer&&ue!=="disconnecting"&&(E.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(ue){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."),Ae._updateConnectionState("disconnected")},K*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(ue){switch(this._rfbConnectionState){case"disconnecting":E.Error("Failed when disconnecting: "+ue);break;case"connected":E.Error("Failed while connected: "+ue);break;case"connecting":E.Error("Failed when connecting: "+ue);break;default:E.Error("RFB failure: "+ue);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(ue,Ae){this._capabilities[ue]=Ae,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(ue,Ae,Te){this.sendKey(ue,Ae,Te)}},{key:"_handleMouse",value:function(ue){if(ue.type==="click"&&ue.target!==this._canvas)return;if(ue.stopPropagation(),ue.preventDefault(),ue.type==="click"||ue.type==="contextmenu")return;var Ae=(0,w.clientToElement)(ue.clientX,ue.clientY,this._canvas);switch(ue.type){case"mousedown":(0,m.setCapture)(this._canvas),this._handleMouseButton(Ae.x,Ae.y,!0,1<<ue.button);break;case"mouseup":this._handleMouseButton(Ae.x,Ae.y,!1,1<<ue.button);break;case"mousemove":this._handleMouseMove(Ae.x,Ae.y);break}}},{key:"_handleMouseButton",value:function(ue,Ae,Te,Je){if(this.dragViewport)if(Te&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:ue,y:Ae},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(ue,Ae,Je)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(ue,Ae,this._mouseButtonMask)),Te?this._mouseButtonMask|=Je:this._mouseButtonMask&=~Je,this._sendMouse(ue,Ae,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(ue,Ae){var Te=this;if(this._viewportDragging){var Je=this._viewportDragPos.x-ue,At=this._viewportDragPos.y-Ae;(this._viewportHasMoved||Math.abs(Je)>A.dragThreshold||Math.abs(At)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:ue,y:Ae},this._display.viewportChangePos(Je,At));return}if(this._mousePos={x:ue,y:Ae},this._mouseMoveTimer==null){var qe=Date.now()-this._mouseLastMoveTime;qe>z?(this._sendMouse(ue,Ae,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Te._handleDelayedMouseMove()},z-qe)}}},{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(ue,Ae,Te){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(ue),this._display.absY(Ae),Te)}},{key:"_handleWheel",value:function(ue){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ue.stopPropagation(),ue.preventDefault();var Ae=(0,w.clientToElement)(ue.clientX,ue.clientY,this._canvas),Te=ue.deltaX,Je=ue.deltaY;ue.deltaMode!==0&&(Te*=Z,Je*=Z),this._accumulatedWheelDeltaX+=Te,this._accumulatedWheelDeltaY+=Je,Math.abs(this._accumulatedWheelDeltaX)>=Q&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(Ae.x,Ae.y,!0,1<<5),this._handleMouseButton(Ae.x,Ae.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(Ae.x,Ae.y,!0,1<<6),this._handleMouseButton(Ae.x,Ae.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=Q&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(Ae.x,Ae.y,!0,1<<3),this._handleMouseButton(Ae.x,Ae.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(Ae.x,Ae.y,!0,1<<4),this._handleMouseButton(Ae.x,Ae.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(ue,Ae,Te){this._handleMouseMove(Ae,Te),this._cursor.move(ue.detail.clientX,ue.detail.clientY)}},{key:"_handleTapEvent",value:function(ue,Ae){var Te=(0,w.clientToElement)(ue.detail.clientX,ue.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<ve&&this._gestureFirstDoubleTapEv.detail.type===ue.detail.type){var Je=this._gestureFirstDoubleTapEv.detail.clientX-ue.detail.clientX,At=this._gestureFirstDoubleTapEv.detail.clientY-ue.detail.clientY,qe=Math.hypot(Je,At);qe<xe?Te=(0,w.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=ue}else this._gestureFirstDoubleTapEv=ue;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,Ae),this._handleMouseButton(Te.x,Te.y,!1,Ae)}},{key:"_handleGesture",value:function(ue){var Ae,Te=(0,w.clientToElement)(ue.detail.clientX,ue.detail.clientY,this._canvas);switch(ue.type){case"gesturestart":switch(ue.detail.type){case"onetap":this._handleTapEvent(ue,1);break;case"twotap":this._handleTapEvent(ue,4);break;case"threetap":this._handleTapEvent(ue,2);break;case"drag":this._fakeMouseMove(ue,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,1);break;case"longpress":this._fakeMouseMove(ue,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=ue.detail.magnitudeX,this._gestureLastMagnitudeY=ue.detail.magnitudeY,this._fakeMouseMove(ue,Te.x,Te.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(ue.detail.magnitudeX,ue.detail.magnitudeY),this._fakeMouseMove(ue,Te.x,Te.y);break}break;case"gesturemove":switch(ue.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(ue,Te.x,Te.y);break;case"twodrag":for(this._fakeMouseMove(ue,Te.x,Te.y);ue.detail.magnitudeY-this._gestureLastMagnitudeY>ne;)this._handleMouseButton(Te.x,Te.y,!0,8),this._handleMouseButton(Te.x,Te.y,!1,8),this._gestureLastMagnitudeY+=ne;for(;ue.detail.magnitudeY-this._gestureLastMagnitudeY<-ne;)this._handleMouseButton(Te.x,Te.y,!0,16),this._handleMouseButton(Te.x,Te.y,!1,16),this._gestureLastMagnitudeY-=ne;for(;ue.detail.magnitudeX-this._gestureLastMagnitudeX>ne;)this._handleMouseButton(Te.x,Te.y,!0,32),this._handleMouseButton(Te.x,Te.y,!1,32),this._gestureLastMagnitudeX+=ne;for(;ue.detail.magnitudeX-this._gestureLastMagnitudeX<-ne;)this._handleMouseButton(Te.x,Te.y,!0,64),this._handleMouseButton(Te.x,Te.y,!1,64),this._gestureLastMagnitudeX-=ne;break;case"pinch":if(this._fakeMouseMove(ue,Te.x,Te.y),Ae=Math.hypot(ue.detail.magnitudeX,ue.detail.magnitudeY),Math.abs(Ae-this._gestureLastMagnitudeX)>le){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);Ae-this._gestureLastMagnitudeX>le;)this._handleMouseButton(Te.x,Te.y,!0,8),this._handleMouseButton(Te.x,Te.y,!1,8),this._gestureLastMagnitudeX+=le;for(;Ae-this._gestureLastMagnitudeX<-le;)this._handleMouseButton(Te.x,Te.y,!0,16),this._handleMouseButton(Te.x,Te.y,!1,16),this._gestureLastMagnitudeX-=le}this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(ue.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(ue,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!1,1);break;case"longpress":this._fakeMouseMove(ue,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var ue=this._sock.rQshiftStr(12).substr(4,7);E.Info("Server ProtocolVersion: "+ue);var Ae=0;switch(ue){case"000.000":Ae=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 "+ue)}if(Ae){for(var Te="ID:"+this._repeaterID;Te.length<250;)Te+="\0";return this._sock.sendString(Te),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Je="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Je+`
|
|
|
`),E.Debug("Sent ProtocolVersion: "+Je),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function ue(Je,At){for(var qe=0;qe<At.length;qe++)if(At[qe]===Je)return!0;return!1}if(this._rfbVersion>=3.7){var Ae=this._sock.rQshift8();if(this._sock.rQwait("security type",Ae,1))return!1;if(Ae===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Te=this._sock.rQshiftBytes(Ae);if(E.Debug("Server security types: "+Te),ue(1,Te))this._rfbAuthScheme=1;else if(ue(22,Te))this._rfbAuthScheme=22;else if(ue(16,Te))this._rfbAuthScheme=16;else if(ue(2,Te))this._rfbAuthScheme=2;else if(ue(19,Te))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Te+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",E.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var ue=this._sock.rQshift32(),Ae="";if(ue>0){if(this._sock.rQwait("reason",ue,4))return!1;Ae=this._sock.rQshiftStr(ue)}return Ae!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:Ae}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+Ae+")")):(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 ue=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(ue),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var ue=this._sock.rQshift8(),Ae=this._sock.rQshift8();if(!(ue==0&&Ae==2))return this._fail("Unsupported VeNCrypt version "+ue+"."+Ae);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Te=this._sock.rQshift8();if(Te!=0)return this._fail("VeNCrypt failure "+Te);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Je=this._sock.rQshift8();if(Je<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Je,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var At=[],qe=0;qe<this._rfbVeNCryptSubtypesLength;qe++)At.push(this._sock.rQshift32());if(At.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Re=(0,C.encodeUTF8)(this._rfbCredentials.username),Lt=(0,C.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Re.length]),this._sock.send([0,0,0,Lt.length]),this._sock.sendString(Re),this._sock.sendString(Lt),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 ue=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),Ae=Ce.genDES(this._rfbCredentials.password,ue);return this._sock.send(Ae),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(ue){for(var Ae={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Te={},Je=0;Je<ue;Je++){var At=this._sock.rQshift32(),qe=this._sock.rQshiftStr(4),Re=this._sock.rQshiftStr(8);Te[At]={vendor:qe,signature:Re}}return E.Debug("Server Tight tunnel types: "+Te),Te[1]&&Te[1].vendor==="SICR"&&Te[1].signature==="SCHANNEL"&&(E.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Te[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Te[0]?Te[0].vendor!=Ae[0].vendor||Te[0].signature!=Ae[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(E.Debug("Selected tunnel type: "+Ae[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 ue=this._sock.rQshift32();if(ue>0&&this._sock.rQwait("tunnel capabilities",16*ue,4))return!1;if(this._rfbTightVNC=!0,ue>0)return this._negotiateTightTunnels(ue),!1}if(this._sock.rQwait("sub auth count",4))return!1;var Ae=this._sock.rQshift32();if(Ae===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*Ae,4))return!1;for(var Te={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Je=[],At=0;At<Ae;At++){this._sock.rQshift32();var qe=this._sock.rQshiftStr(12);Je.push(qe)}E.Debug("Server Tight authentication types: "+Je);for(var Re in Te)if(Je.indexOf(Re)!=-1){this._sock.send([0,0,0,Te[Re]]),E.Debug("Selected authentication type: "+Re);switch(Re){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: "+Re+")")}}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 ue=this._sock.rQshift32();return ue===0?(this._rfbInitState="ClientInitialisation",E.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=ue,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:ue}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var ue=this._sock.rQshift16(),Ae=this._sock.rQshift16(),Te=this._sock.rQshift8(),Je=this._sock.rQshift8(),At=this._sock.rQshift8(),qe=this._sock.rQshift8(),Re=this._sock.rQshift16(),Lt=this._sock.rQshift16(),$e=this._sock.rQshift16(),Et=this._sock.rQshift8(),Ut=this._sock.rQshift8(),Bt=this._sock.rQshift8();this._sock.rQskipBytes(3);var _t=this._sock.rQshift32();if(this._sock.rQwait("server init name",_t,24))return!1;var jt=this._sock.rQshiftStr(_t);if(jt=(0,C.decodeUTF8)(jt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+_t))return!1;var He=this._sock.rQshift16(),se=this._sock.rQshift16(),J=this._sock.rQshift16();this._sock.rQskipBytes(2);var Ue=(He+se+J)*16;if(this._sock.rQwait("TightVNC extended server init header",Ue,32+_t))return!1;this._sock.rQskipBytes(16*He),this._sock.rQskipBytes(16*se),this._sock.rQskipBytes(16*J)}return E.Info("Screen: "+ue+"x"+Ae+", bpp: "+Te+", depth: "+Je+", bigEndian: "+At+", trueColor: "+qe+", redMax: "+Re+", greenMax: "+Lt+", blueMax: "+$e+", redShift: "+Et+", greenShift: "+Ut+", blueShift: "+Bt),this._setDesktopName(jt),this._resize(ue,Ae),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 ue=[];ue.push(u.encodings.encodingCopyRect),this._fbDepth==24&&(ue.push(u.encodings.encodingTight),ue.push(u.encodings.encodingTightPNG),ue.push(u.encodings.encodingHextile),ue.push(u.encodings.encodingRRE)),ue.push(u.encodings.encodingRaw),ue.push(u.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),ue.push(u.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),ue.push(u.encodings.pseudoEncodingDesktopSize),ue.push(u.encodings.pseudoEncodingLastRect),ue.push(u.encodings.pseudoEncodingQEMUExtendedKeyEvent),ue.push(u.encodings.pseudoEncodingExtendedDesktopSize),ue.push(u.encodings.pseudoEncodingXvp),ue.push(u.encodings.pseudoEncodingFence),ue.push(u.encodings.pseudoEncodingContinuousUpdates),ue.push(u.encodings.pseudoEncodingDesktopName),ue.push(u.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(ue.push(u.encodings.pseudoEncodingVMwareCursor),ue.push(u.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,ue)}},{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 ue=this._sock.rQshift32();if(ue=(0,_.toSigned32bit)(ue),this._sock.rQwait("ServerCutText content",Math.abs(ue),8))return!1;if(ue>=0){var Ae=this._sock.rQshiftStr(ue);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Ae}}))}else{ue=Math.abs(ue);var Te=this._sock.rQshift32(),Je=Te&65535,At=Te&4278190080,qe=!!(At&te);if(qe){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Re=0;Re<=15;Re++){var Lt=1<<Re;Je&Lt&&(this._clipboardServerCapabilitiesFormats[Lt]=!0,this._sock.rQshift32())}for(var $e=24;$e<=31;$e++){var Et=1<<$e;this._clipboardServerCapabilitiesActions[Et]=!!(At&Et)}var Ut=[te,Ge,oe,Y,G];Ce.messages.extendedClipboardCaps(this._sock,Ut,{extendedClipboardFormatText:0})}else if(At===Ge){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[G]&&(Je&_e&&Ce.messages.extendedClipboardProvide(this._sock,[_e],[this._clipboardText]))}else if(At===oe){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Y]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[_e]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(At===Y){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Ge]&&(Je&_e&&Ce.messages.extendedClipboardRequest(this._sock,[_e]))}else if(At===G){if(this._viewOnly)return!0;if(!(Je&_e))return!0;this._clipboardText=null;var Bt=this._sock.rQshiftBytes(ue-4),_t=new o.default,jt=null;_t.setInput(Bt);for(var He=0;He<=15;He++){var se=1<<He;if(Je&se){var J=0,Ue=_t.inflate(4);J|=Ue[0]<<24,J|=Ue[1]<<16,J|=Ue[2]<<8,J|=Ue[3];var Le=_t.inflate(J);se===_e&&(jt=Le)}}if(_t.setInput(null),jt!==null){for(var ee="",ct=0;ct<jt.length;ct++)ee+=String.fromCharCode(jt[ct]);jt=ee,jt=(0,C.decodeUTF8)(jt),jt.length>0&&jt.charAt(jt.length-1)==="\0"&&(jt=jt.slice(0,-1)),jt=jt.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:jt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+At)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var ue=this._sock.rQshift32(),Ae=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",Ae,9))return!1;Ae>64&&(E.Warn("Bad payload length ("+Ae+") in fence response"),Ae=64);var Te=this._sock.rQshiftStr(Ae);return this._supportsFence=!0,ue&1<<31?(ue&=1<<0|1<<1,Ce.messages.clientFence(this._sock,ue,Te),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var ue=this._sock.rQshift8(),Ae=this._sock.rQshift8();switch(Ae){case 0:E.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=ue,E.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+Ae+")");break}return!0}},{key:"_normalMsg",value:function(){var ue;this._FBU.rects>0?ue=0:ue=this._sock.rQshift8();var Ae,Te;switch(ue){case 0:return Te=this._framebufferUpdate(),Te&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Te;case 1:return this._handleSetColourMapMsg();case 2:return E.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return Ae=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,Ae&&(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 "+ue+")"),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 ue=this._sock.rQshiftBytes(12);this._FBU.x=(ue[0]<<8)+ue[1],this._FBU.y=(ue[2]<<8)+ue[3],this._FBU.width=(ue[4]<<8)+ue[5],this._FBU.height=(ue[6]<<8)+ue[7],this._FBU.encoding=parseInt((ue[8]<<24)+(ue[9]<<16)+(ue[10]<<8)+ue[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 ue=document.createEvent("keyboardEvent");ue.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(Ae){}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 ue=this._FBU.x,Ae=this._FBU.y,Te=this._FBU.width,Je=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var At=this._sock.rQshift8();this._sock.rQshift8();var qe,Re=4;if(At==0){var Lt=4294967040|0;if(qe=new Array(Te*Je*Re),this._sock.rQwait("VMware cursor classic encoding",Te*Je*Re*2,2))return!1;for(var $e=new Array(Te*Je),Et=0;Et<Te*Je;Et++)$e[Et]=this._sock.rQshift32();for(var Ut=new Array(Te*Je),Bt=0;Bt<Te*Je;Bt++)Ut[Bt]=this._sock.rQshift32();for(var _t=0;_t<Te*Je;_t++)if($e[_t]==0){var jt=Ut[_t],He=jt>>8&255,se=jt>>16&255,J=jt>>24&255;qe[_t*Re]=He,qe[_t*Re+1]=se,qe[_t*Re+2]=J,qe[_t*Re+3]=255}else($e[_t]&Lt)==Lt?Ut[_t]==0?(qe[_t*Re]=0,qe[_t*Re+1]=0,qe[_t*Re+2]=0,qe[_t*Re+3]=0):((Ut[_t]&Lt)==Lt,qe[_t*Re]=0,qe[_t*Re+1]=0,qe[_t*Re+2]=0,qe[_t*Re+3]=255):(qe[_t*Re]=0,qe[_t*Re+1]=0,qe[_t*Re+2]=0,qe[_t*Re+3]=255)}else if(At==1){if(this._sock.rQwait("VMware cursor alpha encoding",Te*Je*4,2))return!1;qe=new Array(Te*Je*Re);for(var Ue=0;Ue<Te*Je;Ue++){var Le=this._sock.rQshift32();qe[Ue*4]=Le>>24&255,qe[Ue*4+1]=Le>>16&255,qe[Ue*4+2]=Le>>8&255,qe[Ue*4+3]=Le&255}}else return E.Warn("The given cursor type is not supported: "+At+" given."),!1;return this._updateCursor(qe,ue,Ae,Te,Je),!0}},{key:"_handleCursor",value:function(){var ue=this._FBU.x,Ae=this._FBU.y,Te=this._FBU.width,Je=this._FBU.height,At=Te*Je*4,qe=Math.ceil(Te/8)*Je,Re=At+qe;if(this._sock.rQwait("cursor encoding",Re))return!1;for(var Lt=this._sock.rQshiftBytes(At),$e=this._sock.rQshiftBytes(qe),Et=new Uint8Array(Te*Je*4),Ut=0,Bt=0;Bt<Je;Bt++)for(var _t=0;_t<Te;_t++){var jt=Bt*Math.ceil(Te/8)+Math.floor(_t/8),He=$e[jt]<<_t%8&128?255:0;Et[Ut]=Lt[Ut+2],Et[Ut+1]=Lt[Ut+1],Et[Ut+2]=Lt[Ut],Et[Ut+3]=He,Ut+=4}return this._updateCursor(Et,ue,Ae,Te,Je),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var ue=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",ue,4))return!1;var Ae=this._sock.rQshiftStr(ue);return Ae=(0,C.decodeUTF8)(Ae,!0),this._setDesktopName(Ae),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var ue=this._sock.rQpeek8(),Ae=4+ue*16;if(this._sock.rQwait("ExtendedDesktopSize",Ae))return!1;var Te=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Te&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Je=0;Je<ue;Je+=1)Je===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var At="";switch(this._FBU.y){case 1:At="Resize is administratively prohibited";break;case 2:At="Out of resources";break;case 3:At="Invalid screen layout";break;default:At="Unknown reason";break}E.Warn("Server did not accept the resize request: "+At)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var ue=this._decoders[this._FBU.encoding];if(!ue)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return ue.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Ae){return this._fail("Error decoding rect: "+Ae),!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(ue,Ae){this._fbWidth=ue,this._fbHeight=Ae,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(ue,Ae){if(this._rfbXvpVer<ue)return;E.Info("Sending XVP operation "+Ae+" (version "+ue+")"),Ce.messages.xvpOp(this._sock,ue,Ae)}},{key:"_updateCursor",value:function(ue,Ae,Te,Je,At){this._cursorImage={rgbaPixels:ue,hotx:Ae,hoty:Te,w:Je,h:At},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var ue=3;ue<this._cursorImage.rgbaPixels.length;ue+=4)if(this._cursorImage.rgbaPixels[ue])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var ue=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(ue.rgbaPixels,ue.hotx,ue.hoty,ue.w,ue.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(ue){this._viewOnly=ue,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(ue?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(ue){E.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(ue){this._clipViewport=ue,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(ue){this._scaleViewport=ue,ue&&this._clipViewport&&this._updateClip(),this._updateScale(),!ue&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(ue){this._resizeSession=ue,ue&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(ue){this._showDotCursor=ue,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(ue){this._screen.style.background=ue}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(ue){if(!Number.isInteger(ue)||ue<0||ue>9){E.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===ue)return;this._qualityLevel=ue,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(ue){if(!Number.isInteger(ue)||ue<0||ue>9){E.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===ue)return;this._compressionLevel=ue,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(ue,Ae){var Te=ue.split("").map(function(Je){return Je.charCodeAt(0)});return new t.default(Te).encrypt(Ae)}}]),Ce}(f.default);B.default=X,X.messages={keyEvent:function(de,Ce,Me){var ue=de._sQ,Ae=de._sQlen;ue[Ae]=4,ue[Ae+1]=Me,ue[Ae+2]=0,ue[Ae+3]=0,ue[Ae+4]=Ce>>24,ue[Ae+5]=Ce>>16,ue[Ae+6]=Ce>>8,ue[Ae+7]=Ce,de._sQlen+=8,de.flush()},QEMUExtendedKeyEvent:function(de,Ce,Me,ue){function Ae(qe){var Re=ue>>8,Lt=ue&255;return Re===224&&Lt<127?Lt|128:qe}var Te=de._sQ,Je=de._sQlen;Te[Je]=255,Te[Je+1]=0,Te[Je+2]=Me>>8,Te[Je+3]=Me,Te[Je+4]=Ce>>24,Te[Je+5]=Ce>>16,Te[Je+6]=Ce>>8,Te[Je+7]=Ce;var At=Ae(ue);Te[Je+8]=At>>24,Te[Je+9]=At>>16,Te[Je+10]=At>>8,Te[Je+11]=At,de._sQlen+=12,de.flush()},pointerEvent:function(de,Ce,Me,ue){var Ae=de._sQ,Te=de._sQlen;Ae[Te]=5,Ae[Te+1]=ue,Ae[Te+2]=Ce>>8,Ae[Te+3]=Ce,Ae[Te+4]=Me>>8,Ae[Te+5]=Me,de._sQlen+=6,de.flush()},_buildExtendedClipboardFlags:function(de,Ce){for(var Me=new Uint8Array(4),ue=0,Ae=0,Te=0;Te<de.length;Te++)Ae|=de[Te];for(var Je=0;Je<Ce.length;Je++)ue|=Ce[Je];return Me[0]=Ae>>24,Me[1]=0,Me[2]=0,Me[3]=ue,Me},extendedClipboardProvide:function(de,Ce,Me){for(var ue=new r.default,Ae=[],Te=0;Te<Ce.length;Te++){if(Ce[Te]!=_e)throw new Error("Unsupported extended clipboard format for Provide message.");Me[Te]=Me[Te].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var Je=(0,C.encodeUTF8)(Me[Te]+"\0");Ae.push(Je.length>>24&255,Je.length>>16&255,Je.length>>8&255,Je.length&255);for(var At=0;At<Je.length;At++)Ae.push(Je.charCodeAt(At))}var qe=ue.deflate(new Uint8Array(Ae)),Re=new Uint8Array(4+qe.length);Re.set(X.messages._buildExtendedClipboardFlags([G],Ce)),Re.set(qe,4),X.messages.clientCutText(de,Re,!0)},extendedClipboardNotify:function(de,Ce){var Me=X.messages._buildExtendedClipboardFlags([Y],Ce);X.messages.clientCutText(de,Me,!0)},extendedClipboardRequest:function(de,Ce){var Me=X.messages._buildExtendedClipboardFlags([Ge],Ce);X.messages.clientCutText(de,Me,!0)},extendedClipboardCaps:function(de,Ce,Me){var ue=Object.keys(Me),Ae=new Uint8Array(4+4*ue.length);ue.map(function(At){return parseInt(At)}),ue.sort(function(At,qe){return At-qe}),Ae.set(X.messages._buildExtendedClipboardFlags(Ce,[]));for(var Te=4,Je=0;Je<ue.length;Je++)Ae[Te]=Me[ue[Je]]>>24,Ae[Te+1]=Me[ue[Je]]>>16,Ae[Te+2]=Me[ue[Je]]>>8,Ae[Te+3]=Me[ue[Je]]>>0,Te+=4,Ae[3]|=1<<ue[Je];X.messages.clientCutText(de,Ae,!0)},clientCutText:function(de,Ce){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=de._sQ,Ae=de._sQlen;ue[Ae]=6,ue[Ae+1]=0,ue[Ae+2]=0,ue[Ae+3]=0;var Te;Me?Te=(0,_.toUnsigned32bit)(-Ce.length):Te=Ce.length,ue[Ae+4]=Te>>24,ue[Ae+5]=Te>>16,ue[Ae+6]=Te>>8,ue[Ae+7]=Te,de._sQlen+=8;for(var Je=0,At=Ce.length;At>0;){for(var qe=Math.min(At,de._sQbufferSize-de._sQlen),Re=0;Re<qe;Re++)ue[de._sQlen+Re]=Ce[Je+Re];de._sQlen+=qe,de.flush(),At-=qe,Je+=qe}},setDesktopSize:function(de,Ce,Me,ue,Ae){var Te=de._sQ,Je=de._sQlen;Te[Je]=251,Te[Je+1]=0,Te[Je+2]=Ce>>8,Te[Je+3]=Ce,Te[Je+4]=Me>>8,Te[Je+5]=Me,Te[Je+6]=1,Te[Je+7]=0,Te[Je+8]=ue>>24,Te[Je+9]=ue>>16,Te[Je+10]=ue>>8,Te[Je+11]=ue,Te[Je+12]=0,Te[Je+13]=0,Te[Je+14]=0,Te[Je+15]=0,Te[Je+16]=Ce>>8,Te[Je+17]=Ce,Te[Je+18]=Me>>8,Te[Je+19]=Me,Te[Je+20]=Ae>>24,Te[Je+21]=Ae>>16,Te[Je+22]=Ae>>8,Te[Je+23]=Ae,de._sQlen+=24,de.flush()},clientFence:function(de,Ce,Me){var ue=de._sQ,Ae=de._sQlen;ue[Ae]=248,ue[Ae+1]=0,ue[Ae+2]=0,ue[Ae+3]=0,ue[Ae+4]=Ce>>24,ue[Ae+5]=Ce>>16,ue[Ae+6]=Ce>>8,ue[Ae+7]=Ce;var Te=Me.length;ue[Ae+8]=Te;for(var Je=0;Je<Te;Je++)ue[Ae+9+Je]=Me.charCodeAt(Je);de._sQlen+=9+Te,de.flush()},enableContinuousUpdates:function(de,Ce,Me,ue,Ae,Te){var Je=de._sQ,At=de._sQlen;Je[At]=150,Je[At+1]=Ce,Je[At+2]=Me>>8,Je[At+3]=Me,Je[At+4]=ue>>8,Je[At+5]=ue,Je[At+6]=Ae>>8,Je[At+7]=Ae,Je[At+8]=Te>>8,Je[At+9]=Te,de._sQlen+=10,de.flush()},pixelFormat:function(de,Ce,Me){var ue=de._sQ,Ae=de._sQlen,Te;Ce>16?Te=32:Ce>8?Te=16:Te=8;var Je=Math.floor(Ce/3);ue[Ae]=0,ue[Ae+1]=0,ue[Ae+2]=0,ue[Ae+3]=0,ue[Ae+4]=Te,ue[Ae+5]=Ce,ue[Ae+6]=0,ue[Ae+7]=Me?1:0,ue[Ae+8]=0,ue[Ae+9]=(1<<Je)-1,ue[Ae+10]=0,ue[Ae+11]=(1<<Je)-1,ue[Ae+12]=0,ue[Ae+13]=(1<<Je)-1,ue[Ae+14]=Je*2,ue[Ae+15]=Je*1,ue[Ae+16]=Je*0,ue[Ae+17]=0,ue[Ae+18]=0,ue[Ae+19]=0,de._sQlen+=20,de.flush()},clientEncodings:function(de,Ce){var Me=de._sQ,ue=de._sQlen;Me[ue]=2,Me[ue+1]=0,Me[ue+2]=Ce.length>>8,Me[ue+3]=Ce.length;for(var Ae=ue+4,Te=0;Te<Ce.length;Te++){var Je=Ce[Te];Me[Ae]=Je>>24,Me[Ae+1]=Je>>16,Me[Ae+2]=Je>>8,Me[Ae+3]=Je,Ae+=4}de._sQlen+=Ae-ue,de.flush()},fbUpdateRequest:function(de,Ce,Me,ue,Ae,Te){var Je=de._sQ,At=de._sQlen;typeof Me=="undefined"&&(Me=0),typeof ue=="undefined"&&(ue=0),Je[At]=3,Je[At+1]=Ce?1:0,Je[At+2]=Me>>8&255,Je[At+3]=Me&255,Je[At+4]=ue>>8&255,Je[At+5]=ue&255,Je[At+6]=Ae>>8&255,Je[At+7]=Ae&255,Je[At+8]=Te>>8&255,Je[At+9]=Te&255,de._sQlen+=10,de.flush()},xvpOp:function(de,Ce,Me){var ue=de._sQ,Ae=de._sQlen;ue[Ae]=250,ue[Ae+1]=0,ue[Ae+2]=Ce,ue[Ae+3]=Me,de._sQlen+=4,de.flush()}},X.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(_){_(d("VrN/"))})(function(_){"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};_.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(k){return L.tokenize=k,k(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=l(N),L.stringStartCol=I.column(),L.tokenize(I,L)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(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 s(I,L,N){this.prev=I.context,this.tagName=L,this.indent=I.indented,this.startOfLine=N,(f.doNotIndent.hasOwnProperty(L)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function u(I){I.context&&(I.context=I.context.prev)}function h(I,L){for(var N;;){if(!I.context)return;if(N=I.context.tagName,!f.contextGrabbers.hasOwnProperty(N)||!f.contextGrabbers[N].hasOwnProperty(L))return;u(I)}}function p(I,L,N){return I=="openTag"?(N.tagStart=L.column(),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 s(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"?O:I=="word"&&f.allowUnquoted?(i="string",T):(i="error",T(I,L,N))}function O(I,L,N){return I=="string"?O: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 _.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 k=N&&/^<(\/)?([\w_:\.-]*)/.exec(N);if(k&&k[1])for(;R;)if(R.tagName==k[2]){R=R.prev;break}else if(f.implicitlyClosed.hasOwnProperty(R.tagName))R=R.prev;else break;else if(k)for(;R;){var M=f.contextGrabbers[R.tagName];if(M&&M.hasOwnProperty(k[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()}}}),_.defineMIME("text/xml","xml"),_.defineMIME("application/xml","xml"),_.mimeModes.hasOwnProperty("text/html")||_.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1n7x":function(H,B,d){(function(_,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"),l=n.n(e),t=n("./node_modules/core-js/modules/es.string.link.js"),a=n.n(t),s=n("./src/worker.js"),u=n("./src/utils.js"),h=[],p={toContainer:s.default.prototype.toContainer,toPdf:s.default.prototype.toPdf};s.default.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){if(this.opt.enableLinks){var y=this.prop.container,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(),O=0;O<b.length;O++){var I=(0,u.unitConvert)(b[O],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)}})},s.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"),l=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.description.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.object.to-string.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.symbol.iterator.js"),p=n.n(h),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"),O=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 k=(""+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 j=1;break;case"mm":var j=72/25.4;break;case"cm":var j=72/2.54;break;case"in":var j=72;break;case"px":var j=72/96;break;case"pc":var j=12;break;case"em":var j=12;break;case"ex":var j=6;break;default:throw"Invalid unit: "+N}if(M.hasOwnProperty(k))var F=M[k][1]/j,U=M[k][0]/j;else try{var F=D[1],U=D[0]}catch(z){throw new Error("Invalid format: "+D)}if(L==="p"||L==="portrait"){if(L="p",U>F){var K=U;U=F,F=K}}else if(L==="l"||L==="landscape"){if(L="l",F>U){var K=U;U=F,F=K}}else throw"Invalid orientation: "+L;var V={width:U,height:F,unit:N,k:j};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"),l=n.n(e),t=n("./node_modules/core-js/modules/es.array.slice.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.array.join.js"),u=n.n(s),h=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=n.n(h),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 O=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(j){var F=N.avoidAll&&j==="avoid";D[j]=F?[]:[].concat(R.opt.pagebreak[j]||[]),D[j].length>0&&(D[j]=Array.prototype.slice.call(O.querySelectorAll(D[j].join(", "))))});var k=O.querySelectorAll(".html2pdf__page-break");k=Array.prototype.slice.call(k);var M=O.querySelectorAll("*");Array.prototype.forEach.call(M,function(F){var U={before:!1,after:N.legacy&&k.indexOf(F)!==-1,avoid:N.avoidAll};if(N.css){var K=window.getComputedStyle(F),V=["always","page","left","right"],z=["avoid","avoid-page"];U={before:U.before||V.indexOf(K.breakBefore||K.pageBreakBefore)!==-1,after:U.after||V.indexOf(K.breakAfter||K.pageBreakAfter)!==-1,avoid:U.avoid||z.indexOf(K.breakInside||K.pageBreakInside)!==-1}}Object.keys(U).forEach(function(xe){U[xe]=U[xe]||D[xe].indexOf(F)!==-1});var Q=F.getBoundingClientRect();if(U.avoid&&!U.before){var Z=Math.floor(Q.top/I),le=Math.floor(Q.bottom/I),ne=Math.abs(Q.bottom-Q.top)/I;le!==Z&&ne<=1&&(U.before=!0)}if(U.before){var ve=(0,x.createElement)("div",{style:{display:"block",height:I-Q.top%I+"px"}});F.parentNode.insertBefore(ve,F)}if(U.after){var ve=(0,x.createElement)("div",{style:{display:"block",height:I-Q.bottom%I+"px"}});F.parentNode.insertBefore(ve,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 k}});var e=n("./node_modules/core-js/modules/es.number.constructor.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.symbol.description.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.object.to-string.js"),p=n.n(h),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"),O=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(j){var F=I(j);return F==="undefined"?"undefined":F==="string"||j instanceof String?"string":F==="number"||j instanceof Number?"number":F==="function"||j instanceof Function?"function":!!j&&j.constructor===Array?"array":j&&j.nodeType===1?"element":F==="object"?"object":"unknown"},N=function(j,F){var U=document.createElement(j);if(F.className&&(U.className=F.className),F.innerHTML){U.innerHTML=F.innerHTML;for(var K=U.getElementsByTagName("script"),V=K.length;V-- >0;null)K[V].parentNode.removeChild(K[V])}for(var z in F.style)U.style[z]=F.style[z];return U},D=function M(j,F){for(var U=j.nodeType===3?document.createTextNode(j.nodeValue):j.cloneNode(!1),K=j.firstChild;K;K=K.nextSibling)(F===!0||K.nodeType!==1||K.nodeName!=="SCRIPT")&&U.appendChild(M(K,F));return j.nodeType===1&&(j.nodeName==="CANVAS"?(U.width=j.width,U.height=j.height,U.getContext("2d").drawImage(j,0,0)):(j.nodeName==="TEXTAREA"||j.nodeName==="SELECT")&&(U.value=j.value),U.addEventListener("load",function(){U.scrollTop=j.scrollTop,U.scrollLeft=j.scrollLeft},!0)),U},R=function(j,F){if(L(j)==="number")return j*72/96/F;var U={};for(var K in j)U[K]=j[K]*72/96/F;return U},k=function(j,F){return Math.floor(j*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"),l=n.n(e),t=n("./node_modules/core-js/modules/es.array.map.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.object.keys.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.array.concat.js"),p=n.n(h),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"),O=n.n(b),I=n("jspdf"),L=n.n(I),N=n("html2canvas"),D=n.n(N),R=n("./src/utils.js"),k=n("./node_modules/es6-promise/dist/es6-promise.js"),M=n.n(k),j=M().Promise,F=function U(K){var V=Object.assign(U.convert(j.resolve()),JSON.parse(JSON.stringify(U.template))),z=U.convert(j.resolve(),V);return z=z.setProgress(1,U,1,[U]),z=z.set(K),z};F.prototype=Object.create(j.prototype),F.prototype.constructor=F,F.convert=function(K,V){return K.__proto__=V||F.prototype,K},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(K,V){function z(Q){switch((0,R.objType)(Q)){case"string":return"string";case"element":return Q.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){V=V||z(K);switch(V){case"string":return this.set({src:(0,R.createElement)("div",{innerHTML:K})});case"element":return this.set({src:K});case"canvas":return this.set({canvas:K});case"img":return this.set({img:K});default:return this.error("Unknown source type.")}})},F.prototype.to=function(K){switch(K){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 K=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(K).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)"},Q={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 Z=(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:Q}),this.prop.container.appendChild(Z),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},F.prototype.toCanvas=function(){var K=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(K).then(function(){var z=Object.assign({},this.opt.html2canvas);return delete z.onrendered,N(this.prop.container,z)}).then(function(z){var Q=this.opt.html2canvas.onrendered||function(){};Q(z),this.prop.canvas=z,document.body.removeChild(this.prop.overlay)})},F.prototype.toImg=function(){var K=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(K).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 K=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(K).then(function(){var z=this.prop.canvas,Q=this.opt,Z=z.height,le=Math.floor(z.width*this.prop.pageSize.inner.ratio),ne=Math.ceil(Z/le),ve=this.prop.pageSize.inner.height,xe=document.createElement("canvas"),_e=xe.getContext("2d");xe.width=z.width,xe.height=le,this.prop.pdf=this.prop.pdf||new I.jsPDF(Q.jsPDF);for(var Be=0;Be<ne;Be++){Be===ne-1&&Z%le!==0&&(xe.height=Z%le,ve=xe.height*this.prop.pageSize.inner.width/xe.width);var me=xe.width,Fe=xe.height;_e.fillStyle="white",_e.fillRect(0,0,me,Fe),_e.drawImage(z,0,Be*le,me,Fe,0,0,me,Fe),Be&&this.prop.pdf.addPage();var ie=xe.toDataURL("image/"+Q.image.type,Q.image.quality);this.prop.pdf.addImage(ie,Q.image.type,Q.margin[1],Q.margin[0],this.prop.pageSize.inner.width,ve)}})},F.prototype.output=function(K,V,z){return z=z||"pdf",z.toLowerCase()==="img"||z.toLowerCase()==="image"?this.outputImg(K,V):this.outputPdf(K,V)},F.prototype.outputPdf=function(K,V){var z=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(z).then(function(){return this.prop.pdf.output(K,V)})},F.prototype.outputImg=function(K,V){var z=[function(){return this.prop.img||this.toImg()}];return this.thenList(z).then(function(){switch(K){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 "'+K+'" is not supported.'}})},F.prototype.save=function(K){var V=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(V).set(K?{filename:K}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},F.prototype.set=function(K){if((0,R.objType)(K)!=="object")return this;var V=Object.keys(K||{}).map(function(z){switch(z){case"margin":return this.setMargin.bind(this,K.margin);case"jsPDF":return function(){return this.opt.jsPDF=K.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,K.pageSize);default:return z in F.template.prop?function(){this.prop[z]=K[z]}:function(){this.opt[z]=K[z]}}},this);return this.then(function(){return this.thenList(V)})},F.prototype.get=function(K,V){return this.then(function(){var Q=K in F.template.prop?this.prop[K]:this.opt[K];return V?V(Q):Q})},F.prototype.setMargin=function(K){return this.then(function(){switch((0,R.objType)(K)){case"number":K=[K,K,K,K];case"array":if(K.length===2&&(K=[K[0],K[1],K[0],K[1]]),K.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=K}).then(this.setPageSize)},F.prototype.setPageSize=function(K){return this.then(function(){K=K||I.jsPDF.getPageSize(this.opt.jsPDF),K.hasOwnProperty("inner")||(K.inner={width:K.width-this.opt.margin[1]-this.opt.margin[3],height:K.height-this.opt.margin[0]-this.opt.margin[2]},K.inner.px={width:(0,R.toPx)(K.inner.width,K.k),height:(0,R.toPx)(K.inner.height,K.k)},K.inner.ratio=K.inner.height/K.inner.width),this.prop.pageSize=K})},F.prototype.setProgress=function(K,V,z,Q){return K!=null&&(this.progress.val=K),V!=null&&(this.progress.state=V),z!=null&&(this.progress.n=z),Q!=null&&(this.progress.stack=Q),this.progress.ratio=this.progress.val/this.progress.state,this},F.prototype.updateProgress=function(K,V,z,Q){return this.setProgress(K?this.progress.val+K:null,V||null,z?this.progress.n+z:null,Q?this.progress.stack.concat(Q):null)},F.prototype.then=function(K,V){var z=this;return this.thenCore(K,V,function(Z,le){return z.updateProgress(null,null,1,[Z]),j.prototype.then.call(this,function(ve){return z.updateProgress(null,Z),ve}).then(Z,le).then(function(ve){return z.updateProgress(1),ve})})},F.prototype.thenCore=function(K,V,z){z=z||j.prototype.then;var Q=this;K&&(K=K.bind(Q)),V&&(V=V.bind(Q));var Z=j.toString().indexOf("[native code]")!==-1&&j.name==="Promise",le=Z?Q:F.convert(Object.assign({},Q),j.prototype),ne=z.call(le,K,V);return F.convert(ne,Q.__proto__)},F.prototype.thenExternal=function(K,V){return j.prototype.then.call(this,K,V)},F.prototype.thenList=function(K){var V=this;return K.forEach(function(Q){V=V.thenCore(Q)}),V},F.prototype.catch=function(U){U&&(U=U.bind(this));var K=j.prototype.catch.call(this,U);return F.convert(K,this)},F.prototype.catchExternal=function(K){return j.prototype.catch.call(this,K)},F.prototype.error=function(K){return this.then(function(){throw new Error(K)})},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(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),l=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),s=Array.prototype;s[a]==null&&t.f(s,a,{configurable:!0,value:l(null)}),r.exports=function(u){s[a][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/array-iteration.js").forEach,l=n("./node_modules/core-js/internals/array-method-is-strict.js"),t=l("forEach");r.exports=t?[].forEach:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-length.js"),t=n("./node_modules/core-js/internals/to-absolute-index.js"),a=function(u){return function(h,p,g){var v=e(h),y=l(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"),l=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/to-length.js"),s=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,h=function(g){var v=g==1,y=g==2,x=g==3,T=g==4,S=g==6,b=g==7,O=g==5||S;return function(I,L,N,D){for(var R=t(I),k=l(R),M=e(L,N,3),j=a(k.length),F=0,U=D||s,K=v?U(I,j):y||b?U(I,0):void 0,V,z;j>F;F++)if((O||F in k)&&(V=k[F],z=M(V,F,R),g))if(v)K[F]=z;else if(z)switch(g){case 3:return!0;case 5:return V;case 6:return F;case 2:u.call(K,V)}else switch(g){case 4:return!1;case 7:u.call(K,V)}return S?-1:x||T?T:K}};r.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),t=n("./node_modules/core-js/internals/engine-v8-version.js"),a=l("species");r.exports=function(s){return t>=51||!e(function(){var u=[],h=u.constructor={};return h[a]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(l,t){var a=[][l];return!!a&&e(function(){a.call(null,t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/is-array.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("species");r.exports=function(s){var u;return l(s)&&(u=s.constructor,typeof u=="function"&&(u===Array||l(u.prototype))?u=void 0:e(u)&&(u=u[a],u===null&&(u=void 0))),u===void 0?Array:u}},"./node_modules/core-js/internals/array-species-create.js":function(r,i,n){var e=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(l,t){return new(e(l))(t===0?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var i={}.toString;r.exports=function(n){return i.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/classof-raw.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag"),s=l(function(){return arguments}())=="Arguments",u=function(p,g){try{return p[g]}catch(v){}};r.exports=e?l:function(h){var p,g,v;return h===void 0?"Undefined":h===null?"Null":typeof(g=u(p=Object(h),a))=="string"?g:s?l(p):(v=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":v}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/own-keys.js"),t=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");r.exports=function(s,u){for(var h=l(u),p=a.f,g=t.f,v=0;v<h.length;v++){var y=h[v];e(s,y)||p(s,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 l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=/"/g;r.exports=function(a,s,u,h){var p=l(e(a)),g="<"+s;return u!==""&&(g+=" "+u+'="'+l(h).replace(t,""")+'"'),g+">"+p+"</"+s+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/set-to-string-tag.js"),s=n("./node_modules/core-js/internals/iterators.js"),u=function(){return this};r.exports=function(h,p,g){var v=p+" Iterator";return h.prototype=l(e,{next:t(1,g)}),a(h,v,!1,!0),s[v]=u,h}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=e?function(a,s,u){return l.f(a,s,t(1,u))}:function(a,s,u){return a[s]=u,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}}},"./node_modules/core-js/internals/create-property.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-property-key.js"),l=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=function(a,s,u){var h=e(s);h in a?l.f(a,h,t(0,u)):a[h]=u}},"./node_modules/core-js/internals/define-iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/create-iterator-constructor.js"),t=n("./node_modules/core-js/internals/object-get-prototype-of.js"),a=n("./node_modules/core-js/internals/object-set-prototype-of.js"),s=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),h=n("./node_modules/core-js/internals/redefine.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),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",O="values",I="entries",L=function(){return this};r.exports=function(N,D,R,k,M,j,F){l(R,D,k);var U=function(Be){if(Be===M&&Z)return Z;if(!T&&Be in z)return z[Be];switch(Be){case b:return function(){return new R(this,Be)};case O:return function(){return new R(this,Be)};case I:return function(){return new R(this,Be)}}return function(){return new R(this)}},K=D+" Iterator",V=!1,z=N.prototype,Q=z[S]||z["@@iterator"]||M&&z[M],Z=!T&&Q||U(M),le=D=="Array"&&z.entries||Q,ne,ve,xe;if(le&&(ne=t(le.call(new N)),x!==Object.prototype&&ne.next&&(!g&&t(ne)!==x&&(a?a(ne,x):typeof ne[S]!="function"&&u(ne,S,L)),s(ne,K,!0,!0),g&&(v[K]=L))),M==O&&Q&&Q.name!==O&&(V=!0,Z=function(){return Q.call(this)}),(!g||F)&&z[S]!==Z&&u(z,S,Z),v[D]=Z,M)if(ve={values:U(O),keys:j?Z:U(b),entries:U(I)},F)for(xe in ve)(T||V||!(xe in z))&&h(z,xe,ve[xe]);else e({target:D,proto:!0,forced:T||V},ve);return ve}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/path.js"),l=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f;r.exports=function(s){var u=e.Symbol||(e.Symbol={});l(u,s)||a(u,s,{value:t.f(s)})}},"./node_modules/core-js/internals/descriptors.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/is-object.js"),t=e.document,a=l(t)&&l(t.createElement);r.exports=function(s){return a?t.createElement(s):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(r){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/engine-user-agent.js"),t=e.process,a=e.Deno,s=t&&t.versions||a&&a.version,u=s&&s.v8,h,p;u?(h=u.split("."),p=h[0]<4?1:h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(p=h[1]))),r.exports=p&&+p},"./node_modules/core-js/internals/enum-bug-keys.js":function(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/set-global.js"),u=n("./node_modules/core-js/internals/copy-constructor-properties.js"),h=n("./node_modules/core-js/internals/is-forced.js");r.exports=function(p,g){var v=p.target,y=p.global,x=p.stat,T,S,b,O,I,L;if(y?S=e:x?S=e[v]||s(v,{}):S=(e[v]||{}).prototype,S)for(b in g){if(I=g[b],p.noTargetGet?(L=l(S,b),O=L&&L.value):O=S[b],T=h(y?b:v+(x?".":"#")+b,p.forced),!T&&O!==void 0){if(typeof I===typeof O)continue;u(I,O)}(p.sham||O&&O.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(l,t,a){if(e(l),t===void 0)return l;switch(a){case 0:return function(){return l.call(t)};case 1:return function(s){return l.call(t,s)};case 2:return function(s,u){return l.call(t,s,u)};case 3:return function(s,u,h){return l.call(t,s,u,h)}}return function(){return l.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=function(a){return typeof a=="function"?a:void 0};r.exports=function(t,a){return arguments.length<2?l(e[t]):e[t]&&e[t][a]}},"./node_modules/core-js/internals/global.js":function(r){var i=function(e){return e&&e.Math==Math&&e};r.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof _=="object"&&_)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;r.exports=Object.hasOwn||function(a,s){return l.call(e(a),s)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!e&&!l(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/classof-raw.js"),t="".split;r.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return l(a)=="String"?t.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(t,a,s){var u,h;return l&&typeof(u=a.constructor)=="function"&&u!==s&&e(h=u.prototype)&&h!==s.prototype&&l(t,h),t}},"./node_modules/core-js/internals/inspect-source.js":function(r,i,n){var e=n("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(t){return l.call(t)}),r.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,i,n){var e=n("./node_modules/core-js/internals/native-weak-map.js"),l=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/shared-store.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=n("./node_modules/core-js/internals/hidden-keys.js"),g="Object already initialized",v=l.WeakMap,y,x,T,S=function(k){return T(k)?x(k):y(k,{})},b=function(k){return function(M){var j;if(!t(M)||(j=x(M)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return j}};if(e||u.state){var O=u.state||(u.state=new v),I=O.get,L=O.has,N=O.set;y=function(k,M){if(L.call(O,k))throw new TypeError(g);return M.facade=k,N.call(O,k,M),M},x=function(k){return I.call(O,k)||{}},T=function(k){return L.call(O,k)}}else{var D=h("state");p[D]=!0,y=function(k,M){if(s(k,D))throw new TypeError(g);return M.facade=k,a(k,D,M),M},x=function(k){return s(k,D)?k[D]:{}},T=function(k){return s(k,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"),l=/#|\.prototype\./,t=function(g,v){var y=s[a(g)];return y==h?!0:y==u?!1:typeof v=="function"?e(v):!!v},a=t.normalize=function(p){return String(p).replace(l,".").toLowerCase()},s=t.data={},u=t.NATIVE="N",h=t.POLYFILL="P";r.exports=t},"./node_modules/core-js/internals/is-object.js":function(r){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"./node_modules/core-js/internals/is-pure.js":function(r){r.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/use-symbol-as-uid.js");r.exports=l?function(t){return typeof t=="symbol"}:function(t){var a=e("Symbol");return typeof a=="function"&&Object(t)instanceof a}},"./node_modules/core-js/internals/iterators-core.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/object-get-prototype-of.js"),t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),h=s("iterator"),p=!1,g=function(){return this},v,y,x;[].keys&&(x=[].keys(),"next"in x?(y=l(l(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"),l=n("./node_modules/core-js/internals/fails.js");r.exports=!!Object.getOwnPropertySymbols&&!l(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),t=e.WeakMap;r.exports=typeof t=="function"&&/native code/.test(l(t))},"./node_modules/core-js/internals/object-assign.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),u=n("./node_modules/core-js/internals/to-object.js"),h=n("./node_modules/core-js/internals/indexed-object.js"),p=Object.assign,g=Object.defineProperty;r.exports=!p||l(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,O=a.f,I=s.f;S>b;)for(var L=h(arguments[b++]),N=O?t(L).concat(O(L)):t(L),D=N.length,R=0,k;D>R;)k=N[R++],(!e||I.call(L,k))&&(T[k]=L[k]);return T}:p},"./node_modules/core-js/internals/object-create.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/object-define-properties.js"),t=n("./node_modules/core-js/internals/enum-bug-keys.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),s=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=">",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},O=function(){var D=u("iframe"),R="java"+y+":",k;if(D.style)return D.style.display="none",s.appendChild(D),D.src=String(R),k=D.contentWindow.document,k.open(),k.write(S("document.F=Object")),k.close(),k.F},I,L=function(){try{I=new ActiveXObject("htmlfile")}catch(R){}L=document.domain&&I?b(I):O()||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 k;return D!==null?(T[v]=e(D),k=new T,T[v]=null,k[x]=D):k=L(),R===void 0?k:l(k,R)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");r.exports=e?Object.defineProperties:function(u,h){t(u);for(var p=a(h),g=p.length,v=0,y;g>v;)l.f(u,y=p[v++],h[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/ie8-dom-define.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-property-key.js"),s=Object.defineProperty;i.f=e?s:function(h,p,g){if(t(h),p=a(p),t(g),l)try{return s(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"),l=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has.js"),h=n("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;i.f=e?p:function(v,y){if(v=a(v),y=s(y),h)try{return p(v,y)}catch(x){}if(u(v,y))return t(!l.f.call(v,y),v[y])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,t={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(h){try{return l(h)}catch(p){return a.slice()}};r.exports.f=function(h){return a&&t.call(h)=="[object Window]"?s(h):l(e(h))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),l=n("./node_modules/core-js/internals/enum-bug-keys.js"),t=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(s){return e(s,t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(r,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),s=t("IE_PROTO"),u=Object.prototype;r.exports=a?Object.getPrototypeOf:function(h){return h=l(h),e(h,s)?h[s]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/to-indexed-object.js"),t=n("./node_modules/core-js/internals/array-includes.js").indexOf,a=n("./node_modules/core-js/internals/hidden-keys.js");r.exports=function(s,u){var h=l(s),p=0,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"),l=n("./node_modules/core-js/internals/enum-bug-keys.js");r.exports=Object.keys||function(a){return e(a,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,i){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!n.call({1:2},1);i.f=l?function(a){var s=e(this,a);return!!s&&s.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/a-possible-prototype.js");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,a={},s;try{s=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,s.call(a,[]),t=a instanceof Array}catch(u){}return function(h,p){return e(h),l(p),t?s.call(h,p):h.__proto__=p,h}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/classof.js");r.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(l,t){var a,s;if(t==="string"&&typeof(a=l.toString)=="function"&&!e(s=a.call(l)))return s;if(typeof(a=l.valueOf)=="function"&&!e(s=a.call(l)))return s;if(t!=="string"&&typeof(a=l.toString)=="function"&&!e(s=a.call(l)))return s;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/object-get-own-property-names.js"),t=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js");r.exports=e("Reflect","ownKeys")||function(u){var h=l.f(a(u)),p=t.f;return p?h.concat(p(u)):h}},"./node_modules/core-js/internals/path.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=e},"./node_modules/core-js/internals/redefine.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),t=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/set-global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),h=u.get,p=u.enforce,g=String(String).split("String");(r.exports=function(v,y,x,T){var S=T?!!T.unsafe:!1,b=T?!!T.enumerable:!1,O=T?!!T.noTargetGet:!1,I;if(typeof x=="function"&&(typeof y=="string"&&!t(x,"name")&&l(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?!O&&v[y]&&(b=!0):delete v[y];b?v[y]=x:l(v,y,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||s(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/an-object.js");r.exports=function(){var l=e(this),t="";return l.global&&(t+="g"),l.ignoreCase&&(t+="i"),l.multiline&&(t+="m"),l.dotAll&&(t+="s"),l.unicode&&(t+="u"),l.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=function(l,t){try{Object.defineProperty(e,l,{value:t,configurable:!0,writable:!0})}catch(a){e[l]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-define-property.js").f,l=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag");r.exports=function(s,u,h){s&&!l(s=h?s:s.prototype,a)&&e(s,a,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(r,i,n){var e=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/uid.js"),t=e("keys");r.exports=function(a){return t[a]||(t[a]=l(a))}},"./node_modules/core-js/internals/shared-store.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/set-global.js"),t="__core-js_shared__",a=e[t]||l(t,{});r.exports=a},"./node_modules/core-js/internals/shared.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(t,a){return l[t]||(l[t]=a!==void 0?a:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(l){return e(function(){var t=""[l]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/require-object-coercible.js"),a=function(u){return function(h,p){var g=l(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"),l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/whitespaces.js"),a="["+t+"]",s=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(g){return function(v){var y=l(e(v));return g&1&&(y=y.replace(s,"")),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"),l=Math.max,t=Math.min;r.exports=function(a,s){var u=e(a);return u<0?l(u+s,0):t(u,s)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/indexed-object.js"),l=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(t){return e(l(t))}},"./node_modules/core-js/internals/to-integer.js":function(r){var i=Math.ceil,n=Math.floor;r.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},"./node_modules/core-js/internals/to-length.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=Math.min;r.exports=function(t){return t>0?l(e(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/is-symbol.js"),t=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),s=a("toPrimitive");r.exports=function(u,h){if(!e(u)||l(u))return u;var p=u[s],g;if(p!==void 0){if(h===void 0&&(h="default"),g=p.call(u,h),!e(g)||l(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"),l=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(t){var a=e(t,"string");return l(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),t={};t[l]="z",r.exports=String(t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(r){var i=0,n=Math.random();r.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++i+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(r,i,n){var e=n("./node_modules/core-js/internals/native-symbol.js");r.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js");i.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/shared.js"),t=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/uid.js"),s=n("./node_modules/core-js/internals/native-symbol.js"),u=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),h=l("wks"),p=e.Symbol,g=u?p:p&&p.withoutSetter||a;r.exports=function(v){return(!t(h,v)||!(s||typeof h[v]=="string"))&&(s&&t(p,v)?h[v]=p[v]:h[v]=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"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/to-object.js"),u=n("./node_modules/core-js/internals/to-length.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/array-species-create.js"),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||!l(function(){var N=[];return N[x]=!1,N.concat()[0]!==N}),O=g("concat"),I=function(D){if(!a(D))return!1;var R=D[x];return R!==void 0?!!R:t(D)},L=!b||!O;e({target:"Array",proto:!0,forced:L},{concat:function(D){var R=s(this),k=p(R,0),M=0,j,F,U,K,V;for(j=-1,U=arguments.length;j<U;j++)if(V=j===-1?R:arguments[j],I(V)){if(K=u(V.length),M+K>T)throw TypeError(S);for(F=0;F<K;F++,M++)F in V&&h(k,M,V[F])}else{if(M>=T)throw TypeError(S);h(k,M++,V)}return k.length=M,k}})},"./node_modules/core-js/modules/es.array.iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/add-to-unscopables.js"),t=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/internal-state.js"),s=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",h=a.set,p=a.getterFor(u);r.exports=s(Array,"Array",function(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,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-method-is-strict.js"),s=[].join,u=l!=Object,h=a("join",",");e({target:"Array",proto:!0,forced:u||!h},{join:function(g){return s.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"),l=n("./node_modules/core-js/internals/array-iteration.js").map,t=n("./node_modules/core-js/internals/array-method-has-species-support.js"),a=t("map");e({target:"Array",proto:!0,forced:!a},{map:function(u){return l(this,u,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/is-object.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/to-absolute-index.js"),s=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),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,O){var I=u(this),L=s(I.length),N=a(b,L),D=a(O===void 0?L:O,L),R,k,M;if(t(I)&&(R=I.constructor,typeof R=="function"&&(R===Array||t(R.prototype))?R=void 0:l(R)&&(R=R[y],R===null&&(R=void 0)),R===Array||R===void 0))return x.call(I,N,D);for(k=new(R===void 0?Array:R)(T(D-N,0)),M=0;N<D;N++,M++)N in I&&h(k,M,I[N]);return k.length=M,k}})},"./node_modules/core-js/modules/es.function.name.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js").f,t=Function.prototype,a=t.toString,s=/^\s*function ([^ (]*)/,u="name";e&&!(u in t)&&l(t,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-forced.js"),a=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/classof-raw.js"),h=n("./node_modules/core-js/internals/inherit-if-required.js"),p=n("./node_modules/core-js/internals/is-symbol.js"),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,O="Number",I=l[O],L=I.prototype,N=u(y(L))==O,D=function(U){if(p(U))throw TypeError("Cannot convert a Symbol value to a number");var K=g(U,"number"),V,z,Q,Z,le,ne,ve,xe;if(typeof K=="string"&&K.length>2){if(K=b(K),V=K.charCodeAt(0),V===43||V===45){if(z=K.charCodeAt(2),z===88||z===120)return NaN}else if(V===48){switch(K.charCodeAt(1)){case 66:case 98:Q=2,Z=49;break;case 79:case 111:Q=8,Z=55;break;default:return+K}for(le=K.slice(2),ne=le.length,ve=0;ve<ne;ve++)if(xe=le.charCodeAt(ve),xe<48||xe>Z)return NaN;return parseInt(le,Q)}}return+K};if(t(O,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var R=function(U){var K=arguments.length<1?0:U,V=this;return V instanceof R&&(N?v(function(){L.valueOf.call(V)}):u(V)!=O)?h(new I(D(K)),V,R):D(K)},k=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,j;k.length>M;M++)s(I,j=k[M])&&!s(R,j)&&S(R,j,T(I,j));R.prototype=L,L.constructor=R,a(l,O,R)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/fails.js"),s=a(function(){t(1)});e({target:"Object",stat:!0,forced:s},{keys:function(h){return t(l(h))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/redefine.js"),t=n("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/an-object.js"),t=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/regexp-flags.js"),u="toString",h=RegExp.prototype,p=h[u],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=l(this),T=t(x.source),S=x.flags,b=t(S===void 0&&x instanceof RegExp&&!("flags"in h)?s.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,l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/define-iterator.js"),s="String Iterator",u=t.set,h=t.getterFor(s);a(String,"String",function(p){u(this,{type:s,string:l(p),index:0})},function(){var 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"),l=n("./node_modules/core-js/internals/create-html.js"),t=n("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:t("link")},{link:function(s){return l(this,"a","href",s)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/descriptors.js"),t=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-define-property.js").f,h=n("./node_modules/core-js/internals/copy-constructor-properties.js"),p=t.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var g={},v=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof v?new p(O):O===void 0?p():p(O);return O===""&&(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 O=s(this)?this.valueOf():this,I=x.call(O);if(a(g,O))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"),l=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/get-built-in.js"),a=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/native-symbol.js"),h=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/has.js"),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"),O=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"),k=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"),j=n("./node_modules/core-js/internals/object-define-property.js"),F=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),U=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),K=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"),Q=n("./node_modules/core-js/internals/hidden-keys.js"),Z=n("./node_modules/core-js/internals/uid.js"),le=n("./node_modules/core-js/internals/well-known-symbol.js"),ne=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ve=n("./node_modules/core-js/internals/define-well-known-symbol.js"),xe=n("./node_modules/core-js/internals/set-to-string-tag.js"),_e=n("./node_modules/core-js/internals/internal-state.js"),Be=n("./node_modules/core-js/internals/array-iteration.js").forEach,me=z("hidden"),Fe="Symbol",ie="prototype",te=le("toPrimitive"),Ge=_e.set,oe=_e.getterFor(Fe),Y=Object[ie],G=l.Symbol,X=t("JSON","stringify"),fe=M.f,de=j.f,Ce=R.f,Me=F.f,ue=V("symbols"),Ae=V("op-symbols"),Te=V("string-to-symbol-registry"),Je=V("symbol-to-string-registry"),At=V("wks"),qe=l.QObject,Re=!qe||!qe[ie]||!qe[ie].findChild,Lt=s&&h(function(){return L(de({},"a",{get:function(){return de(this,"a",{value:7}).a}})).a!=7})?function(Ue,Le,ee){var ct=fe(Y,Le);ct&&delete Y[Le],de(Ue,Le,ee),ct&&Ue!==Y&&de(Y,Le,ct)}:de,$e=function(Le,ee){var ct=ue[Le]=L(G[ie]);return Ge(ct,{type:Fe,tag:Le,description:ee}),s||(ct.description=ee),ct},Et=function(Le,ee,ct){Le===Y&&Et(Ae,ee,ct),x(Le);var Mt=b(ee);return x(ct),p(ue,Mt)?(ct.enumerable?(p(Le,me)&&Le[me][Mt]&&(Le[me][Mt]=!1),ct=L(ct,{enumerable:I(0,!1)})):(p(Le,me)||de(Le,me,I(1,{})),Le[me][Mt]=!0),Lt(Le,Mt,ct)):de(Le,Mt,ct)},Ut=function(Le,ee){x(Le);var ct=S(ee),Mt=N(ct).concat(se(ct));return Be(Mt,function(ot){(!s||_t.call(ct,ot))&&Et(Le,ot,ct[ot])}),Le},Bt=function(Le,ee){return ee===void 0?L(Le):Ut(L(Le),ee)},_t=function(Le){var ee=b(Le),ct=Me.call(this,ee);return this===Y&&p(ue,ee)&&!p(Ae,ee)?!1:ct||!p(this,ee)||!p(ue,ee)||p(this,me)&&this[me][ee]?ct:!0},jt=function(Le,ee){var ct=S(Le),Mt=b(ee);if(ct===Y&&p(ue,Mt)&&!p(Ae,Mt))return;var ot=fe(ct,Mt);return ot&&p(ue,Mt)&&!(p(ct,me)&&ct[me][Mt])&&(ot.enumerable=!0),ot},He=function(Le){var ee=Ce(S(Le)),ct=[];return Be(ee,function(Mt){!p(ue,Mt)&&!p(Q,Mt)&&ct.push(Mt)}),ct},se=function(Le){var ee=Le===Y,ct=Ce(ee?Ae:S(Le)),Mt=[];return Be(ct,function(ot){p(ue,ot)&&(!ee||p(Y,ot))&&Mt.push(ue[ot])}),Mt};if(u||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var Le=!arguments.length||arguments[0]===void 0?void 0:O(arguments[0]),ee=Z(Le),ct=function Mt(ot){this===Y&&Mt.call(Ae,ot),p(this,me)&&p(this[me],ee)&&(this[me][ee]=!1),Lt(this,ee,I(1,ot))};return s&&Re&&Lt(Y,ee,{configurable:!0,set:ct}),$e(ee,Le)},K(G[ie],"toString",function(){return oe(this).tag}),K(G,"withoutSetter",function(Ue){return $e(Z(Ue),Ue)}),F.f=_t,j.f=Et,M.f=jt,D.f=R.f=He,k.f=se,ne.f=function(Ue){return $e(le(Ue),Ue)},s&&(de(G[ie],"description",{configurable:!0,get:function(){return oe(this).description}}),a||K(Y,"propertyIsEnumerable",_t,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),Be(N(At),function(Ue){ve(Ue)}),e({target:Fe,stat:!0,forced:!u},{for:function(Le){var ee=O(Le);if(p(Te,ee))return Te[ee];var ct=G(ee);return Te[ee]=ct,Je[ct]=ee,ct},keyFor:function(Le){if(!y(Le))throw TypeError(Le+" is not a symbol");if(p(Je,Le))return Je[Le]},useSetter:function(){Re=!0},useSimple:function(){Re=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!s},{create:Bt,defineProperty:Et,defineProperties:Ut,getOwnPropertyDescriptor:jt}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:He,getOwnPropertySymbols:se}),e({target:"Object",stat:!0,forced:h(function(){k.f(1)})},{getOwnPropertySymbols:function(Le){return k.f(T(Le))}}),X){var J=!u||h(function(){var Ue=G();return X([Ue])!="[null]"||X({a:Ue})!="{}"||X(Object(Ue))!="{}"});e({target:"JSON",stat:!0,forced:J},{stringify:function(Le,ee,ct){for(var Mt=[Le],ot=1,Yt;arguments.length>ot;)Mt.push(arguments[ot++]);return Yt=ee,!v(ee)&&Le===void 0||y(Le)?void 0:(g(ee)||(ee=function(Zr,ir){if(typeof Yt=="function"&&(ir=Yt.call(this,Zr,ir)),!y(ir))return ir}),Mt[1]=ee,X.apply(null,Mt))}})}G[ie][te]||U(G[ie],te,G[ie].valueOf),xe(G,Fe),Q[me]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/internals/array-for-each.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var s in l){var u=e[s],h=u&&u.prototype;if(h&&h.forEach!==t)try{a(h,"forEach",t)}catch(p){h.forEach=t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/modules/es.array.iterator.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),u=s("iterator"),h=s("toStringTag"),p=t.values;for(var g in l){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),l[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(qe){var Re=typeof qe;return qe!==null&&(Re==="object"||Re==="function")}function n(qe){return typeof qe=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Re){return Object.prototype.toString.call(Re)==="[object Array]"};var l=e,t=0,a=void 0,s=void 0,u=function(Re,Lt){N[t]=Re,N[t+1]=Lt,t+=2,t===2&&(s?s(D):k())};function h(qe){s=qe}function p(qe){u=qe}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 O(){var qe=0,Re=new y(D),Lt=document.createTextNode("");return Re.observe(Lt,{characterData:!0}),function(){Lt.data=qe=++qe%2}}function I(){var qe=new MessageChannel;return qe.port1.onmessage=D,function(){return qe.port2.postMessage(0)}}function L(){var qe=setTimeout;return function(){return qe(D,1)}}var N=new Array(1e3);function D(){for(var qe=0;qe<t;qe+=2){var Re=N[qe],Lt=N[qe+1];Re(Lt),N[qe]=void 0,N[qe+1]=void 0}t=0}function R(){try{var qe=Function("return this")().require("vertx");return a=qe.runOnLoop||qe.runOnContext,b()}catch(Re){return L()}}var k=void 0;x?k=S():y?k=O():T?k=I():g===void 0&&!0?k=R():k=L();function M(qe,Re){var Lt=this,$e=new this.constructor(U);$e[F]===void 0&&X($e);var Et=Lt._state;if(Et){var Ut=arguments[Et-1];u(function(){return Ge(Et,$e,Ut,Lt._result)})}else ie(Lt,$e,qe,Re);return $e}function j(qe){var Re=this;if(qe&&typeof qe=="object"&&qe.constructor===Re)return qe;var Lt=new Re(U);return _e(Lt,qe),Lt}var F=Math.random().toString(36).substring(2);function U(){}var K=void 0,V=1,z=2;function Q(){return new TypeError("You cannot resolve a promise with itself")}function Z(){return new TypeError("A promises callback cannot return that same promise.")}function le(qe,Re,Lt,$e){try{qe.call(Re,Lt,$e)}catch(Et){return Et}}function ne(qe,Re,Lt){u(function($e){var Et=!1,Ut=le(Lt,Re,function(Bt){if(Et)return;Et=!0,Re!==Bt?_e($e,Bt):me($e,Bt)},function(Bt){if(Et)return;Et=!0,Fe($e,Bt)},"Settle: "+($e._label||" unknown promise"));!Et&&Ut&&(Et=!0,Fe($e,Ut))},qe)}function ve(qe,Re){Re._state===V?me(qe,Re._result):Re._state===z?Fe(qe,Re._result):ie(Re,void 0,function(Lt){return _e(qe,Lt)},function(Lt){return Fe(qe,Lt)})}function xe(qe,Re,Lt){Re.constructor===qe.constructor&&Lt===M&&Re.constructor.resolve===j?ve(qe,Re):Lt===void 0?me(qe,Re):n(Lt)?ne(qe,Re,Lt):me(qe,Re)}function _e(qe,Re){if(qe===Re)Fe(qe,Q());else if(i(Re)){var Lt=void 0;try{Lt=Re.then}catch($e){Fe(qe,$e);return}xe(qe,Re,Lt)}else me(qe,Re)}function Be(qe){qe._onerror&&qe._onerror(qe._result),te(qe)}function me(qe,Re){if(qe._state!==K)return;qe._result=Re,qe._state=V,qe._subscribers.length!==0&&u(te,qe)}function Fe(qe,Re){if(qe._state!==K)return;qe._state=z,qe._result=Re,u(Be,qe)}function ie(qe,Re,Lt,$e){var Et=qe._subscribers,Ut=Et.length;qe._onerror=null,Et[Ut]=Re,Et[Ut+V]=Lt,Et[Ut+z]=$e,Ut===0&&qe._state&&u(te,qe)}function te(qe){var Re=qe._subscribers,Lt=qe._state;if(Re.length===0)return;for(var $e=void 0,Et=void 0,Ut=qe._result,Bt=0;Bt<Re.length;Bt+=3)$e=Re[Bt],Et=Re[Bt+Lt],$e?Ge(Lt,$e,Et,Ut):Et(Ut);qe._subscribers.length=0}function Ge(qe,Re,Lt,$e){var Et=n(Lt),Ut=void 0,Bt=void 0,_t=!0;if(Et){try{Ut=Lt($e)}catch(jt){_t=!1,Bt=jt}if(Re===Ut){Fe(Re,Z());return}}else Ut=$e;Re._state!==K||(Et&&_t?_e(Re,Ut):_t===!1?Fe(Re,Bt):qe===V?me(Re,Ut):qe===z&&Fe(Re,Ut))}function oe(qe,Re){try{Re(function($e){_e(qe,$e)},function($e){Fe(qe,$e)})}catch(Lt){Fe(qe,Lt)}}var Y=0;function G(){return Y++}function X(qe){qe[F]=Y++,qe._state=void 0,qe._result=void 0,qe._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var de=function(){function qe(Re,Lt){this._instanceConstructor=Re,this.promise=new Re(U),this.promise[F]||X(this.promise),l(Lt)?(this.length=Lt.length,this._remaining=Lt.length,this._result=new Array(this.length),this.length===0?me(this.promise,this._result):(this.length=this.length||0,this._enumerate(Lt),this._remaining===0&&me(this.promise,this._result))):Fe(this.promise,fe())}return qe.prototype._enumerate=function(Lt){for(var $e=0;this._state===K&&$e<Lt.length;$e++)this._eachEntry(Lt[$e],$e)},qe.prototype._eachEntry=function(Lt,$e){var Et=this._instanceConstructor,Ut=Et.resolve;if(Ut===j){var Bt=void 0,_t=void 0,jt=!1;try{Bt=Lt.then}catch(se){jt=!0,_t=se}if(Bt===M&&Lt._state!==K)this._settledAt(Lt._state,$e,Lt._result);else if(typeof Bt!="function")this._remaining--,this._result[$e]=Lt;else if(Et===Je){var He=new Et(U);jt?Fe(He,_t):xe(He,Lt,Bt),this._willSettleAt(He,$e)}else this._willSettleAt(new Et(function(se){return se(Lt)}),$e)}else this._willSettleAt(Ut(Lt),$e)},qe.prototype._settledAt=function(Lt,$e,Et){var Ut=this.promise;Ut._state===K&&(this._remaining--,Lt===z?Fe(Ut,Et):this._result[$e]=Et),this._remaining===0&&me(Ut,this._result)},qe.prototype._willSettleAt=function(Lt,$e){var Et=this;ie(Lt,void 0,function(Ut){return Et._settledAt(V,$e,Ut)},function(Ut){return Et._settledAt(z,$e,Ut)})},qe}();function Ce(qe){return new de(this,qe).promise}function Me(qe){var Re=this;return l(qe)?new Re(function(Lt,$e){for(var Et=qe.length,Ut=0;Ut<Et;Ut++)Re.resolve(qe[Ut]).then(Lt,$e)}):new Re(function(Lt,$e){return $e(new TypeError("You must pass an array to race."))})}function ue(qe){var Re=this,Lt=new Re(U);return Fe(Lt,qe),Lt}function Ae(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Je=function(){function qe(Re){this[F]=G(),this._result=this._state=void 0,this._subscribers=[],U!==Re&&(typeof Re!="function"&&Ae(),this instanceof qe?oe(this,Re):Te())}return qe.prototype.catch=function(Lt){return this.then(null,Lt)},qe.prototype.finally=function(Lt){var $e=this,Et=$e.constructor;return n(Lt)?$e.then(function(Ut){return Et.resolve(Lt()).then(function(){return Ut})},function(Ut){return Et.resolve(Lt()).then(function(){throw Ut})}):$e.then(Lt,Lt)},qe}();Je.prototype.then=M,Je.all=Ce,Je.race=Me,Je.resolve=j,Je.reject=ue,Je._setScheduler=h,Je._setAsap=p,Je._asap=u;function At(){var qe=void 0;if(typeof _!="undefined")qe=_;else if(typeof self!="undefined")qe=self;else try{qe=Function("return this")()}catch($e){throw new Error("polyfill failed because global object is unavailable in this environment")}var Re=qe.Promise;if(Re){var Lt=null;try{Lt=Object.prototype.toString.call(Re.resolve())}catch($e){}if(Lt==="[object Promise]"&&!Re.cast)return}qe.Promise=Je}return Je.polyfill=At,Je.Promise=Je,Je})},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 l(t,a){var s=new l.Worker(a);return t?s.from(t).save():s};e.Worker=o.default,c.default=e}(),c=c.default,c}()})}).call(this,d("yLpj"),d("Q2Ig"))},"1q3G":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=_;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}},"1tlw":function(H,B,d){var _=d("MBQ8"),E=_.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 _=d("ProS"),E={type:"selectDataRange",event:"dataRangeSelected",update:"update"};_.registerAction(E,function(C,A){A.eachComponent({mainType:"visualMap",query:C},function(w){w.setSelected(C.selected)})})},"1uat":function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"))})(this,function(_){return function(){var E=_,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(l,t){for(var a=this._hash.words,s=a[0],u=a[1],h=a[2],p=a[3],g=a[4],v=a[5],y=a[6],x=a[7],T=s.high,S=s.low,b=u.high,O=u.low,I=h.high,L=h.low,N=p.high,D=p.low,R=g.high,k=g.low,M=v.high,j=v.low,F=y.high,U=y.low,K=x.high,V=x.low,z=T,Q=S,Z=b,le=O,ne=I,ve=L,xe=N,_e=D,Be=R,me=k,Fe=M,ie=j,te=F,Ge=U,oe=K,Y=V,G=0;G<80;G++){var X,fe,de=i[G];if(G<16)fe=de.high=l[t+G*2]|0,X=de.low=l[t+G*2+1]|0;else{var Ce=i[G-15],Me=Ce.high,ue=Ce.low,Ae=(Me>>>1|ue<<31)^(Me>>>8|ue<<24)^Me>>>7,Te=(ue>>>1|Me<<31)^(ue>>>8|Me<<24)^(ue>>>7|Me<<25),Je=i[G-2],At=Je.high,qe=Je.low,Re=(At>>>19|qe<<13)^(At<<3|qe>>>29)^At>>>6,Lt=(qe>>>19|At<<13)^(qe<<3|At>>>29)^(qe>>>6|At<<26),$e=i[G-7],Et=$e.high,Ut=$e.low,Bt=i[G-16],_t=Bt.high,jt=Bt.low;X=Te+Ut,fe=Ae+Et+(X>>>0<Te>>>0?1:0),X=X+Lt,fe=fe+Re+(X>>>0<Lt>>>0?1:0),X=X+jt,fe=fe+_t+(X>>>0<jt>>>0?1:0),de.high=fe,de.low=X}var He=Be&Fe^~Be&te,se=me&ie^~me&Ge,J=z&Z^z&ne^Z&ne,Ue=Q&le^Q&ve^le&ve,Le=(z>>>28|Q<<4)^(z<<30|Q>>>2)^(z<<25|Q>>>7),ee=(Q>>>28|z<<4)^(Q<<30|z>>>2)^(Q<<25|z>>>7),ct=(Be>>>14|me<<18)^(Be>>>18|me<<14)^(Be<<23|me>>>9),Mt=(me>>>14|Be<<18)^(me>>>18|Be<<14)^(me<<23|Be>>>9),ot=r[G],Yt=ot.high,or=ot.low,Zr=Y+Mt,ir=oe+ct+(Zr>>>0<Y>>>0?1:0),Zr=Zr+se,ir=ir+He+(Zr>>>0<se>>>0?1:0),Zr=Zr+or,ir=ir+Yt+(Zr>>>0<or>>>0?1:0),Zr=Zr+X,ir=ir+fe+(Zr>>>0<X>>>0?1:0),dr=ee+Ue,qt=Le+J+(dr>>>0<ee>>>0?1:0);oe=te,Y=Ge,te=Fe,Ge=ie,Fe=Be,ie=me,me=_e+Zr|0,Be=xe+ir+(me>>>0<_e>>>0?1:0)|0,xe=ne,_e=ve,ne=Z,ve=le,Z=z,le=Q,Q=Zr+dr|0,z=ir+qt+(Q>>>0<Zr>>>0?1:0)|0}S=s.low=S+Q,s.high=T+z+(S>>>0<Q>>>0?1:0),O=u.low=O+le,u.high=b+Z+(O>>>0<le>>>0?1:0),L=h.low=L+ve,h.high=I+ne+(L>>>0<ve>>>0?1:0),D=p.low=D+_e,p.high=N+xe+(D>>>0<_e>>>0?1:0),k=g.low=k+me,g.high=R+Be+(k>>>0<me>>>0?1:0),j=v.low=j+ie,v.high=M+Fe+(j>>>0<ie>>>0?1:0),U=y.low=U+Ge,y.high=F+te+(U>>>0<Ge>>>0?1:0),V=x.low=V+Y,x.high=K+oe+(V>>>0<Y>>>0?1:0)},_doFinalize:function(){var l=this._data,t=l.words,a=this._nDataBytes*8,s=l.sigBytes*8;t[s>>>5]|=128<<24-s%32,t[(s+128>>>10<<5)+30]=Math.floor(a/4294967296),t[(s+128>>>10<<5)+31]=a,l.sigBytes=t.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var l=A.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});E.SHA512=A._createHelper(n),E.HmacSHA512=A._createHmacHelper(n)}(),_.SHA512})},"1vzs":function(H,B,d){"use strict";d.d(B,"a",function(){return t});var _=d("q1tI"),E=d.n(_),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"),l=d.n(e);function t(a){var s=a.suffixIcon,u=a.clearIcon,h=a.menuItemSelectedIcon,p=a.removeIcon,g=a.loading,v=a.multiple,y=a.prefixCls,x=u;u||(x=_.createElement(n.a,null));var T=null;if(s!==void 0)T=s;else if(g)T=_.createElement(m.a,{spin:!0});else{var S="".concat(y,"-suffix");T=function(L){var N=L.open,D=L.showSearch;return N&&D?_.createElement(l.a,{className:S}):_.createElement(A.a,{className:S})}}var b=null;h!==void 0?b=h:v?b=_.createElement(c.a,null):b=null;var O=null;return p!==void 0?O=p:O=_.createElement(r.a,null),{clearIcon:x,suffixIcon:T,itemIcon:b,removeIcon:O}}},"1xaR":function(H,B,d){var _=d("ProS"),E=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var C=d("mOdp"),A=d("y3NT"),w=d("0/Rx");_.registerVisual(E.curry(C,"sunburst")),_.registerLayout(E.curry(A,"sunburst")),_.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 _="size-sensor-id";B.SizeSensorId=_;var E="size-sensor-object";B.SensorClassName=E;var C="-1";B.SensorTabIndex=C},"2548":function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("6GrX"),A=d("IUWy"),w=d("IwbS"),m=d("Qxkt"),f=d("gPAo"),c=d("eRkO"),o=_.extendComponentView({type:"toolbox",render:function(i,n,e,l){var t=this.group;if(t.removeAll(),!i.get("show"))return;var a=+i.get("itemSize"),s=i.get("feature")||{},u=this._features||(this._features={}),h=[];E.each(s,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=s[x],b=new m(S,i,i.ecModel),O;if(l&&l.newTitle!=null&&l.featureName===x&&(S.title=l.newTitle),x&&!T){if(r(x))O={model:b,onclick:b.option.onclick,featureName:x};else{var I=A.get(x);if(!I)return;O=new I(b,n,e)}u[x]=O}else{if(O=u[T],!O)return;O.model=b,O.ecModel=n,O.api=e}if(!x&&T){O.dispose&&O.dispose(n,e);return}if(!b.get("show")||O.unusable){O.remove&&O.remove(n,e);return}g(b,O,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)},O.render&&O.render(b,n,e,l)}function g(v,y,x){var T=v.getModel("iconStyle"),S=v.getModel("emphasis.iconStyle"),b=y.getIcons?y.getIcons():v.get("icon"),O=v.get("title")||{};if(typeof b=="string"){var I=b,L=O;b={},O={},b[x]=I,O[x]=L}var N=v.iconPaths={};E.each(b,function(D,R){var k=w.createIcon(D,{},{x:-a/2,y:-a/2,width:a,height:a});k.setStyle(T.getItemStyle()),k.hoverStyle=S.getItemStyle(),k.setStyle({text:O[R],textAlign:S.get("textAlign"),textBorderRadius:S.get("textBorderRadius"),textPadding:S.get("textPadding"),textFill:null});var M=i.getModel("tooltip");M&&M.get("show")&&k.attr("tooltip",E.extend({content:O[R],formatter:M.get("formatter",!0)||function(){return O[R]},formatterParams:{componentType:"toolbox",name:R,title:O[R],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),w.setHoverStyle(k),i.get("showTitle")&&(k.__title=O[R],k.on("mouseover",function(){var j=S.getItemStyle(),F=i.get("orient")==="vertical"?i.get("right")==null?"right":"left":i.get("bottom")==null?"bottom":"top";k.setStyle({textFill:S.get("textFill")||j.fill||j.stroke||"#000",textBackgroundColor:S.get("textBackgroundColor"),textPosition:S.get("textPosition")||F})}).on("mouseout",function(){k.setStyle({textFill:null,textBackgroundColor:null})})),k.trigger(v.get("iconStatus."+R)||"normal"),t.add(k),k.on("click",E.bind(y.onclick,y,n,e,R)),N[R]=k})}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,O=!1;b+T.height>e.getHeight()&&(x.textPosition="top",O=!0);var I=O?-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,l){E.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,e,l)})},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(_,E,C){var A=_.getZoom(),w=_.getCenter(),m=E.zoom,f=_.dataToPoint(w);if(E.dx!=null&&E.dy!=null){f[0]-=E.dx,f[1]-=E.dy;var w=_.pointToData(f);_.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}_.scale[0]*=m,_.scale[1]*=m;var r=_.position,i=(E.originX-r[0])*(m-1),n=(E.originY-r[1])*(m-1);r[0]-=i,r[1]-=n,_.updateTransform();var w=_.pointToData(f);_.setCenter(w),_.setZoom(m*A)}return{center:_.getCenter(),zoom:_.getZoom()}}B.updateCenterAndZoom=d},"2BaD":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseCircleOutlined";var f=B.a=E.forwardRef(m)},"2DNl":function(H,B,d){var _=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=_.CMD,i=Math.PI*2,n=1e-4;function e(y,x){return Math.abs(y-x)<n}var l=[-1,-1,-1],t=[-1,-1];function a(){var y=t[0];t[0]=t[1],t[1]=y}function s(y,x,T,S,b,O,I,L,N,D){if(D>x&&D>S&&D>O&&D>L||D<x&&D<S&&D<O&&D<L)return 0;var R=c.cubicRootAt(x,S,O,L,D,l);if(R===0)return 0;for(var k=0,M=-1,j,F,U=0;U<R;U++){var K=l[U],V=K===0||K===1?.5:1,z=c.cubicAt(y,T,b,I,K);if(z<N)continue;M<0&&(M=c.cubicExtrema(x,S,O,L,t),t[1]<t[0]&&M>1&&a(),j=c.cubicAt(x,S,O,L,t[0]),M>1&&(F=c.cubicAt(x,S,O,L,t[1]))),M===2?K<t[0]?k+=j<x?V:-V:K<t[1]?k+=F<j?V:-V:k+=L<F?V:-V:K<t[0]?k+=j<x?V:-V:k+=L<j?V:-V}return k}function u(y,x,T,S,b,O,I,L){if(L>x&&L>S&&L>O||L<x&&L<S&&L<O)return 0;var N=c.quadraticRootAt(x,S,O,L,l);if(N===0)return 0;var D=c.quadraticExtremum(x,S,O);if(D>=0&&D<=1){for(var R=0,k=c.quadraticAt(x,S,O,D),M=0;M<N;M++){var j=l[M]===0||l[M]===1?.5:1,F=c.quadraticAt(y,T,b,l[M]);if(F<I)continue;l[M]<D?R+=k<x?j:-j:R+=O<k?j:-j}return R}else{var j=l[0]===0||l[0]===1?.5:1,F=c.quadraticAt(y,T,b,l[0]);return F<I?0:O<x?j:-j}}function h(y,x,T,S,b,O,I,L){if(L-=x,L>T||L<-T)return 0;var N=Math.sqrt(T*T-L*L);l[0]=-N,l[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=O?1:-1;return I>=l[0]+y&&I<=l[1]+y?R:0}if(O){var N=S;S=f(b),b=f(N)}else S=f(S),b=f(b);S>b&&(b+=i);for(var k=0,M=0;M<2;M++){var j=l[M];if(j+y>I){var F=Math.atan2(L,j),R=O?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),k+=R)}}return k}function p(y,x,T,S,b){for(var O=0,I=0,L=0,N=0,D=0,R=0;R<y.length;){var k=y[R++];k===r.M&&R>1&&(T||(O+=o(I,L,N,D,S,b))),R===1&&(I=y[R],L=y[R+1],N=I,D=L);switch(k){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+=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 O+=s(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 O+=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++],j=y[R++],F=y[R++],U=y[R++],K=y[R++],V=y[R++];R+=1;var z=1-y[R++],Q=Math.cos(K)*F+M,Z=Math.sin(K)*U+j;R>1?O+=o(I,L,Q,Z,S,b):(N=Q,D=Z);var le=(S-M)*U/F+M;if(T){if(w.containStroke(M,j,U,K,K+V,z,x,le,b))return!0}else O+=h(M,j,U,K,K+V,z,le,b);I=Math.cos(K+V)*F+M,L=Math.sin(K+V)*U+j;break;case r.R:N=I=y[R++],D=L=y[R++];var ne=y[R++],ve=y[R++],Q=N+ne,Z=D+ve;if(T){if(E.containStroke(N,D,Q,D,x,S,b)||E.containStroke(Q,D,Q,Z,x,S,b)||E.containStroke(Q,Z,N,Z,x,S,b)||E.containStroke(N,Z,N,D,x,S,b))return!0}else O+=o(Q,D,Q,Z,S,b),O+=o(N,Z,N,D,S,b);break;case r.Z:if(T){if(E.containStroke(I,L,N,D,x,S,b))return!0}else O+=o(I,L,N,D,S,b);I=N,L=D;break}}return!T&&!e(L,D)&&(O+=o(I,L,N,D,S,b)||0),O!==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 _=d("bYtY"),E=d("Fofx"),C=d("+TT/"),A=d("aX7z"),w=d("D1WM"),m=d("IwbS"),f=d("OELB"),c=d("72pK"),o=_.each,r=Math.min,i=Math.max,n=Math.floor,e=Math.ceil,l=f.round,t=Math.PI;function a(g,v,y){this._axesMap=_.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 O=T[b],I=v.getComponent("parallelAxis",O),L=this._axesMap.set(S,new w(S,A.createScaleByModel(I),[0,0],I.get("type"),O)),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]],O=[0,b],I=this.dimensions.length,L=s(g.get("axisExpandWidth"),O),N=s(g.get("axisExpandCount")||0,[0,I]),D=g.get("axisExpandable")&&I>3&&I>N&&N>1&&L>0&&b>0,R=g.get("axisExpandWindow"),k;if(R)k=s(R[1]-R[0],O),R[1]=R[0]+k;else{k=s(L*(N-1),O);var M=g.get("axisExpandCenter")||n(I/2);R=[L*M-k/2],R[1]=R[0]+k}var j=(b-k)/(I-N);j<3&&(j=0);var F=[n(l(R[0]/L,1))+1,e(l(R[1]/L,1))-1],U=j/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:j,axisExpandWindow:R,axisCount:I,winInnerIndices:F,axisExpandWindow0Pos:U}},_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],O=S.inverse?1:0;S.setExtent(b[O],b[1-O])}),o(y,function(S,b){var O=(x.axisExpandable?h:u)(b,x),I={horizontal:{x:O.position,y:x.axisLength},vertical:{x:0,y:O.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:O.axisNameAvailableWidth,axisLabelShow:O.axisLabelShow,nameTruncateMaxWidth:O.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(j){b.push(g.mapDimension(j)),O.push(T.get(j).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,k=S.length;R<k;R++){var M=O[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 _.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,O,I="slide",L=v.axisCollapseWidth,N=this._model.get("axisExpandSlideTriggerArea"),D=N[0]!=null;if(L)D&&L&&b<T*N[0]?(I="jump",O=b-T*N[2]):D&&L&&b>T*(1-N[0])?(I="jump",O=b-T*(1-N[2])):(O=b-T*N[1])>=0&&(O=b-T*(1-N[1]))<=0&&(O=0),O*=v.axisExpandWidth/L,O?c(O,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 s(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,O,I=S,L=!1,N;return g<b[0]?(O=g*S,N=S):g<=b[1]?(O=v.axisExpandWindow0Pos+g*x-v.axisExpandWindow[0],I=x,L=!0):(O=y-(T-1-g)*S,N=S),{position:O,axisNameAvailableWidth:I,axisLabelShow:L,nameTruncateMaxWidth:N}}var p=a;H.exports=p},"2fGM":function(H,B,d){var _=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]}});_.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 _=d("lSNA"),E=d.n(_),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"),l=d("BGR+"),t=d("TSYQ"),a=d.n(t),s=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"),O=function(Ee){var Ie=Ee.className,Ye=Ee.customizeIcon,rt=Ee.customizeIconProps,ut=Ee.onMouseDown,Ot=Ee.onClick,Ar=Ee.children,Pr;return typeof Ye=="function"?Pr=Ye(rt):Pr=Ye,e.createElement("span",{className:Ie,onMouseDown:function(It){It.preventDefault(),ut&&ut(It)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ot,"aria-hidden":!0},Pr!==void 0?Pr:e.createElement("span",{className:a()(Ie.split(/\s+/).map(function(un){return"".concat(un,"-icon")}))},Ar))},I=O,L=function(Ee,Ie){var Ye=Ee.prefixCls,rt=Ee.id,ut=Ee.flattenOptions,Ot=Ee.childrenAsData,Ar=Ee.values,Pr=Ee.searchValue,un=Ee.multiple,It=Ee.defaultActiveFirstOption,nt=Ee.height,at=Ee.itemHeight,rr=Ee.notFoundContent,Pt=Ee.open,xt=Ee.menuItemSelectedIcon,Kt=Ee.virtual,yt=Ee.onSelect,kt=Ee.onToggleOpen,Sr=Ee.onActiveValue,hr=Ee.onScroll,gr=Ee.onMouseEnter,Jr="".concat(Ye,"-item"),$r=Object(S.a)(function(){return ut},[Pt,ut],function(ze,Ze){return Ze[0]&&ze[1]!==Ze[1]}),kn=e.useRef(null),Dn=function(Ze){Ze.preventDefault()},Zn=function(Ze){kn.current&&kn.current.scrollTo({index:Ze})},li=function(Ze){for(var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,st=$r.length,Jt=0;Jt<st;Jt+=1){var Rr=(Ze+Jt*wt+st)%st,Ir=$r[Rr],Xr=Ir.group,er=Ir.data;if(!Xr&&!er.disabled)return Rr}return-1},Ai=e.useState(function(){return li(0)}),Ii=Object(y.a)(Ai,2),Qe=Ii[0],Se=Ii[1],Ne=function(Ze){Se(Ze);var wt=$r[Ze];if(!wt){Sr(null,-1);return}Sr(wt.data.value,Ze)};e.useEffect(function(){Ne(It!==!1?li(0):-1)},[$r.length,Pr]),e.useEffect(function(){var ze=setTimeout(function(){if(!un&&Pt&&Ar.size===1){var Ze=Array.from(Ar)[0],wt=$r.findIndex(function(st){var Jt=st.data;return Jt.value===Ze});Ne(wt),Zn(wt)}});return function(){return clearTimeout(ze)}},[Pt]);var je=function(Ze){Ze!==void 0&&yt(Ze,{selected:!Ar.has(Ze)}),un||kt(!1)};if(e.useImperativeHandle(Ie,function(){return{onKeyDown:function(Ze){var wt=Ze.which;switch(wt){case x.a.UP:case x.a.DOWN:{var st=0;if(wt===x.a.UP?st=-1:wt===x.a.DOWN&&(st=1),st!==0){var Jt=li(Qe+st,st);Zn(Jt),Ne(Jt)}break}case x.a.ENTER:{var Rr=$r[Qe];Rr&&!Rr.data.disabled?je(Rr.data.value):je(void 0),Pt&&Ze.preventDefault();break}case x.a.ESC:kt(!1)}},onKeyUp:function(){},scrollTo:function(Ze){Zn(Ze)}}}),$r.length===0)return e.createElement("div",{role:"listbox",id:"".concat(rt,"_list"),className:"".concat(Jr,"-empty"),onMouseDown:Dn},rr);function Xe(ze){var Ze=$r[ze];if(!Ze)return null;var wt=Ze.data||{},st=wt.value,Jt=wt.label,Rr=wt.children,Ir=Object(T.a)(wt,!0),Xr=Ot?Rr:Jt;return Ze?e.createElement("div",Object.assign({"aria-label":typeof Xr=="string"?Xr:null},Ir,{key:ze,role:"option",id:"".concat(rt,"_list_").concat(ze),"aria-selected":Ar.has(st)}),st):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(rt,"_list"),style:{height:0,width:0,overflow:"hidden"}},Xe(Qe-1),Xe(Qe),Xe(Qe+1)),e.createElement(b.a,{itemKey:"key",ref:kn,data:$r,height:nt,itemHeight:at,fullHeight:!1,onMouseDown:Dn,onScroll:hr,virtual:Kt,onMouseEnter:gr},function(ze,Ze){var wt,st=ze.group,Jt=ze.groupOption,Rr=ze.data,Ir=Rr.label,Xr=Rr.key;if(st)return e.createElement("div",{className:a()(Jr,"".concat(Jr,"-group"))},Ir!==void 0?Ir:Xr);var er=Rr.disabled,pn=Rr.value,fr=Rr.title,mn=Rr.children,en=Rr.style,Mr=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,Mr,(wt={},Object(g.a)(wt,"".concat(_i,"-grouped"),Jt),Object(g.a)(wt,"".concat(_i,"-active"),Qe===Ze&&!er),Object(g.a)(wt,"".concat(_i,"-disabled"),er),Object(g.a)(wt,"".concat(_i,"-selected"),di),wt)),sn=Ot?mn:Ir,Sn=!xt||typeof xt=="function"||di;return e.createElement("div",Object.assign({},Gn,{"aria-selected":di,className:Br,title:fr,onMouseMove:function(){if(Qe===Ze||er)return;Ne(Ze)},onClick:function(){er||je(pn)},style:en}),e.createElement("div",{className:"".concat(_i,"-content")},sn||pn),e.isValidElement(xt)||di,Sn&&e.createElement(I,{className:"".concat(Jr,"-option-state"),customizeIcon:xt,customizeIconProps:{isSelected:di}},di?"\u2713":null))}))},N=e.forwardRef(L);N.displayName="OptionList";var D=N,R=function(){return null};R.isSelectOption=!0;var k=R,M=function(){return null};M.isSelectOptGroup=!0;var j=M,F=d("VTBJ"),U=d("Zm9Q");function K(Oe){var Ee=Oe.key,Ie=Oe.props,Ye=Ie.children,rt=Ie.value,ut=Object(v.a)(Ie,["children","value"]);return Object(F.a)({key:Ee,value:rt!==void 0?rt:Ee,children:Ye},ut)}function V(Oe){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(Oe).map(function(Ie,Ye){if(!e.isValidElement(Ie)||!Ie.type)return null;var rt=Ie.type.isSelectOptGroup,ut=Ie.key,Ot=Ie.props,Ar=Ot.children,Pr=Object(v.a)(Ot,["children"]);return Ee||!rt?K(Ie):Object(F.a)(Object(F.a)({key:"__RC_SELECT_GRP__".concat(ut===null?Ye:ut,"__"),label:ut},Pr),{},{options:V(Ar)})}).filter(function(Ie){return Ie})}var z=d("KQm4"),Q=d("T5bk"),Z=d("U8pU"),le=d("Kwbf");function ne(Oe){return Array.isArray(Oe)?Oe:Oe!==void 0?[Oe]:[]}function ve(Oe,Ee){var Ie=Ee.labelInValue,Ye=Ee.combobox;if(Oe===void 0||Oe===""&&Ye)return[];var rt=Array.isArray(Oe)?Oe:[Oe];return Ie?rt.map(function(ut){var Ot=ut.key,Ar=ut.value;return Ar!==void 0?Ar:Ot}):rt}function xe(Oe,Ee){var Ie=Ee.optionLabelProp,Ye=Ee.labelInValue,rt=Ee.prevValue,ut=Ee.options,Ot=Ee.getLabeledValue,Ar=Oe;return Ye&&(Ar=Ar.map(function(Pr){return Ot(Pr,{options:ut,prevValue:rt,labelInValue:Ye,optionLabelProp:Ie})})),Ar}function _e(Oe,Ee){var Ie=Object(z.a)(Ee),Ye;for(Ye=Oe.length-1;Ye>=0&&Oe[Ye].disabled;Ye-=1);var rt=null;return Ye!==-1&&(rt=Ie[Ye],Ie.splice(Ye,1)),{values:Ie,removedValue:rt}}var Be=typeof window!="undefined"&&window.document&&window.document.documentElement,me=Be,Fe=0;function ie(){var Oe;return me?(Oe=Fe,Fe+=1):Oe="TEST_OR_SSR",Oe}function te(Oe,Ee){var Ie=Oe.key,Ye;return"value"in Oe&&(Ye=Oe.value),Ie!=null?Ie:Ye!==void 0?Ye:"rc-index-key-".concat(Ee)}function Ge(Oe){var Ee=[];function Ie(Ye,rt){Ye.forEach(function(ut){rt||!("options"in ut)?Ee.push({key:te(ut,Ee.length),groupOption:rt,data:ut}):(Ee.push({key:te(ut,Ee.length),group:!0,data:ut}),Ie(ut.options,!0))})}return Ie(Oe,!1),Ee}function oe(Oe){var Ee=Object(F.a)({},Oe);return"props"in Ee||Object.defineProperty(Ee,"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`."),Ee}}),Ee}function Y(Oe,Ee){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ye=Ie.prevValueOptions,rt=Ye===void 0?[]:Ye,ut=new Map;return Ee.forEach(function(Ot){if(!Ot.group){var Ar=Ot.data;ut.set(Ar.value,Ar)}}),Oe.map(function(Ot){var Ar=ut.get(Ot);return Ar||(Ar=Object(F.a)({},rt.find(function(Pr){return Pr._INTERNAL_OPTION_VALUE_===Ot}))),oe(Ar)})}var G=function(Ee,Ie){var Ye=Ie.options,rt=Ie.prevValue,ut=Ie.labelInValue,Ot=Ie.optionLabelProp,Ar=Y([Ee],Ye)[0],Pr={value:Ee},un,It=ne(rt);return ut&&(un=It.find(function(nt){return Object(Z.a)(nt)==="object"&&"value"in nt?nt.value===Ee:nt.key===Ee})),un&&Object(Z.a)(un)==="object"&&"label"in un?(Pr.label=un.label,Ar&&typeof un.label=="string"&&typeof Ar[Ot]=="string"&&un.label.trim()!==Ar[Ot].trim()&&Object(le.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Ar&&Ot in Ar?Pr.label=Ar[Ot]:Pr.label=Ee,Pr.key=Pr.value,Pr};function X(Oe){return ne(Oe).join("")}function fe(Oe){return function(Ee,Ie){var Ye=Ee.toLowerCase();if("options"in Ie)return X(Ie.label).toLowerCase().includes(Ye);var rt=Ie[Oe],ut=X(rt).toLowerCase();return ut.includes(Ye)}}function de(Oe,Ee,Ie){var Ye=Ie.optionFilterProp,rt=Ie.filterOption,ut=[],Ot;return rt===!1?Ee:(typeof rt=="function"?Ot=rt:Ot=fe(Ye),Ee.forEach(function(Ar){if("options"in Ar){var Pr=Ot(Oe,Ar);if(Pr)ut.push(Ar);else{var un=Ar.options.filter(function(It){return Ot(Oe,It)});un.length&&ut.push(Object(F.a)(Object(F.a)({},Ar),{},{options:un}))}return}Ot(Oe,oe(Ar))&&ut.push(Ar)}),ut)}function Ce(Oe,Ee){if(!Ee||!Ee.length)return null;var Ie=!1;function Ye(ut,Ot){var Ar=Object(Q.a)(Ot),Pr=Ar[0],un=Ar.slice(1);if(!Pr)return[ut];var It=ut.split(Pr);return Ie=Ie||It.length>1,It.reduce(function(nt,at){return[].concat(Object(z.a)(nt),Object(z.a)(Ye(at,un)))},[]).filter(function(nt){return nt})}var rt=Ye(Oe,Ee);return Ie?rt:null}function Me(Oe,Ee){var Ie=Y([Oe],Ee)[0];return Ie.disabled}function ue(Oe,Ee,Ie,Ye){var rt=ne(Ee).slice().sort(),ut=Object(z.a)(Oe),Ot=new Set;return Oe.forEach(function(Ar){Ar.options?Ar.options.forEach(function(Pr){Ot.add(Pr.value)}):Ot.add(Ar.value)}),rt.forEach(function(Ar){var Pr=Ye?Ar.value:Ar;if(!Ot.has(Pr)){var un;ut.push(Ye?(un={},Object(g.a)(un,Ie,Ar.label),Object(g.a)(un,"value",Pr),un):{value:Pr})}}),ut}var Ae=d("6cGi"),Te=d("HTfv"),Je=d("c+Xe"),At=function(Ee,Ie){var Ye=Ee.prefixCls,rt=Ee.id,ut=Ee.inputElement,Ot=Ee.disabled,Ar=Ee.tabIndex,Pr=Ee.autoFocus,un=Ee.autoComplete,It=Ee.editable,nt=Ee.accessibilityIndex,at=Ee.value,rr=Ee.onKeyDown,Pt=Ee.onMouseDown,xt=Ee.onChange,Kt=Ee.onPaste,yt=Ee.onCompositionStart,kt=Ee.onCompositionEnd,Sr=Ee.open,hr=Ee.attrs,gr=ut||e.createElement("input",null),Jr=gr,$r=Jr.ref,kn=Jr.props,Dn=kn.onKeyDown,Zn=kn.onChange,li=kn.onMouseDown,Ai=kn.onCompositionStart,Ii=kn.onCompositionEnd,Qe=kn.style;return gr=e.cloneElement(gr,Object(F.a)(Object(F.a)({id:rt,ref:Object(Je.a)(Ie,$r),disabled:Ot,tabIndex:Ar,autoComplete:un||"off",autoFocus:Pr,className:"".concat(Ye,"-selection-search-input"),style:Object(F.a)(Object(F.a)({},Qe),{},{opacity:It?null:0}),role:"combobox","aria-expanded":Sr,"aria-haspopup":"listbox","aria-owns":"".concat(rt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(rt,"_list"),"aria-activedescendant":"".concat(rt,"_list_").concat(nt)},hr),{},{value:It?at:"",readOnly:!It,unselectable:It?null:"on",onKeyDown:function(Ne){rr(Ne),Dn&&Dn(Ne)},onMouseDown:function(Ne){Pt(Ne),li&&li(Ne)},onChange:function(Ne){xt(Ne),Zn&&Zn(Ne)},onCompositionStart:function(Ne){yt(Ne),Ai&&Ai(Ne)},onCompositionEnd:function(Ne){kt(Ne),Ii&&Ii(Ne)},onPaste:Kt})),gr},qe=e.forwardRef(At);qe.displayName="Input";var Re=qe;function Lt(Oe,Ee){me?e.useLayoutEffect(Oe,Ee):e.useEffect(Oe,Ee)}var $e="__RC_SELECT_MAX_REST_COUNT__",Et=function(Ee){var Ie=Ee.id,Ye=Ee.prefixCls,rt=Ee.values,ut=Ee.open,Ot=Ee.searchValue,Ar=Ee.inputRef,Pr=Ee.placeholder,un=Ee.disabled,It=Ee.mode,nt=Ee.showSearch,at=Ee.autoFocus,rr=Ee.autoComplete,Pt=Ee.accessibilityIndex,xt=Ee.tabIndex,Kt=Ee.removeIcon,yt=Ee.choiceTransitionName,kt=Ee.maxTagCount,Sr=Ee.maxTagTextLength,hr=Ee.maxTagPlaceholder,gr=hr===void 0?function(pn){return"+ ".concat(pn.length," ...")}:hr,Jr=Ee.tagRender,$r=Ee.onSelect,kn=Ee.onInputChange,Dn=Ee.onInputPaste,Zn=Ee.onInputKeyDown,li=Ee.onInputMouseDown,Ai=Ee.onInputCompositionStart,Ii=Ee.onInputCompositionEnd,Qe=e.useState(!1),Se=Object(y.a)(Qe,2),Ne=Se[0],je=Se[1],Xe=e.useRef(null),ze=e.useState(0),Ze=Object(y.a)(ze,2),wt=Ze[0],st=Ze[1];e.useEffect(function(){je(!0)},[]);var Jt=ut||It==="tags"?Ot:"",Rr=It==="tags"||ut&&nt;Lt(function(){st(Xe.current.scrollWidth)},[Jt]);var Ir=rt,Xr;typeof kt=="number"&&(Xr=rt.length-kt,Ir=rt.slice(0,kt)),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 Mr=String(en);Mr.length>Sr&&(en="".concat(Mr.slice(0,Sr),"..."))}return Object(F.a)(Object(F.a)({},mn),{},{label:en})})),Xr>0&&Ir.push({key:$e,label:typeof gr=="function"?gr(rt.slice(kt)):gr});var er=e.createElement(Te.CSSMotionList,{component:!1,keys:Ir,motionName:yt,motionAppear:Ne},function(pn){var fr=pn.key,mn=pn.label,en=pn.value,Mr=pn.disabled,Gn=pn.className,di=pn.style,_i=fr||en,Br=fr!==$e&&!Mr,sn=function(ft){ft.preventDefault(),ft.stopPropagation()},Sn=function(ft){ft&&ft.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:Mr,closable:Br,onClose:Sn})):e.createElement("span",{key:_i,className:a()(Gn,"".concat(Ye,"-selection-item"),Object(g.a)({},"".concat(Ye,"-selection-item-disabled"),Mr)),style:di},e.createElement("span",{className:"".concat(Ye,"-selection-item-content")},mn),Br&&e.createElement(I,{className:"".concat(Ye,"-selection-item-remove"),onMouseDown:sn,onClick:Sn,customizeIcon:Kt},"\xD7"))});return e.createElement(e.Fragment,null,er,e.createElement("span",{className:"".concat(Ye,"-selection-search"),style:{width:wt}},e.createElement(Re,{ref:Ar,open:ut,prefixCls:Ye,id:Ie,inputElement:null,disabled:un,autoFocus:at,autoComplete:rr,editable:Rr,accessibilityIndex:Pt,value:Jt,onKeyDown:Zn,onMouseDown:li,onChange:kn,onPaste:Dn,onCompositionStart:Ai,onCompositionEnd:Ii,tabIndex:xt,attrs:Object(T.a)(Ee,!0)}),e.createElement("span",{ref:Xe,className:"".concat(Ye,"-selection-search-mirror"),"aria-hidden":!0},Jt,"\xA0")),!rt.length&&!Jt&&e.createElement("span",{className:"".concat(Ye,"-selection-placeholder")},Pr))},Ut=Et,Bt=function(Ee){var Ie=Ee.inputElement,Ye=Ee.prefixCls,rt=Ee.id,ut=Ee.inputRef,Ot=Ee.disabled,Ar=Ee.autoFocus,Pr=Ee.autoComplete,un=Ee.accessibilityIndex,It=Ee.mode,nt=Ee.open,at=Ee.values,rr=Ee.placeholder,Pt=Ee.tabIndex,xt=Ee.showSearch,Kt=Ee.searchValue,yt=Ee.activeValue,kt=Ee.onInputKeyDown,Sr=Ee.onInputMouseDown,hr=Ee.onInputChange,gr=Ee.onInputPaste,Jr=Ee.onInputCompositionStart,$r=Ee.onInputCompositionEnd,kn=e.useState(!1),Dn=Object(y.a)(kn,2),Zn=Dn[0],li=Dn[1],Ai=It==="combobox",Ii=Ai||xt&&nt,Qe=at[0],Se=Kt||"";Ai&&yt&&!Zn&&(Se=yt),e.useEffect(function(){Ai&&li(!1)},[Ai,yt]);var Ne=It!=="combobox"&&!nt?!1:!!Se,je=Qe&&(typeof Qe.label=="string"||typeof Qe.label=="number")?Qe.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Ye,"-selection-search")},e.createElement(Re,{ref:ut,prefixCls:Ye,id:rt,open:nt,inputElement:Ie,disabled:Ot,autoFocus:Ar,autoComplete:Pr,editable:Ii,accessibilityIndex:un,value:Se,onKeyDown:kt,onMouseDown:Sr,onChange:function(ze){li(!0),hr(ze)},onPaste:gr,onCompositionStart:Jr,onCompositionEnd:$r,tabIndex:Pt,attrs:Object(T.a)(Ee,!0)})),!Ai&&Qe&&!Ne&&e.createElement("span",{className:"".concat(Ye,"-selection-item"),title:je},Qe.label),!Qe&&!Ne&&e.createElement("span",{className:"".concat(Ye,"-selection-placeholder")},rr))},_t=Bt;function jt(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ee=e.useRef(null),Ie=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Ie.current)}},[]);function Ye(rt){(rt||Ee.current===null)&&(Ee.current=rt),window.clearTimeout(Ie.current),Ie.current=window.setTimeout(function(){Ee.current=null},Oe)}return[function(){return Ee.current},Ye]}var He=function(Ee,Ie){var Ye=Object(e.useRef)(null),rt=Object(e.useRef)(!1),ut=Ee.prefixCls,Ot=Ee.multiple,Ar=Ee.open,Pr=Ee.mode,un=Ee.showSearch,It=Ee.tokenWithEnter,nt=Ee.onSearch,at=Ee.onSearchSubmit,rr=Ee.onToggleOpen,Pt=Ee.onInputKeyDown,xt=Ee.domRef;e.useImperativeHandle(Ie,function(){return{focus:function(){Ye.current.focus()},blur:function(){Ye.current.blur()}}});var Kt=jt(0),yt=Object(y.a)(Kt,2),kt=yt[0],Sr=yt[1],hr=function(Ne){var je=Ne.which;(je===x.a.UP||je===x.a.DOWN)&&Ne.preventDefault(),Pt&&Pt(Ne),je===x.a.ENTER&&Pr==="tags"&&!rt.current&&!Ar&&at(Ne.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(Ne){nt(Ne,!0,rt.current)!==!1&&rr(!0)},kn=function(){rt.current=!0},Dn=function(){rt.current=!1},Zn=function(Ne){var je=Ne.target.value;if(It&&Jr.current&&/[\r\n]/.test(Jr.current)){var Xe=Jr.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");je=je.replace(Xe,Jr.current)}Jr.current=null,$r(je)},li=function(Ne){var je=Ne.clipboardData,Xe=je.getData("text");Jr.current=Xe},Ai=function(Ne){var je=kt();if(Ne.target!==Ye.current){je||Ne.preventDefault();var Xe=document.body.style.msTouchAction!==void 0;Xe?setTimeout(function(){Ye.current.focus()}):Ye.current.focus()}(Pr!=="combobox"&&(!un||!je)||!Ar)&&(Ar&&nt("",!0,!1),rr())},Ii={inputRef:Ye,onInputKeyDown:hr,onInputMouseDown:gr,onInputChange:Zn,onInputPaste:li,onInputCompositionStart:kn,onInputCompositionEnd:Dn},Qe=Ot?e.createElement(Ut,Object.assign({},Ee,Ii)):e.createElement(_t,Object.assign({},Ee,Ii));return e.createElement("div",{ref:xt,className:"".concat(ut,"-selector"),onMouseDown:Ai},Qe)},se=e.forwardRef(He);se.displayName="Selector";var J=se,Ue=d("Uaa1"),Le=function(Ee){var Ie=typeof Ee!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ie,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ie,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ie,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ie,adjustY:1}}}},ee=function(Ee,Ie){var Ye=Ee.prefixCls,rt=Ee.disabled,ut=Ee.visible,Ot=Ee.children,Ar=Ee.popupElement,Pr=Ee.containerWidth,un=Ee.animation,It=Ee.transitionName,nt=Ee.dropdownStyle,at=Ee.dropdownClassName,rr=Ee.direction,Pt=rr===void 0?"ltr":rr,xt=Ee.dropdownMatchSelectWidth,Kt=xt===void 0?!0:xt,yt=Ee.dropdownRender,kt=Ee.dropdownAlign,Sr=Ee.getPopupContainer,hr=Ee.empty,gr=Ee.getTriggerDOMNode,Jr=Object(v.a)(Ee,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),$r="".concat(Ye,"-dropdown"),kn=Ar;yt&&(kn=yt(Ar));var Dn=e.useMemo(function(){return Le(Kt)},[Kt]),Zn=un?"".concat($r,"-").concat(un):It,li=e.useRef(null);e.useImperativeHandle(Ie,function(){return{getPopupElement:function(){return li.current}}});var Ai=Object(F.a)({minWidth:Pr},nt);return typeof Kt=="number"?Ai.width=Kt:Kt&&(Ai.width=Pr),e.createElement(Ue.a,Object.assign({},Jr,{showAction:[],hideAction:[],popupPlacement:Pt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Dn,prefixCls:$r,popupTransitionName:Zn,popup:e.createElement("div",{ref:li},kn),popupAlign:kt,popupVisible:ut,getPopupContainer:Sr,popupClassName:a()(at,Object(g.a)({},"".concat($r,"-empty"),hr)),popupStyle:Ai,getTriggerDOMNode:gr}),Ot)},ct=e.forwardRef(ee);ct.displayName="SelectTrigger";var Mt=ct,ot="RC_SELECT_INTERNAL_PROPS_MARK";function Yt(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ee=e.useState(!1),Ie=Object(y.a)(Ee,2),Ye=Ie[0],rt=Ie[1],ut=e.useRef(null),Ot=function(){window.clearTimeout(ut.current)};e.useEffect(function(){return Ot},[]);var Ar=function(un,It){Ot(),ut.current=window.setTimeout(function(){rt(un),It&&It()},Oe)};return[Ye,Ar,Ot]}function or(Oe,Ee,Ie){var Ye=e.useRef(null);Ye.current={elements:Oe.filter(function(rt){return rt}),open:Ee,triggerOpen:Ie},e.useEffect(function(){function rt(ut){var Ot=ut.target;Ye.current.open&&Ye.current.elements.every(function(Ar){return!Ar.contains(Ot)&&Ar!==Ot})&&Ye.current.triggerOpen(!1)}return window.addEventListener("mousedown",rt),function(){return window.removeEventListener("mousedown",rt)}},[])}function Zr(Oe){var Ee=e.useRef(Oe),Ie=e.useMemo(function(){var Ye=new Map;Ee.current.forEach(function(ut){var Ot=ut.value,Ar=ut.label;Ot!==Ar&&Ye.set(Ot,Ar)});var rt=Oe.map(function(ut){var Ot=Ye.get(ut.value);return ut.value===ut.label&&Ot?Object(F.a)(Object(F.a)({},ut),{},{label:Ot}):ut});return Ee.current=rt,rt},[Oe]);return Ie}function ir(Oe,Ee){var Ie=e.useRef(null),Ye=e.useMemo(function(){var ut=new Map;return Ee.forEach(function(Ot){var Ar=Ot.data.value;ut.set(Ar,Ot)}),ut},[Oe,Ee]);Ie.current=Ye;var rt=function(Ot){return Ot.map(function(Ar){return Ie.current.get(Ar)}).filter(Boolean)};return rt}var dr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function qt(Oe){var Ee=Oe.prefixCls,Ie=Oe.components.optionList,Ye=Oe.convertChildrenToData,rt=Oe.flattenOptions,ut=Oe.getLabeledValue,Ot=Oe.filterOptions,Ar=Oe.isValueDisabled,Pr=Oe.findValueOption,un=Oe.warningProps,It=Oe.fillOptionsWithMissingValue,nt=Oe.omitDOMProps;function at(Pt,xt){var Kt,yt=Pt.prefixCls,kt=yt===void 0?Ee:yt,Sr=Pt.className,hr=Pt.id,gr=Pt.open,Jr=Pt.defaultOpen,$r=Pt.options,kn=Pt.children,Dn=Pt.mode,Zn=Pt.value,li=Pt.defaultValue,Ai=Pt.labelInValue,Ii=Pt.showSearch,Qe=Pt.inputValue,Se=Pt.searchValue,Ne=Pt.filterOption,je=Pt.optionFilterProp,Xe=je===void 0?"value":je,ze=Pt.autoClearSearchValue,Ze=ze===void 0?!0:ze,wt=Pt.onSearch,st=Pt.allowClear,Jt=Pt.clearIcon,Rr=Pt.showArrow,Ir=Pt.inputIcon,Xr=Pt.menuItemSelectedIcon,er=Pt.disabled,pn=Pt.loading,fr=Pt.defaultActiveFirstOption,mn=Pt.notFoundContent,en=mn===void 0?"Not Found":mn,Mr=Pt.optionLabelProp,Gn=Pt.backfill,di=Pt.getInputElement,_i=Pt.getPopupContainer,Br=Pt.listHeight,sn=Br===void 0?200:Br,Sn=Pt.listItemHeight,Dt=Sn===void 0?20:Sn,ft=Pt.animation,St=Pt.transitionName,Ct=Pt.virtual,Nt=Pt.dropdownStyle,gt=Pt.dropdownClassName,Qt=Pt.dropdownMatchSelectWidth,tr=Pt.dropdownRender,ar=Pt.dropdownAlign,yr=Pt.showAction,xn=yr===void 0?[]:yr,vn=Pt.direction,zn=Pt.tokenSeparators,Yr=Pt.tagRender,xr=Pt.onPopupScroll,ln=Pt.onDropdownVisibleChange,On=Pt.onFocus,In=Pt.onBlur,Un=Pt.onKeyUp,ti=Pt.onKeyDown,ui=Pt.onMouseDown,si=Pt.onChange,ki=Pt.onSelect,zi=Pt.onDeselect,Ri=Pt.onClear,Yi=Pt.internalProps,$n=Yi===void 0?{}:Yi,gn=Object(v.a)(Pt,["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===ot,Hi=nt?nt(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(zn||[]).some(function(Wi){return[`
|
|
|
`,`\r
|
|
|
`].includes(Wi)})},[zn]),Zt=Yt(),br=Object(y.a)(Zt,3),Or=br[0],Wr=br[1],An=br[2],vt=Object(e.useState)(),mr=Object(y.a)(vt,2),vr=mr[0],Fr=mr[1];Object(e.useEffect)(function(){Fr("rc_select_".concat(ie()))},[]);var nn=hr||vr,cn=Mr;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(xt,function(){return{focus:wr.current.focus,blur:wr.current.blur}});var ci=Object(Ae.a)(li,{value:Zn}),Jn=Object(y.a)(ci,2),pi=Jn[0],Si=Jn[1],Ni=Object(e.useMemo)(function(){return ve(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:Qe&&(Gi=Qe);var Vi=Object(e.useMemo)(function(){var Wi=$r;return Wi===void 0&&(Wi=Ye(kn)),Dn==="tags"&&It&&(Wi=It(Wi,pi,cn,Ai)),Wi||[]},[$r,kn,Dn,pi]),ta=Object(e.useMemo)(function(){return rt(Vi,Pt)},[Vi]),Xi=ir(Ni,ta),ga=Object(e.useMemo)(function(){if(!Gi||!Tn)return Object(z.a)(Vi);var Wi=Ot(Gi,Vi,{optionFilterProp:Xe,filterOption:Dn==="combobox"&&Ne===void 0?function(){return!0}:Ne});return Dn==="tags"&&Wi.every(function(qi){return qi[Xe]!==Gi})&&Wi.unshift({value:Gi,label:Gi,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Wi},[Vi,Gi,Dn,Tn]),ra=Object(e.useMemo)(function(){return rt(ga,Pt)},[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=ut(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 Pa=Xi([qi]),La=Pr([qi],Pa)[0];if(!$n.skipTriggerSelect){var Za=tn?ut(qi,{options:Pa,prevValue:pi,labelInValue:tn,optionLabelProp:cn}):qi;ca&&ki?ki(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=xe(Array.from(qi),{labelInValue:tn,options:ca,getLabeledValue:ut,prevValue:pi,optionLabelProp:cn}),Pa=Ln?ma:ma[0];if(si&&(Ni.length!==0||ma.length!==0)){var La=Pr(qi,ca,{prevValueOptions:Ao});ja(La.map(function(Za,eo){var ko=Object(F.a)({},Za);return Object.defineProperty(ko,"_INTERNAL_OPTION_VALUE_",{get:function(){return qi[eo]}}),ko})),si(Pa,Ln?La:La[0])}Si(Pa)},Ia=function(qi,ca){var ma=ca.selected,Pa=ca.source;if(er)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,Pa),Dn==="combobox"?(aa(String(qi)),Ui("")):(!Ln||Ze)&&(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(Ae.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;(er||qa&&oa&&Dn==="combobox")&&(oa=!1);var oo=qa?!1:oa,Ro=function(qi){var ca=qi!==void 0?qi:!oa;Ga!==ca&&!er&&(Oo(ca),ln&&ln(ca))};or([Li.current,Bi.current&&Bi.current.getPopupElement()],oo,Ro);var Xa=function(qi,ca,ma){var Pa=!0,La=qi;Ui(null);var Za=ma?null:Ce(qi,zn),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 ko=Array.from(new Set([].concat(Object(z.a)(Ni),Object(z.a)(eo))));Ya(ko),ko.forEach(function(jo){_a(jo,!0,"input")}),Ro(!1),Pa=!1}return aa(La),wt&&Gi!==La&&wt(La),Pa},_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&&!!er&&Oo(!1)},[er]),Object(e.useEffect)(function(){!oa&&!Ln&&Dn!=="combobox"&&Xa("",!1,!1)},[oa]);var go=jt(),Ja=Object(y.a)(go,2),Fa=Ja[0],ha=Ja[1],tt=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 Pa=_e(pa,Ni);Pa.removedValue!==null&&(Ya(Pa.values),_a(Pa.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 ko;(ko=lr.current).onKeyDown.apply(ko,[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),Pa=1;Pa<ca;Pa++)ma[Pa-1]=arguments[Pa];if(oa&&lr.current){var La;(La=lr.current).onKeyUp.apply(La,[qi].concat(ma))}Un&&Un.apply(void 0,[qi].concat(ma))},kr=Object(e.useRef)(!1),Lr=function(){Wr(!0),er||(On&&!kr.current&&On.apply(void 0,arguments),xn.includes("focus")&&Ro(!0)),kr.current=!0},_n=function(){if(Wr(!1,function(){kr.current=!1,Ro(!1)}),er)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 Pa=setTimeout(function(){var ko=Vr.indexOf(Pa);ko!==-1&&Vr.splice(ko,1),An(),ma.contains(document.activeElement)||wr.current.focus()});Vr.push(Pa)}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))}},Pn=Object(e.useState)(0),Ur=Object(y.a)(Pn,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],Pi=Object(e.useState)({}),bi=Object(y.a)(Pi,2),Ki=bi[1];function Aa(){Ki({})}Lt(function(){if(oo){var Wi=Math.ceil(Li.current.offsetWidth);ii!==Wi&&ai(Wi)}},[oo]);var ea=e.createElement(Ie,{ref:lr,prefixCls:kt,id:nn,open:oa,childrenAsData:!$r,options:ga,flattenOptions:ra,multiple:Ln,values:xi,height:sn,itemHeight:Dt,onSelect:Va,onToggleOpen:Ro,onActiveValue:Bn,defaultActiveFirstOption:Hn,notFoundContent:en,onScroll:xr,searchValue:Gi,menuItemSelectedIcon:Xr,virtual:Ct!==!1&&Qt!==!1,onMouseEnter:Aa}),Ji,sa=function(){mi&&$n.onClear&&$n.onClear(),Ri&&Ri(),Ya([]),Xa("",!1,!1)};!er&&st&&(Ni.length||Gi)&&(Ji=e.createElement(I,{className:"".concat(kt,"-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(kt,"-arrow"),Object(g.a)({},"".concat(kt,"-arrow-loading"),pn)),customizeIcon:Ir,customizeIconProps:{loading:pn,searchValue:Gi,open:oa,focused:Or,showSearch:Tn}}));var Qa=a()(kt,Sr,(Kt={},Object(g.a)(Kt,"".concat(kt,"-focused"),Or),Object(g.a)(Kt,"".concat(kt,"-multiple"),Ln),Object(g.a)(Kt,"".concat(kt,"-single"),!Ln),Object(g.a)(Kt,"".concat(kt,"-allow-clear"),st),Object(g.a)(Kt,"".concat(kt,"-show-arrow"),fa),Object(g.a)(Kt,"".concat(kt,"-disabled"),er),Object(g.a)(Kt,"".concat(kt,"-loading"),pn),Object(g.a)(Kt,"".concat(kt,"-open"),oa),Object(g.a)(Kt,"".concat(kt,"-customize-input"),Ca),Object(g.a)(Kt,"".concat(kt,"-show-search"),Tn),Kt));return e.createElement("div",Object.assign({className:Qa},Hi,{ref:Li,onMouseDown:_r,onKeyDown:tt,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(Mt,{ref:Bi,disabled:er,prefixCls:kt,visible:oo,popupElement:ea,containerWidth:ii,animation:ft,transitionName:St,dropdownStyle:Nt,dropdownClassName:gt,direction:vn,dropdownMatchSelectWidth:Qt,dropdownRender:tr,dropdownAlign:ar,getPopupContainer:_i,empty:!Vi.length,getTriggerDOMNode:function(){return Xn.current}},e.createElement(J,Object.assign({},Pt,{domRef:Xn,prefixCls:kt,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(at);return rr}function Ht(Oe){var Ee=Oe.mode,Ie=Oe.options,Ye=Oe.children,rt=Oe.backfill,ut=Oe.allowClear,Ot=Oe.placeholder,Ar=Oe.getInputElement,Pr=Oe.showSearch,un=Oe.onSearch,It=Oe.defaultOpen,nt=Oe.autoFocus,at=Oe.labelInValue,rr=Oe.value,Pt=Oe.inputValue,xt=Oe.optionLabelProp,Kt=Ee==="multiple"||Ee==="tags",yt=Pr!==void 0?Pr:Kt||Ee==="combobox",kt=Ie||V(Ye);if(Object(le.a)(Ee!=="tags"||kt.every(function(Jr){return!Jr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ee==="tags"||Ee==="combobox"){var Sr=kt.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(le.a)(!Sr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(le.a)(Ee!=="combobox"||!xt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(le.a)(Ee==="combobox"||!rt,"`backfill` only works with `combobox` mode."),Object(le.a)(Ee==="combobox"||!Ar,"`getInputElement` only work with `combobox` mode."),Object(le.b)(Ee!=="combobox"||!Ar||!ut||!Ot,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),un&&!yt&&Ee!=="combobox"&&Ee!=="tags"&&Object(le.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(le.b)(!It||nt,"`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(le.a)(!at||hr.every(function(Jr){return Object(Z.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(le.a)(!Kt||Array.isArray(rr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ye){var gr=null;Object(U.a)(Ye).some(function(Jr){if(!e.isValidElement(Jr)||!Jr.type)return!1;var $r=Jr.type;if($r.isSelectOption)return!1;if($r.isSelectOptGroup){var kn=Object(U.a)(Jr.props.children).every(function(Dn){return!e.isValidElement(Dn)||!Jr.type||Dn.type.isSelectOption?!0:(gr=Dn.type,!1)});return!kn}return gr=$r,!0}),gr&&Object(le.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gr.displayName||gr.name||gr,"`.")),Object(le.a)(Pt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var lt=Ht,Hr=qt({prefixCls:"rc-select",components:{optionList:D},convertChildrenToData:V,flattenOptions:Ge,getLabeledValue:G,filterOptions:de,isValueDisabled:Me,findValueOption:Y,warningProps:lt,fillOptionsWithMissingValue:ue}),dn=function(Oe){Object(h.a)(Ie,Oe);var Ee=Object(p.a)(Ie);function Ie(){var Ye;return Object(s.a)(this,Ie),Ye=Ee.apply(this,arguments),Ye.selectRef=e.createRef(),Ye.focus=function(){Ye.selectRef.current.focus()},Ye.blur=function(){Ye.selectRef.current.blur()},Ye}return Object(u.a)(Ie,[{key:"render",value:function(){return e.createElement(Hr,Object.assign({ref:this.selectRef},this.props))}}]),Ie}(e.Component);dn.Option=k,dn.OptGroup=j;var Nn=dn,Wn=Nn,gi=d("H84U"),yn=d("1vzs"),Mn=d("3Nzz"),Ft=function(Oe){r()(Ie,Oe);var Ee=n()(Ie);function Ie(){var Ye;return m()(this,Ie),Ye=Ee.apply(this,arguments),Ye.selectRef=e.createRef(),Ye.focus=function(){Ye.selectRef.current&&Ye.selectRef.current.focus()},Ye.blur=function(){Ye.selectRef.current&&Ye.selectRef.current.blur()},Ye.getMode=function(){var rt=Ye.props.mode;return rt==="combobox"?void 0:rt===Ie.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":rt},Ye.renderSelect=function(rt){var ut=rt.getPopupContainer,Ot=rt.getPrefixCls,Ar=rt.renderEmpty,Pr=rt.direction,un=rt.virtual,It=rt.dropdownMatchSelectWidth,nt=Ye.props,at=nt.prefixCls,rr=nt.notFoundContent,Pt=nt.className,xt=nt.size,Kt=nt.listHeight,yt=Kt===void 0?256:Kt,kt=nt.listItemHeight,Sr=kt===void 0?24:kt,hr=nt.getPopupContainer,gr=nt.dropdownClassName,Jr=nt.bordered,$r=Ot("select",at),kn=Ye.getMode(),Dn=kn==="multiple"||kn==="tags",Zn;rr!==void 0?Zn=rr:kn==="combobox"?Zn=null:Zn=Ar("Select");var li=Object(yn.a)(A()(A()({},Ye.props),{multiple:Dn,prefixCls:$r})),Ai=li.suffixIcon,Ii=li.itemIcon,Qe=li.removeIcon,Se=li.clearIcon,Ne=Object(l.default)(Ye.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),je=a()(gr,E()({},"".concat($r,"-dropdown-").concat(Pr),Pr==="rtl"));return e.createElement(Mn.b.Consumer,null,function(Xe){var ze,Ze=xt||Xe,wt=a()(Pt,(ze={},E()(ze,"".concat($r,"-lg"),Ze==="large"),E()(ze,"".concat($r,"-sm"),Ze==="small"),E()(ze,"".concat($r,"-rtl"),Pr==="rtl"),E()(ze,"".concat($r,"-borderless"),!Jr),ze));return e.createElement(Wn,A()({ref:Ye.selectRef,virtual:un,dropdownMatchSelectWidth:It},Ne,{listHeight:yt,listItemHeight:Sr,mode:kn,prefixCls:$r,direction:Pr,inputIcon:Ai,menuItemSelectedIcon:Ii,removeIcon:Qe,clearIcon:Se,notFoundContent:Zn,className:wt,getPopupContainer:hr||ut,dropdownClassName:je}))})},Ye}return c()(Ie,[{key:"render",value:function(){return e.createElement(gi.a,null,this.renderSelect)}}]),Ie}(e.Component);Ft.Option=k,Ft.OptGroup=j,Ft.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ft.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var bt=B.a=Ft},"2fw6":function(H,B,d){var _=d("y+Vt"),E=_.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 _=d("cDf5"),E=d.n(_),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"),l=d.n(e),t=d("e5VY"),a=d.n(t),s=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(s.b)(p)?Object(s.a)(p,{className:m()(p.props.className||"",b)}):p||(g?x?C.createElement(n.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(l.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(a.a,{className:b}))}},"2oIt":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},"2uGb":function(H,B,d){var _=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var E=d("kMLO"),C=d("nKiI");_.registerVisual(E),_.registerLayout(C)},"2w7y":function(H,B,d){var _=d("ProS");d("qMZE"),d("g0SD"),_.registerPreprocessor(function(E){E.markPoint=E.markPoint||{}})},"33Ds":function(H,B,d){var _=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),_.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 _(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(){_(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 l=e==8?1:4,t=o*l;if(i.rQwait("RAW",t))return!1;var a=c+(r-this._lines),s=Math.min(this._lines,Math.floor(i.rQlen/t)),u=i.rQ,h=i.rQi;if(e==8){for(var p=o*s,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,s,u,h),i.rQskipBytes(s*t),this._lines-=s,!(this._lines>0)}}]),w}();B.default=A},"3690":function(H,B,d){"use strict";function _(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(i){return typeof i}:_=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_(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)!=="object"&&typeof o!="function")return{default:o};var r=C();if(r&&r.has(o))return r.get(o);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var l=n?Object.getOwnPropertyDescriptor(o,e):null;l&&(l.get||l.set)?Object.defineProperty(i,e,l):i[e]=o[e]}return i.default=o,r&&r.set(o,i),i}function 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,l,t,a,s){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(l/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var u=1;if(t.rQwait("HEXTILE",u))return!1;var h=t.rQ,p=t.rQi,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),O=Math.min(16,n+l-S);if(g&1)u+=b*O*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,O,this._background);else if(g&1)a.blitImage(T,S,b,O,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,O,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 k=R>>4,M=R&15,j=h[p];p++;var F=(j>>4)+1,U=(j&15)+1;a.subTile(k,M,F,U,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 _=d;H.exports=_},"3CBa":function(H,B,d){var _=d("hydK"),E=_.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,l=n.image,t=n.text;function a(b){return parseInt(b,10)}function s(b){return b instanceof w?e:b instanceof m?l:b instanceof f?t:e}function u(b,O){return O&&b&&O.parentNode!==b}function h(b,O,I){if(u(b,O)&&I){var L=I.nextSibling;L?b.insertBefore(O,L):b.appendChild(O)}}function p(b,O){if(u(b,O)){var I=b.firstChild;I?b.insertBefore(O,I):b.appendChild(O)}}function g(b,O){O&&b&&O.parentNode===b&&b.removeChild(O)}function v(b){return b.__textSvgEl}function y(b){return b.__svgEl}var x=function(O,I,L,N){this.root=O,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 k=E("g");D.appendChild(k),this.gradientManager=new o(N,k),this.clipPathManager=new r(N,k),this.shadowManager=new i(N,k);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=D,this._svgRoot=k,this._backgroundRoot=R,this._viewport=M,O.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 O=this.getViewportRoot();if(O)return{offsetLeft:O.offsetLeft||0,offsetTop:O.offsetTop||0}},refresh:function(){var O=this.storage.getDisplayList(!0);this._paintList(O)},setBackgroundColor:function(O){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var I=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=O,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(O){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,L=this._visibleList,N=O.length,D=[],R;for(R=0;R<N;R++){var k=O[R],M=s(k),j=y(k)||v(k);k.invisible||(k.__dirty&&(M&&M.brush(k),this.clipPathManager.update(k),k.style&&(this.gradientManager.update(k.style.fill),this.gradientManager.update(k.style.stroke),this.shadowManager.update(j,k)),k.__dirty=!1),D.push(k))}var F=c(L,D),U;for(R=0;R<F.length;R++){var K=F[R];if(K.removed)for(var V=0;V<K.count;V++){var k=L[K.indices[V]],j=y(k),z=v(k);g(I,j),g(I,z)}}for(R=0;R<F.length;R++){var K=F[R];if(K.added)for(var V=0;V<K.count;V++){var k=D[K.indices[V]],j=y(k),z=v(k);U?h(I,j,U):p(I,j),j?h(I,z,j):U?h(I,z,U):p(I,z),h(I,z,j),U=z||j||U,this.gradientManager.addWithoutUpdate(j||z,k),this.shadowManager.addWithoutUpdate(j||z,k),this.clipPathManager.markUsed(k)}else if(!K.removed)for(var V=0;V<K.count;V++){var k=D[K.indices[V]],j=y(k),z=v(k),j=y(k),z=v(k);this.gradientManager.markUsed(k),this.gradientManager.addWithoutUpdate(j||z,k),this.shadowManager.markUsed(k),this.shadowManager.addWithoutUpdate(j||z,k),this.clipPathManager.markUsed(k),z&&h(I,z,j),U=j||z||U}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=D},_getDefs:function(O){var I=this._svgDom,L=I.getElementsByTagName("defs");if(L.length===0)if(O){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 k=R.length-1;k>=0;--k)if(R[k]===D)return!0;return!1}),L}else return null;else return L[0]},resize:function(O,I){var L=this._viewport;L.style.display="none";var N=this._opts;if(O!=null&&(N.width=O),I!=null&&(N.height=I),O=this._getSize(0),I=this._getSize(1),L.style.display="",this._width!==O||this._height!==I){this._width=O,this._height=I;var D=L.style;D.width=O+"px",D.height=I+"px";var R=this._svgDom;R.setAttribute("width",O),R.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",O),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(O){var I=this._opts,L=["width","height"][O],N=["clientWidth","clientHeight"][O],D=["paddingLeft","paddingTop"][O],R=["paddingRight","paddingBottom"][O];if(I[L]!=null&&I[L]!=="auto")return parseFloat(I[L]);var k=this.root,M=document.defaultView.getComputedStyle(k);return(k[N]||a(M[L])||a(k.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 O=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+O}};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 _=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=_.clone,i=_.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 O=b.graphicKey;O!==this._lastGraphicKey&&this.clear(g),this._lastGraphicKey=O;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=_.curry(e,p,I);this.updatePointerEl(T,b,L,p),this.updateLabelEl(T,b,L,p)}s(T,p,!0),this._renderHandle(y)},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,p){var 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(O){w.stop(O.event)},onmousedown:i(this._onHandleDragMove,this,0,0),drift:i(this._onHandleDragMove,this),ondragend:i(this._onHandleDragEnd,this)}),g.add(v)),s(v,p,!1);var S=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];v.setStyle(y.getItemStyle(null,S));var b=y.get("size");_.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){l(o(g).lastProp,v)||(o(g).lastProp=v,p?C.updateProps(g,v,h):(g.stopAnimation(),g.attr(v)))}function l(h,p){if(_.isObject(h)&&_.isObject(p)){var g=!0;return _.each(p,function(v,y){g=g&&l(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 s(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 _=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,l,t){var a=e.getData(),s=this.group,u=this._data;this._data||s.removeAll();var h=e.get("layout")==="horizontal"?1:0;a.diff(u).add(function(p){if(a.hasValue(p)){var g=a.getItemLayout(p),v=o(g,a,p,h,!0);a.setItemGraphicEl(p,v),s.add(v)}}).update(function(p,g){var v=u.getItemGraphicEl(g);if(!a.hasValue(p)){s.remove(v);return}var y=a.getItemLayout(p);v?r(y,v,a,p):v=o(y,a,p,h),s.add(v),a.setItemGraphicEl(p,v)}).remove(function(p){var g=u.getItemGraphicEl(p);g&&s.remove(g)}).execute(),this._data=a},remove:function(e){var l=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(a){a&&l.remove(a)})},dispose:_.noop}),c=A.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var t=l.points,a=0;for(e.moveTo(t[a][0],t[a][1]),a++;a<4;a++)e.lineTo(t[a][0],t[a][1]);for(e.closePath();a<t.length;a++)e.moveTo(t[a][0],t[a][1]),a++,e.lineTo(t[a][0],t[a][1])}});function o(e,l,t,a,s){var u=e.ends,h=new c({shape:{points:s?i(u,a,e):u}});return r(e,h,l,t,s),h}function r(e,l,t,a,s){var u=t.hostModel,h=C[s?"initProps":"updateProps"];h(l,{shape:{points:e.ends}},u,a);var p=t.getItemModel(a),g=p.getModel(w),v=t.getItemVisual(a,"color"),y=g.getItemStyle(["borderColor"]);y.stroke=v,y.strokeNoScale=!0,l.useStyle(y),l.z2=100;var x=p.getModel(m).getItemStyle();C.setHoverStyle(l,x)}function i(e,l,t){return _.map(e,function(a){return a=a.slice(),a[l]=t.initBaseline,a})}var n=f;H.exports=n},"3S7+":function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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"),l=d("JX7q"),t=d("Ji7U"),a=d("LK+K"),s=d("i8i4"),u=d.n(s),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(yn,Mn,Ft){return Ft?yn[0]===Mn[0]:yn[0]===Mn[0]&&yn[1]===Mn[1]}function b(yn,Mn,Ft){var bt=yn[Mn]||{};return Object(r.a)(Object(r.a)({},bt),Ft)}function O(yn,Mn,Ft,bt){for(var Oe=Ft.points,Ee=Object.keys(yn),Ie=0;Ie<Ee.length;Ie+=1){var Ye=Ee[Ie];if(S(yn[Ye].points,Oe,bt))return"".concat(Mn,"-placement-").concat(Ye)}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 k(yn,Mn){var Ft={};return Ft[yn.toLowerCase()]=Mn.toLowerCase(),Ft["Webkit".concat(yn)]="webkit".concat(Mn),Ft["Moz".concat(yn)]="moz".concat(Mn),Ft["ms".concat(yn)]="MS".concat(Mn),Ft["O".concat(yn)]="o".concat(Mn.toLowerCase()),Ft}function M(yn,Mn){var Ft={animationend:k("Animation","AnimationEnd"),transitionend:k("Transition","TransitionEnd")};return yn&&("AnimationEvent"in Mn||delete Ft.animationend.animation,"TransitionEvent"in Mn||delete Ft.transitionend.transition),Ft}var j=M(R,typeof window!="undefined"?window:{}),F={};if(R){var U=document.createElement("div");F=U.style}var K={};function V(yn){if(K[yn])return K[yn];var Mn=j[yn];if(Mn)for(var Ft=Object.keys(Mn),bt=Ft.length,Oe=0;Oe<bt;Oe+=1){var Ee=Ft[Oe];if(Object.prototype.hasOwnProperty.call(Mn,Ee)&&Ee in F)return K[yn]=Mn[Ee],K[yn]}return""}var z=V("animationend"),Q=V("transitionend"),Z=!!(z&&Q);function le(yn,Mn){if(!yn)return null;if(Object(o.a)(yn)==="object"){var Ft=Mn.replace(/-\w/g,function(bt){return bt[1].toUpperCase()});return yn[Ft]}return"".concat(yn,"-").concat(Mn)}var ne="none",ve="appear",xe="enter",_e="leave";function Be(yn){var Mn=yn,Ft=!!f.forwardRef;Object(o.a)(yn)==="object"&&(Mn=yn.transitionSupport,Ft="forwardRef"in yn?yn.forwardRef:Ft);function bt(Ee){return!!(Ee.motionName&&Mn)}var Oe=function(Ee){Object(t.a)(Ye,Ee);var Ie=Object(a.a)(Ye);function Ye(){var rt;return Object(n.a)(this,Ye),rt=Ie.apply(this,arguments),rt.$cacheEle=null,rt.node=null,rt.raf=null,rt.destroyed=!1,rt.deadlineId=null,rt.state={status:ne,statusActive:!1,newStatus:!1,statusStyle:null},rt.onDomUpdate=function(){var ut=rt.state,Ot=ut.status,Ar=ut.newStatus,Pr=rt.props,un=Pr.onAppearStart,It=Pr.onEnterStart,nt=Pr.onLeaveStart,at=Pr.onAppearActive,rr=Pr.onEnterActive,Pt=Pr.onLeaveActive,xt=Pr.motionAppear,Kt=Pr.motionEnter,yt=Pr.motionLeave;if(!bt(rt.props))return;var kt=rt.getElement();rt.$cacheEle!==kt&&(rt.removeEventListener(rt.$cacheEle),rt.addEventListener(kt),rt.$cacheEle=kt),Ar&&Ot===ve&&xt?rt.updateStatus(un,null,null,function(){rt.updateActiveStatus(at,ve)}):Ar&&Ot===xe&&Kt?rt.updateStatus(It,null,null,function(){rt.updateActiveStatus(rr,xe)}):Ar&&Ot===_e&&yt&&rt.updateStatus(nt,null,null,function(){rt.updateActiveStatus(Pt,_e)})},rt.onMotionEnd=function(ut){if(ut&&!ut.deadline&&ut.target!==rt.getElement())return;var Ot=rt.state,Ar=Ot.status,Pr=Ot.statusActive,un=rt.props,It=un.onAppearEnd,nt=un.onEnterEnd,at=un.onLeaveEnd;Ar===ve&&Pr?rt.updateStatus(It,{status:ne},ut):Ar===xe&&Pr?rt.updateStatus(nt,{status:ne},ut):Ar===_e&&Pr&&rt.updateStatus(at,{status:ne},ut)},rt.setNodeRef=function(ut){var Ot=rt.props.internalRef;rt.node=ut,Object(g.b)(Ot,ut)},rt.getElement=function(){try{return Object(p.a)(rt.node||Object(l.a)(rt))}catch(ut){return rt.$cacheEle}},rt.addEventListener=function(ut){if(!ut)return;ut.addEventListener(Q,rt.onMotionEnd),ut.addEventListener(z,rt.onMotionEnd)},rt.removeEventListener=function(ut){if(!ut)return;ut.removeEventListener(Q,rt.onMotionEnd),ut.removeEventListener(z,rt.onMotionEnd)},rt.updateStatus=function(ut,Ot,Ar,Pr){var un=ut?ut(rt.getElement(),Ar):null;if(un===!1||rt.destroyed)return;var It;Pr&&(It=function(){rt.nextFrame(Pr)}),rt.setState(Object(r.a)({statusStyle:Object(o.a)(un)==="object"?un:null,newStatus:!1},Ot),It)},rt.updateActiveStatus=function(ut,Ot){rt.nextFrame(function(){var Ar=rt.state.status;if(Ar!==Ot)return;var Pr=rt.props.motionDeadline;rt.updateStatus(ut,{statusActive:!0}),Pr>0&&(rt.deadlineId=setTimeout(function(){rt.onMotionEnd({deadline:!0})},Pr))})},rt.nextFrame=function(ut){rt.cancelNextFrame(),rt.raf=L()(ut)},rt.cancelNextFrame=function(){rt.raf&&(L.a.cancel(rt.raf),rt.raf=null)},rt}return Object(e.a)(Ye,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var ut,Ot=this.state,Ar=Ot.status,Pr=Ot.statusActive,un=Ot.statusStyle,It=this.props,nt=It.children,at=It.motionName,rr=It.visible,Pt=It.removeOnLeave,xt=It.leavedClassName,Kt=It.eventProps;return nt?Ar===ne||!bt(this.props)?rr?nt(Object(r.a)({},Kt),this.setNodeRef):Pt?null:nt(Object(r.a)(Object(r.a)({},Kt),{},{className:xt}),this.setNodeRef):nt(Object(r.a)(Object(r.a)({},Kt),{},{className:T()(le(at,Ar),(ut={},Object(D.a)(ut,le(at,"".concat(Ar,"-active")),Pr),Object(D.a)(ut,at,typeof at=="string"),ut)),style:un}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(ut,Ot){var Ar=Ot.prevProps,Pr=Ot.status;if(!bt(ut))return{};var un=ut.visible,It=ut.motionAppear,nt=ut.motionEnter,at=ut.motionLeave,rr=ut.motionLeaveImmediately,Pt={prevProps:ut};return(Pr===ve&&!It||Pr===xe&&!nt||Pr===_e&&!at)&&(Pt.status=ne,Pt.statusActive=!1,Pt.newStatus=!1),!Ar&&un&&It&&(Pt.status=ve,Pt.statusActive=!1,Pt.newStatus=!0),Ar&&!Ar.visible&&un&&nt&&(Pt.status=xe,Pt.statusActive=!1,Pt.newStatus=!0),(Ar&&Ar.visible&&!un&&at||!Ar&&rr&&!un&&at)&&(Pt.status=_e,Pt.statusActive=!1,Pt.newStatus=!0),Pt}}]),Ye}(f.Component);return Oe.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Ft?f.forwardRef(function(Ee,Ie){return f.createElement(Oe,Object.assign({internalRef:Ie},Ee))}):Oe}var me=Be(Z),Fe="add",ie="keep",te="remove",Ge="removed";function oe(yn){var Mn;return yn&&Object(o.a)(yn)==="object"&&"key"in yn?Mn=yn:Mn={key:yn},Object(r.a)(Object(r.a)({},Mn),{},{key:String(Mn.key)})}function Y(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return yn.map(oe)}function G(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=[],bt=0,Oe=Mn.length,Ee=Y(yn),Ie=Y(Mn);Ee.forEach(function(ut){for(var Ot=!1,Ar=bt;Ar<Oe;Ar+=1){var Pr=Ie[Ar];if(Pr.key===ut.key){bt<Ar&&(Ft=Ft.concat(Ie.slice(bt,Ar).map(function(un){return Object(r.a)(Object(r.a)({},un),{},{status:Fe})})),bt=Ar),Ft.push(Object(r.a)(Object(r.a)({},Pr),{},{status:ie})),bt+=1,Ot=!0;break}}Ot||Ft.push(Object(r.a)(Object(r.a)({},ut),{},{status:te}))}),bt<Oe&&(Ft=Ft.concat(Ie.slice(bt).map(function(ut){return Object(r.a)(Object(r.a)({},ut),{},{status:Fe})})));var Ye={};Ft.forEach(function(ut){var Ot=ut.key;Ye[Ot]=(Ye[Ot]||0)+1});var rt=Object.keys(Ye).filter(function(ut){return Ye[ut]>1});return rt.forEach(function(ut){Ft=Ft.filter(function(Ot){var Ar=Ot.key,Pr=Ot.status;return Ar!==ut||Pr!==te}),Ft.forEach(function(Ot){Ot.key===ut&&(Ot.status=ie)})}),Ft}var X=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fe(yn){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:me,Ft=function(bt){Object(t.a)(Ee,bt);var Oe=Object(a.a)(Ee);function Ee(){var Ie;return Object(n.a)(this,Ee),Ie=Oe.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(Ye){Ie.setState(function(rt){var ut=rt.keyEntities;return{keyEntities:ut.map(function(Ot){return Ot.key!==Ye?Ot:Object(r.a)(Object(r.a)({},Ot),{},{status:Ge})})}})},Ie}return Object(e.a)(Ee,[{key:"render",value:function(){var Ye=this,rt=this.state.keyEntities,ut=this.props,Ot=ut.component,Ar=ut.children,Pr=Object(i.a)(ut,["component","children"]),un=Ot||f.Fragment,It={};return X.forEach(function(nt){It[nt]=Pr[nt],delete Pr[nt]}),delete Pr.keys,f.createElement(un,Object.assign({},Pr),rt.map(function(nt){var at=nt.status,rr=Object(i.a)(nt,["status"]),Pt=at===Fe||at===ie;return f.createElement(Mn,Object.assign({},It,{key:rr.key,visible:Pt,eventProps:rr,onLeaveEnd:function(){It.onLeaveEnd&&It.onLeaveEnd.apply(It,arguments),Ye.removeKey(rr.key)}}),Ar)}))}}],[{key:"getDerivedStateFromProps",value:function(Ye,rt){var ut=Ye.keys,Ot=rt.keyEntities,Ar=Y(ut);if(!yn)return{keyEntities:Ar.map(function(It){return Object(r.a)(Object(r.a)({},It),{},{status:ie})})};var Pr=G(Ot,Ar),un=Ot.length;return{keyEntities:Pr.filter(function(It){for(var nt=null,at=0;at<un;at+=1){var rr=Ot[at];if(rr.key===It.key){nt=rr;break}}return!(nt&&nt.status===Ge&&It.status===te)})}}}]),Ee}(f.Component);return Ft.defaultProps={component:"div"},Ft}var de=fe(Z),Ce=me,Me=function(Mn,Ft){var bt=Mn.prefixCls,Oe=Mn.className,Ee=Mn.style,Ie=Mn.children,Ye=Mn.onMouseEnter,rt=Mn.onMouseLeave,ut=Mn.onMouseDown,Ot=Mn.onTouchStart,Ar=Ie;return f.Children.count(Ie)>1&&(Ar=f.createElement("div",{className:"".concat(bt,"-content")},Ie)),f.createElement("div",{ref:Ft,className:Oe,onMouseEnter:Ye,onMouseLeave:rt,onMouseDown:ut,onTouchStart:Ot,style:Ee},Ar)},ue=f.forwardRef(Me);ue.displayName="PopupInner";var Ae=ue;function Te(yn){var Mn=yn.prefixCls,Ft=yn.motion,bt=yn.animation,Oe=yn.transitionName;return Ft||(bt?{motionName:"".concat(Mn,"-").concat(bt)}:Oe?{motionName:Oe}:null)}function Je(yn){return yn&&yn.motionName}var At=function(yn){Object(t.a)(Ft,yn);var Mn=Object(a.a)(Ft);function Ft(){var bt;return Object(n.a)(this,Ft),bt=Mn.apply(this,arguments),bt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},bt.popupRef=c.a.createRef(),bt.alignRef=c.a.createRef(),bt.nextFrameState=null,bt.nextFrameId=null,bt.onAlign=function(Oe,Ee){var Ie=bt.state.status,Ye=bt.props,rt=Ye.getClassNameFromAlign,ut=Ye.onAlign,Ot=rt(Ee);Ie==="align"?bt.setState({alignClassName:Ot,status:"aligned"},function(){bt.alignRef.current.forceAlign()}):Ie==="aligned"?(bt.setState({alignClassName:Ot,status:"afterAlign"}),ut(Oe,Ee)):bt.setState({alignClassName:Ot})},bt.onMotionEnd=function(){var Oe=bt.props.visible;bt.setState({status:Oe?"AfterMotion":"stable",inMotion:!1})},bt.setStateOnNextFrame=function(Oe){bt.cancelFrameState(),bt.nextFrameState=Object(r.a)(Object(r.a)({},bt.nextFrameState),Oe),bt.nextFrameId=L()(function(){var Ee=Object(r.a)({},bt.nextFrameState);bt.nextFrameState=null,bt.setState(Ee)})},bt.getMotion=function(){return Object(r.a)({},Te(bt.props))},bt.getAlignTarget=function(){var Oe=bt.props,Ee=Oe.point,Ie=Oe.getRootDomNode;return Ee||Ie},bt.cancelFrameState=function(){L.a.cancel(bt.nextFrameId)},bt.renderPopupElement=function(){var Oe=bt.state,Ee=Oe.status,Ie=Oe.targetHeight,Ye=Oe.targetWidth,rt=Oe.alignClassName,ut=bt.props,Ot=ut.prefixCls,Ar=ut.className,Pr=ut.style,un=ut.stretch,It=ut.visible,nt=ut.align,at=ut.destroyPopupOnHide,rr=ut.onMouseEnter,Pt=ut.onMouseLeave,xt=ut.onMouseDown,Kt=ut.onTouchStart,yt=ut.children,kt=T()(Ot,Ar,rt),Sr="".concat(Ot,"-hidden"),hr={};un&&(un.indexOf("height")!==-1?hr.height=Ie:un.indexOf("minHeight")!==-1&&(hr.minHeight=Ie),un.indexOf("width")!==-1?hr.width=Ye:un.indexOf("minWidth")!==-1&&(hr.minWidth=Ye));var gr=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},hr),bt.getZIndexStyle()),Pr),{},{opacity:Ee==="stable"||!It?void 0:0,pointerEvents:Ee==="stable"||!It?void 0:"none"}),Jr=bt.getMotion(),$r=It;It&&Ee!=="beforeMotion"&&Ee!=="motion"&&Ee!=="stable"&&(Jr.motionAppear=!1,Jr.motionEnter=!1,Jr.motionLeave=!1),(Ee==="afterAlign"||Ee==="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),Qe=0;Qe<Ai;Qe++)Ii[Qe]=arguments[Qe];li==null||li.apply(void 0,Ii),bt.setState({inMotion:!0})}});var kn=!It||Ee!=="align"&&Ee!=="aligned"&&Ee!=="stable",Dn=!0;return Ee==="stable"&&(Dn=It),at&&!Dn?null:c.a.createElement(Ce,Object.assign({visible:$r},Jr,{removeOnLeave:!1,onEnterEnd:bt.onMotionEnd,onLeaveEnd:bt.onMotionEnd,leavedClassName:Sr}),function(Zn,li){var Ai=Zn.style,Ii=Zn.className;return c.a.createElement(N.a,{target:bt.getAlignTarget(),key:"popup",ref:bt.alignRef,monitorWindowResize:!0,disabled:kn,align:nt,onAlign:bt.onAlign},c.a.createElement(Ae,{prefixCls:Ot,className:T()(kt,Ii),ref:Object(g.a)(li,bt.popupRef),onMouseEnter:rr,onMouseLeave:Pt,onMouseDown:xt,onTouchStart:Kt,style:Object(r.a)(Object(r.a)({},gr),Ai)},yt))})},bt.renderMaskElement=function(){var Oe=bt.props,Ee=Oe.mask,Ie=Oe.maskMotion,Ye=Oe.maskTransitionName,rt=Oe.maskAnimation,ut=Oe.prefixCls,Ot=Oe.visible;if(!Ee)return null;var Ar={};return Ie&&Ie.motionName&&(Ar=Object(r.a)({motionAppear:!0},Te({motion:Ie,prefixCls:ut,transitionName:Ye,animation:rt}))),c.a.createElement(Ce,Object.assign({},Ar,{visible:Ot,removeOnLeave:!0}),function(Pr){var un=Pr.className;return c.a.createElement("div",{style:bt.getZIndexStyle(),key:"mask",className:T()("".concat(ut,"-mask"),un)})})},bt}return Object(e.a)(Ft,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Oe=this.state.status,Ee=this.props,Ie=Ee.getRootDomNode,Ye=Ee.visible,rt=Ee.stretch;if(this.cancelFrameState(),Ye&&Oe!=="stable")switch(Oe){case null:{this.setStateOnNextFrame({status:rt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Je(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var ut=["measure","align",null,"beforeMotion","motion"],Ot=ut.indexOf(Oe),Ar=ut[Ot+1];Ot!==-1&&Ar&&this.setStateOnNextFrame({status:Ar})}}if(Oe==="measure"){var Pr=Ie();Pr&&this.setStateOnNextFrame({targetHeight:Pr.offsetHeight,targetWidth:Pr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Oe=this.props.zIndex;return{zIndex:Oe}}},{key:"render",value:function(){return c.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Oe,Ee){var Ie=Oe.visible,Ye=Object(i.a)(Oe,["visible"]),rt=Ee.prevVisible,ut=Ee.status,Ot=Ee.inMotion,Ar={prevVisible:Ie,status:ut},Pr=Te(Ye);return rt===null&&Ie===!1?(Ar.status="stable",Ar.inMotion=!1):Ie!==rt&&(Ar.inMotion=!1,Ie||Je(Pr)&&Ot?Ar.status=null:Ar.status="stable",Ie&&(Ar.alignClassName=null)),Ar}}]),Ft}(f.Component),qe=At,Re=f.createContext(null),Lt=Re;function $e(){}function Et(){return""}function Ut(){return window.document}var Bt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function _t(yn){var Mn=function(Ft){Object(t.a)(Oe,Ft);var bt=Object(a.a)(Oe);function Oe(Ee){var Ie;Object(n.a)(this,Oe),Ie=bt.call(this,Ee),Ie.popupRef=c.a.createRef(),Ie.triggerRef=c.a.createRef(),Ie.onMouseEnter=function(rt){var ut=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",rt),Ie.delaySetPopupVisible(!0,ut,ut?null:rt)},Ie.onMouseMove=function(rt){Ie.fireEvents("onMouseMove",rt),Ie.setPoint(rt)},Ie.onMouseLeave=function(rt){Ie.fireEvents("onMouseLeave",rt),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(rt){if(rt.relatedTarget&&!rt.relatedTarget.setTimeout&&Ie.popupRef.current&&Ie.popupRef.current.popupRef.current&&Object(h.a)(Ie.popupRef.current.popupRef.current,rt.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(rt){Ie.fireEvents("onFocus",rt),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(rt){Ie.fireEvents("onMouseDown",rt),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(rt){Ie.fireEvents("onTouchStart",rt),Ie.preTouchTime=Date.now()},Ie.onBlur=function(rt){Ie.fireEvents("onBlur",rt),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(rt){rt.preventDefault(),Ie.fireEvents("onContextMenu",rt),Ie.setPopupVisible(!0,rt)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(rt){if(Ie.fireEvents("onClick",rt),Ie.focusTime){var ut;if(Ie.preClickTime&&Ie.preTouchTime?ut=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?ut=Ie.preClickTime:Ie.preTouchTime&&(ut=Ie.preTouchTime),Math.abs(ut-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&rt&&rt.preventDefault&&rt.preventDefault();var Ot=!Ie.state.popupVisible;(Ie.isClickToHide()&&!Ot||Ot&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,rt)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var rt;(rt=Ie.context).onPopupMouseDown.apply(rt,arguments)}},Ie.onDocumentClick=function(rt){if(Ie.props.mask&&!Ie.props.maskClosable)return;var ut=rt.target,Ot=Ie.getRootDomNode(),Ar=Ie.getPopupDomNode();!Object(h.a)(Ot,ut)&&!Object(h.a)(Ar,ut)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var rt=Ie.props.getTriggerDOMNode;if(rt)return rt(Ie.triggerRef.current);try{var ut=Object(p.a)(Ie.triggerRef.current);if(ut)return ut}catch(Ot){}return u.a.findDOMNode(Object(l.a)(Ie))},Ie.getPopupClassNameFromAlign=function(rt){var ut=[],Ot=Ie.props,Ar=Ot.popupPlacement,Pr=Ot.builtinPlacements,un=Ot.prefixCls,It=Ot.alignPoint,nt=Ot.getPopupClassNameFromAlign;return Ar&&Pr&&ut.push(O(Pr,un,rt,It)),nt&&ut.push(nt(rt)),ut.join(" ")},Ie.getComponent=function(){var rt=Ie.props,ut=rt.prefixCls,Ot=rt.destroyPopupOnHide,Ar=rt.popupClassName,Pr=rt.onPopupAlign,un=rt.popupMotion,It=rt.popupAnimation,nt=rt.popupTransitionName,at=rt.popupStyle,rr=rt.mask,Pt=rt.maskAnimation,xt=rt.maskTransitionName,Kt=rt.maskMotion,yt=rt.zIndex,kt=rt.popup,Sr=rt.stretch,hr=rt.alignPoint,gr=Ie.state,Jr=gr.popupVisible,$r=gr.point,kn=Ie.getPopupAlign(),Dn={};return Ie.isMouseEnterToShow()&&(Dn.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(Dn.onMouseLeave=Ie.onPopupMouseLeave),Dn.onMouseDown=Ie.onPopupMouseDown,Dn.onTouchStart=Ie.onPopupMouseDown,c.a.createElement(qe,Object.assign({prefixCls:ut,destroyPopupOnHide:Ot,visible:Jr,point:hr&&$r,className:Ar,align:kn,onAlign:Pr,animation:It,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},Dn,{stretch:Sr,getRootDomNode:Ie.getRootDomNode,style:at,mask:rr,zIndex:yt,transitionName:nt,maskAnimation:Pt,maskTransitionName:xt,maskMotion:Kt,ref:Ie.popupRef,motion:un}),typeof kt=="function"?kt():kt)},Ie.getContainer=function(){var rt=Object(l.a)(Ie),ut=rt.props,Ot=document.createElement("div");Ot.style.position="absolute",Ot.style.top="0",Ot.style.left="0",Ot.style.width="100%";var Ar=ut.getPopupContainer?ut.getPopupContainer(Ie.getRootDomNode()):ut.getDocument().body;return Ar.appendChild(Ot),Ot},Ie.setPoint=function(rt){var ut=Ie.props.alignPoint;if(!ut||!rt)return;Ie.setState({point:{pageX:rt.pageX,pageY:rt.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)};var Ye;return"popupVisible"in Ee?Ye=!!Ee.popupVisible:Ye=!!Ee.defaultPopupVisible,Ie.state={prevPopupVisible:Ye,popupVisible:Ye},Bt.forEach(function(rt){Ie["fire".concat(rt)]=function(ut){Ie.fireEvents(rt,ut)}}),Ie}return Object(e.a)(Oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,Ye=this.state;if(Ye.popupVisible){var rt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(rt=Ie.getDocument(),this.clickOutsideHandler=Object(v.a)(rt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(rt=rt||Ie.getDocument(),this.touchOutsideHandler=Object(v.a)(rt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(rt=rt||Ie.getDocument(),this.contextMenuOutsideHandler1=Object(v.a)(rt,"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 Ie=this.props,Ye=Ie.popupPlacement,rt=Ie.popupAlign,ut=Ie.builtinPlacements;return Ye&&ut?b(ut,Ye,rt):rt}},{key:"setPopupVisible",value:function(Ie,Ye){var rt=this.props.alignPoint,ut=this.state.popupVisible;this.clearDelayTimer(),ut!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:ut}),this.props.onPopupVisibleChange(Ie)),rt&&Ye&&this.setPoint(Ye)}},{key:"delaySetPopupVisible",value:function(Ie,Ye,rt){var ut=this,Ot=Ye*1e3;if(this.clearDelayTimer(),Ot){var Ar=rt?{pageX:rt.pageX,pageY:rt.pageY}:null;this.delayTimer=window.setTimeout(function(){ut.setPopupVisible(Ie,Ar),ut.clearDelayTimer()},Ot)}else this.setPopupVisible(Ie,rt)}},{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(Ie){var Ye=this.props.children.props,rt=this.props;return Ye[Ie]&&rt[Ie]?this["fire".concat(Ie)]:Ye[Ie]||rt[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.showAction;return Ye.indexOf("click")!==-1||rt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.showAction;return Ye.indexOf("contextMenu")!==-1||rt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.hideAction;return Ye.indexOf("click")!==-1||rt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.showAction;return Ye.indexOf("hover")!==-1||rt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.hideAction;return Ye.indexOf("hover")!==-1||rt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.showAction;return Ye.indexOf("focus")!==-1||rt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,Ye=Ie.action,rt=Ie.hideAction;return Ye.indexOf("focus")!==-1||rt.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(Ie,Ye){var rt=this.props.children.props[Ie];rt&&rt(Ye);var ut=this.props[Ie];ut&&ut(Ye)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,Ye=this.props,rt=Ye.children,ut=Ye.forceRender,Ot=Ye.alignPoint,Ar=Ye.className,Pr=Ye.autoDestroy,un=c.a.Children.only(rt),It={key:"trigger"};this.isContextMenuToShow()?It.onContextMenu=this.onContextMenu:It.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(It.onClick=this.onClick,It.onMouseDown=this.onMouseDown,It.onTouchStart=this.onTouchStart):(It.onClick=this.createTwoChains("onClick"),It.onMouseDown=this.createTwoChains("onMouseDown"),It.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(It.onMouseEnter=this.onMouseEnter,Ot&&(It.onMouseMove=this.onMouseMove)):It.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?It.onMouseLeave=this.onMouseLeave:It.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(It.onFocus=this.onFocus,It.onBlur=this.onBlur):(It.onFocus=this.createTwoChains("onFocus"),It.onBlur=this.createTwoChains("onBlur"));var nt=T()(un&&un.props&&un.props.className,Ar);nt&&(It.className=nt);var at=Object(r.a)({},It);Object(g.c)(un)&&(at.ref=Object(g.a)(this.triggerRef,un.ref));var rr=c.a.cloneElement(un,at),Pt;return(Ie||this.popupRef.current||ut)&&(Pt=c.a.createElement(yn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&Pr&&(Pt=null),c.a.createElement(Lt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},rr,Pt)}}],[{key:"getDerivedStateFromProps",value:function(Ie,Ye){var rt=Ie.popupVisible,ut={};return rt!==void 0&&Ye.popupVisible!==rt&&(ut.popupVisible=rt,ut.prevPopupVisible=Ye.popupVisible),ut}}]),Oe}(c.a.Component);return Mn.contextType=Lt,Mn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Et,getDocument:Ut,onPopupVisibleChange:$e,afterPopupVisibleChange:$e,onPopupAlign:$e,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 jt=_t(y.a),He={adjustX:1,adjustY:1},se=[0,0],J={left:{points:["cr","cl"],overflow:He,offset:[-4,0],targetOffset:se},right:{points:["cl","cr"],overflow:He,offset:[4,0],targetOffset:se},top:{points:["bc","tc"],overflow:He,offset:[0,-4],targetOffset:se},bottom:{points:["tc","bc"],overflow:He,offset:[0,4],targetOffset:se},topLeft:{points:["bl","tl"],overflow:He,offset:[0,-4],targetOffset:se},leftTop:{points:["tr","tl"],overflow:He,offset:[-4,0],targetOffset:se},topRight:{points:["br","tr"],overflow:He,offset:[0,-4],targetOffset:se},rightTop:{points:["tl","tr"],overflow:He,offset:[4,0],targetOffset:se},bottomRight:{points:["tr","br"],overflow:He,offset:[0,4],targetOffset:se},rightBottom:{points:["bl","br"],overflow:He,offset:[4,0],targetOffset:se},bottomLeft:{points:["tl","bl"],overflow:He,offset:[0,4],targetOffset:se},leftBottom:{points:["br","bl"],overflow:He,offset:[-4,0],targetOffset:se}},Ue=J,Le=function(Mn){var Ft=Mn.overlay,bt=Mn.prefixCls,Oe=Mn.id,Ee=Mn.overlayInnerStyle;return f.createElement("div",{className:"".concat(bt,"-inner"),id:Oe,role:"tooltip",style:Ee},typeof Ft=="function"?Ft():Ft)},ee=Le,ct=function(Mn,Ft){var bt=Mn.overlayClassName,Oe=Mn.trigger,Ee=Oe===void 0?["hover"]:Oe,Ie=Mn.mouseEnterDelay,Ye=Ie===void 0?0:Ie,rt=Mn.mouseLeaveDelay,ut=rt===void 0?.1:rt,Ot=Mn.overlayStyle,Ar=Mn.prefixCls,Pr=Ar===void 0?"rc-tooltip":Ar,un=Mn.children,It=Mn.onVisibleChange,nt=Mn.afterVisibleChange,at=Mn.transitionName,rr=Mn.animation,Pt=Mn.placement,xt=Pt===void 0?"right":Pt,Kt=Mn.align,yt=Kt===void 0?{}:Kt,kt=Mn.destroyTooltipOnHide,Sr=kt===void 0?!1:kt,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"]),kn=Object(f.useRef)(null);Object(f.useImperativeHandle)(Ft,function(){return kn.current});var Dn=Object(r.a)({},$r);"visible"in Mn&&(Dn.popupVisible=Mn.visible);var Zn=function(){var Se=Mn.arrowContent,Ne=Se===void 0?null:Se,je=Mn.overlay,Xe=Mn.id;return[f.createElement("div",{className:"".concat(Pr,"-arrow"),key:"arrow"},Ne),f.createElement(ee,{key:"content",prefixCls:Pr,id:Xe,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(jt,Object.assign({popupClassName:bt,prefixCls:Pr,popup:Zn,action:Ee,builtinPlacements:J,popupPlacement:xt,ref:kn,popupAlign:yt,getPopupContainer:gr,onPopupVisibleChange:It,afterPopupVisibleChange:nt,popupTransitionName:at,popupAnimation:rr,defaultPopupVisible:hr,destroyPopupOnHide:li,autoDestroy:Ai,mouseLeaveDelay:ut,popupStyle:Ot,mouseEnterDelay:Ye},Dn),un)},Mt=Object(f.forwardRef)(ct),ot=Mt,Yt={adjustX:1,adjustY:1},or={adjustX:0,adjustY:0},Zr=[0,0];function ir(yn){return typeof yn=="boolean"?yn?Yt:or:m()(m()({},or),yn)}function dr(yn){var Mn=yn.arrowWidth,Ft=Mn===void 0?5:Mn,bt=yn.horizontalArrowShift,Oe=bt===void 0?16:bt,Ee=yn.verticalArrowShift,Ie=Ee===void 0?8:Ee,Ye=yn.autoAdjustOverflow,rt={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:[-(Oe+Ft),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Ie+Ft)]},topRight:{points:["br","tc"],offset:[Oe+Ft,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Ie+Ft)]},bottomRight:{points:["tr","bc"],offset:[Oe+Ft,4]},rightBottom:{points:["bl","cr"],offset:[4,Ie+Ft]},bottomLeft:{points:["tl","bc"],offset:[-(Oe+Ft),4]},leftBottom:{points:["br","cl"],offset:[-4,Ie+Ft]}};return Object.keys(rt).forEach(function(ut){rt[ut]=yn.arrowPointAtCenter?m()(m()({},rt[ut]),{overflow:ir(Ye),targetOffset:Zr}):m()(m()({},J[ut]),{overflow:ir(Ye)}),rt[ut].ignoreShake=!0}),rt}var qt=d("0n0R"),Ht=d("H84U"),lt=d("09Wf"),Hr=function(Mn,Ft){var bt={},Oe=m()({},Mn);return Ft.forEach(function(Ee){Mn&&Ee in Mn&&(bt[Ee]=Mn[Ee],delete Oe[Ee])}),{picked:bt,omitted:Oe}},dn=new RegExp("^(".concat(lt.a.join("|"),")(-inverse)?$"));function Nn(yn,Mn){var Ft=yn.type;if((Ft.__ANT_BUTTON===!0||Ft.__ANT_SWITCH===!0||Ft.__ANT_CHECKBOX===!0||yn.type==="button")&&yn.props.disabled){var bt=Hr(yn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Oe=bt.picked,Ee=bt.omitted,Ie=m()(m()({display:"inline-block"},Oe),{cursor:"not-allowed",width:yn.props.block?"100%":null}),Ye=m()(m()({},Ee),{pointerEvents:"none"}),rt=Object(qt.a)(yn,{style:Ye,className:null});return f.createElement("span",{style:Ie,className:T()(yn.props.className,"".concat(Mn,"-disabled-compatible-wrapper"))},rt)}return yn}var Wn=f.forwardRef(function(yn,Mn){var Ft,bt=f.useContext(Ht.b),Oe=bt.getPopupContainer,Ee=bt.getPrefixCls,Ie=bt.direction,Ye=f.useState(!!yn.visible||!!yn.defaultVisible),rt=A()(Ye,2),ut=rt[0],Ot=rt[1];f.useEffect(function(){"visible"in yn&&Ot(yn.visible)},[yn.visible]);var Ar=function(){var Ii=yn.title,Qe=yn.overlay;return!Ii&&!Qe&&Ii!==0},Pr=function(Ii){"visible"in yn||Ot(Ar()?!1:Ii),yn.onVisibleChange&&!Ar()&&yn.onVisibleChange(Ii)},un=function(){var Ii=yn.builtinPlacements,Qe=yn.arrowPointAtCenter,Se=yn.autoAdjustOverflow;return Ii||dr({arrowPointAtCenter:Qe,autoAdjustOverflow:Se})},It=function(Ii,Qe){var Se=un(),Ne=Object.keys(Se).filter(function(ze){return Se[ze].points[0]===Qe.points[0]&&Se[ze].points[1]===Qe.points[1]})[0];if(!Ne)return;var je=Ii.getBoundingClientRect(),Xe={top:"50%",left:"50%"};Ne.indexOf("top")>=0||Ne.indexOf("Bottom")>=0?Xe.top="".concat(je.height-Qe.offset[1],"px"):(Ne.indexOf("Top")>=0||Ne.indexOf("bottom")>=0)&&(Xe.top="".concat(-Qe.offset[1],"px")),Ne.indexOf("left")>=0||Ne.indexOf("Right")>=0?Xe.left="".concat(je.width-Qe.offset[0],"px"):(Ne.indexOf("right")>=0||Ne.indexOf("Left")>=0)&&(Xe.left="".concat(-Qe.offset[0],"px")),Ii.style.transformOrigin="".concat(Xe.left," ").concat(Xe.top)},nt=function(){var Ii=yn.title,Qe=yn.overlay;return Ii===0?Ii:Qe||Ii||""},at=yn.prefixCls,rr=yn.openClassName,Pt=yn.getPopupContainer,xt=yn.getTooltipContainer,Kt=yn.overlayClassName,yt=yn.color,kt=yn.overlayInnerStyle,Sr=yn.children,hr=Ee("tooltip",at),gr=ut;!("visible"in yn)&&Ar()&&(gr=!1);var Jr=Nn(Object(qt.b)(Sr)?Sr:f.createElement("span",null,Sr),hr),$r=Jr.props,kn=T()($r.className,E()({},rr||"".concat(hr,"-open"),!0)),Dn=T()(Kt,(Ft={},E()(Ft,"".concat(hr,"-rtl"),Ie==="rtl"),E()(Ft,"".concat(hr,"-").concat(yt),yt&&dn.test(yt)),Ft)),Zn,li;return yt&&!dn.test(yt)&&(Zn=m()(m()({},kt),{background:yt}),li={background:yt}),f.createElement(ot,m()({},yn,{prefixCls:hr,overlayClassName:Dn,getTooltipContainer:Pt||xt||Oe,ref:Mn,builtinPlacements:un(),overlay:nt(),visible:gr,onVisibleChange:Pr,onPopupAlign:It,overlayInnerStyle:Zn,arrowContent:f.createElement("span",{className:"".concat(hr,"-arrow-content"),style:li})}),gr?Object(qt.a)(Jr,{className:kn}):Jr)});Wn.displayName="Tooltip",Wn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var gi=B.a=Wn},"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 _=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:[]}});_.mixin(A,C);var w=A;H.exports=w},"3e3G":function(H,B,d){var _=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},_.inherits(C,E);var A=C;H.exports=A},"3gBT":function(H,B){var d=2311;function _(){return d++}H.exports=_},"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 _(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)),l=d(i.getShallow("symbolSize",!0)),t=i.get(c),a=i.get(o);switch(t){case"source":t=n.node1.getVisual("color");break;case"target":t=n.node2.getVisual("color");break}e[0]&&n.setVisual("fromSymbol",e[0]),e[1]&&n.setVisual("toSymbol",e[1]),l[0]&&n.setVisual("fromSymbolSize",l[0]),l[1]&&n.setVisual("toSymbolSize",l[1]),n.setVisual("color",t),n.setVisual("opacity",a)})})}H.exports=_},"3ouR":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseSquareOutlined";var f=B.a=E.forwardRef(m)},"3y9D":function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(){var E=_,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],l=n[1],t=n[2],a=n[3],s=n[4],u=0;u<80;u++){if(u<16)f[u]=r[i+u]|0;else{var h=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=h<<1|h>>>31}var p=(e<<5|e>>>27)+s+f[u];u<20?p+=(l&t|~l&a)+1518500249:u<40?p+=(l^t^a)+1859775393:u<60?p+=(l&t|l&a|t&a)-1894007588:p+=(l^t^a)-899497514,s=a,a=t,t=l<<30|l>>>2,l=e,e=p}n[0]=n[0]+e|0,n[1]=n[1]+l|0,n[2]=n[2]+t|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,e=r.sigBytes*8;return i[e>>>5]|=128<<24-e%32,i[(e+64>>>9<<4)+14]=Math.floor(n/4294967296),i[(e+64>>>9<<4)+15]=n,r.sigBytes=i.length*4,this._process(),this._hash},clone:function(){var r=w.clone.call(this);return r._hash=this._hash.clone(),r}});E.SHA1=w._createHelper(c),E.HmacSHA1=w._createHmacHelper(c)}(),_.SHA1})},"3zoK":function(H,B,d){var _=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=_.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 l=0,t=n.length;l<t;l++)if(n[l][0]<=i&&i<=n[l][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};_.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(_){return d.call(_)=="[object Array]"}},"4Feb":function(H,B,d){var _=d("Tghj"),E=_.__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"),l=d("sK/D"),t=l.createClipPath,a=d("qj72"),s=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:s,singleAxis:u,polar:h,calendar:p};i.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(ne,ve){return f(this.getSource(),this)},getDataParams:function(ne,ve,xe){var _e=i.prototype.getDataParams.apply(this,arguments);return xe&&(_e.info=xe.info),_e}}),e.extend({type:"custom",_data:null,render:function(ne,ve,xe,_e){var Be=this._data,me=ne.getData(),Fe=this.group,ie=N(ne,me,ve,xe);me.diff(Be).add(function(Ge){R(null,Ge,ie(Ge,_e),ne,Fe,me)}).update(function(Ge,oe){var Y=Be.getItemGraphicEl(oe);R(Y,Ge,ie(Ge,_e),ne,Fe,me)}).remove(function(Ge){var oe=Be.getItemGraphicEl(Ge);oe&&Fe.remove(oe)}).execute();var te=ne.get("clip",!0)?t(ne.coordinateSystem,!1,ne):null;te?Fe.setClipPath(te):Fe.removeClipPath(),this._data=me},incrementalPrepareRender:function(ne,ve,xe){this.group.removeAll(),this._data=null},incrementalRender:function(ne,ve,xe,_e,Be){var me=ve.getData(),Fe=N(ve,me,xe,_e);function ie(oe){oe.isGroup||(oe.incremental=!0,oe.useHoverLayer=!0)}for(var te=ne.start;te<ne.end;te++){var Ge=R(null,te,Fe(te,Be),ve,this.group,me);Ge.traverse(ie)}},dispose:C.noop,filterForExposedEvent:function(ne,ve,xe,_e){var Be=ve.element;if(Be==null||xe.name===Be)return!0;for(;(xe=xe.parent)&&xe!==this.group;)if(xe.name===Be)return!0;return!1}});function O(ne){var ve=ne.type,xe;if(ve==="path"){var _e=ne.shape,Be=_e.width!=null&&_e.height!=null?{x:_e.x||0,y:_e.y||0,width:_e.width,height:_e.height}:null,me=Q(_e);xe=A.makePath(me,null,Be,_e.layout||"center"),xe.__customPathData=me}else if(ve==="image")xe=new A.Image({}),xe.__customImagePath=ne.style.image;else if(ve==="text")xe=new A.Text({}),xe.__customText=ne.style.text;else if(ve==="group")xe=new A.Group;else{if(ve==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Fe=A.getShapeClass(ve);xe=new Fe}return xe.__customGraphicType=ve,xe.name=ne.name,xe}function I(ne,ve,xe,_e,Be,me,Fe){var ie={},te=xe.style||{};if(xe.shape&&(ie.shape=C.clone(xe.shape)),xe.position&&(ie.position=xe.position.slice()),xe.scale&&(ie.scale=xe.scale.slice()),xe.origin&&(ie.origin=xe.origin.slice()),xe.rotation&&(ie.rotation=xe.rotation),ne.type==="image"&&xe.style){var Ge=ie.style={};C.each(["x","y","width","height"],function(G){L(G,Ge,te,ne.style,me)})}if(ne.type==="text"&&xe.style){var Ge=ie.style={};C.each(["x","y"],function(X){L(X,Ge,te,ne.style,me)}),!te.hasOwnProperty("textFill")&&te.fill&&(te.textFill=te.fill),!te.hasOwnProperty("textStroke")&&te.stroke&&(te.textStroke=te.stroke)}if(ne.type!=="group"&&(ne.useStyle(te),me)){ne.style.opacity=0;var oe=te.opacity;oe==null&&(oe=1),A.initProps(ne,{style:{opacity:oe}},_e,ve)}me?ne.attr(ie):A.updateProps(ne,ie,_e,ve),xe.hasOwnProperty("z2")&&ne.attr("z2",xe.z2||0),xe.hasOwnProperty("silent")&&ne.attr("silent",xe.silent),xe.hasOwnProperty("invisible")&&ne.attr("invisible",xe.invisible),xe.hasOwnProperty("ignore")&&ne.attr("ignore",xe.ignore),xe.hasOwnProperty("info")&&ne.attr("info",xe.info);var Y=xe.styleEmphasis;A.setElementHoverStyle(ne,Y),Fe&&A.setAsHighDownDispatcher(ne,Y!==!1)}function L(ne,ve,xe,_e,Be){xe[ne]!=null&&!Be&&(ve[ne]=xe[ne],xe[ne]=_e[ne])}function N(ne,ve,xe,_e){var Be=ne.get("renderItem"),me=ne.coordinateSystem,Fe={};me&&(Fe=me.prepareCustoms?me.prepareCustoms():b[me.type](me));var ie=C.defaults({getWidth:_e.getWidth,getHeight:_e.getHeight,getZr:_e.getZr,getDevicePixelRatio:_e.getDevicePixelRatio,value:Ce,style:Me,styleEmphasis:ue,visual:Ae,barLayout:Te,currentSeriesIndices:Je,font:At},Fe.api||{}),te={context:{},seriesId:ne.id,seriesName:ne.name,seriesIndex:ne.seriesIndex,coordSys:Fe.coordSys,dataInsideLength:ve.count(),encode:D(ne.getData())},Ge,oe=!0,Y,G,X,fe;return function(qe,Re){return Ge=qe,oe=!0,Be&&Be(C.defaults({dataIndexInside:qe,dataIndex:ve.getRawIndex(qe),actionType:Re?Re.type:null},te),ie)};function de(qe){qe==null&&(qe=Ge),oe&&(Y=ve.getItemModel(qe),G=Y.getModel(x),X=Y.getModel(T),fe=ve.getItemVisual(qe,"color"),oe=!1)}function Ce(qe,Re){return Re==null&&(Re=Ge),ve.get(ve.getDimension(qe||0),Re)}function Me(qe,Re){Re==null&&(Re=Ge),de(Re);var Lt=Y.getModel(v).getItemStyle();fe!=null&&(Lt.fill=fe);var $e=ve.getItemVisual(Re,"opacity");$e!=null&&(Lt.opacity=$e);var Et=qe?K(qe,G):G;return A.setTextStyle(Lt,Et,null,{autoColor:fe,isRectText:!0}),Lt.text=Et.getShallow("show")?C.retrieve2(ne.getFormattedLabel(Re,"normal"),m(ve,Re)):null,qe&&V(Lt,qe),Lt}function ue(qe,Re){Re==null&&(Re=Ge),de(Re);var Lt=Y.getModel(y).getItemStyle(),$e=qe?K(qe,X):X;return A.setTextStyle(Lt,$e,null,{isRectText:!0},!0),Lt.text=$e.getShallow("show")?C.retrieve3(ne.getFormattedLabel(Re,"emphasis"),ne.getFormattedLabel(Re,"normal"),m(ve,Re)):null,qe&&V(Lt,qe),Lt}function Ae(qe,Re){return Re==null&&(Re=Ge),ve.getItemVisual(Re,qe)}function Te(qe){if(me.getBaseAxis){var Re=me.getBaseAxis();return o(C.defaults({axis:Re},qe),_e)}}function Je(){return xe.getCurrentSeriesIndices()}function At(qe){return A.getFont(qe,xe)}}function D(ne){var ve={};return C.each(ne.dimensions,function(xe,_e){var Be=ne.getDimensionInfo(xe);if(!Be.isExtraCoord){var me=Be.coordDim,Fe=ve[me]=ve[me]||[];Fe[Be.coordDimIndex]=_e}}),ve}function R(ne,ve,xe,_e,Be,me){return ne=k(ne,ve,xe,_e,Be,me,!0),ne&&me.setItemGraphicEl(ve,ne),ne}function k(ne,ve,xe,_e,Be,me,Fe){var ie=!xe;xe=xe||{};var te=xe.type,Ge=xe.shape,oe=xe.style;if(ne&&(ie||te!=null&&te!==ne.__customGraphicType||te==="path"&&Z(Ge)&&Q(Ge)!==ne.__customPathData||te==="image"&&le(oe,"image")&&oe.image!==ne.__customImagePath||te==="text"&&le(Ge,"text")&&oe.text!==ne.__customText)&&(Be.remove(ne),ne=null),ie)return;var Y=!ne;return!ne&&(ne=O(xe)),I(ne,ve,xe,_e,me,Y,Fe),te==="group"&&M(ne,ve,xe,_e,me),Be.add(ne),ne}function M(ne,ve,xe,_e,Be){var me=xe.children,Fe=me?me.length:0,ie=xe.$mergeChildren,te=ie==="byName"||xe.diffChildrenByName,Ge=ie===!1;if(!Fe&&!te&&!Ge)return;if(te){j({oldChildren:ne.children()||[],newChildren:me||[],dataIndex:ve,animatableModel:_e,group:ne,data:Be});return}Ge&&ne.removeAll();for(var oe=0;oe<Fe;oe++)me[oe]&&k(ne.childAt(oe),ve,me[oe],_e,ne,Be)}function j(ne){new r(ne.oldChildren,ne.newChildren,F,F,ne).add(U).update(U).remove(z).execute()}function F(ne,ve){var xe=ne&&ne.name;return xe!=null?xe:S+ve}function U(ne,ve){var xe=this.context,_e=ne!=null?xe.newChildren[ne]:null,Be=ve!=null?xe.oldChildren[ve]:null;k(Be,xe.dataIndex,_e,xe.animatableModel,xe.group,xe.data)}function K(ne,ve){var xe=new n({},ve);return C.each(g,function(_e,Be){ne.hasOwnProperty(_e)&&(xe.option[Be]=ne[_e])}),xe}function V(ne,ve){for(var xe in ve)(ve.hasOwnProperty(xe)||!g.hasOwnProperty(xe))&&(ne[xe]=ve[xe])}function z(ne){var ve=this.context,xe=ve.oldChildren[ne];xe&&ve.group.remove(xe)}function Q(ne){return ne&&(ne.pathData||ne.d)}function Z(ne){return ne&&(ne.hasOwnProperty("pathData")||ne.hasOwnProperty("d"))}function le(ne,ve){return ne&&ne.hasOwnProperty(ve)}},"4HMb":function(H,B,d){var _=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"?l(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),O=s(S,b);if(O)return O;var I,L;return _.isFunction(b)?I=y(x,b):(L=b==="auto"?h(x):b,I=v(x,L)),u(S,b,{labels:I,labelCategoryInterval:L})}function l(x,T){var S=a(x,"ticks"),b=f(T),O=s(S,b);if(O)return O;var I,L;if((!T.get("show")||x.scale.isBlank())&&(I=[]),_.isFunction(b))I=y(x,b,!0);else if(b==="auto"){var N=e(x,x.getLabelModel());L=N.labelCategoryInterval,I=_.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:_.map(T,function(b,O){return{formattedLabel:S(b,O),rawLabel:x.scale.getLabel(b),tickValue:b}})}}function a(x,T){return o(x)[T]||(o(x)[T]=[])}function s(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,O=x.scale,I=O.getExtent(),L=O.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),k=Math.abs(R*Math.cos(b)),M=Math.abs(R*Math.sin(b)),j=0,F=0;D<=I[1];D+=N){var U=0,K=0,V=E.getBoundingRect(S(D),T.font,"center","top");U=V.width*1.3,K=V.height*1.3,j=Math.max(j,U,7),F=Math.max(F,K,7)}var z=j/k,Q=F/M;isNaN(z)&&(z=Infinity),isNaN(Q)&&(Q=Infinity);var Z=Math.max(0,Math.floor(Math.min(z,Q))),le=o(x.model),ne=x.getExtent(),ve=le.lastAutoInterval,xe=le.lastTickCount;return ve!=null&&xe!=null&&Math.abs(ve-Z)<=1&&Math.abs(xe-L)<=1&&ve>Z&&le.axisExtend0===ne[0]&&le.axisExtend1===ne[1]?Z=ve:(le.lastTickCount=L,le.lastAutoInterval=Z,le.axisExtend0=ne[0],le.axisExtend1=ne[1]),Z}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),O=x.scale,I=O.getExtent(),L=x.getLabelModel(),N=[],D=Math.max((T||0)+1,1),R=I[0],k=O.count();R!==0&&D>1&&k/D>2&&(R=Math.round(Math.ceil(R/D)*D));var M=c(x),j=L.get("showMinLabel")||M,F=L.get("showMaxLabel")||M;j&&R!==I[0]&&K(I[0]);for(var U=R;U<=I[1];U+=D)K(U);F&&U-D!==I[1]&&K(I[1]);function K(V){N.push(S?V:{formattedLabel:b(V),rawLabel:O.getLabel(V),tickValue:V})}return N}function y(x,T,S){var b=x.scale,O=m(x),I=[];return _.each(b.getTicks(),function(L){var N=b.getLabel(L);T(L,N)&&I.push(S?L:{formattedLabel:O(L),rawLabel:N,tickValue:L})}),I}B.createAxisLabels=r,B.createAxisTicks=i,B.calculateCategoryInterval=p},"4NO4":function(H,B,d){var _=d("bYtY"),E=d("ItGF"),C=_.each,A=_.isObject,w=_.isArray,m="series\0";function f(S){return S instanceof Array?S:S==null?[]:[S]}function c(S,b,O){if(S){S[b]=S[b]||{},S.emphasis=S.emphasis||{},S.emphasis[b]=S.emphasis[b]||{};for(var I=0,L=O.length;I<L;I++){var N=O[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<O.length;N++)if(!O[N].option&&I.id!=null&&O[N].exist.id===I.id+""){O[N].option=I,b[L]=null;return}for(var N=0;N<O.length;N++){var D=O[N].exist;if(!O[N].option&&(D.id==null||I.id==null)&&I.name!=null&&!t(I)&&!t(D)&&D.name===I.name+""){O[N].option=I,b[L]=null;return}}}),C(b,function(I,L){if(!A(I))return;for(var N=0;N<O.length;N++){var D=O[N].exist;if(!O[N].option&&!t(D)&&I.id==null){O[N].option=I;break}}N>=O.length&&O.push({option:I})}),O}function e(S){var b=_.createHashMap();C(S,function(O,I){var L=O.exist;L&&b.set(L.id,O)}),C(S,function(O,I){var L=O.option;_.assert(!L||L.id==null||!b.get(L.id)||b.get(L.id)===O,"id duplicates: "+(L&&L.id)),L&&L.id!=null&&b.set(L.id,O),!O.keyInfo&&(O.keyInfo={})}),C(S,function(O,I){var L=O.exist,N=O.option,D=O.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,O)})}function l(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 O={},I={};return L(S||[],O),L(b||[],I,O),[N(O),N(I)];function L(D,R,k){for(var M=0,j=D.length;M<j;M++)for(var F=D[M].seriesId,U=f(D[M].dataIndex),K=k&&k[F],V=0,z=U.length;V<z;V++){var Q=U[V];K&&K[Q]?K[Q]=null:(R[F]||(R[F]={}))[Q]=1}}function N(D,R){var k=[];for(var M in D)if(D.hasOwnProperty(M)&&D[M]!=null)if(R)k.push(+M);else{var j=N(D[M],!0);j.length&&k.push({seriesId:M,dataIndex:j})}return k}}function s(S,b){if(b.dataIndexInside!=null)return b.dataIndexInside;if(b.dataIndex!=null)return _.isArray(b.dataIndex)?_.map(b.dataIndex,function(O){return S.indexOfRawIndex(O)}):S.indexOfRawIndex(b.dataIndex);if(b.name!=null)return _.isArray(b.name)?_.map(b.name,function(O){return S.indexOfName(O)}):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,O){if(_.isString(b)){var I={};I[b+"Index"]=0,b=I}var L=O&&O.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 k=R.match(/^(\w+)(Index|Id|Name)$/)||[],M=k[1],j=(k[2]||"").toLowerCase();if(!M||!j||D==null||j==="index"&&D==="none"||O&&O.includeMainTypes&&_.indexOf(O.includeMainTypes,M)<0)return;var F={mainType:M};(j!=="index"||D!=="all")&&(F[j]=D);var U=S.queryComponents(F);N[M+"Models"]=U,N[M+"Model"]=U[0]}),N}function g(S,b){return S&&S.hasOwnProperty(b)}function v(S,b,O){S.setAttribute?S.setAttribute(b,O):S[b]=O}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 _.each(S,function(L){var N=b(L);(O.get(N)||(I.push(N),O.set(N,[]))).push(L)}),{keys:I,buckets:O}}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=l,B.isIdInner=t,B.compressBatches=a,B.queryDataIndex=s,B.makeInner=u,B.parseFinder=p,B.setAttribute=v,B.getAttribute=y,B.getTooltipRenderMode=x,B.groupData=T},"4NgU":function(H,B,d){var _=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,_.enableClassExtend(E),_.enableClassManagement(E,{registerWhenExtend:!0});var C=E;H.exports=C},"4fz+":function(H,B,d){var _=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=_.indexOf(r,f);return i<0?this:(r.splice(i,1),f.parent=null,o&&(o.delFromStorage(f),f instanceof A&&f.delChildrenFromStorage(o)),c&&c.refresh(),this)},removeAll:function(){var f=this._children,c=this.__storage,o,r;for(r=0;r<f.length;r++)o=f[r],c&&(c.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(c)),o.parent=null;return f.length=0,this},eachChild:function(f,c){for(var o=this._children,r=0;r<o.length;r++){var i=o[r];f.call(c,i,r)}return this},traverse:function(f,c){for(var o=0;o<this._children.length;o++){var r=this._children[o];f.call(c,r),r.type==="group"&&r.traverse(f,c)}return this},addChildrenToStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.addToStorage(o),o instanceof A&&o.addChildrenToStorage(f)}},delChildrenFromStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(f)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(f){for(var c=null,o=new C(0,0,0,0),r=f||this._children,i=[],n=0;n<r.length;n++){var e=r[n];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),t=e.getLocalTransform(i);t?(o.copy(l),o.applyTransform(t),c=c||o.clone(),c.union(o)):(c=c||l.clone(),c.union(l))}return c||o}},_.inherits(A,E);var w=A;H.exports=w},"4i/N":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseOutlined";var f=B.a=E.forwardRef(m)},"4mN7":function(H,B,d){var _=d("QBsz"),E=d("Sj9i"),C=Math.min,A=Math.max,w=Math.sin,m=Math.cos,f=Math.PI*2,c=_.create(),o=_.create(),r=_.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=[],l=[];function t(u,h,p,g,v,y,x,T,S,b){var O=E.cubicExtrema,I=E.cubicAt,L,N=O(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=O(h,g,y,T,l),L=0;L<N;L++){var R=I(h,g,y,T,l[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,O=A(C(S(u,p,v),1),0),I=A(C(S(h,g,y),1),0),L=b(u,p,v,O),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 s(u,h,p,g,v,y,x,T,S){var b=_.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),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),O(S,r,S))}B.fromPoints=i,B.fromLine=n,B.fromCubic=t,B.fromQuadratic=a,B.fromArc=s},"4vCz":function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _={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=_},"56rv":function(H,B,d){var _=d("IwbS"),E=d("x3X8"),C=E.getDefaultLabel;function A(m,f,c,o,r,i,n){var e=c.getModel("label"),l=c.getModel("emphasis.label");_.setLabelStyle(m,f,e,l,{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 _=d("Sj9i");function E(C,A,w,m,f,c,o,r,i,n,e){if(i===0)return!1;var l=i;if(e>A+l&&e>m+l&&e>c+l&&e>r+l||e<A-l&&e<m-l&&e<c-l&&e<r-l||n>C+l&&n>w+l&&n>f+l&&n>o+l||n<C-l&&n<w-l&&n<f-l&&n<o-l)return!1;var t=_.cubicProjectPoint(C,A,w,m,f,c,o,r,n,e,null);return t<=l/2}B.containStroke=E},"5Dmo":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("5YgA"),A=d.n(C)},"5GOC":function(H,B,d){"use strict";var _=d("cIOH"),E=d("b56q"),C=d("15/o")},"5GhG":function(H,B,d){var _=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"),l=n.get("type"),t;e==="category"?(c.layout="horizontal",r=i.getOrdinalMeta(),t=!0):l==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),t=!0):c.layout=c.layout||"horizontal";var a=["x","y"],s=c.layout==="horizontal"?0:1,u=this._baseAxisDim=a[s],h=a[1-s],p=[i,n],g=p[s].get("type"),v=p[1-s].get("type"),y=c.data;if(y&&t){var x=[];E.each(y,function(b,O){var I;b.value&&E.isArray(b.value)?(I=b.value.slice(),b.value.unshift(O)):E.isArray(b)?(I=b.slice(),b.unshift(O)):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 _(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 _=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=_(r,c),n=new E(i,f);return n.initData(r,o),n}H.exports=m},"5Hur":function(H,B,d){var _=d("4NO4"),E=_.makeInner,C=_.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)),l=this.get("colorLayer",!0),t=o==null||!l?e:w(l,o);if(t=t||e,!t||!t.length)return;var a=t[i];return f&&(n[f]=a),r.colorIdx=(i+1)%t.length,a}};H.exports=m},"5NDa":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),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 _=d("J4zp"),E=d.n(_),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 _=d("pVnL"),E=d.n(_),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"),l=d.n(e),t=d("1OyB"),a=d("vuIU"),s=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),O=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,vt;return typeof Zt=="function"?vt=Zt(br):vt=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},vt!==void 0?vt:e.createElement("span",{className:b()(on.split(/\s+/).map(function(mr){return"".concat(mr,"-icon")}))},An))},D=N,R=d("c+Xe"),k=function(lr,on){var Zt=lr.prefixCls,br=lr.id,Or=lr.inputElement,Wr=lr.disabled,An=lr.tabIndex,vt=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:vt,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(k);M.displayName="Input";var j=M;function F(wr){return Array.isArray(wr)?wr:wr!==void 0?[wr]:[]}function U(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 K(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(vt){return Wr(vt,{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,Q=z,Z=0;function le(){var wr;return Q?(wr=Z,Z+=1):wr="TEST_OR_SSR",wr}function ne(wr,lr){Q?e.useLayoutEffect(wr,lr):e.useEffect(wr,lr)}var ve="__RC_SELECT_MAX_REST_COUNT__",xe=function(lr){var on=lr.id,Zt=lr.prefixCls,br=lr.values,Or=lr.open,Wr=lr.searchValue,An=lr.inputRef,vt=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:ve,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!==ve&&!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(j,{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")},vt))},_e=xe,Be=function(lr){var on=lr.inputElement,Zt=lr.prefixCls,br=lr.id,Or=lr.inputRef,Wr=lr.disabled,An=lr.autoFocus,vt=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(j,{ref:Or,prefixCls:Zt,id:br,open:Fr,inputElement:on,disabled:Wr,autoFocus:An,autoComplete:vt,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))},me=Be;function Fe(){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 ie=function(lr,on){var Zt=Object(e.useRef)(null),br=Object(e.useRef)(!1),Or=lr.prefixCls,Wr=lr.multiple,An=lr.open,vt=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=Fe(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&&vt==="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(),(vt!=="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(_e,Object.assign({},lr,ua)):e.createElement(me,Object.assign({},lr,ua));return e.createElement("div",{ref:Ln,className:"".concat(Or,"-selector"),onClick:$i,onMouseDown:Di},aa)},te=e.forwardRef(ie);te.displayName="Selector";var Ge=te,oe=d("uciX"),Y=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,vt=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 Y(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:vt},Fr);return typeof Tn=="number"?$i.width=Tn:Tn&&($i.width=vt),e.createElement(oe.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)},X=e.forwardRef(G);X.displayName="SelectTrigger";var fe=X,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 Me=d("T5bk"),ue=d("Kwbf");function Ae(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 Te(wr){var lr=[];function on(Zt,br){Zt.forEach(function(Or){br||!("options"in Or)?lr.push({key:Ae(Or,lr.length),groupOption:br,data:Or}):(lr.push({key:Ae(Or,lr.length),group:!0,data:Or}),on(Or.options,!0))})}return on(wr,!1),lr}function Je(wr){var lr=Object(v.a)({},wr);return"props"in lr||Object.defineProperty(lr,"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`."),lr}}),lr}function At(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(vt){return vt._INTERNAL_OPTION_VALUE_===Wr}))),Je(An)})}var qe=function(lr,on){var Zt=on.options,br=on.prevValue,Or=on.labelInValue,Wr=on.optionLabelProp,An=At([lr],Zt)[0],vt={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?(vt.label=mr.label,An&&typeof mr.label=="string"&&typeof An[Wr]=="string"&&mr.label.trim()!==An[Wr].trim()&&Object(ue.a)(!1,"`label` of `value` is not same as `label` in Select options.")):An&&Wr in An?vt.label=An[Wr]:vt.label=lr,vt.key=vt.value,vt};function Re(wr){return F(wr).join("")}function Lt(wr){return function(lr,on){var Zt=lr.toLowerCase();if("options"in on)return Re(on.label).toLowerCase().includes(Zt);var br=on[wr],Or=Re(br).toLowerCase();return Or.includes(Zt)}}function $e(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=Lt(Zt),lr.forEach(function(An){if("options"in An){var vt=Wr(wr,An);if(vt)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,Je(An))&&Or.push(An)}),Or)}function Et(wr,lr){if(!lr||!lr.length)return null;var on=!1;function Zt(Or,Wr){var An=Object(Me.a)(Wr),vt=An[0],mr=An.slice(1);if(!vt)return[Or];var vr=Or.split(vt);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 Ut(wr,lr){var on=At([wr],lr)[0];return on.disabled}function Bt(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(vt){Wr.add(vt.value)}):Wr.add(An.value)}),br.forEach(function(An){var vt=Zt?An.value:An;if(!Wr.has(vt)){var mr;Or.push(Zt?(mr={},Object(y.a)(mr,on,An.label),Object(y.a)(mr,"value",vt),mr):{value:vt})}}),Or}function _t(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 jt(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 He(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 se=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function J(wr){var lr=wr.prefixCls,on=wr.components.optionList,Zt=wr.convertChildrenToData,br=wr.flattenOptions,Or=wr.getLabeledValue,Wr=wr.filterOptions,An=wr.isValueDisabled,vt=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,tt=tn.dropdownRender,cr=tn.dropdownAlign,kr=tn.showAction,Lr=kr===void 0?[]:kr,_n=tn.direction,Vr=tn.tokenSeparators,_r=tn.tagRender,Pn=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,Pi=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;se.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],Pa=ca[1],La=ca[2],Za=Object(e.useState)(),eo=Object(g.a)(Za,2),ko=eo[0],jo=eo[1];Object(e.useEffect)(function(){jo("rc_select_".concat(le()))},[]);var cs=pi||ko,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 Po=Object(O.a)(Ui,{value:Ti}),Qo=Object(g.a)(Po,2),so=Qo[0],Os=Qo[1],ho=Object(e.useMemo)(function(){return U(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=He(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=jt(_s);var vs=function(Wa,Eo,Xo){var $o=ws([Wa]),Co=vt([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=K(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=vt(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)},Tt=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){Tt(Wa,Object(v.a)(Object(v.a)({},Eo),{},{source:"option"}))},hn=function(Wa,Eo){Tt(Wa,Object(v.a)(Object(v.a)({},Eo),{},{source:"selection"}))},Vn=vi==="combobox"&&Ga&&Ga()||null,pt=Object(O.a)(void 0,{defaultValue:Ni,value:Si}),ae=Object(g.a)(pt,2),pe=ae[0],be=ae[1],Ke=pe,mt=!Ca&&!qo.length;(Ya||mt&&Ke&&vi==="combobox")&&(Ke=!1);var Gt=mt?!1:Ke,Dr=function(Wa){var Eo=Wa!==void 0?Wa:!Ke;pe!==Eo&&!Ya&&(be(Eo),Ur&&Ur(Eo))};_t([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:Et(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(){pe&&!!Ya&&be(!1)},[Ya]),Object(e.useEffect)(function(){!Ke&&!Ba&&vi!=="combobox"&&Gr("",!1,!1)},[Ke]);var Kn=Fe(),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(){Pa(!0),Ya||(En&&!Oa.current&&En.apply(void 0,arguments),Lr.includes("focus")&&Dr(!0)),Oa.current=!0},wo=function(){if(Pa(!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:Pn,searchValue:Ko,menuItemSelectedIcon:ja,virtual:go!==!1&&ha!==!1,onMouseEnter:xl}),zs,Zo=function(){ea&&Ki.onClear&&Ki.onClear(),Pi&&Pi(),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 ks=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"),Vn),Object(y.a)(Tn,"".concat(ci,"-show-search"),za),Tn));return e.createElement("div",Object.assign({className:ks},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(fe,{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:tt,dropdownAlign:cr,getPopupContainer:Oo,empty:!hs.length,getTriggerDOMNode:function(){return Ta.current}},e.createElement(Ge,Object.assign({},tn,{domRef:Ta,prefixCls:ci,inputElement:Vn,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 Ue=d("Zm9Q"),Le=d("JX7q"),ee=e.createContext(null),ct=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=[],vt=0;vt<Zt;vt+=1){var mr;An.push(e.createElement("span",{key:vt,className:b()(Wr,(mr={},Object(y.a)(mr,"".concat(Wr,"-start"),br[vt]),Object(y.a)(mr,"".concat(Wr,"-end"),Or[vt]),mr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(on,"-indent")},An)},Mt=ct,ot="open",Yt="close",or="---",Zr=function(wr){Object(s.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,It(Zt.props)),Zt.isSelectable()?Zt.onSelect(br):Zt.onCheck(br)},Zt.onSelectorDoubleClick=function(br){var Or=Zt.props.context.onNodeDoubleClick;Or(br,It(Zt.props))},Zt.onSelect=function(br){if(Zt.isDisabled())return;var Or=Zt.props.context.onNodeSelect;br.preventDefault(),Or(br,It(Zt.props))},Zt.onCheck=function(br){if(Zt.isDisabled())return;var Or=Zt.props,Wr=Or.disableCheckbox,An=Or.checked,vt=Zt.props.context.onNodeCheck;if(!Zt.isCheckable()||Wr)return;br.preventDefault();var mr=!An;vt(br,It(Zt.props),mr)},Zt.onMouseEnter=function(br){var Or=Zt.props.context.onNodeMouseEnter;Or(br,It(Zt.props))},Zt.onMouseLeave=function(br){var Or=Zt.props.context.onNodeMouseLeave;Or(br,It(Zt.props))},Zt.onContextMenu=function(br){var Or=Zt.props.context.onNodeContextMenu;Or(br,It(Zt.props))},Zt.onDragStart=function(br){var Or=Zt.props.context.onNodeDragStart;br.stopPropagation(),Zt.setState({dragNodeHighlight:!0}),Or(br,Object(Le.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(Le.a)(Zt))},Zt.onDragOver=function(br){var Or=Zt.props.context.onNodeDragOver;br.preventDefault(),br.stopPropagation(),Or(br,Object(Le.a)(Zt))},Zt.onDragLeave=function(br){var Or=Zt.props.context.onNodeDragLeave;br.stopPropagation(),Or(br,Object(Le.a)(Zt))},Zt.onDragEnd=function(br){var Or=Zt.props.context.onNodeDragEnd;br.stopPropagation(),Zt.setState({dragNodeHighlight:!1}),Or(br,Object(Le.a)(Zt))},Zt.onDrop=function(br){var Or=Zt.props.context.onNodeDrop;br.preventDefault(),br.stopPropagation(),Zt.setState({dragNodeHighlight:!1}),Or(br,Object(Le.a)(Zt))},Zt.onExpand=function(br){var Or=Zt.props.context.onNodeExpand;Or(br,It(Zt.props))},Zt.setSelectHandle=function(br){Zt.selectHandle=br},Zt.getNodeState=function(){var br=Zt.props.expanded;return Zt.isLeaf()?null:br?ot:Yt},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,vt=Zt.hasChildren();return Or===!1?!1:Or||!An&&!vt||An&&Wr&&!vt},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,vt=Zt.props.context,mr=vt.loadData,vr=vt.onNodeLoad;if(Wr)return;mr&&Or&&!Zt.isLeaf()&&(!Zt.hasChildren()&&!An&&vr(It(Zt.props)))},Zt.renderSwitcher=function(){var br=Zt.props,Or=br.expanded,Wr=br.switcherIcon,An=Zt.props.context,vt=An.prefixCls,mr=An.switcherIcon,vr=Wr||mr;if(Zt.isLeaf())return e.createElement("span",{className:b()("".concat(vt,"-switcher"),"".concat(vt,"-switcher-noop"))},typeof vr=="function"?vr(Object(v.a)(Object(v.a)({},Zt.props),{},{isLeaf:!0})):vr);var Fr=b()("".concat(vt,"-switcher"),"".concat(vt,"-switcher_").concat(Or?ot:Yt));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,vt=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(vt,"-checkbox"),Or&&"".concat(vt,"-checkbox-checked"),!Or&&Wr&&"".concat(vt,"-checkbox-indeterminate"),(mr||An)&&"".concat(vt,"-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,vt=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=vt||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,vt=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=Ie(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(It(this.props))),br)),style:vt,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(Mt,{prefixCls:vi,level:Gi,isStart:cn,isEnd:tn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),on}(e.Component),ir=function(lr){return e.createElement(ee.Consumer,null,function(on){return e.createElement(Zr,Object.assign({},lr,{context:on}))})};ir.displayName="TreeNode",ir.defaultProps={title:or},ir.isTreeNode=1;var dr=ir,qt=.25,Ht=2;function lt(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 Wn(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,vt=Wr.children;on.push(An),br(vt)})}return br(Zt.children),on}function yn(wr,lr){var on=wr.clientY,Zt=lr.selectHandle.getBoundingClientRect(),br=Zt.top,Or=Zt.bottom,Wr=Zt.height,An=Math.max(Wr*qt,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 Ft=function(lr){return lr};function bt(wr,lr){if(!wr)return[];var on=lr||{},Zt=on.processProps,br=Zt===void 0?Ft:Zt,Or=Array.isArray(wr)?wr:[wr];return Or.map(function(Wr){var An=Wr.children,vt=Object(x.a)(Wr,["children"]),mr=bt(An,lr);return l.a.createElement(dr,Object.assign({},br(vt)),mr)})}function Oe(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(ue.a)(!1,"`checkedKeys` is not an array or an object"),null;return lr}function Ee(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 Ie(wr){var lr={};return Object.keys(wr).forEach(function(on){(on.startsWith("data-")||on.startsWith("aria-"))&&(lr[on]=wr[on])}),lr}function Ye(wr,lr){return wr!=null?wr:lr}function rt(){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(ue.a)(Wr!=null,"Tree node must have a certain key: [".concat(br).concat(Wr,"]"));var vt=String(Wr);Object(ue.a)(!lr.has(vt)||Wr===null||Wr===void 0,"Same 'key' exist in the Tree: ".concat(vt)),lr.set(vt,!0),on(An,"".concat(br).concat(vt," > "))})}on(wr)}function ut(wr){function lr(on){var Zt=Object(Ue.a)(on);return Zt.map(function(br){if(!Wn(br))return Object(ue.a)(!br,"Tree/TreeNode can only accept TreeNode as children."),null;var Or=br.key,Wr=br.props,An=Wr.children,vt=Object(x.a)(Wr,["children"]),mr=Object(v.a)({key:Or},vt),vr=lr(An);return vr.length&&(mr.children=vr),mr}).filter(function(br){return br})}return lr(wr)}function Ot(){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,vt){var mr=Nn(Wr?Wr.pos:"0",vt),vr=Ye(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:[]),[vt===0]),isEnd:[].concat(Object(h.a)(Wr?Wr.isEnd:[]),[vt===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 Ye(Wr.key,An)};function br(Or,Wr,An){var vt=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)}vt&&vt.forEach(function(nn,cn){br(nn,cn,{node:Or,pos:mr,level:An?An.level+1:-1})})}br(null)}function Pr(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={},vt={posEntities:Wr,keyEntities:An};return on&&(vt=on(vt)||vt),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=Ye(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,vt)},Or),br&&br(vt),vt}function un(wr,lr){var on=lr.expandedKeys,Zt=lr.selectedKeys,br=lr.loadedKeys,Or=lr.loadingKeys,Wr=lr.checkedKeys,An=lr.halfCheckedKeys,vt=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:vt===wr&&mr===0,dragOverGapTop:vt===wr&&mr===-1,dragOverGapBottom:vt===wr&&mr===1};return nn}function It(wr){var lr=wr.data,on=wr.expanded,Zt=wr.selected,br=wr.checked,Or=wr.loaded,Wr=wr.loading,An=wr.halfChecked,vt=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:vt,dragOverGapTop:mr,dragOverGapBottom:vr,pos:Fr,active:nn});return"props"in cn||Object.defineProperty(cn,"props",{get:function(){return Object(ue.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 nt(wr,lr){var on=new Set;return wr.forEach(function(Zt){lr.has(Zt)||on.add(Zt)}),on}function at(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 vt=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||vt.has(Fr.parent.key))return;if(Zt(Fr.parent.node)){vt.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),vt.add(nn.key)})}return{checkedKeys:Array.from(br),halfCheckedKeys:Array.from(nt(Or,br))}}function Pt(wr,lr,on,Zt,br){for(var Or=new Set(wr),Wr=new Set(lr),An=0;An<=Zt;An+=1){var vt=on.get(An)||new Set;vt.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(nt(Wr,Or))}}function xt(wr,lr,on,Zt){var br=[],Or;Zt?Or=Zt:Or=at;var Wr=new Set(wr.filter(function(vr){var Fr=!!on[vr];return Fr||br.push(vr),Fr})),An=new Map,vt=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),vt=Math.max(vt,nn)}),Object(ue.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,vt,Or):mr=Pt(Wr,lr.halfCheckedKeys,An,vt,Or),mr}var Kt=d("YrtM"),yt=d("+nKL"),kt=function(lr,on){var Zt=lr.className,br=lr.style,Or=lr.motion,Wr=lr.motionNodes,An=lr.motionType,vt=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(ee),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&&vt(),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}))};kt.displayName="MotionTreeNode";var Sr=e.forwardRef(kt),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 vt=Wr.filter(function(mr){return!An.has(mr)});return vt.length===1?vt[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 vt=An.data;return vt.key===on}),br=wr[Zt+1],Or=lr.findIndex(function(An){var vt=An.data;return vt.key===on});if(br){var Wr=lr.findIndex(function(An){var vt=An.data;return vt.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},kn=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 Qe(wr){var lr=wr.data.key,on=wr.pos;return Ye(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 Ne=function(lr,on){var Zt=lr.prefixCls,br=lr.data,Or=lr.selectable,Wr=lr.checkable,An=lr.expandedKeys,vt=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 kr=cr.data.key;return kr===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 kr=cr.data.key;return kr===Xa.key}),ha=Ii(Jr(br,Da,Xa.key),Si,Jn,pi),tt=br.slice();tt.splice(Fa+1,0,Ai),Ia(tt),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:vt,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:kn})),e.createElement(yt.a,Object.assign({},Gi,{data:oo,itemKey:Qe,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,tt=Xa.isEnd,cr=Ye(Ja,_o);delete Fa.children;var kr=un(cr,Ro);return e.createElement(hr,Object.assign({},Fa,kr,{active:xi&&Ja===xi.data.key,pos:_o,data:Xa.data,isStart:ha,isEnd:tt,motion:ci,motionNodes:Ja===Dn?Ca:null,motionType:Oo,onMotionStart:ua,onMotionEnd:qa,treeNodeRequiredProps:Ro,onMouseMove:function(){Di(null)}}))}))},je=e.forwardRef(Ne);je.displayName="NodeList";var Xe=je,ze=function(wr){Object(s.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,vt=Wr.keyEntities,mr=Zt.props.onDragStart,vr=Or.props.eventKey;Zt.dragNode=Or;var Fr=lt(An,vr);Zt.setState({dragging:!0,dragNodesKeys:gi(vr,vt)}),Zt.setExpandedKeys(Fr),mr&&mr({event:br,node:It(Or.props)})},Zt.onNodeDragEnter=function(br,Or){var Wr=Zt.state,An=Wr.expandedKeys,vt=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=yn(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=vt[cn];Tn&&(Tn.children||[]).length&&(Ln=Hr(An,cn)),"expandedKeys"in Zt.props||Zt.setExpandedKeys(Ln),vr&&vr({event:br,node:It(Or.props),expandedKeys:Ln})},400)},0)},Zt.onNodeDragOver=function(br,Or){var Wr=Zt.state.dragNodesKeys,An=Zt.props.onDragOver,vt=Or.props.eventKey;if(Wr.indexOf(vt)!==-1)return;if(Zt.dragNode&&vt===Zt.state.dragOverNodeKey){var mr=yn(br,Or);if(mr===Zt.state.dropPosition)return;Zt.setState({dropPosition:mr})}An&&An({event:br,node:It(Or.props)})},Zt.onNodeDragLeave=function(br,Or){var Wr=Zt.props.onDragLeave;Zt.setState({dragOverNodeKey:""}),Wr&&Wr({event:br,node:It(Or.props)})},Zt.onNodeDragEnd=function(br,Or){var Wr=Zt.props.onDragEnd;Zt.setState({dragOverNodeKey:""}),Zt.cleanDragState(),Wr&&Wr({event:br,node:It(Or.props)}),Zt.dragNode=null},Zt.onNodeDrop=function(br,Or){var Wr=Zt.state,An=Wr.dragNodesKeys,vt=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(),vt.indexOf(nn)!==-1){Object(ue.a)(!1,"Can not drop to dragNode(include it's children node)");return}var tn=dn(cn),Ln={event:br,node:It(Or.props),dragNode:Zt.dragNode?It(Zt.dragNode.props):null,dragNodesKeys:vt.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,vt=Zt.props,mr=vt.onSelect,vr=vt.multiple,Fr=Or.selected,nn=Or.key,cn=!Fr;cn?vr?Wr=Hr(Wr,nn):Wr=[nn]:Wr=lt(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,vt=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):lt(mr,tn),ci=lt(vr,tn);Ln={checked:Xn,halfChecked:ci},Tn.checkedNodes=Xn.map(function(yi){return vt[yi]}).filter(function(yi){return yi}).map(function(yi){return yi.node}),Zt.setUncontrolledState({checkedKeys:Xn})}else{var Jn=xt([].concat(Object(h.a)(mr),[tn]),!0,vt),pi=Jn.checkedKeys,Si=Jn.halfCheckedKeys;if(!Wr){var Ni=new Set(pi);Ni.delete(tn);var xi=xt(Array.from(Ni),{checked:!1,halfCheckedKeys:Si},vt);pi=xi.checkedKeys,Si=xi.halfCheckedKeys}Ln=pi,Tn.checkedNodes=[],Tn.checkedNodesPositions=[],Tn.halfCheckedKeys=Si,pi.forEach(function(yi){var vi=vt[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,vt=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||vt.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=lt(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,vt=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:vt||[],checkedKeys:mr||[],halfCheckedKeys:vr||[],dragOverNodeKey:Fr,dropPosition:nn,keyEntities:cn}},Zt.setExpandedKeys=function(br){var Or=Zt.state.treeData,Wr=Ot(Or,br);Zt.setUncontrolledState({expandedKeys:br,flattenNodes:Wr},!0)},Zt.onNodeExpand=function(br,Or){var Wr=Zt.state.expandedKeys,An=Zt.state.listChanging,vt=Zt.props,mr=vt.onExpand,vr=vt.loadData,Fr=Or.key,nn=Or.expanded;if(An)return;var cn=Wr.indexOf(Fr),tn=!nn;if(Object(ue.a)(nn&&cn!==-1||!nn&&cn===-1,"Expand state not sync with index check"),tn?Wr=Hr(Wr,Fr):Wr=lt(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=Ot(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 vt=An.data.key;return vt===Or})||null},Zt.offsetActiveKey=function(br){var Or=Zt.state,Wr=Or.flattenNodes,An=Or.activeKey,vt=Wr.findIndex(function(Fr){var nn=Fr.data.key;return nn===An});vt===-1&&br<0&&(vt=Wr.length),vt=(vt+br+Wr.length)%Wr.length;var mr=Wr[vt];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,vt=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=It(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,!vt.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,vt=!0,mr={};Object.keys(br).forEach(function(vr){if(vr in Zt.props){vt=!1;return}An=!0,mr[vr]=br[vr]}),An&&(!Or||vt)&&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,vt=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=Ie(this.props);return e.createElement(ee.Provider,{value:{prefixCls:nn,selectable:Jn,showIcon:pi,icon:Si,switcherIcon:Ni,draggable:xi,checkable:yi,checkStrictly:vi,disabled:Ti,keyEntities:vt,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(Xe,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 vt(Si){return!Wr&&Si in br||Wr&&Wr[Si]!==br[Si]}var mr;if(vt("treeData")?mr=br.treeData:vt("children")&&(Object(ue.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),mr=ut(br.children)),mr){An.treeData=mr;var vr=Pr(mr);An.keyEntities=Object(v.a)(Object(y.a)({},Dn,li),vr.keyEntities)}var Fr=An.keyEntities||Or.keyEntities;if(vt("expandedKeys")||Wr&&vt("autoExpandParent"))An.expandedKeys=br.autoExpandParent||!Wr&&br.defaultExpandParent?Ee(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?Ee(br.defaultExpandedKeys,Fr):br.defaultExpandedKeys);if(An.expandedKeys||delete An.expandedKeys,mr||An.expandedKeys){var cn=Ot(mr||Or.treeData,An.expandedKeys||Or.expandedKeys);An.flattenNodes=cn}if(br.selectable&&(vt("selectedKeys")?An.selectedKeys=Mn(br.selectedKeys,br):!Wr&&br.defaultSelectedKeys&&(An.selectedKeys=Mn(br.defaultSelectedKeys,br))),br.checkable){var tn;if(vt("checkedKeys")?tn=Oe(br.checkedKeys)||{}:!Wr&&br.defaultCheckedKeys?tn=Oe(br.defaultCheckedKeys)||{}:mr&&(tn=Oe(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=xt(Xn,!0,Fr);Xn=pi.checkedKeys,Jn=pi.halfCheckedKeys}An.checkedKeys=Xn,An.halfCheckedKeys=Jn}}return vt("loadedKeys")&&(An.loadedKeys=br.loadedKeys),An}}]),on}(e.Component);ze.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:[]},ze.TreeNode=dr;var Ze=ze,wt=Ze,st=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},er=function(lr,on){var Zt=lr.prefixCls,br=lr.height,Or=lr.itemHeight,Wr=lr.virtual,An=lr.options,vt=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(st),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(kr,Lr){return Lr[0]&&kr[1]!==Lr[1]}),Xi=Ir(vt),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(kr){var Lr=Ao(kr);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 kr;(kr=Vi.current)===null||kr===void 0||kr.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(vt.map(function(kr){return kr.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],tt=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:{tt!==null&&_o(null,{node:{key:Fa},selected:!ci.includes(tt.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},tt&&cn&&e.createElement("span",{style:Xr,"aria-live":"assertive"},tt.data.value),e.createElement(wt,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(er);pn.displayName="OptionList";var fr=pn,mn=function(){return null},en=mn;function Mr(wr){return Object(Ue.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),vt=Mr(br);return vt.length&&(An.children=vt),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(ue.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 vt(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=vt(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=[],vt(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(ue.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),An(),Or}}),Object.defineProperty(wr,"allCheckedNodes",{get:function(){return Object(ue.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 Dt(wr){for(var lr=wr.parent,on=0,Zt=lr;Zt;)Zt=Zt.parent,on+=1;return on}function ft(wr){function lr(Zt){return(Zt||[]).map(function(br){var Or=br.value,Wr=br.key,An=br.children,vt=Object(v.a)(Object(v.a)({},br),{},{key:"key"in br?Wr:Or});return An&&(vt.children=lr(An)),vt})}var on=Ot(lr(wr),!0);return on.map(function(Zt){return{key:Zt.data.key,data:Zt.data,level:Dt(Zt)}})}function St(wr){return function(lr,on){var Zt=on[wr];return String(Zt).toLowerCase().includes(String(lr).toLowerCase())}}function Ct(wr,lr,on){var Zt=on.optionFilterProp,br=on.filterOption;if(br===!1)return lr;var Or;typeof br=="function"?Or=br:Or=St(Zt);function Wr(An){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return An.map(function(mr){var vr=mr.children,Fr=vt||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 Nt(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),vt=An?Zt(An.data):Or;if(br.has(Or)){var mr=br.get(Or);Wr.label="label"in mr?mr.label:vt,"halfChecked"in mr&&(Wr.halfChecked=mr.halfChecked)}else Wr.label=vt;return Wr})}function gt(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(ue.a)(!lr,"`searchPlaceholder` has been removed."),on&&br===!1&&Object(ue.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(br||on)&&Object(ue.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(ue.a)(!Or||Array.isArray(Or),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(ue.a)(!Array.isArray(Or),"`value` should not be array when `TreeSelect` is single mode.")}var ar=tr,yr=10;function xn(wr,lr){var on=lr.id,Zt=lr.pId,br=lr.rootPId,Or={},Wr=[],An=wr.map(function(vt){var mr=Object(v.a)({},vt),vr=mr[on];return Or[vr]=mr,mr.key=mr.key||vr,mr});return An.forEach(function(vt){var mr=vt[Zt],vr=Or[mr];vr&&(vr.children=vr.children||[],vr.children.push(vt)),(mr===br||!vr&&br===null)&&Wr.push(vt)}),Wr}function vn(wr,lr){var on=0,Zt=new Set;function br(Or){return(Or||[]).map(function(Wr){var An=Wr.key,vt=Wr.value,mr=Wr.children,vr=Object(x.a)(Wr,["key","value","children"]),Fr="value"in Wr?vt: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 zn(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(Mr(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,vt=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 Nt(mr,on,Zt,vt)},[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=J({prefixCls:"rc-tree-select",components:{optionList:fr},convertChildrenToData:function(){return null},flattenOptions:ft,getLabeledValue:qe,filterOptions:Ct,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,vt=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=zn(tn,ci,{getLabelProp:ra,simpleMode:cn}),Da=Object(e.useMemo)(function(){return ft(_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?Pr(_a):{keyEntities:null}},[_a,Zt,br]),uo=yo.keyEntities,Ga=Object(O.a)(wr.defaultValue,{value:wr.value}),Oo=Object(g.a)(Ga,2),oa=Oo[0],qa=Oo[1],oo=function(Vr){var _r=[],Pn=[];return Vr.forEach(function(Ur){Ca(Ur)?Pn.push(Ur):_r.push(Ur)}),{missingRawValues:_r,existRawValues:Pn}},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),Pn=_r.missingRawValues,Ur=_r.existRawValues,En=Ur.map(function(ri){return Ca(ri).key}),jn=xt(En,!0,uo),Hn=jn.checkedKeys,Bn=jn.halfCheckedKeys;return[[].concat(Object(h.a)(Pn),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,Pn){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?Nt(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)(Nt(ii,oa,Ca,pa)))}var ai={preValue:Ja,triggerValue:Bn},Pi=!0;(br||Pn==="selection"&&!ri)&&(Pi=!1),di(ai,Bn,Vr,_a,Pi),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,Pn){var Ur=Vr;if(!Vi)Fa([Vr],{selected:!0,triggerValue:Vr},Pn);else{var En=gt(_o,Vr);if(ta){var jn=oo(En),Hn=jn.missingRawValues,Bn=jn.existRawValues,ri=Bn.map(function(ai){return Ca(ai).key}),Yn=xt(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},Pn)}ua&&ua(Ur,_r)},tt=function(Vr,_r,Pn){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=xt(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},Pn),aa&&aa(Ur,_r)},cr=function(){Fa([],null,"clear")},kr=e.useCallback(function(_n){if(Di){var Vr={};Object.defineProperty(Vr,"documentClickClose",{get:function(){return Object(ue.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:tt}};return"filterTreeNode"in wr&&(Lr.filterOption=yi),e.createElement(st.Provider,{value:{checkable:Gi,loadData:vt,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:kr})))}),si=function(wr){Object(s.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 ki=si,zi=ki,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,vt=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=vt("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 _=E(d("KmBX"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},"5YOS":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("xb2K"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},"5YgA":function(H,B,d){},"5bA4":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="LeftOutlined";var f=B.a=E.forwardRef(m)},"5hvy":function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"))})(this,function(_){return function(E){var C=_,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,s=0;s<24;s++){r[t+5*a]=(s+1)*(s+2)/2%64;var u=a%5,h=(2*t+3*a)%5;t=u,a=h}for(var t=0;t<5;t++)for(var a=0;a<5;a++)i[t+5*a]=a+(2*t+3*a)%5*5;for(var p=1,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 l=o.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],s=0;s<25;s++)a[s]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,s){for(var u=this._state,h=this.blockSize/2,p=0;p<h;p++){var g=a[s+2*p],v=a[s+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,O=0;O<5;O++){var y=u[T+5*O];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),O=0;O<5;O++){var y=u[T+5*O];y.high^=S,y.low^=b}for(var k=1;k<25;k++){var S,b,y=u[k],M=y.high,j=y.low,F=r[k];F<32?(S=M<<F|j>>>32-F,b=j<<F|M>>>32-F):(S=j<<F-32|M>>>64-F,b=M<<F-32|j>>>64-F);var U=e[i[k]];U.high=S,U.low=b}var K=e[0],V=u[0];K.high=V.high,K.low=V.low;for(var T=0;T<5;T++)for(var O=0;O<5;O++){var k=T+5*O,y=u[k],z=e[k],Q=e[(T+1)%5+5*O],Z=e[(T+2)%5+5*O];y.high=z.high^~Q.high&Z.high,y.low=z.low^~Q.low&Z.low}var y=u[0],le=n[x];y.high^=le.high,y.low^=le.low}},_doFinalize:function(){var a=this._data,s=a.words,u=this._nDataBytes*8,h=a.sigBytes*8,p=this.blockSize*32;s[h>>>5]|=1<<24-h%32,s[(E.ceil((h+1)/p)*p>>>5)-1]|=128,a.sigBytes=s.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,O=S.low;b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,x.push(O),x.push(b)}return new w.init(x,v)},clone:function(){for(var a=m.clone.call(this),s=a._state=this._state.slice(0),u=0;u<25;u++)s[u]=s[u].clone();return a}});C.SHA3=m._createHelper(l),C.HmacSHA3=m._createHmacHelper(l)}(Math),_.SHA3})},"5nXd":function(H,B,d){var _=d("MFOe"),E=_.slice,C=_.pluck,A=_.each,w=_.bind,m=_.create,f=_.isList,c=_.isFunction,o=_.isObject;H.exports={createStore:n};var r={version:"2.0.12",enabled:!1,get:function(l,t){var a=this.storage.read(this._namespacePrefix+l);return this._deserialize(a,t)},set:function(l,t){return t===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(t)),t)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var t=this;this.storage.each(function(a,s){l.call(t,t._deserialize(a),(s||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return n(this.storage,this.plugins,l)}};function i(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function n(e,l,t){t||(t=""),e&&!f(e)&&(e=[e]),l&&!f(l)&&(l=[l]);var a=t?"__storejs_"+t+"_":"",s=t?new RegExp("^"+a):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:a,_namespaceRegexp:s,_testStorage:function(v){try{var y="__storejs__test__";v.write(y,y);var 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 O(){return x?(A(arguments,function(L,N){S[N]=L}),x.apply(b,S)):void 0}var I=[O].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(l,function(g){p._addPlugin(g)}),p}},"5rEg":function(H,B,d){"use strict";var _=d("mh/l"),E=d("lSNA"),C=d.n(E),A=d("q1tI"),w=d("TSYQ"),m=d.n(w),f=d("H84U"),c=function(F){return A.createElement(f.a,null,function(U){var K,V=U.getPrefixCls,z=U.direction,Q=F.prefixCls,Z=F.className,le=Z===void 0?"":Z,ne=V("input-group",Q),ve=m()(ne,(K={},C()(K,"".concat(ne,"-lg"),F.size==="large"),C()(K,"".concat(ne,"-sm"),F.size==="small"),C()(K,"".concat(ne,"-compact"),F.compact),C()(K,"".concat(ne,"-rtl"),z==="rtl"),K),le);return A.createElement("span",{className:ve,style:F.style,onMouseEnter:F.onMouseEnter,onMouseLeave:F.onMouseLeave,onFocus:F.onFocus,onBlur:F.onBlur},F.children)})},o=c,r=d("pVnL"),i=d.n(r),n=d("c+Xe"),e=d("w6Tc"),l=d.n(e),t=d("gZBC"),a=d.n(t),s=d("2/Rp"),u=d("3Nzz"),h=d("0n0R"),p=function(j,F){var U={};for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&F.indexOf(K)<0&&(U[K]=j[K]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,K=Object.getOwnPropertySymbols(j);V<K.length;V++)F.indexOf(K[V])<0&&Object.prototype.propertyIsEnumerable.call(j,K[V])&&(U[K[V]]=j[K[V]]);return U},g=A.forwardRef(function(j,F){var U=A.useRef(null),K=function(xe){var _e=j.onChange,Be=j.onSearch;xe&&xe.target&&xe.type==="click"&&Be&&Be(xe.target.value,xe),_e&&_e(xe)},V=function(xe){var _e;document.activeElement===((_e=U.current)===null||_e===void 0?void 0:_e.input)&&xe.preventDefault()},z=function(xe){var _e,Be=j.onSearch,me=j.loading,Fe=j.disabled;if(me||Fe)return;Be&&Be((_e=U.current)===null||_e===void 0?void 0:_e.input.value,xe)},Q=function(xe){var _e=j.enterButton,Be=j.size;return _e?A.createElement(u.b.Consumer,{key:"enterButton"},function(me){return A.createElement(s.a,{className:"".concat(xe,"-button"),type:"primary",size:Be||me},A.createElement(a.a,null))}):A.createElement(a.a,{className:"".concat(xe,"-icon"),key:"loadingIcon"})},Z=function(xe){var _e=j.suffix,Be=j.enterButton,me=j.loading;if(me&&!Be)return[_e,Q(xe)];if(Be)return _e;var Fe=A.createElement(l.a,{className:"".concat(xe,"-icon"),key:"searchIcon",onClick:z});return _e?[Object(h.c)(_e,null,{key:"suffix"}),Fe]:Fe},le=function(xe,_e){var Be=j.enterButton,me=j.disabled,Fe=j.addonAfter,ie=j.loading,te="".concat(xe,"-button");if(ie&&Be)return[Q(xe),Fe];if(!Be)return Fe;var Ge,oe=Be,Y=oe.type&&oe.type.__ANT_BUTTON===!0;return Y||oe.type==="button"?Ge=Object(h.a)(oe,i()({onMouseDown:V,onClick:z,key:"enterButton"},Y?{className:te,size:_e}:{})):Ge=A.createElement(s.a,{className:te,type:"primary",size:_e,disabled:me,key:"enterButton",onMouseDown:V,onClick:z},Be===!0?A.createElement(l.a,null):Be),Fe?[Ge,Object(h.c)(Fe,null,{key:"addonAfter"})]:Ge},ne=function(xe){var _e=xe.getPrefixCls,Be=xe.direction,me=j.prefixCls,Fe=j.inputPrefixCls,ie=j.enterButton,te=j.className,Ge=j.size,oe=p(j,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete oe.onSearch,delete oe.loading;var Y=_e("input-search",me),G=_e("input",Fe),X=function(de){var Ce;if(ie){var Me;Ce=m()(Y,te,(Me={},C()(Me,"".concat(Y,"-rtl"),Be==="rtl"),C()(Me,"".concat(Y,"-enter-button"),!!ie),C()(Me,"".concat(Y,"-").concat(de),!!de),Me))}else Ce=m()(Y,te,C()({},"".concat(Y,"-rtl"),Be==="rtl"));return Ce};return A.createElement(u.b.Consumer,null,function(fe){return A.createElement(_.a,i()({ref:Object(n.a)(U,F),onPressEnter:z},oe,{size:Ge||fe,prefixCls:G,addonAfter:le(Y,Ge||fe),suffix:Z(Y),onChange:K,className:X(Ge||fe)}))})};return A.createElement(f.a,null,ne)});g.defaultProps={enterButton:!1},g.displayName="Search";var v=g,y=d("whJP"),x=d("J4zp"),T=d.n(x),S=d("BGR+"),b=d("qPY4"),O=d.n(b),I=d("fUL4"),L=d.n(I),N=function(j,F){var U={};for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&F.indexOf(K)<0&&(U[K]=j[K]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,K=Object.getOwnPropertySymbols(j);V<K.length;V++)F.indexOf(K[V])<0&&Object.prototype.propertyIsEnumerable.call(j,K[V])&&(U[K[V]]=j[K[V]]);return U},D={click:"onClick",hover:"onMouseOver"},R=A.forwardRef(function(j,F){var U=Object(A.useState)(!1),K=T()(U,2),V=K[0],z=K[1],Q=function(){var ve=j.disabled;if(ve)return;z(!V)},Z=function(ve){var xe,_e=j.action,Be=j.iconRender,me=Be===void 0?function(){return null}:Be,Fe=D[_e]||"",ie=me(V),te=(xe={},C()(xe,Fe,Q),C()(xe,"className","".concat(ve,"-icon")),C()(xe,"key","passwordIcon"),C()(xe,"onMouseDown",function(oe){oe.preventDefault()}),C()(xe,"onMouseUp",function(oe){oe.preventDefault()}),xe);return A.cloneElement(A.isValidElement(ie)?ie:A.createElement("span",null,ie),te)},le=function(ve){var xe=ve.getPrefixCls,_e=j.className,Be=j.prefixCls,me=j.inputPrefixCls,Fe=j.size,ie=j.visibilityToggle,te=N(j,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Ge=xe("input",me),oe=xe("input-password",Be),Y=ie&&Z(oe),G=m()(oe,_e,C()({},"".concat(oe,"-").concat(Fe),!!Fe)),X=i()(i()({},Object(S.default)(te,["suffix","iconRender"])),{type:V?"text":"password",className:G,prefixCls:Ge,suffix:Y});return Fe&&(X.size=Fe),A.createElement(_.a,i()({ref:F},X))};return A.createElement(f.a,null,le)});R.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(F){return F?A.createElement(O.a,null):A.createElement(L.a,null)}},R.displayName="Password";var k=R;_.a.Group=o,_.a.Search=v,_.a.TextArea=y.a,_.a.Password=k;var M=B.a=_.a},"5s0K":function(H,B,d){var _=d("bYtY");function E(){var C=[],A={},w;return{add:function(m,f,c,o,r){return _.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 _={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=_},"6/nd":function(H,B,d){var _=d("ProS");_.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 _=d("bYtY"),E=d("4NO4"),C=E.makeInner,A=d("zTMp"),w=d("Ez2D"),m=_.each,f=_.curry,c=C();function o(p,g,v){var y=p.currTrigger,x=[p.x,p.y],T=p,S=p.dispatchAction||_.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 O=h(x),I=T.axesInfo,L=b.axesInfo,N=y==="leave"||h(x),D={},R={},k={list:[],map:{}},M={showPointer:f(n,R),showTooltip:f(e,k)};m(b.coordSysMap,function(F,U){var K=O||F.containPoint(x);m(b.coordSysAxesInfo[U],function(V,z){var Q=V.axis,Z=s(I,V);if(!N&&K&&(!I||Z)){var le=Z&&Z.value;le==null&&!O&&(le=Q.pointToData(x)),le!=null&&r(V,le,M,!1,D)}})});var j={};return m(L,function(F,U){var K=F.linkGroup;K&&!R[U]&&m(K.axesInfo,function(V,z){var Q=R[z];if(V!==F&&Q){var Z=Q.value;K.mapper&&(Z=F.axis.scale.parse(K.mapper(Z,u(V),u(F)))),j[F.key]=Z}})}),m(j,function(F,U){r(L[U],F,M,!0,D)}),l(R,L,D),t(k,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,O=S.snapToValue;b[0]&&x.seriesIndex==null&&_.extend(x,b[0]),!y&&p.snap&&(T.containData(O)&&O!=null&&(g=O)),v.showPointer(p,g,b,x),v.showTooltip(p,S,O)}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(O,I){var L=O.getData().mapDimension(y,!0),N,D;if(O.getAxisTooltipData){var R=O.getAxisTooltipData(L,p,v);D=R.dataIndices,N=R.nestestValue}else{if(D=O.getData().indicesOfNearest(L[0],p,v.type==="category"?.5:null),!D.length)return;N=O.getData().get(L[0],D[0])}if(N==null||!isFinite(N))return;var k=p-N,M=Math.abs(k);M<=S&&((M<S||k>=0&&b<0)&&(S=M,b=k,x=N,T.length=0),m(D,function(j){T.push({seriesIndex:O.seriesIndex,dataIndexInside:j,dataIndex:O.getData().getRawIndex(j)})}))}),{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 O=g.coordSys.model,I=A.makeKey(O),L=p.map[I];L||(L=p.map[I]={coordSysId:O.id,coordSysIndex:O.componentIndex,coordSysType:O.type,coordSysMainType:O.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 l(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]&&O.push(I)}),_.each(S,function(I,L){!T[L]&&b.push(I)}),O.length&&v.dispatchAction({type:"downplay",escapeConnect:!0,batch:O}),b.length&&v.dispatchAction({type:"highlight",escapeConnect:!0,batch:b})}function s(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=_,B.arraySet=E,B.flattenChunks=C,B.Buf32=B.Buf16=B.Buf8=void 0;function _(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 _=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",l={};function t(k,M){l[k]=M}function a(k,M){M=M||e;var j=k+":"+M;if(o[j])return o[j];for(var F=(k+"").split(`
|
|
|
`),U=0,K=0,V=F.length;K<V;K++)U=Math.max(I(F[K],M).width,U);return r>i&&(r=0,o={}),r++,o[j]=U,U}function s(k,M,j,F,U,K,V,z){return V?h(k,M,j,F,U,K,V,z):u(k,M,j,F,U,K,z)}function u(k,M,j,F,U,K,V){var z=L(k,M,U,K,V),Q=a(k,M);U&&(Q+=U[1]+U[3]);var Z=z.outerHeight,le=p(0,Q,j),ne=g(0,Z,F),ve=new _(le,ne,Q,Z);return ve.lineHeight=z.lineHeight,ve}function h(k,M,j,F,U,K,V,z){var Q=N(k,{rich:V,truncate:z,font:M,textAlign:j,textPadding:U,textLineHeight:K}),Z=Q.outerWidth,le=Q.outerHeight,ne=p(0,Z,j),ve=g(0,le,F);return new _(ne,ve,Z,le)}function p(k,M,j){return j==="right"?k-=M:j==="center"&&(k-=M/2),k}function g(k,M,j){return j==="middle"?k-=M/2:j==="bottom"&&(k-=M),k}function v(k,M,j){var F=M.textPosition,U=M.textDistance,K=j.x,V=j.y;U=U||0;var z=j.height,Q=j.width,Z=z/2,le="left",ne="top";switch(F){case"left":K-=U,V+=Z,le="right",ne="middle";break;case"right":K+=U+Q,V+=Z,ne="middle";break;case"top":K+=Q/2,V-=U,le="center",ne="bottom";break;case"bottom":K+=Q/2,V+=z+U,le="center";break;case"inside":K+=Q/2,V+=Z,le="center",ne="middle";break;case"insideLeft":K+=U,V+=Z,ne="middle";break;case"insideRight":K+=Q-U,V+=Z,le="right",ne="middle";break;case"insideTop":K+=Q/2,V+=U,le="center";break;case"insideBottom":K+=Q/2,V+=z-U,le="center",ne="bottom";break;case"insideTopLeft":K+=U,V+=U;break;case"insideTopRight":K+=Q-U,V+=U,le="right";break;case"insideBottomLeft":K+=U,V+=z-U,ne="bottom";break;case"insideBottomRight":K+=Q-U,V+=z-U,le="right",ne="bottom";break}return k=k||{},k.x=K,k.y=V,k.textAlign=le,k.textVerticalAlign=ne,k}function y(k,M,j){var F={textPosition:k,textDistance:j};return v({},F,M)}function x(k,M,j,F,U){if(!M)return"";var K=(k+"").split(`
|
|
|
`);U=T(M,j,F,U);for(var V=0,z=K.length;V<z;V++)K[V]=S(K[V],U);return K.join(`
|
|
|
`)}function T(k,M,j,F){F=w({},F),F.font=M;var j=m(j,"...");F.maxIterations=m(F.maxIterations,2);var U=F.minChar=m(F.minChar,0);F.cnCharWidth=a("\u56FD",M);var K=F.ascCharWidth=a("a",M);F.placeholder=m(F.placeholder,"");for(var V=k=Math.max(0,k-1),z=0;z<U&&V>=K;z++)V-=K;var Q=a(j,M);return Q>V&&(j="",Q=0),V=k-Q,F.ellipsis=j,F.ellipsisWidth=Q,F.contentWidth=V,F.containerWidth=k,F}function S(k,M){var j=M.containerWidth,F=M.font,U=M.contentWidth;if(!j)return"";var K=a(k,F);if(K<=j)return k;for(var V=0;;V++){if(K<=U||V>=M.maxIterations){k+=M.ellipsis;break}var z=V===0?b(k,U,M.ascCharWidth,M.cnCharWidth):K>0?Math.floor(k.length*U/K):0;k=k.substr(0,z),K=a(k,F)}return k===""&&(k=M.placeholder),k}function b(k,M,j,F){for(var U=0,K=0,V=k.length;K<V&&U<M;K++){var z=k.charCodeAt(K);U+=0<=z&&z<=127?j:F}return K}function O(k){return a("\u56FD",k)}function I(k,M){return l.measureText(k,M)}l.measureText=function(k,M){var j=A();return j.font=M||e,j.measureText(k)};function L(k,M,j,F,U){k!=null&&(k+="");var K=m(F,O(M)),V=k?k.split(`
|
|
|
`):[],z=V.length*K,Q=z,Z=!0;if(j&&(Q+=j[0]+j[2]),k&&U){Z=!1;var le=U.outerHeight,ne=U.outerWidth;if(le!=null&&Q>le)k="",V=[];else if(ne!=null)for(var ve=T(ne-(j?j[1]+j[3]:0),M,U.ellipsis,{minChar:U.minChar,placeholder:U.placeholder}),xe=0,_e=V.length;xe<_e;xe++)V[xe]=S(V[xe],ve)}return{lines:V,height:z,outerHeight:Q,lineHeight:K,canCacheByTextString:Z}}function N(k,M){var j={lines:[],width:0,height:0};if(k!=null&&(k+=""),!k)return j;for(var F=n.lastIndex=0,U;(U=n.exec(k))!=null;){var K=U.index;K>F&&D(j,k.substring(F,K)),D(j,U[2],U[1]),F=n.lastIndex}F<k.length&&D(j,k.substring(F,k.length));var V=j.lines,z=0,Q=0,Z=[],le=M.textPadding,ne=M.truncate,ve=ne&&ne.outerWidth,xe=ne&&ne.outerHeight;le&&(ve!=null&&(ve-=le[1]+le[3]),xe!=null&&(xe-=le[0]+le[2]));for(var _e=0;_e<V.length;_e++){for(var Be=V[_e],me=0,Fe=0,ie=0;ie<Be.tokens.length;ie++){var te=Be.tokens[ie],Ge=te.styleName&&M.rich[te.styleName]||{},oe=te.textPadding=Ge.textPadding,Y=te.font=Ge.font||M.font,G=te.textHeight=m(Ge.textHeight,O(Y));if(oe&&(G+=oe[0]+oe[2]),te.height=G,te.lineHeight=f(Ge.textLineHeight,M.textLineHeight,G),te.textAlign=Ge&&Ge.textAlign||M.textAlign,te.textVerticalAlign=Ge&&Ge.textVerticalAlign||"middle",xe!=null&&z+te.lineHeight>xe)return{lines:[],width:0,height:0};te.textWidth=a(te.text,Y);var X=Ge.textWidth,fe=X==null||X==="auto";if(typeof X=="string"&&X.charAt(X.length-1)==="%")te.percentWidth=X,Z.push(te),X=0;else{if(fe){X=te.textWidth;var de=Ge.textBackgroundColor,Ce=de&&de.image;Ce&&(Ce=E.findExistImage(Ce),E.isImageReady(Ce)&&(X=Math.max(X,Ce.width*G/Ce.height)))}var Me=oe?oe[1]+oe[3]:0;X+=Me;var ue=ve!=null?ve-Fe:null;ue!=null&&ue<X&&(!fe||ue<Me?(te.text="",te.textWidth=X=0):(te.text=x(te.text,ue-Me,Y,ne.ellipsis,{minChar:ne.minChar}),te.textWidth=a(te.text,Y),X=te.textWidth+Me))}Fe+=te.width=X,Ge&&(me=Math.max(me,te.lineHeight))}Be.width=Fe,Be.lineHeight=me,z+=me,Q=Math.max(Q,Fe)}j.outerWidth=j.width=m(M.textWidth,Q),j.outerHeight=j.height=m(M.textHeight,z),le&&(j.outerWidth+=le[1]+le[3],j.outerHeight+=le[0]+le[2]);for(var _e=0;_e<Z.length;_e++){var te=Z[_e],Ae=te.percentWidth;te.width=parseInt(Ae,10)/100*Q}return j}function D(k,M,j){for(var F=M==="",U=M.split(`
|
|
|
`),K=k.lines,V=0;V<U.length;V++){var z=U[V],Q={styleName:j,text:z,isLineHolder:!z&&!F};if(V)K.push({tokens:[Q]});else{var Z=(K[K.length-1]||(K[0]={tokens:[]})).tokens,le=Z.length;le===1&&Z[0].isLineHolder?Z[0]=Q:(z||!le||F)&&Z.push(Q)}}}function R(k){var M=(k.fontSize||k.fontFamily)&&[k.fontStyle,k.fontWeight,(k.fontSize||12)+"px",k.fontFamily||"sans-serif"].join(" ");return M&&c(M)||k.textFont||k.font}B.DEFAULT_FONT=e,B.$override=t,B.getWidth=a,B.getBoundingRect=s,B.adjustTextX=p,B.adjustTextY=g,B.calculateTextPosition=v,B.adjustTextPositionOnRect=y,B.truncateText=x,B.getLineHeight=O,B.measureText=I,B.parsePlainText=L,B.parseRichText=N,B.makeFont=R},"6Hfg":function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("bYtY"),E=_.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:s,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 l=e.prototype;l.updateView=l.updateLayout=l.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 s(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,O=T&&i(T).updateMethod,I=S?"incrementalPrepareRender":O&&b[O]?O:"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 _={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=_},"6SEX":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("qWUW"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},"6UJt":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("v56E"),A=d.n(C),w=d("R9oj"),m=d("5NDa")},"6VBw":function(H,B,d){"use strict";var _=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(_.a)({},i)}var l=function(v){var y=v.icon,x=v.className,T=v.onClick,S=v.style,b=v.primaryColor,O=v.secondaryColor,I=Object(A.a)(v,r),L=i;if(b&&(L={primaryColor:b,secondaryColor:O||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(_.a)(Object(_.a)({},N),{},{icon:N.icon(L.primaryColor,L.secondaryColor)})),Object(o.a)(N.icon,"svg-".concat(N.name),Object(_.a)({className:x,onClick:T,style:S,"data-icon":N.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=n;var t=l;function a(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 s(){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,O=g.tabIndex,I=g.onClick,L=g.twoToneColor,N=Object(A.a)(g,u),D=w.useContext(c.a),R=D.prefixCls,k=R===void 0?"anticon":R,M=f()(k,(y={},Object(C.a)(y,"".concat(k,"-").concat(T.name),!!T.name),Object(C.a)(y,"".concat(k,"-spin"),!!S||T.name==="loading"),y),x),j=O;j===void 0&&I&&(j=-1);var F=b?{msTransform:"rotate(".concat(b,"deg)"),transform:"rotate(".concat(b,"deg)")}:void 0,U=Object(o.d)(L),K=Object(E.a)(U,2),V=K[0],z=K[1];return w.createElement("span",Object(_.a)(Object(_.a)({role:"img","aria-label":T.name},N),{},{ref:v,tabIndex:j,onClick:I,className:M}),w.createElement(t,{icon:T,primaryColor:V,secondaryColor:z,style:F}))});h.displayName="AntdIcon",h.getTwoToneColor=s,h.setTwoToneColor=a;var p=B.a=h},"6cGi":function(H,B,d){"use strict";d.d(B,"a",function(){return c});var _=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,l=new Array(e),t=0;t<e;t++)l[t]=arguments[t];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(l))},[]);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,l=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]}),s=Object(_.a)(a,2),u=s[0],h=s[1],p=f(e)?e:u[0],g=t?t(p):p;Object(A.b)(function(){h(function(T){var S=Object(_.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 O=Object(_.a)(b,3),I=O[0],L=O[1],N=O[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(l);return Object(A.a)(function(){var T=Object(_.a)(u,3),S=T[0],b=T[1],O=T[2];S!==O&&b===m.INNER&&(x(S,O),v.current=O)},[u]),[g,y]}},"6fms":function(H,B,d){var _=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,l=r.addToStorage;r.delFromStorage=function(t){e.call(r,t),t&&(t.onRemove&&t.onRemove(n))},r.addToStorage=function(t){t.onAdd&&t.onAdd(n),l.call(r,t)},this._firstPaint=!0}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(){_('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},"6ner":function(H,B,d){"use strict";var _=d("VTBJ"),E=d("1OyB"),C=d("vuIU"),A=d("Ji7U"),w=d("LK+K"),m=d("q1tI"),f=d.n(m),c=d("m+aA"),o=d("Zm9Q"),r=d("Kwbf"),i=d("c+Xe"),n=d("bdgK"),e="rc-observer-key",l=function(t){Object(A.a)(s,t);var a=Object(w.a)(s);function s(){var u;return Object(E.a)(this,s),u=a.apply(this,arguments),u.resizeObserver=null,u.childNode=null,u.currentElement=null,u.state={width:0,height:0,offsetHeight:0,offsetWidth:0},u.onResize=function(h){var p=u.props.onResize,g=h[0].target,v=g.getBoundingClientRect(),y=v.width,x=v.height,T=g.offsetWidth,S=g.offsetHeight,b=Math.floor(y),O=Math.floor(x);if(u.state.width!==b||u.state.height!==O||u.state.offsetWidth!==T||u.state.offsetHeight!==S){var I={width:b,height:O,offsetWidth:T,offsetHeight:S};u.setState(I),p&&Promise.resolve().then(function(){p(Object(_.a)(Object(_.a)({},I),{},{offsetWidth:T,offsetHeight:S}))})}},u.setChildNode=function(h){u.childNode=h},u}return Object(C.a)(s,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var h=this.props.disabled;if(h){this.destroyObserver();return}var p=Object(c.a)(this.childNode||this),g=p!==this.currentElement;g&&(this.destroyObserver(),this.currentElement=p),!this.resizeObserver&&p&&(this.resizeObserver=new n.default(this.onResize),this.resizeObserver.observe(p))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var h=this.props.children,p=Object(o.a)(h);if(p.length>1)Object(r.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(p.length===0)return Object(r.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=p[0];if(m.isValidElement(g)&&Object(i.c)(g)){var v=g.ref;p[0]=m.cloneElement(g,{ref:Object(i.a)(v,this.setChildNode)})}return p.length===1?p[0]:p.map(function(y,x){return!m.isValidElement(y)||"key"in y&&y.key!==null?y:m.cloneElement(y,{key:"".concat(e,"-").concat(x)})})}}]),s}(m.Component);l.displayName="ResizeObserver",B.a=l},"6r85":function(H,B,d){var _=d("bYtY");function E(C){if(!C||!_.isArray(C.series))return;_.each(C.series,function(A){_.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}H.exports=E},"6uqw":function(H,B,d){var _=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,l=c.linearMap,t=E.noop,a=_.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(O){return O===y[0]?"min":O===y[1]?"max":(+O).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(O){var I=b[O];if(E.isString(I)){var L=A.get(I,"active",y);L?(b[O]={},b[O][I]=L):delete b[O]}},this)}function T(b,O,I){var L=b[O],N=b[I];L&&!N&&(N=b[I]={},n(L,function(D,R){if(!w.isValidType(R))return;var k=A.get(R,"inactive",y);k!=null&&(N[R]=k,R==="color"&&!N.hasOwnProperty("opacity")&&!N.hasOwnProperty("colorAlpha")&&(N.opacity=[0,0]))}))}function S(b){var O=(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=O&&E.clone(O)||(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(j){return j==="none"||j==="square"?"roundRect":j});var k=R.symbolSize;if(k!=null){var M=-Infinity;r(k,function(j){j>M&&(M=j)}),R.symbolSize=o(k,function(j){return l(j,[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}),s=a;H.exports=s},"6usn":function(H,B,d){var _=d("bYtY");function E(A,w){return _.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:_.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:_.bind(E,A)}}}H.exports=C},"6xvX":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("V7ic"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},"711d":function(H,B){function d(_){return function(E){return E==null?void 0:E[_]}}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=_(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 l=_(A,m);f!=null&&(l.sign!==i.sign||l.span<f)&&(A[1-m]=A[m]+i.sign*f);var l=_(A,m);return c!=null&&l.span>c&&(A[1-m]=A[m]+l.sign*c),A}function _(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 _=d("ProS");d("IXuL"),d("8X+K");var E=d("f5Yq"),C=d("h8O9"),A=d("/d5a");d("Ae16"),_.registerVisual(E("line","circle","line")),_.registerLayout(C("line")),_.registerProcessor(_.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(H,B,d){var _=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var E=d("f5Yq"),C=d("yik8");_.registerVisual(E("tree","circle")),_.registerLayout(C)},"7AJT":function(H,B,d){var _=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},_.inherits(C,E);var A=C;H.exports=A},"7Cbv":function(H,B,d){"use strict";var _=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(!_)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(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 l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(f[e[l+0]]+f[e[l+1]]+f[e[l+2]]+f[e[l+3]]+"-"+f[e[l+4]]+f[e[l+5]]+"-"+f[e[l+6]]+f[e[l+7]]+"-"+f[e[l+8]]+f[e[l+9]]+"-"+f[e[l+10]]+f[e[l+11]]+f[e[l+12]]+f[e[l+13]]+f[e[l+14]]+f[e[l+15]]).toLowerCase();if(!m(t))throw TypeError("Stringified UUID is invalid");return t}var r=o;function i(e,l,t){e=e||{};var a=e.random||(e.rng||C)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,l){t=t||0;for(var s=0;s<16;++s)l[t+s]=a[s];return l}return r(a)}var n=B.a=i},"7DRL":function(H,B,d){var _=d("Tghj"),E=_.__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(l,t,a){var s;return m(t)?s=t:t.svg?s=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(a=t.specialAreas,t=t.geoJson),s=[{type:"geoJSON",source:t,specialAreas:a}]),f(s,function(u){var h=u.type;h==="geoJson"&&(h=u.type="geoJSON");var p=e[h];p(u)}),i.set(l,s)},retrieveMap:function(l){return i.get(l)}},e={geoJSON:function(l){var t=l.source;l.geoJSON=w(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(l){l.svgXML=r(l.source)}};H.exports=n},"7G+c":function(H,B,d){var _=d("bYtY"),E=_.createHashMap,C=_.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(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===i?{}:[]),this.sourceFormat=l.sourceFormat||o,this.seriesLayoutBy=l.seriesLayoutBy||c,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&E(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}n.seriesDataToSource=function(l){return new n({data:l,sourceFormat:C(l)?r:f,fromDataset:!1})},w(n);var e=n;H.exports=e},"7Kak":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("KPFz"),A=d.n(C)},"7Phj":function(H,B,d){var _=d("bYtY"),E=d("OELB"),C=E.parsePercent,A=_.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,l){c(e,i.boxOffsetList[l],i.boxWidthList[l])})})}function m(o){var r=[],i=[];return o.eachSeriesByType("boxplot",function(n){var e=n.getBaseAxis(),l=_.indexOf(i,e);l<0&&(l=i.length,i[l]=e,r[l]={axis:e,seriesModels:[]}),r[l].seriesModels.push(n)}),r}function f(o){var r,i=o.axis,n=o.seriesModels,e=n.length,l=o.boxWidthList=[],t=o.boxOffsetList=[],a=[],s;if(i.type==="category")s=i.getBandWidth();else{var u=0;A(n,function(y){u=Math.max(u,y.getData().count())}),r=i.getExtent(),Math.abs(r[1]-r[0])/u}A(n,function(y){var x=y.get("boxWidth");_.isArray(x)||(x=[x,x]),a.push([C(x[0],s)||0,C(x[1],s)||0])});var h=s*.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,l.push(Math.min(Math.max(g,a[x][0]),a[x][1]))})}function c(o,r,i){var n=o.coordinateSystem,e=o.getData(),l=i/2,t=o.get("layout")==="horizontal"?0:1,a=1-t,s=["x","y"],u=e.mapDimension(s[t]),h=e.mapDimension(s[a],!0);if(u==null||h.length<5)return;for(var p=0;p<e.count();p++){var g=e.get(u,p),v=O(g,h[2],p),y=O(g,h[0],p),x=O(g,h[1],p),T=O(g,h[3],p),S=O(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 O(N,D,R){var k=e.get(D,R),M=[];M[t]=N,M[a]=k;var j;return isNaN(N)||isNaN(k)?j=[NaN,NaN]:(j=n.dataToPoint(M),j[t]+=r),j}function I(N,D,R){var k=D.slice(),M=D.slice();k[t]+=l,M[t]-=l,R?N.push(k,M):N.push(M,k)}function L(N,D){var R=D.slice(),k=D.slice();R[t]-=l,k[t]+=l,N.push(R,k)}}H.exports=w},"7SHv":function(H,B,d){var _=d("LPTA"),E=_.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,l=.001;function t(T){return parseInt(T,10)}function a(T){return T?T.__builtin__?!0:!(typeof T.resize!="function"||typeof T.refresh!="function"):!1}var s=new w(0,0,0,0),u=new w(0,0,0,0);function h(T,S,b){return s.copy(T.getBoundingRect()),T.transform&&s.applyTransform(T.transform),u.width=S,u.height=b,!s.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 O=T[b];O.setTransform(S),S.beginPath(),O.buildPath(S,O.shape),S.clip(),O.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,O){this.type="canvas";var I=!S.nodeName||S.nodeName.toUpperCase()==="CANVAS";this._opts=O=C.extend({},O||{}),this.dpr=O.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 k=S.width,M=S.height;O.width!=null&&(k=O.width),O.height!=null&&(M=O.height),this.dpr=O.devicePixelRatio||1,S.width=k*this.dpr,S.height=M*this.dpr,this._width=k,this._height=M;var j=new f(S,this,this.dpr);j.__builtin__=!0,j.initContext(),D[n]=j,j.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),O=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,S,this._redrawId);for(var I=0;I<O.length;I++){var L=O[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 O=new S.constructor({style:S.style,shape:S.shape,z:S.z,z2:S.z2,silent:S.silent});return O.__from=S,S.__hoverMir=O,b&&O.setStyle(b),this._hoverElements.push(O),O},removeHover:function(S){var b=S.__hoverMir,O=this._hoverElements,I=C.indexOf(O,b);I>=0&&O.splice(I,1),S.__hoverMir=null},clearHover:function(S){for(var b=this._hoverElements,O=0;O<b.length;O++){var I=b[O].__from;I&&(I.__hoverMir=null)}b.length=0},refreshHover:function(){var S=this._hoverElements,b=S.length,O=this._hoverlayer;if(O&&O.clear(),!b)return;m(S,this.storage.displayableSortFunc),O||(O=this._hoverlayer=this.getLayer(i));var I={};O.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,O,!0,I))}O.ctx.restore()},getHoverLayer:function(){return this.getLayer(i)},_paintList:function(S,b,O){if(this._redrawId!==O)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,O)})}},_compositeManually:function(){var S=this.getLayer(n).ctx,b=this._domRoot.width,O=this._domRoot.height;S.clearRect(0,0,b,O),this.eachBuiltinLayer(function(I){I.virtual&&S.drawImage(I.dom,0,0,b,O)})},_doPaintList:function(S,b){for(var O=[],I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I],N=this._layers[L];N.__builtin__&&N!==this._hoverlayer&&(N.__dirty||b)&&O.push(N)}for(var D=!0,R=0;R<O.length;R++){var N=O[R],k=N.ctx,M={};k.save();var j=b?N.__startIndex:N.__drawIndex,F=!b&&N.incremental&&Date.now,U=F&&Date.now(),K=N.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(N.__startIndex===N.__endIndex)N.clear(!1,K);else if(j===N.__startIndex){var V=S[j];(!V.incremental||!V.notClear||b)&&N.clear(!1,K)}j===-1&&(console.error("For some unknown reason. drawIndex is -1"),j=N.__startIndex);for(var z=j;z<N.__endIndex;z++){var Q=S[z];if(this._doPaintEl(Q,N,b,M),Q.__dirty=Q.__dirtyText=!1,F){var Z=Date.now()-U;if(Z>15)break}}N.__drawIndex=z,N.__drawIndex<N.__endIndex&&(D=!1),M.prevElClipPaths&&k.restore(),k.restore()}return r.wxa&&C.each(this._layers,function(le){le&&le.ctx&&le.ctx.draw&&le.ctx.draw()}),D},_doPaintEl:function(S,b,O,I){var L=b.ctx,N=S.transform;if((b.__dirty||O)&&!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 O=this._layers[S];return O||(O=new f("zr_"+S,this,this.dpr),O.zlevel=S,O.__builtin__=!0,this._layerConfig[S]?C.merge(O,this._layerConfig[S],!0):this._layerConfig[S-e]&&C.merge(O,this._layerConfig[S-e],!0),b&&(O.virtual=b),this.insertLayer(S,O),O.initContext()),O},insertLayer:function(S,b){var O=this._layers,I=this._zlevelList,L=I.length,N=null,D=-1,R=this._domRoot;if(O[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=O[I[D]]}if(I.splice(D+1,0,S),O[S]=b,!b.virtual)if(N){var k=N.dom;k.nextSibling?R.insertBefore(b.dom,k.nextSibling):R.appendChild(b.dom)}else R.firstChild?R.insertBefore(b.dom,R.firstChild):R.appendChild(b.dom)},eachLayer:function(S,b){var O=this._zlevelList,I,L;for(L=0;L<O.length;L++)I=O[L],S.call(b,this._layers[I],I)},eachBuiltinLayer:function(S,b){var O=this._zlevelList,I,L,N;for(N=0;N<O.length;N++)L=O[N],I=this._layers[L],I.__builtin__&&S.call(b,I,L)},eachOtherLayer:function(S,b){var O=this._zlevelList,I,L,N;for(N=0;N<O.length;N++)L=O[N],I=this._layers[L],I.__builtin__||S.call(b,I,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(S){this.eachBuiltinLayer(function(M,j){M.__dirty=M.__used=!1});function b(M){L&&(L.__endIndex!==M&&(L.__dirty=!0),L.__endIndex=M)}if(this._singleCanvas)for(var O=1;O<S.length;O++){var I=S[O];if(I.zlevel!==S[O-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,N=0,D,O=0;O<S.length;O++){var I=S[O],R=I.zlevel,k;D!==R&&(D=R,N=0),I.incremental?(k=this.getLayer(R+l,this._needsManuallyCompositing),k.incremental=!0,N=1):k=this.getLayer(R+(N>0?e:0),this._needsManuallyCompositing),k.__builtin__||A("ZLevel "+R+" has been used by unkown layer "+k.id),k!==L&&(k.__used=!0,k.__startIndex!==O&&(k.__dirty=!0),k.__startIndex=O,k.incremental?k.__drawIndex=-1:k.__drawIndex=O,b(O),L=k),I.__dirty&&(k.__dirty=!0,k.incremental&&k.__drawIndex<0&&(k.__drawIndex=O))}b(O),this.eachBuiltinLayer(function(M,j){!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 O=this._layerConfig;O[S]?C.merge(O[S],b,!0):O[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,O[S],!0)}}}},delLayer:function(S){var b=this._layers,O=this._zlevelList,I=b[S];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete b[S],O.splice(C.indexOf(O,S),1)},resize:function(S,b){if(this._domRoot.style){var O=this._domRoot;O.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),O.style.display="",this._width!==S||b!==this._height){O.style.width=S+"px",O.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 O=b.dom.width,I=b.dom.height,L=b.ctx;this.eachLayer(function(M){M.__builtin__?L.drawImage(M.dom,0,0,O,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 k=D[R];this._doPaintEl(k,b,!0,N)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(S){var b=this._opts,O=["width","height"][S],I=["clientWidth","clientHeight"][S],L=["paddingLeft","paddingTop"][S],N=["paddingRight","paddingBottom"][S];if(b[O]!=null&&b[O]!=="auto")return parseFloat(b[O]);var D=this.root,R=document.defaultView.getComputedStyle(D);return(D[I]||t(R[O])||t(D.style[O]))-(t(R[L])||0)-(t(R[N])||0)|0},pathToImage:function(S,b){b=b||this.dpr;var O=document.createElement("canvas"),I=O.getContext("2d"),L=S.getBoundingRect(),N=S.style,D=N.shadowBlur*b,R=N.shadowOffsetX*b,k=N.shadowOffsetY*b,M=N.hasStroke()?N.lineWidth:0,j=Math.max(M/2,-R+D),F=Math.max(M/2,R+D),U=Math.max(M/2,-k+D),K=Math.max(M/2,k+D),V=L.width+j+F,z=L.height+U+K;O.width=V*b,O.height=z*b,I.scale(b,b),I.clearRect(0,0,V,z),I.dpr=b;var Q={position:S.position,rotation:S.rotation,scale:S.scale};S.position=[j-L.x,U-L.y],S.rotation=0,S.scale=[1,1],S.updateTransform(),S&&S.brush(I);var Z=o,le=new Z({style:{x:0,y:0,image:O}});return Q.position!=null&&(le.position=S.position=Q.position),Q.rotation!=null&&(le.rotation=S.rotation=Q.rotation),Q.scale!=null&&(le.scale=S.scale=Q.scale),le}};var x=y;H.exports=x},"7a+S":function(H,B,d){var _=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=[];_.each(c,function(l,t){var a=A.getDataItemValue(l),s;_.isObject(l)?(s=_.clone(l),s.value=t):s=t,i.push(s),!_.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 _=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=_.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){_.isArray(y)||(y=[y]);var T=y.length;if(!T)return"";for(var S=y[0].$vars||[],b=0;b<S.length;b++){var O=r[b];v=v.replace(i(O),i(O,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 _.each(y,function(T,S){v=v.replace("{"+S+"}",x?o(T):T)}),v}function l(v,y){v=_.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"](),O=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(O,2)).replace("M",O).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 s(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,O,I){return E.getBoundingRect(v,y,x,T,S,I,b,O)}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=l,B.formatTime=a,B.capitalFirst=s,B.truncateText=u,B.getTextBoundingRect=h,B.getTextRect=p,B.windowOpen=g},"7bkD":function(H,B,d){var _=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 l={top:-1,bottom:1,right:1,left:-1};f.labelDirection=f.tickDirection=f.nameDirection=l[c],C.get("axisTick.inside")&&(f.tickDirection=-f.tickDirection),_.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 _=d("bYtY"),E=_.each,C=_.isString;function A(f,c,o){o=o||{};var r=o.byIndex,i=o.stackedCoordDimension,n=!!(f&&f.get("stack")),e,l,t,a;if(E(c,function(p,g){C(p)&&(c[g]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!e&&p.ordinalMeta&&(e=p),!l&&p.type!=="ordinal"&&p.type!=="time"&&(!i||i===p.coordDim)&&(l=p))}),l&&!r&&!e&&(r=!0),l){t="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var s=l.coordDim,u=l.type,h=0;E(c,function(p){p.coordDim===s&&h++}),c.push({name:t,coordDim:s,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0}),h++,c.push({name:a,coordDim:a,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:r,stackedOverDimension:a,stackResultDimension:t}}function 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 _=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=_.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(o,r,i){var n=this.group;n.removeAll();var e=o.coordinateSystem,l=e.getRangeInfo(),t=e.getOrient();this._renderDayRect(o,l,n),this._renderLines(o,l,t,n),this._renderYearText(o,l,t,n),this._renderMonthText(o,t,n),this._renderWeekText(o,l,t,n)},_renderDayRect:function(o,r,i){for(var n=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),l=n.getCellWidth(),t=n.getCellHeight(),a=r.start.time;a<=r.end.time;a=n.getNextNDay(a,1).time){var s=n.dataToRect([a],!1).tl,u=new C.Rect({shape:{x:s[0],y:s[1],width:l,height:t},cursor:"default",style:e});i.add(u)}},_renderLines:function(o,r,i,n){var e=this,l=o.coordinateSystem,t=o.getModel("splitLine.lineStyle").getLineStyle(),a=o.get("splitLine.show"),s=t.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,h=0;u.time<=r.end.time;h++){g(u.formatedDate),h===0&&(u=l.getDateInfo(r.start.y+"-"+r.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=l.getDateInfo(p)}g(l.getNextNDay(r.end.time,1).formatedDate);function g(v){e._firstDayOfMonth.push(l.getDateInfo(v)),e._firstDayPoints.push(l.dataToRect([v],!1).tl);var y=e._getLinePointsOfOneWeek(o,v,i);e._tlpoints.push(y[0]),e._blpoints.push(y[y.length-1]),a&&e._drawSplitline(y,t,n)}a&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,s,i),t,n),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,s,i),t,n)},_getEdgesPoints:function(o,r,i){var n=[o[0].slice(),o[o.length-1].slice()],e=i==="horizontal"?0:1;return n[0][e]=n[0][e]-r/2,n[1][e]=n[1][e]+r/2,n},_drawSplitline:function(o,r,i){var n=new C.Polyline({z2:20,shape:{points:o},style:r});i.add(n)},_getLinePointsOfOneWeek:function(o,r,i){var n=o.coordinateSystem;r=n.getDateInfo(r);for(var e=[],l=0;l<7;l++){var t=n.getNextNDay(r.time,l),a=n.dataToRect([t.time],!1);e[2*t.day]=a.tl,e[2*t.day+1]=a[i==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,r){return typeof o=="string"&&o?A.formatTplSimple(o,r):typeof o=="function"?o(r):r.nameMap},_yearTextPositionControl:function(o,r,i,n,e){r=r.slice();var l=["center","bottom"];n==="bottom"?(r[1]+=e,l=["center","top"]):n==="left"?r[0]-=e:n==="right"?(r[0]+=e,l=["center","top"]):r[1]-=e;var t=0;return(n==="left"||n==="right")&&(t=Math.PI/2),{rotation:t,position:r,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(o,r,i,n){var e=o.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),t=e.get("position");t||(t=i!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],s=(a[0][0]+a[1][0])/2,u=(a[0][1]+a[1][1])/2,h=i==="horizontal"?0:1,p={top:[s,a[h][1]],bottom:[s,a[1-h][1]],left:[a[1-h][0],u],right:[a[h][0],u]},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,l)),n.add(T)},_monthTextPositionControl:function(o,r,i,n,e){var l="left",t="top",a=o[0],s=o[1];return i==="horizontal"?(s=s+e,r&&(l="center"),n==="start"&&(t="bottom")):(a=a+e,r&&(t="middle"),n==="start"&&(l="right")),{x:a,y:s,textAlign:l,textVerticalAlign:t}},_renderMonthText:function(o,r,i){var n=o.getModel("monthLabel");if(!n.get("show"))return;var e=n.get("nameMap"),l=n.get("margin"),t=n.get("position"),a=n.get("align"),s=[this._tlpoints,this._blpoints];E.isString(e)&&(e=m[e.toUpperCase()]||[]);var u=t==="start"?0:1,h=r==="horizontal"?0:1;l=t==="start"?-l:l;for(var p=a==="center",g=0;g<s[u].length-1;g++){var v=s[u][g].slice(),y=this._firstDayOfMonth[g];if(p){var x=this._firstDayPoints[g];v[h]=(x[h]+s[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},O=this._formatterLabel(T,b),I=new C.Text({z2:30});E.extend(C.setTextStyle(I.style,n,{text:O}),this._monthTextPositionControl(v,p,r,t,l)),i.add(I)}},_weekTextPositionControl:function(o,r,i,n,e){var l="center",t="middle",a=o[0],s=o[1],u=i==="start";return r==="horizontal"?(a=a+n+(u?1:-1)*e[0]/2,l=u?"right":"left"):(s=s+n+(u?1:-1)*e[1]/2,t=u?"bottom":"top"),{x:a,y:s,textAlign:l,textVerticalAlign:t}},_renderWeekText:function(o,r,i,n){var e=o.getModel("dayLabel");if(!e.get("show"))return;var l=o.coordinateSystem,t=e.get("position"),a=e.get("nameMap"),s=e.get("margin"),u=l.getFirstDayOfWeek();E.isString(a)&&(a=f[a.toUpperCase()]||[]);var h=l.getNextNDay(r.end.time,7-r.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];s=w.parsePercent(s,p[i==="horizontal"?0:1]),t==="start"&&(h=l.getNextNDay(r.start.time,-(7+r.fweek)).time,s=-s);for(var g=0;g<7;g++){var v=l.getNextNDay(h,g),y=l.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,s,p)),n.add(T)}}});H.exports=c},"7oTu":function(H,B,d){var _=d("IMiH"),E=d("QBsz"),C=E.applyTransform,A=_.CMD,w=[[],[],[]],m=Math.sqrt,f=Math.atan2;function c(o,r){var i=o.data,n,e,l,t,a,s,u=A.M,h=A.C,p=A.L,g=A.R,v=A.A,y=A.Q;for(l=0,t=0;l<i.length;){n=i[l++],t=l,e=0;switch(n){case u:e=1;break;case p:e=1;break;case h:e=3;break;case y:e=2;break;case v:var 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]),O=f(-r[1]/b,r[0]/S);i[l]*=S,i[l++]+=x,i[l]*=b,i[l++]+=T,i[l++]*=S,i[l++]*=b,i[l++]+=O,i[l++]+=O,l+=2,t=l;break;case g:s[0]=i[l++],s[1]=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1],s[0]+=i[l++],s[1]+=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1]}for(a=0;a<e;a++){var s=w[a];s[0]=i[l++],s[1]=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1]}}}H.exports=c},"7pVf":function(H,B,d){var _=d("ProS"),E=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),_.registerPreprocessor(E)},"7ph2":function(H,B){function d(C){return C instanceof Array||(C=[C,C]),C}var _="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(_));function o(r,i){var n=r.getItemModel(i),e=d(n.getShallow("symbol",!0)),l=d(n.getShallow("symbolSize",!0)),t=n.get(_);e[0]&&r.setItemVisual(i,"fromSymbol",e[0]),e[1]&&r.setItemVisual(i,"toSymbol",e[1]),l[0]&&r.setItemVisual(i,"fromSymbolSize",l[0]),l[1]&&r.setItemVisual(i,"toSymbolSize",l[1]),r.setItemVisual(i,"opacity",t)}return{dataEach:c.hasItemOption?o:null}}};H.exports=E},"7uqq":function(H,B,d){var _=d("Tghj"),E=_.__DEV__,C=d("ProS"),A=d("bYtY"),w=d("AUH6"),m=d("+TT/"),f=d("OELB"),c=d("W4dC"),o=d("7DRL");function r(l,t){var a=l.get("boundingCoords");if(a!=null){var s=a[0],u=a[1];isNaN(s[0])||isNaN(s[1])||isNaN(u[0])||isNaN(u[1])||this.setBoundingRect(s[0],s[1],u[0]-s[0],u[1]-s[1])}var h=this.getBoundingRect(),p,g=l.get("layoutCenter"),v=l.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=l.getBoxLayoutParams(),p.aspect=T,b=m.getLayoutRect(p,{width:y,height:x});this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function i(l,t){A.each(t.get("geoCoord"),function(a,s){l.addGeoCoord(s,a)})}var n={dimensions:w.prototype.dimensions,create:function(l,t){var a=[];l.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)}),l.eachSeries(function(u){var h=u.get("coordinateSystem");if(h==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=a[p]}});var s={};return l.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var h=u.getMapType();s[h]=s[h]||[],s[h].push(u)}}),A.each(s,function(u,h){var p=A.map(u,function(v){return v.get("nameMap")}),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(l,t,a){for(var s=(l||[]).slice(),u=A.createHashMap(),h=0;h<s.length;h++)u.set(s[h].name,s[h]);var p=c.load(t,a);return A.each(p.regions,function(g){var v=g.name;!u.get(v)&&s.push({name:v})}),s}};C.registerCoordinateSystem("geo",n);var e=n;H.exports=e},"7yuC":function(H,B,d){var _=d("QBsz"),E=_.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=_.create(c*(Math.random()-.5)+r[0],o*(Math.random()-.5)+r[1])),e.pp=_.clone(e.p),e.edges=null}var l=m.friction==null?.6:m.friction,t=l;return{warmUp:function(){t=l*.8},setFixed:function(a){A[a].fixed=!0},setUnfixed:function(a){A[a].fixed=!1},step:function(a){for(var s=[],u=A.length,h=0;h<w.length;h++){var p=w[h];if(p.ignoreForceLayout)continue;var g=p.n1,v=p.n2;_.sub(s,v.p,g.p);var y=_.len(s)-p.d,x=v.w/(g.w+v.w);isNaN(x)&&(x=0),_.normalize(s,s),!g.fixed&&E(g.p,g.p,s,x*y*t),!v.fixed&&E(v.p,v.p,s,-(1-x)*y*t)}for(var h=0;h<u;h++){var T=A[h];T.fixed||(_.sub(s,r,T.p),E(T.p,T.p,s,i*t))}for(var h=0;h<u;h++)for(var g=A[h],S=h+1;S<u;S++){var v=A[S];_.sub(s,v.p,g.p);var y=_.len(s);y===0&&(_.set(s,Math.random()-.5,Math.random()-.5),y=1);var b=(g.rep+v.rep)/y/y;!g.fixed&&E(g.pp,g.pp,s,b),!v.fixed&&E(v.pp,v.pp,s,-b)}for(var O=[],h=0;h<u;h++){var T=A[h];T.fixed||(_.sub(O,T.p,T.pp),E(T.p,T.p,O,t),_.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 _={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=_[A];return w!==void 0?w:16777216|A}};B.default=E},"8CQX":function(H,B,d){"use strict";function _(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(a){return typeof a}:_=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_(l)}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 l=new WeakMap;return c=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||_(l)!=="object"&&typeof l!="function")return{default:l};var t=c();if(t&&t.has(l))return t.get(l);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var h=s?Object.getOwnPropertyDescriptor(l,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=l[u]}return a.default=l,t&&t.set(l,a),a}function r(l){return l&&l.__esModule?l:{default:l}}function i(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in A.default){var t=A.default[l.keyCode];if(f.isMac()&&t==="ContextMenu"&&(t="MetaRight"),l.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function n(l){if(l.key!==void 0){switch(l.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return l.char}switch(l.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(l.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(l.key==="\0"&&l.code==="NumpadDecimal")return"Delete";if(!f.isIE()&&!f.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var t=i(l);return t in w.default?w.default[t]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var t=n(l);if(t==="Unidentified")return null;if(t in m.default){var a=l.location;if(t==="Meta"&&a===0&&(a=2),t==="Clear"&&a===3){var s=i(l);s==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),t==="Meta"){var u=i(l);if(u==="AltLeft")return E.default.XK_Meta_L;if(u==="AltRight")return E.default.XK_Meta_R}if(t==="Clear"){var h=i(l);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(_){_(d("VrN/"))})(function(_){"use strict";_.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<_.modeInfo.length;E++){var C=_.modeInfo[E];C.mimes&&(C.mime=C.mimes[0])}_.findModeByMIME=function(A){A=A.toLowerCase();for(var w=0;w<_.modeInfo.length;w++){var m=_.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 _.findModeByMIME("application/xml");if(/\+json$/.test(A))return _.findModeByMIME("application/json")},_.findModeByExtension=function(A){A=A.toLowerCase();for(var w=0;w<_.modeInfo.length;w++){var m=_.modeInfo[w];if(m.ext){for(var f=0;f<m.ext.length;f++)if(m.ext[f]==A)return m}}},_.findModeByFileName=function(A){for(var w=0;w<_.modeInfo.length;w++){var m=_.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 _.findModeByExtension(c)},_.findModeByName=function(A){A=A.toLowerCase();for(var w=0;w<_.modeInfo.length;w++){var m=_.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 _={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=_},"8ISB":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("6Hfg"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},"8K/p":function(H,B,d){"use strict";function _(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(e){return typeof e}:_=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(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||_(i)!=="object"&&typeof i!="function")return{default:i};var n=w();if(n&&n.has(i))return n.get(i);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=l?Object.getOwnPropertyDescriptor(i,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=i[t]}return e.default=i,n&&n.set(i,e),e}function f(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function c(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),i}var r=function(){function i(){f(this,i),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var n=0;n<4;n++)this._zlibs[n]=new C.default}return o(i,[{key:"decodeRect",value:function(e,l,t,a,s,u,h){if(this._ctl===null){if(s.rQwait("TIGHT compression-control",1))return!1;this._ctl=s.rQshift8();for(var p=0;p<4;p++)this._ctl>>p&1&&(this._zlibs[p].reset(),E.Info("Reset zlib stream "+p));this._ctl=this._ctl>>4}var g;if(this._ctl===8)g=this._fillRect(e,l,t,a,s,u,h);else if(this._ctl===9)g=this._jpegRect(e,l,t,a,s,u,h);else if(this._ctl===10)g=this._pngRect(e,l,t,a,s,u,h);else if((this._ctl&128)==0)g=this._basicRect(this._ctl,e,l,t,a,s,u,h);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return g&&(this._ctl=null),g}},{key:"_fillRect",value:function(e,l,t,a,s,u,h){if(s.rQwait("TIGHT",3))return!1;var p=s.rQi,g=s.rQ;return u.fillRect(e,l,t,a,[g[p+2],g[p+1],g[p]],!1),s.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,t,a,s,u,h){var p=this._readData(s);return p===null?!1:(u.imageRect(e,l,t,a,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(e,l,t,a,s,u,h){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,t,a,s,u,h,p){if(this._filter===null)if(e&4){if(u.rQwait("TIGHT",1))return!1;this._filter=u.rQshift8()}else this._filter=0;var g=e&3,v;switch(this._filter){case 0:v=this._copyFilter(g,l,t,a,s,u,h,p);break;case 1:v=this._paletteFilter(g,l,t,a,s,u,h,p);break;case 2:v=this._gradientFilter(g,l,t,a,s,u,h,p);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return v&&(this._filter=null),v}},{key:"_copyFilter",value:function(e,l,t,a,s,u,h,p){var g=a*s*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(l,t,a,s,v,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,t,a,s,u,h,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var 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*s,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(l,t,a,s,S,this._palette,h):this._paletteRect(l,t,a,s,S,this._palette,h),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,t,a,s,u,h){for(var p=this._getScratchBuffer(t*a*4),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=(s[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 O=7;O>=8-t%8;O--)x=(y*t+S*8+7-O)*4,T=(s[y*g+S]>>O&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,l,t,a,p,0,!1)}},{key:"_paletteRect",value:function(e,l,t,a,s,u,h){for(var p=this._getScratchBuffer(t*a*4),g=t*a*4,v=0,y=0;v<g;v+=4,y++){var x=s[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,l,t,a,p,0,!1)}},{key:"_gradientFilter",value:function(e,l,t,a,s,u,h,p){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var t=e.rQshiftBytes(this._len);return this._len=0,t}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),i}();B.default=r},"8SMY":function(H,B,d){var _=d("n4Lv"),E=_.prepareDataCoordInfo,C=_.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 l=A(m,f),t=[],a=[],s=[],u=[],h=[],p=[],g=[],v=E(r,f,n),y=E(i,m,e),x=0;x<l.length;x++){var T=l[x],S=!0;switch(T.cmd){case"=":var b=m.getItemLayout(T.idx),O=f.getItemLayout(T.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=O.slice()),t.push(b),a.push(O),s.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()),s.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)])),s.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(j,F){return g[j]-g[F]});for(var N=[],D=[],R=[],k=[],M=[],x=0;x<p.length;x++){var I=p[x];N[x]=t[I],D[x]=a[I],R[x]=s[I],k[x]=u[I],M[x]=h[I]}return{current:N,next:D,stackedOnCurrent:R,stackedOnNext:k,status:M}}H.exports=w},"8Skl":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="DownOutlined";var f=B.a=E.forwardRef(m)},"8Th4":function(H,B,d){var _=d("3LNs"),E=d("/y7N"),C=d("7bkD"),A=d("Znkb"),w=["x","y"],m=["width","height"],f=_.extend({makeElOption:function(n,e,l,t,a){var s=l.axis,u=s.coordinateSystem,h=r(u,1-o(s)),p=u.dataToPoint(e)[0],g=t.get("type");if(g&&g!=="none"){var v=E.buildElStyle(t),y=c[g](s,p,h);y.style=v,n.graphicKey=y.type,n.pointer=y}var x=C.layout(l);E.buildCartesianSingleLabelElOption(e,n,x,l,t,a)},getHandleTransform:function(n,e,l){var t=C.layout(e,{labelInside:!1});return t.labelMargin=l.get("handle.margin"),{position:E.getTransformedPosition(e.axis,n,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,e,l,t){var a=l.axis,s=a.coordinateSystem,u=o(a),h=r(s,u),p=n.position;p[u]+=e[u],p[u]=Math.min(h[1],p[u]),p[u]=Math.max(h[0],p[u]);var g=r(s,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,l){var t=E.makeLineShape([e,l[0]],[e,l[1]],o(n));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(n,e,l){var t=n.getBandWidth(),a=l[1]-l[0];return{type:"Rect",shape:E.makeRectShape([e-t/2,l[0]],[t,a],o(n))}}};function o(n){return n.isHorizontal()?0:1}function r(n,e){var l=n.getRect();return[l[w[e]],l[w[e]]+l[m[e]]]}A.registerAxisPointerClass("SingleAxisPointer",f);var i=f;H.exports=i},"8Uz6":function(H,B,d){var _=d("hNWo"),E=d("+TT/"),C=E.mergeLayoutParam,A=E.getLayoutParams,w=_.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 _=d("Tghj"),E=_.__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,l=d("6Ic6"),t=d("n4Lv"),a=t.prepareDataCoordInfo,s=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 k=N[R],M=D[R];if(k[0]!==M[0]||k[1]!==M[1])return}return!0}function v(N,D){var R=[],k=[],M=[],j=[];return w(N,R,k),w(D,M,j),Math.max(Math.abs(R[0]-M[0]),Math.abs(R[1]-M[1]),Math.abs(k[0]-j[0]),Math.abs(k[1]-j[1]))}function y(N){return typeof N=="number"?N:N?.5:0}function x(N,D,R){if(!R.valueDim)return[];for(var k=[],M=0,j=D.count();M<j;M++)k.push(s(R,N,D,M));return k}function T(N,D,R){for(var k=D.getBaseAxis(),M=k.dim==="x"||k.dim==="radius"?0:1,j=[],F=0;F<N.length-1;F++){var U=N[F+1],K=N[F];j.push(K);var V=[];switch(R){case"end":V[M]=U[M],V[1-M]=K[1-M],j.push(V);break;case"middle":var z=(K[M]+U[M])/2,Q=[];V[M]=Q[M]=z,V[1-M]=K[1-M],Q[1-M]=U[1-M],j.push(V),j.push(Q);break;default:V[M]=K[M],V[1-M]=U[1-M],j.push(V)}}return N[F]&&j.push(N[F]),j}function S(N,D){var R=N.getVisual("visualMeta");if(!R||!R.length||!N.count())return;if(D.type!=="cartesian2d")return;for(var k,M,j=R.length-1;j>=0;j--){var F=R[j].dimension,U=N.dimensions[F],K=N.getDimensionInfo(U);if(k=K&&K.coordDim,k==="x"||k==="y"){M=R[j];break}}if(!M)return;var V=D.getAxis(k),z=C.map(M.stops,function(Be){return{coord:V.toGlobalCoord(V.dataToCoord(Be.value)),color:Be.color}}),Q=z.length,Z=M.outerColors.slice();Q&&z[0].coord>z[Q-1].coord&&(z.reverse(),Z.reverse());var le=10,ne=z[0].coord-le,ve=z[Q-1].coord+le,xe=ve-ne;if(xe<.001)return"transparent";C.each(z,function(Be){Be.offset=(Be.coord-ne)/xe}),z.push({offset:Q?z[Q-1].offset:.5,color:Z[1]||"transparent"}),z.unshift({offset:Q?z[0].offset:.5,color:Z[0]||"transparent"});var _e=new o.LinearGradient(0,0,0,0,z,!0);return _e[k]=ne,_e[k+"2"]=ve,_e}function b(N,D,R){var k=N.get("showAllSymbol"),M=k==="auto";if(k&&!M)return;var j=R.getAxesByScale("ordinal")[0];if(!j)return;if(M&&O(j,D))return;var F=D.mapDimension(j.dim),U={};return C.each(j.getViewLabels(),function(K){U[K.tickValue]=1}),function(K){return!U.hasOwnProperty(D.get(F,K))}}function O(N,D){var R=N.getExtent(),k=Math.abs(R[1]-R[0])/N.scale.count();isNaN(k)&&(k=0);for(var M=D.count(),j=Math.max(1,Math.round(M/5)),F=0;F<M;F+=j)if(f.getSymbolSize(D,F)[N.isHorizontal()?1:0]*1.5>k)return!1;return!0}function I(N,D,R){if(N.type==="cartesian2d"){var k=N.getBaseAxis().isHorizontal(),M=h(N,D,R);if(!R.get("clip",!0)){var j=M.shape,F=Math.max(j.width,j.height);k?(j.y-=F,j.height+=F*2):(j.x-=F,j.width+=F*2)}return M}else return p(N,D,R)}var L=l.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 k=N.coordinateSystem,M=this.group,j=N.getData(),F=N.getModel("lineStyle"),U=N.getModel("areaStyle"),K=j.mapArray(j.getItemLayout),V=k.type==="polar",z=this._coordSys,Q=this._symbolDraw,Z=this._polyline,le=this._polygon,ne=this._lineGroup,ve=N.get("animation"),xe=!U.isEmpty(),_e=U.get("origin"),Be=a(k,j,_e),me=x(k,j,Be),Fe=N.get("showSymbol"),ie=Fe&&!V&&b(N,j,k),te=this._data;te&&te.eachItemGraphicEl(function(de,Ce){de.__temp&&(M.remove(de),te.setItemGraphicEl(Ce,null))}),Fe||Q.remove(),M.add(ne);var Ge=!V&&N.get("step"),oe;k&&k.getArea&&N.get("clip",!0)&&(oe=k.getArea(),oe.width!=null?(oe.x-=.1,oe.y-=.1,oe.width+=.2,oe.height+=.2):oe.r0&&(oe.r0-=.5,oe.r1+=.5)),this._clipShapeForSymbol=oe,Z&&z.type===k.type&&Ge===this._step?(xe&&!le?le=this._newPolygon(K,me,k,ve):le&&!xe&&(ne.remove(le),le=this._polygon=null),ne.setClipPath(I(k,!1,N)),Fe&&Q.updateData(j,{isIgnore:ie,clipShape:oe}),j.eachItemGraphicEl(function(de){de.stopAnimation(!0)}),(!g(this._stackedOnPoints,me)||!g(this._points,K))&&(ve?this._updateAnimation(j,me,k,R,Ge,_e):(Ge&&(K=T(K,k,Ge),me=T(me,k,Ge)),Z.setShape({points:K}),le&&le.setShape({points:K,stackedOnPoints:me})))):(Fe&&Q.updateData(j,{isIgnore:ie,clipShape:oe}),Ge&&(K=T(K,k,Ge),me=T(me,k,Ge)),Z=this._newPolyline(K,k,ve),xe&&(le=this._newPolygon(K,me,k,ve)),ne.setClipPath(I(k,!0,N)));var Y=S(j,k)||j.getVisual("color");Z.useStyle(C.defaults(F.getLineStyle(),{fill:"none",stroke:Y,lineJoin:"bevel"}));var G=N.get("smooth");if(G=y(N.get("smooth")),Z.setShape({smooth:G,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")}),le){var X=j.getCalculationInfo("stackedOnSeries"),fe=0;le.useStyle(C.defaults(U.getAreaStyle(),{fill:Y,opacity:.7,lineJoin:"bevel"})),X&&(fe=y(X.get("smooth"))),le.setShape({smooth:G,stackedOnSmooth:fe,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")})}this._data=j,this._coordSys=k,this._stackedOnPoints=me,this._points=K,this._step=Ge,this._valueOrigin=_e},dispose:function(){},highlight:function(N,D,R,k){var M=N.getData(),j=r.queryDataIndex(M,k);if(!(j instanceof Array)&&j!=null&&j>=0){var F=M.getItemGraphicEl(j);if(!F){var U=M.getItemLayout(j);if(!U)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(U[0],U[1]))return;F=new f(M,j),F.position=U,F.setZ(N.get("zlevel"),N.get("z")),F.ignore=isNaN(U[0])||isNaN(U[1]),F.__temp=!0,M.setItemGraphicEl(j,F),F.stopSymbolAnimation(!0),this.group.add(F)}F.highlight()}else l.prototype.highlight.call(this,N,D,R,k)},downplay:function(N,D,R,k){var M=N.getData(),j=r.queryDataIndex(M,k);if(j!=null&&j>=0){var F=M.getItemGraphicEl(j);F&&(F.__temp?(M.setItemGraphicEl(j,null),this.group.remove(F)):F.downplay())}else l.prototype.downplay.call(this,N,D,R,k)},_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,k,M,j){var F=this._polyline,U=this._polygon,K=N.hostModel,V=c(this._data,N,this._stackedOnPoints,D,this._coordSys,R,this._valueOrigin,j),z=V.current,Q=V.stackedOnCurrent,Z=V.next,le=V.stackedOnNext;if(M&&(z=T(V.current,R,M),Q=T(V.stackedOnCurrent,R,M),Z=T(V.next,R,M),le=T(V.stackedOnNext,R,M)),v(z,Z)>3e3||U&&v(Q,le)>3e3){F.setShape({points:Z}),U&&U.setShape({points:Z,stackedOnPoints:le});return}F.shape.__points=V.current,F.shape.points=z,o.updateProps(F,{shape:{points:Z}},K),U&&(U.setShape({points:z,stackedOnPoints:Q}),o.updateProps(U,{shape:{points:Z,stackedOnPoints:le}},K));for(var ne=[],ve=V.status,xe=0;xe<ve.length;xe++){var _e=ve[xe].cmd;if(_e==="="){var Be=N.getItemGraphicEl(ve[xe].idx1);Be&&ne.push({el:Be,ptIdx:xe})}}F.animators&&F.animators.length&&F.animators[0].during(function(){for(var me=0;me<ne.length;me++){var Fe=ne[me].el;Fe.attr("position",F.shape.__points[ne[me].ptIdx])}})},remove:function(N){var D=this.group,R=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),R&&R.eachItemGraphicEl(function(k,M){k.__temp&&(D.remove(k),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 _=d("aX58"),E=_.registerPainter,C=d("6fms");E("vml",C)},"8XRh":function(H,B,d){"use strict";d.d(B,"a",function(){return Je});var _=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(qe,Re){var Lt={};return Lt[qe.toLowerCase()]=Re.toLowerCase(),Lt["Webkit".concat(qe)]="webkit".concat(Re),Lt["Moz".concat(qe)]="moz".concat(Re),Lt["ms".concat(qe)]="MS".concat(Re),Lt["O".concat(qe)]="o".concat(Re.toLowerCase()),Lt}function n(qe,Re){var Lt={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")};return qe&&("AnimationEvent"in Re||delete Lt.animationend.animation,"TransitionEvent"in Re||delete Lt.transitionend.transition),Lt}var e=n(Object(r.a)(),typeof window!="undefined"?window:{}),l={};if(Object(r.a)()){var t=document.createElement("div");l=t.style}var a={};function s(qe){if(a[qe])return a[qe];var Re=e[qe];if(Re)for(var Lt=Object.keys(Re),$e=Lt.length,Et=0;Et<$e;Et+=1){var Ut=Lt[Et];if(Object.prototype.hasOwnProperty.call(Re,Ut)&&Ut in l)return a[qe]=Re[Ut],a[qe]}return""}var u=s("animationend"),h=s("transitionend"),p=!!(u&&h),g=u||"animationend",v=h||"transitionend";function y(qe,Re){if(!qe)return null;if(Object(A.a)(qe)==="object"){var Lt=Re.replace(/-\w/g,function($e){return $e[1].toUpperCase()});return qe[Lt]}return"".concat(qe,"-").concat(Re)}var x="none",T="appear",S="enter",b="leave",O="none",I="prepare",L="start",N="active",D="end",R=d("dm2S"),k=d("wgJM"),M=function(){var qe=w.useRef(null);function Re(){k.a.cancel(qe.current)}function Lt($e){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Re();var Ut=Object(k.a)(function(){Et<=1?$e({isCanceled:function(){return Ut!==qe.current}}):Lt($e,Et-1)});qe.current=Ut}return w.useEffect(function(){return function(){Re()}},[]),[Lt,Re]},j=Object(r.a)()?w.useLayoutEffect:w.useEffect,F=j,U=[I,L,N,D],K=!1,V=!0;function z(qe){return qe===N||qe===D}var Q=function(qe,Re){var Lt=Object(R.a)(O),$e=Object(C.a)(Lt,2),Et=$e[0],Ut=$e[1],Bt=M(),_t=Object(C.a)(Bt,2),jt=_t[0],He=_t[1];function se(){Ut(I,!0)}return F(function(){if(Et!==O&&Et!==D){var J=U.indexOf(Et),Ue=U[J+1],Le=Re(Et);Le===K?Ut(Ue,!0):jt(function(ee){function ct(){if(ee.isCanceled())return;Ut(Ue,!0)}Le===!0?ct():Promise.resolve(Le).then(ct)})}},[qe,Et]),w.useEffect(function(){return function(){He()}},[]),[se,Et]},Z=function(qe){var Re=Object(w.useRef)(),Lt=Object(w.useRef)(qe);Lt.current=qe;var $e=w.useCallback(function(Bt){Lt.current(Bt)},[]);function Et(Bt){Bt&&(Bt.removeEventListener(v,$e),Bt.removeEventListener(g,$e))}function Ut(Bt){Re.current&&Re.current!==Bt&&Et(Re.current),Bt&&Bt!==Re.current&&(Bt.addEventListener(v,$e),Bt.addEventListener(g,$e),Re.current=Bt)}return w.useEffect(function(){return function(){Et(Re.current)}},[]),[Ut,Et]};function le(qe,Re,Lt,$e){var Et=$e.motionEnter,Ut=Et===void 0?!0:Et,Bt=$e.motionAppear,_t=Bt===void 0?!0:Bt,jt=$e.motionLeave,He=jt===void 0?!0:jt,se=$e.motionDeadline,J=$e.motionLeaveImmediately,Ue=$e.onAppearPrepare,Le=$e.onEnterPrepare,ee=$e.onLeavePrepare,ct=$e.onAppearStart,Mt=$e.onEnterStart,ot=$e.onLeaveStart,Yt=$e.onAppearActive,or=$e.onEnterActive,Zr=$e.onLeaveActive,ir=$e.onAppearEnd,dr=$e.onEnterEnd,qt=$e.onLeaveEnd,Ht=$e.onVisibleChanged,lt=Object(R.a)(),Hr=Object(C.a)(lt,2),dn=Hr[0],Nn=Hr[1],Wn=Object(R.a)(x),gi=Object(C.a)(Wn,2),yn=gi[0],Mn=gi[1],Ft=Object(R.a)(null),bt=Object(C.a)(Ft,2),Oe=bt[0],Ee=bt[1],Ie=Object(w.useRef)(!1),Ye=Object(w.useRef)(null);function rt(){return Lt()}var ut=Object(w.useRef)(!1);function Ot(kt){var Sr=rt();if(kt&&!kt.deadline&&kt.target!==Sr)return;var hr=ut.current,gr;yn===T&&hr?gr=ir==null?void 0:ir(Sr,kt):yn===S&&hr?gr=dr==null?void 0:dr(Sr,kt):yn===b&&hr&&(gr=qt==null?void 0:qt(Sr,kt)),yn!==x&&hr&&gr!==!1&&(Mn(x,!0),Ee(null,!0))}var Ar=Z(Ot),Pr=Object(C.a)(Ar,1),un=Pr[0],It=w.useMemo(function(){var kt,Sr,hr;switch(yn){case T:return kt={},Object(_.a)(kt,I,Ue),Object(_.a)(kt,L,ct),Object(_.a)(kt,N,Yt),kt;case S:return Sr={},Object(_.a)(Sr,I,Le),Object(_.a)(Sr,L,Mt),Object(_.a)(Sr,N,or),Sr;case b:return hr={},Object(_.a)(hr,I,ee),Object(_.a)(hr,L,ot),Object(_.a)(hr,N,Zr),hr;default:return{}}},[yn]),nt=Q(yn,function(kt){if(kt===I){var Sr=It[I];return Sr?Sr(rt()):K}if(Pt in It){var hr;Ee(((hr=It[Pt])===null||hr===void 0?void 0:hr.call(It,rt(),null))||null)}return Pt===N&&(un(rt()),se>0&&(clearTimeout(Ye.current),Ye.current=setTimeout(function(){Ot({deadline:!0})},se))),V}),at=Object(C.a)(nt,2),rr=at[0],Pt=at[1],xt=z(Pt);ut.current=xt,F(function(){Nn(Re);var kt=Ie.current;if(Ie.current=!0,!qe)return;var Sr;!kt&&Re&&_t&&(Sr=T),kt&&Re&&Ut&&(Sr=S),(kt&&!Re&&He||!kt&&J&&!Re&&He)&&(Sr=b),Sr&&(Mn(Sr),rr())},[Re]),Object(w.useEffect)(function(){(yn===T&&!_t||yn===S&&!Ut||yn===b&&!He)&&Mn(x)},[_t,Ut,He]),Object(w.useEffect)(function(){return function(){Ie.current=!1,clearTimeout(Ye.current)}},[]);var Kt=w.useRef(!1);Object(w.useEffect)(function(){dn&&(Kt.current=!0),dn!==void 0&&yn===x&&((Kt.current||dn)&&(Ht==null||Ht(dn)),Kt.current=!0)},[dn,yn]);var yt=Oe;return It[I]&&Pt===L&&(yt=Object(E.a)({transition:"none"},yt)),[yn,Pt,yt,dn!=null?dn:Re]}var ne=d("1OyB"),ve=d("vuIU"),xe=d("Ji7U"),_e=d("LK+K"),Be=function(qe){Object(xe.a)(Lt,qe);var Re=Object(_e.a)(Lt);function Lt(){return Object(ne.a)(this,Lt),Re.apply(this,arguments)}return Object(ve.a)(Lt,[{key:"render",value:function(){return this.props.children}}]),Lt}(w.Component),me=Be;function Fe(qe){var Re=qe;Object(A.a)(qe)==="object"&&(Re=qe.transitionSupport);function Lt(Et){return!!(Et.motionName&&Re)}var $e=w.forwardRef(function(Et,Ut){var Bt=Et.visible,_t=Bt===void 0?!0:Bt,jt=Et.removeOnLeave,He=jt===void 0?!0:jt,se=Et.forceRender,J=Et.children,Ue=Et.motionName,Le=Et.leavedClassName,ee=Et.eventProps,ct=Lt(Et),Mt=Object(w.useRef)(),ot=Object(w.useRef)();function Yt(){try{return Mt.current instanceof HTMLElement?Mt.current:Object(m.a)(ot.current)}catch(Ft){return null}}var or=le(ct,_t,Yt,Et),Zr=Object(C.a)(or,4),ir=Zr[0],dr=Zr[1],qt=Zr[2],Ht=Zr[3],lt=w.useRef(Ht);Ht&&(lt.current=!0);var Hr=w.useCallback(function(Ft){Mt.current=Ft,Object(f.b)(Ut,Ft)},[Ut]),dn,Nn=Object(E.a)(Object(E.a)({},ee),{},{visible:_t});if(!J)dn=null;else if(ir===x||!Lt(Et))Ht?dn=J(Object(E.a)({},Nn),Hr):!He&<.current?dn=J(Object(E.a)(Object(E.a)({},Nn),{},{className:Le}),Hr):se?dn=J(Object(E.a)(Object(E.a)({},Nn),{},{style:{display:"none"}}),Hr):dn=null;else{var Wn,gi;dr===I?gi="prepare":z(dr)?gi="active":dr===L&&(gi="start"),dn=J(Object(E.a)(Object(E.a)({},Nn),{},{className:o()(y(Ue,ir),(Wn={},Object(_.a)(Wn,y(Ue,"".concat(ir,"-").concat(gi)),gi),Object(_.a)(Wn,Ue,typeof Ue=="string"),Wn)),style:qt}),Hr)}if(w.isValidElement(dn)&&Object(f.c)(dn)){var yn=dn,Mn=yn.ref;Mn||(dn=w.cloneElement(dn,{ref:Hr}))}return w.createElement(me,{ref:ot},dn)});return $e.displayName="CSSMotion",$e}var ie=Fe(p),te=d("wx14"),Ge=d("Ff2n"),oe="add",Y="keep",G="remove",X="removed";function fe(qe){var Re;return qe&&Object(A.a)(qe)==="object"&&"key"in qe?Re=qe:Re={key:qe},Object(E.a)(Object(E.a)({},Re),{},{key:String(Re.key)})}function de(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return qe.map(fe)}function Ce(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Lt=[],$e=0,Et=Re.length,Ut=de(qe),Bt=de(Re);Ut.forEach(function(He){for(var se=!1,J=$e;J<Et;J+=1){var Ue=Bt[J];if(Ue.key===He.key){$e<J&&(Lt=Lt.concat(Bt.slice($e,J).map(function(Le){return Object(E.a)(Object(E.a)({},Le),{},{status:oe})})),$e=J),Lt.push(Object(E.a)(Object(E.a)({},Ue),{},{status:Y})),$e+=1,se=!0;break}}se||Lt.push(Object(E.a)(Object(E.a)({},He),{},{status:G}))}),$e<Et&&(Lt=Lt.concat(Bt.slice($e).map(function(He){return Object(E.a)(Object(E.a)({},He),{},{status:oe})})));var _t={};Lt.forEach(function(He){var se=He.key;_t[se]=(_t[se]||0)+1});var jt=Object.keys(_t).filter(function(He){return _t[He]>1});return jt.forEach(function(He){Lt=Lt.filter(function(se){var J=se.key,Ue=se.status;return J!==He||Ue!==G}),Lt.forEach(function(se){se.key===He&&(se.status=Y)})}),Lt}var Me=["component","children","onVisibleChanged","onAllRemoved"],ue=["status"],Ae=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Te(qe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,Lt=function($e){Object(xe.a)(Ut,$e);var Et=Object(_e.a)(Ut);function Ut(){var Bt;Object(ne.a)(this,Ut);for(var _t=arguments.length,jt=new Array(_t),He=0;He<_t;He++)jt[He]=arguments[He];return Bt=Et.call.apply(Et,[this].concat(jt)),Bt.state={keyEntities:[]},Bt.removeKey=function(se){var J=Bt.state.keyEntities,Ue=J.map(function(Le){return Le.key!==se?Le:Object(E.a)(Object(E.a)({},Le),{},{status:X})});return Bt.setState({keyEntities:Ue}),Ue.filter(function(Le){var ee=Le.status;return ee!==X}).length},Bt}return Object(ve.a)(Ut,[{key:"render",value:function(){var _t=this,jt=this.state.keyEntities,He=this.props,se=He.component,J=He.children,Ue=He.onVisibleChanged,Le=He.onAllRemoved,ee=Object(Ge.a)(He,Me),ct=se||w.Fragment,Mt={};return Ae.forEach(function(ot){Mt[ot]=ee[ot],delete ee[ot]}),delete ee.keys,w.createElement(ct,ee,jt.map(function(ot){var Yt=ot.status,or=Object(Ge.a)(ot,ue),Zr=Yt===oe||Yt===Y;return w.createElement(Re,Object(te.a)({},Mt,{key:or.key,visible:Zr,eventProps:or,onVisibleChanged:function(dr){if(Ue==null||Ue(dr,{key:or.key}),!dr){var qt=_t.removeKey(or.key);qt===0&&Le&&Le()}}}),J)}))}}],[{key:"getDerivedStateFromProps",value:function(_t,jt){var He=_t.keys,se=jt.keyEntities,J=de(He),Ue=Ce(se,J);return{keyEntities:Ue.filter(function(Le){var ee=se.find(function(ct){var Mt=ct.key;return Le.key===Mt});return!(ee&&ee.status===X&&Le.status===G)})}}}]),Ut}(w.Component);return Lt.defaultProps={component:"div"},Lt}var Je=Te(p),At=B.b=ie},"8hn6":function(H,B){var d="#eee",_=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:_(),logAxis:_(),valueAxis:_(),categoryAxis:_(),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 _=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,l,t){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new E.Group,this.group.add(this._axisGroup),!n.get("show"))return;var s=n.getCoordSysModel(),u=w.layout(s,n),h=new C(n,u);_.each(o,h.add,h),this._axisGroup.add(h.getGroup()),_.each(r,function(p){n.get(p+".show")&&this["_"+p](n,s)},this),E.groupTransition(a,this._axisGroup,n),i.superCall(this,"render",n,e,l,t)},remove:function(){c(this)},_splitLine:function(n,e){var l=n.axis;if(l.scale.isBlank())return;var t=n.getModel("splitLine"),a=t.getModel("lineStyle"),s=a.get("color");s=_.isArray(s)?s:[s];for(var u=e.coordinateSystem.getRect(),h=l.isHorizontal(),p=0,g=l.getTicksCoords({tickModel:t}),v=[],y=[],x=a.getLineStyle(),T=0;T<g.length;T++){var S=l.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++%s.length,O=g[T].tickValue;this._axisGroup.add(new E.Line({anid:O!=null?"line_"+g[T].tickValue:null,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:y[0],y2:y[1]},style:_.defaults({stroke:s[b]},x),silent:!0}))}},_minorSplitLine:function(n,e){var l=n.axis,t=n.getModel("minorSplitLine"),a=t.getModel("lineStyle"),s=e.coordinateSystem.getRect(),u=l.isHorizontal(),h=l.getMinorTicksCoords();if(!h.length)return;for(var p=[],g=[],v=a.getLineStyle(),y=0;y<h.length;y++)for(var x=0;x<h[y].length;x++){var T=l.toGlobalCoord(h[y][x].coord);u?(p[0]=T,p[1]=s.y,g[0]=T,g[1]=s.y+s.height):(p[0]=s.x,p[1]=T,g[0]=s.x+s.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 _=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,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var t=e[l].exterior;E.fromPoints(t,i,n),C.min(o,o,i),C.max(r,r,n)}return l===0&&(o[0]=o[1]=r[0]=r[1]=0),this._rect=new _(o[0],o[1],r[0]-o[0],r[1]-o[1])},contain:function(f){var c=this.getBoundingRect(),o=this.geometries;if(!c.contain(f[0],f[1]))return!1;e:for(var r=0,i=o.length;r<i;r++){if(o[r].type!=="polygon")continue;var n=o[r].exterior,e=o[r].interiors;if(A.contain(n,f[0],f[1])){for(var l=0;l<(e?e.length:0);l++)if(A.contain(e[l]))continue e;return!0}}return!1},transformTo:function(f,c,o,r){var i=this.getBoundingRect(),n=i.width/i.height;o?r||(r=o/n):o=n*r;for(var e=new _(f,c,o,r),l=i.calculateTransform(e),t=this.geometries,a=0;a<t.length;a++){if(t[a].type!=="polygon")continue;for(var s=t[a].exterior,u=t[a].interiors,h=0;h<s.length;h++)C.applyTransform(s[h],s[h],l);for(var p=0;p<(u?u.length:0);p++)for(var h=0;h<u[p].length;h++)C.applyTransform(u[p][h],u[p][h],l)}i=this._rect,i.copy(e),this.center=[i.x+i.width/2,i.y+i.height/2]},cloneShallow:function(f){f==null&&(f=this.name);var c=new 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 _=d("ProS"),E=d("bYtY"),C=d("iLNv"),A=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var w=5;_.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}_.registerPreprocessor(A)},"8x+h":function(H,B,d){var _=d("Tghj"),E=_.__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 l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:f},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(i){if(!i)return;this.areas=A.map(i,function(n){return o(this.option,n)},this)},setBrushOption:function(i){this.brushOption=o(this.option,i),this.brushType=this.brushOption.brushType}});function o(i,n){return A.merge({brushType:i.brushType,brushMode:i.brushMode,transformable:i.transformable,brushStyle:new 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 _=d("lSNA"),E=d.n(_),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(ir,dr){var qt="cannot "+ir.method+" "+ir.action+" "+dr.status+"'",Ht=new Error(qt);return Ht.status=dr.status,Ht.method=ir.method,Ht.url=ir.action,Ht}function l(ir){var dr=ir.responseText||ir.response;if(!dr)return dr;try{return JSON.parse(dr)}catch(qt){return dr}}function t(ir){var dr=new XMLHttpRequest;ir.onProgress&&dr.upload&&(dr.upload.onprogress=function(Hr){Hr.total>0&&(Hr.percent=Hr.loaded/Hr.total*100),ir.onProgress(Hr)});var qt=new FormData;ir.data&&Object.keys(ir.data).forEach(function(lt){var Hr=ir.data[lt];if(Array.isArray(Hr)){Hr.forEach(function(dn){qt.append(lt+"[]",dn)});return}qt.append(lt,ir.data[lt])}),ir.file instanceof Blob?qt.append(ir.filename,ir.file,ir.file.name):qt.append(ir.filename,ir.file),dr.onerror=function(Hr){ir.onError(Hr)},dr.onload=function(){return dr.status<200||dr.status>=300?ir.onError(e(ir,dr),l(dr)):ir.onSuccess(l(dr),dr)},dr.open(ir.method,ir.action,!0),ir.withCredentials&&"withCredentials"in dr&&(dr.withCredentials=!0);var Ht=ir.headers||{};return Ht["X-Requested-With"]!==null&&dr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ht).forEach(function(lt){Ht[lt]!==null&&dr.setRequestHeader(lt,Ht[lt])}),dr.send(qt),{abort:function(){dr.abort()}}}var a=+new Date,s=0;function u(){return"rc-upload-"+a+"-"+ ++s}function h(ir,dr){return ir.indexOf(dr,ir.length-dr.length)!==-1}var p=function(ir,dr){if(ir&&dr){var qt=Array.isArray(dr)?dr:dr.split(","),Ht=ir.name||"",lt=ir.type||"",Hr=lt.replace(/\/.*$/,"");return qt.some(function(dn){var Nn=dn.trim();return Nn.charAt(0)==="."?h(Ht.toLowerCase(),Nn.toLowerCase()):/\/\*$/.test(Nn)?Hr===Nn.replace(/\/.*$/,""):lt===Nn})}return!0};function g(ir,dr){var qt=ir.createReader(),Ht=[];function lt(){qt.readEntries(function(Hr){var dn=Array.prototype.slice.apply(Hr);Ht=Ht.concat(dn);var Nn=!dn.length;Nn?dr(Ht):lt()})}lt()}var v=function(dr,qt,Ht){var lt=function Hr(dn,Nn){Nn=Nn||"",dn.isFile?dn.file(function(Wn){Ht(Wn)&&(dn.fullPath&&!Wn.webkitRelativePath&&(Object.defineProperties(Wn,{webkitRelativePath:{writable:!0}}),Wn.webkitRelativePath=dn.fullPath.replace(/^\//,""),Object.defineProperties(Wn,{webkitRelativePath:{writable:!1}})),qt([Wn]))}):dn.isDirectory&&g(dn,function(Wn){Wn.forEach(function(gi){Hr(gi,""+Nn+dn.name+"/")})})};dr.forEach(function(Hr){lt(Hr.webkitGetAsEntry())})},y=v,x=Object.assign||function(ir){for(var dr=1;dr<arguments.length;dr++){var qt=arguments[dr];for(var Ht in qt)Object.prototype.hasOwnProperty.call(qt,Ht)&&(ir[Ht]=qt[Ht])}return ir},T=function(){function ir(dr,qt){var Ht=[],lt=!0,Hr=!1,dn=void 0;try{for(var Nn=dr[Symbol.iterator](),Wn;!(lt=(Wn=Nn.next()).done)&&!(Ht.push(Wn.value),qt&&Ht.length===qt);lt=!0);}catch(gi){Hr=!0,dn=gi}finally{try{!lt&&Nn.return&&Nn.return()}finally{if(Hr)throw dn}}return Ht}return function(dr,qt){if(Array.isArray(dr))return dr;if(Symbol.iterator in Object(dr))return ir(dr,qt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function ir(dr,qt){for(var Ht=0;Ht<qt.length;Ht++){var lt=qt[Ht];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(dr,lt.key,lt)}}return function(dr,qt,Ht){return qt&&ir(dr.prototype,qt),Ht&&ir(dr,Ht),dr}}();function b(ir,dr,qt){return dr in ir?Object.defineProperty(ir,dr,{value:qt,enumerable:!0,configurable:!0,writable:!0}):ir[dr]=qt,ir}function O(ir,dr){var qt={};for(var Ht in ir){if(dr.indexOf(Ht)>=0)continue;if(!Object.prototype.hasOwnProperty.call(ir,Ht))continue;qt[Ht]=ir[Ht]}return qt}function I(ir,dr){if(!(ir instanceof dr))throw new TypeError("Cannot call a class as a function")}function L(ir,dr){if(!ir)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dr&&(typeof dr=="object"||typeof dr=="function")?dr:ir}function N(ir,dr){if(typeof dr!="function"&&dr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dr);ir.prototype=Object.create(dr&&dr.prototype,{constructor:{value:ir,enumerable:!1,writable:!0,configurable:!0}}),dr&&(Object.setPrototypeOf?Object.setPrototypeOf(ir,dr):ir.__proto__=dr)}var D=function(dr){return Object.keys(dr).reduce(function(qt,Ht){return(Ht.substr(0,5)==="data-"||Ht.substr(0,5)==="aria-"||Ht==="role")&&(qt[Ht]=dr[Ht]),qt},{})},R=function(ir){N(dr,ir);function dr(){var qt,Ht,lt,Hr;I(this,dr);for(var dn=arguments.length,Nn=Array(dn),Wn=0;Wn<dn;Wn++)Nn[Wn]=arguments[Wn];return Hr=(Ht=(lt=L(this,(qt=dr.__proto__||Object.getPrototypeOf(dr)).call.apply(qt,[this].concat(Nn))),lt),lt.state={uid:u()},lt.reqs={},lt.onChange=function(gi){var yn=gi.target.files;lt.uploadFiles(yn),lt.reset()},lt.onClick=function(gi){var yn=lt.fileInput;if(!yn)return;var Mn=lt.props,Ft=Mn.children,bt=Mn.onClick;Ft&&Ft.type==="button"&&(yn.parentNode.focus(),yn.parentNode.querySelector("button").blur()),yn.click(),bt&&bt(gi)},lt.onKeyDown=function(gi){gi.key==="Enter"&<.onClick()},lt.onFileDrop=function(gi){var yn=lt.props.multiple;if(gi.preventDefault(),gi.type==="dragover")return;if(lt.props.directory)y(Array.prototype.slice.call(gi.dataTransfer.items),lt.uploadFiles,function(Ft){return p(Ft,lt.props.accept)});else{var Mn=Array.prototype.slice.call(gi.dataTransfer.files).filter(function(Ft){return p(Ft,lt.props.accept)});yn===!1&&(Mn=Mn.slice(0,1)),lt.uploadFiles(Mn)}},lt.uploadFiles=function(gi){var yn=Array.prototype.slice.call(gi);yn.map(function(Mn){return Mn.uid=u(),Mn}).forEach(function(Mn){lt.upload(Mn,yn)})},lt.saveFileInput=function(gi){lt.fileInput=gi},Ht),L(lt,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,lt){var Hr=this,dn=this.props;if(!dn.beforeUpload)return setTimeout(function(){return Hr.post(Ht)},0);var Nn=dn.beforeUpload(Ht,lt);Nn&&Nn.then?Nn.then(function(Wn){var gi=Object.prototype.toString.call(Wn);return gi==="[object File]"||gi==="[object Blob]"?Hr.post(Wn):Hr.post(Ht)}).catch(function(Wn){console.log(Wn)}):Nn!==!1&&setTimeout(function(){return Hr.post(Ht)},0);return}},{key:"post",value:function(Ht){var lt=this;if(!this._isMounted)return;var Hr=this.props,dn=Hr.onStart,Nn=Hr.onProgress,Wn=Hr.transformFile,gi=Wn===void 0?function(yn){return yn}:Wn;new Promise(function(yn){var Mn=Hr.action;return typeof Mn=="function"&&(Mn=Mn(Ht)),yn(Mn)}).then(function(yn){var Mn=Ht.uid,Ft=Hr.customRequest||t,bt=Promise.resolve(gi(Ht)).then(function(Oe){var Ee=Hr.data;return typeof Ee=="function"&&(Ee=Ee(Oe)),Promise.all([Oe,Ee])}).catch(function(Oe){console.error(Oe)});bt.then(function(Oe){var Ee=T(Oe,2),Ie=Ee[0],Ye=Ee[1],rt={action:yn,filename:Hr.name,data:Ye,file:Ie,headers:Hr.headers,withCredentials:Hr.withCredentials,method:Hr.method||"post",onProgress:Nn?function(ut){Nn(ut,Ht)}:null,onSuccess:function(Ot,Ar){delete lt.reqs[Mn],Hr.onSuccess(Ot,Ht,Ar)},onError:function(Ot,Ar){delete lt.reqs[Mn],Hr.onError(Ot,Ar,Ht)}};dn(Ht),lt.reqs[Mn]=Ft(rt)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(Ht){var lt=this.reqs;if(Ht){var Hr=Ht;Ht&&Ht.uid&&(Hr=Ht.uid),lt[Hr]&<[Hr].abort&<[Hr].abort(),delete lt[Hr]}else Object.keys(lt).forEach(function(dn){lt[dn]&<[dn].abort&<[dn].abort(),delete lt[dn]})}},{key:"render",value:function(){var Ht,lt=this.props,Hr=lt.component,dn=lt.prefixCls,Nn=lt.className,Wn=lt.disabled,gi=lt.id,yn=lt.style,Mn=lt.multiple,Ft=lt.accept,bt=lt.children,Oe=lt.directory,Ee=lt.openFileDialogOnClick,Ie=lt.onMouseEnter,Ye=lt.onMouseLeave,rt=O(lt,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ut=n()((Ht={},b(Ht,dn,!0),b(Ht,dn+"-disabled",Wn),b(Ht,Nn,Nn),Ht)),Ot=Wn?{}:{onClick:Ee?this.onClick:function(){},onKeyDown:Ee?this.onKeyDown:function(){},onMouseEnter:Ie,onMouseLeave:Ye,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(Hr,x({},Ot,{className:ut,role:"button",style:yn}),r.a.createElement("input",x({},D(rt),{id:gi,type:"file",ref:this.saveFileInput,onClick:function(Pr){return Pr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ft,directory:Oe?"directory":null,webkitdirectory:Oe?"webkitdirectory":null,multiple:Mn,onChange:this.onChange})),bt)}}]),dr}(o.Component),k=R,M=Object.assign||function(ir){for(var dr=1;dr<arguments.length;dr++){var qt=arguments[dr];for(var Ht in qt)Object.prototype.hasOwnProperty.call(qt,Ht)&&(ir[Ht]=qt[Ht])}return ir},j=function(){function ir(dr,qt){for(var Ht=0;Ht<qt.length;Ht++){var lt=qt[Ht];lt.enumerable=lt.enumerable||!1,lt.configurable=!0,"value"in lt&&(lt.writable=!0),Object.defineProperty(dr,lt.key,lt)}}return function(dr,qt,Ht){return qt&&ir(dr.prototype,qt),Ht&&ir(dr,Ht),dr}}();function F(ir,dr){if(!(ir instanceof dr))throw new TypeError("Cannot call a class as a function")}function U(ir,dr){if(!ir)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dr&&(typeof dr=="object"||typeof dr=="function")?dr:ir}function K(ir,dr){if(typeof dr!="function"&&dr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dr);ir.prototype=Object.create(dr&&dr.prototype,{constructor:{value:ir,enumerable:!1,writable:!0,configurable:!0}}),dr&&(Object.setPrototypeOf?Object.setPrototypeOf(ir,dr):ir.__proto__=dr)}function V(){}var z=function(ir){K(dr,ir);function dr(){var qt,Ht,lt,Hr;F(this,dr);for(var dn=arguments.length,Nn=Array(dn),Wn=0;Wn<dn;Wn++)Nn[Wn]=arguments[Wn];return Hr=(Ht=(lt=U(this,(qt=dr.__proto__||Object.getPrototypeOf(dr)).call.apply(qt,[this].concat(Nn))),lt),lt.saveUploader=function(gi){lt.uploader=gi},Ht),U(lt,Hr)}return j(dr,[{key:"abort",value:function(Ht){this.uploader.abort(Ht)}},{key:"render",value:function(){return r.a.createElement(k,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 Q=z,Z=Q,le=function(ir,dr){var qt={};for(var Ht in ir)Object.prototype.hasOwnProperty.call(ir,Ht)&&dr.indexOf(Ht)<0&&(qt[Ht]=ir[Ht]);if(ir!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Ht=Object.getOwnPropertySymbols(ir);lt<Ht.length;lt++)dr.indexOf(Ht[lt])<0&&Object.prototype.propertyIsEnumerable.call(ir,Ht[lt])&&(qt[Ht[lt]]=ir[Ht[lt]]);return qt},ne=function(dr,qt){var Ht=dr.style,lt=dr.height,Hr=le(dr,["style","height"]);return o.createElement(or,m()({ref:qt},Hr,{type:"drag",style:m()(m()({},Ht),{height:lt})}))},ve=o.forwardRef(ne);ve.displayName="Dragger";var xe=ve,_e=d("UmKh"),Be=d("gZBC"),me=d.n(Be),Fe=d("+d4F"),ie=d.n(Fe),te=d("XAae"),Ge=d.n(te),oe=d("6xvX"),Y=d.n(oe),G=d("qPY4"),X=d.n(G),fe=d("QB+1"),de=d.n(fe),Ce=d("Qs3X"),Me=d.n(Ce),ue=d("0n0R");function Ae(){return!0}function Te(ir){return m()(m()({},ir),{lastModified:ir.lastModified,lastModifiedDate:ir.lastModifiedDate,name:ir.name,size:ir.size,type:ir.type,uid:ir.uid,percent:0,originFileObj:ir})}function Je(ir,dr){var qt=ir.uid!==void 0?"uid":"name";return dr.filter(function(Ht){return Ht[qt]===ir[qt]})[0]}function At(ir,dr){var qt=ir.uid!==void 0?"uid":"name",Ht=dr.filter(function(lt){return lt[qt]!==ir[qt]});return Ht.length===dr.length?null:Ht}var qe=function(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",qt=dr.split("/"),Ht=qt[qt.length-1],lt=Ht.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(lt)||[""])[0]},Re=function(dr){return dr.indexOf("image/")===0},Lt=function(dr){if(dr.type&&!dr.thumbUrl)return Re(dr.type);var qt=dr.thumbUrl||dr.url,Ht=qe(qt);return/^data:image\//.test(qt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Ht)?!0:/^data:/.test(qt)?!1:!Ht},$e=200;function Et(ir){return new Promise(function(dr){if(!ir.type||!Re(ir.type)){dr("");return}var qt=document.createElement("canvas");qt.width=$e,qt.height=$e,qt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat($e,"px; height: ").concat($e,"px; z-index: 9999; display: none;"),document.body.appendChild(qt);var Ht=qt.getContext("2d"),lt=new Image;lt.onload=function(){var Hr=lt.width,dn=lt.height,Nn=$e,Wn=$e,gi=0,yn=0;Hr<dn?(Wn=dn*($e/Hr),yn=-(Wn-Nn)/2):(Nn=Hr*($e/dn),gi=-(Nn-Wn)/2),Ht.drawImage(lt,gi,yn,Nn,Wn);var Mn=qt.toDataURL();document.body.removeChild(qt),dr(Mn)},lt.src=window.URL.createObjectURL(ir)})}var Ut=d("3S7+"),Bt=d("CFYs"),_t=d("H84U"),jt=d("2/Rp"),He=d("hkKa"),se=function(dr,qt){var Ht,lt=dr.listType,Hr=dr.previewFile,dn=dr.onPreview,Nn=dr.onDownload,Wn=dr.onRemove,gi=dr.locale,yn=dr.iconRender,Mn=dr.isImageUrl,Ft=dr.prefixCls,bt=dr.items,Oe=bt===void 0?[]:bt,Ee=dr.showPreviewIcon,Ie=dr.showRemoveIcon,Ye=dr.showDownloadIcon,rt=dr.removeIcon,ut=dr.downloadIcon,Ot=dr.progress,Ar=Object(He.a)();o.useEffect(function(){if(lt!=="picture"&<!=="picture-card")return;(Oe||[]).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()})})},[lt,Oe,Hr]);var Pr=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)},It=function(gr){Wn&&Wn(gr)},nt=function(gr){if(yn)return yn(gr,lt);var Jr=gr.status==="uploading",$r=Mn&&Mn(gr)?o.createElement(Ge.a,null):o.createElement(Y.a,null),kn=Jr?o.createElement(me.a,null):o.createElement(ie.a,null);return lt==="picture"?kn=Jr?o.createElement(me.a,null):$r:lt==="picture-card"&&(kn=Jr?gi.uploading:$r),kn},at=function(gr,Jr,$r,kn){var Dn={type:"text",size:"small",title:kn,onClick:function(Ai){Jr(),Object(ue.b)(gr)&&gr.props.onClick&&gr.props.onClick(Ai)},className:"".concat($r,"-list-item-card-actions-btn")};if(Object(ue.b)(gr)){var Zn=Object(ue.a)(gr,m()(m()({},gr.props),{onClick:function(){}}));return o.createElement(jt.a,m()({},Dn,{icon:Zn}))}return o.createElement(jt.a,Dn,o.createElement("span",null,gr))};o.useImperativeHandle(qt,function(){return{handlePreview:Pr,handleDownload:un}});var rr=o.useContext(_t.b),Pt=rr.getPrefixCls,xt=rr.direction,Kt=Pt("upload",Ft),yt=Oe.map(function(hr){var gr,Jr,$r,kn=nt(hr),Dn=o.createElement("div",{className:"".concat(Kt,"-text-icon")},kn);if(lt==="picture"||lt==="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},kn)}else{var Ai,Ii=Mn&&Mn(hr)?o.createElement("img",{src:hr.thumbUrl||hr.url,alt:hr.name,className:"".concat(Kt,"-list-item-image")}):kn,Qe=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:Qe,onClick:function(en){return Pr(hr,en)},href:hr.url||hr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ii)}if(hr.status==="uploading"){var Se="percent"in hr?o.createElement(Bt.a,m()({},Ot,{type:"line",percent:hr.percent})):null;$r=o.createElement("div",{className:"".concat(Kt,"-list-item-progress"),key:"progress"},Se)}var Ne=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(lt),!0),gr)),je=typeof hr.linkProps=="string"?JSON.parse(hr.linkProps):hr.linkProps,Xe=Ie?at(rt||o.createElement(de.a,null),function(){return It(hr)},Kt,gi.removeFile):null,ze=Ye&&hr.status==="done"?at(ut||o.createElement(Me.a,null),function(){return un(hr)},Kt,gi.downloadFile):null,Ze=lt!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(Kt,"-list-item-card-actions ").concat(lt==="picture"?"picture":"")},ze,Xe),wt=n()((Jr={},E()(Jr,"".concat(Kt,"-list-item-name"),!0),E()(Jr,"".concat(Kt,"-list-item-name-icon-count-").concat([ze,Xe].filter(function(mn){return mn}).length),!0),Jr)),st=hr.url?[o.createElement("a",m()({key:"view",target:"_blank",rel:"noopener noreferrer",className:wt,title:hr.name},je,{href:hr.url,onClick:function(en){return Pr(hr,en)}}),hr.name),Ze]:[o.createElement("span",{key:"view",className:wt,onClick:function(en){return Pr(hr,en)},title:hr.name},hr.name),Ze],Jt={pointerEvents:"none",opacity:.5},Rr=Ee?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 Pr(hr,en)},title:gi.previewFile},o.createElement(X.a,null)):null,Ir=lt==="picture-card"&&hr.status!=="uploading"&&o.createElement("span",{className:"".concat(Kt,"-list-item-actions")},Rr,hr.status==="done"&&ze,Xe),Xr;hr.response&&typeof hr.response=="string"?Xr=hr.response:Xr=hr.error&&hr.error.statusText||gi.uploadError;var er=o.createElement("span",null,Dn,st),pn=o.createElement("div",{className:Ne},o.createElement("div",{className:"".concat(Kt,"-list-item-info")},er),Ir,o.createElement(_e.a,{transitionName:"fade",component:""},$r)),fr=n()(E()({},"".concat(Kt,"-list-picture-card-container"),lt==="picture-card"));return o.createElement("div",{key:hr.uid,className:fr},hr.status==="error"?o.createElement(Ut.a,{title:Xr,getPopupContainer:function(en){return en.parentNode}},pn):o.createElement("span",null,pn))}),kt=n()((Ht={},E()(Ht,"".concat(Kt,"-list"),!0),E()(Ht,"".concat(Kt,"-list-").concat(lt),!0),E()(Ht,"".concat(Kt,"-list-rtl"),xt==="rtl"),Ht)),Sr=lt==="picture-card"?"animate-inline":"animate";return o.createElement(_e.a,{transitionName:"".concat(Kt,"-").concat(Sr),component:"div",className:kt},yt)},J=o.forwardRef(se);J.displayName="UploadList",J.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Et,isImageUrl:Lt};var Ue=J,Le=d("YMnH"),ee=d("ZvpZ"),ct=d("uaoM"),Mt=d("sPtV"),ot=function(dr,qt){var Ht,lt=dr.fileList,Hr=dr.defaultFileList,dn=dr.onRemove,Nn=dr.showUploadList,Wn=dr.listType,gi=dr.onPreview,yn=dr.onDownload,Mn=dr.previewFile,Ft=dr.disabled,bt=dr.locale,Oe=dr.iconRender,Ee=dr.isImageUrl,Ie=dr.progress,Ye=dr.prefixCls,rt=dr.className,ut=dr.type,Ot=dr.children,Ar=dr.style,Pr=Object(Mt.a)(lt||Hr||[]),un=c()(Pr,2),It=un[0],nt=un[1],at=o.useState("drop"),rr=c()(at,2),Pt=rr[0],xt=rr[1],Kt=o.useRef();o.useEffect(function(){nt(lt||Hr||[]),Object(ct.a)("fileList"in dr||!("value"in dr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in dr&&nt(lt||[])},[lt]);var yt=function(st){"fileList"in dr||nt(st.fileList);var Jt=dr.onChange;Jt&&Jt(m()(m()({},st),{fileList:A()(st.fileList)}))},kt=function(st){var Jt=Te(st);Jt.status="uploading";var Rr=It().concat(),Ir=Rr.findIndex(function(Xr){var er=Xr.uid;return er===Jt.uid});Ir===-1?Rr.push(Jt):Rr[Ir]=Jt,yt({file:Jt,fileList:Rr})},Sr=function(st,Jt,Rr){try{typeof st=="string"&&(st=JSON.parse(st))}catch(Xr){}var Ir=Je(Jt,It());if(!Ir)return;Ir.status="done",Ir.response=st,Ir.xhr=Rr,yt({file:m()({},Ir),fileList:It().concat()})},hr=function(st,Jt){var Rr=Je(Jt,It());if(!Rr)return;Rr.percent=st.percent,yt({event:st,file:m()({},Rr),fileList:It().concat()})},gr=function(st,Jt,Rr){var Ir=Je(Rr,It());if(!Ir)return;Ir.error=st,Ir.response=Jt,Ir.status="error",yt({file:m()({},Ir),fileList:It().concat()})},Jr=function(st){Promise.resolve(typeof dn=="function"?dn(st):dn).then(function(Jt){if(Jt===!1)return;var Rr=At(st,It());Rr&&(st.status="removed",Kt.current&&Kt.current.abort(st),yt({file:st,fileList:Rr}))})},$r=function(st){xt(st.type)},kn=function(st,Jt){var Rr=dr.beforeUpload;if(!Rr)return!0;var Ir=Rr(st,Jt);if(Ir===!1){var Xr=[];return It().concat(Jt.map(Te)).forEach(function(er){Xr.every(function(pn){return pn.uid!==er.uid})&&Xr.push(er)}),yt({file:st,fileList:Xr}),!1}return Ir&&Ir.then?Ir:!0},Dn=Object(He.a)();o.useImperativeHandle(qt,function(){return{onStart:kt,onSuccess:Sr,onProgress:hr,onError:gr,fileList:It(),upload:Kt.current,forceUpdate:Dn}});var Zn=function(st){var Jt=Nn.showRemoveIcon,Rr=Nn.showPreviewIcon,Ir=Nn.showDownloadIcon,Xr=Nn.removeIcon,er=Nn.downloadIcon;return o.createElement(Ue,{listType:Wn,items:It(),previewFile:Mn,onPreview:gi,onDownload:yn,onRemove:Jr,showRemoveIcon:!Ft&&Jt,showPreviewIcon:Rr,showDownloadIcon:Ir,removeIcon:Xr,downloadIcon:er,iconRender:Oe,locale:m()(m()({},st),bt),isImageUrl:Ee,progress:Ie})},li=o.useContext(_t.b),Ai=li.getPrefixCls,Ii=li.direction,Qe=Ai("upload",Ye),Se=m()(m()({onStart:kt,onError:gr,onProgress:hr,onSuccess:Sr},dr),{prefixCls:Qe,beforeUpload:kn});delete Se.className,delete Se.style,(!Ot||Ft)&&delete Se.id;var Ne=Nn?o.createElement(Le.a,{componentName:"Upload",defaultLocale:ee.a.Upload},Zn):null;if(ut==="drag"){var je,Xe=n()(Qe,(je={},E()(je,"".concat(Qe,"-drag"),!0),E()(je,"".concat(Qe,"-drag-uploading"),It().some(function(wt){return wt.status==="uploading"})),E()(je,"".concat(Qe,"-drag-hover"),Pt==="dragover"),E()(je,"".concat(Qe,"-disabled"),Ft),E()(je,"".concat(Qe,"-rtl"),Ii==="rtl"),je),rt);return o.createElement("span",null,o.createElement("div",{className:Xe,onDrop:$r,onDragOver:$r,onDragLeave:$r,style:Ar},o.createElement(Z,m()({},Se,{ref:Kt,className:"".concat(Qe,"-btn")}),o.createElement("div",{className:"".concat(Qe,"-drag-container")},Ot))),Ne)}var ze=n()(Qe,(Ht={},E()(Ht,"".concat(Qe,"-select"),!0),E()(Ht,"".concat(Qe,"-select-").concat(Wn),!0),E()(Ht,"".concat(Qe,"-disabled"),Ft),E()(Ht,"".concat(Qe,"-rtl"),Ii==="rtl"),Ht)),Ze=o.createElement("div",{className:ze,style:Ot?void 0:{display:"none"}},o.createElement(Z,m()({},Se,{ref:Kt})));return Wn==="picture-card"?o.createElement("span",{className:n()(rt,"".concat(Qe,"-picture-card-wrapper"))},Ne,Ze):o.createElement("span",{className:rt},Ze,Ne)},Yt=o.forwardRef(ot);Yt.Dragger=xe,Yt.displayName="Upload",Yt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:Ae,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var or=Yt;or.Dragger=xe;var Zr=B.a=or},"98bh":function(H,B,d){var _=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=_.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"),s=[],u=0,h=t.count();u<h;u++)s.push({name:t.getName(u),value:t.get(a,u),selected:o(t,u,"selected")});return s},getDataParams:function(t){var a=this.getData(),s=e.superCall(this,"getDataParams",t),u=[];return a.each(a.mapDimension("value"),function(h){u.push(h)}),s.percent=m(u,t,a.hostModel.get("percentPrecision")),s.$vars.push("percent"),s},_defaultLabelLine:function(t){A.defaultEmphasis(t,"labelLine",["show"]);var a=t.labelLine,s=t.emphasis.labelLine;a.show=a.show&&t.label.show,s.show=s.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});C.mixin(e,f);var l=e;H.exports=l},"9H2F":function(H,B,d){var _=d("bYtY"),E=_.assert,C=_.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,l=n&&n.skip;if(this._dirty&&e){var t=this.context;t.data=t.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!l&&(a=this._plan(this.context));var s=g(this._modBy),u=this._modDataCount||0,h=g(n&&n.modBy),p=n&&n.modDataCount||0;(s!==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,l)),this._modBy=h,this._modDataCount=p;var y=n&&n.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var x=this._dueIndex,T=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!l&&(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 O=this._settedOutputEnd!=null?this._settedOutputEnd:T;this._outputDueEnd=O}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=function(){var n,e,l,t,a,s={reset:function(p,g,v,y){e=p,n=g,l=v,t=y,a=Math.ceil(t/l),s.next=l>1&&t>0?h:u}};return s;function u(){return e<n?e++:null}function h(){var p=e%a*l+Math.ceil(e/a),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,l,t,a,s){o.reset(l,t,a,s),n._callingProgress=e,n._callingProgress({start:l,end:t,count:t-l,next:o.next},n.context)}function i(n,e){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var l,t;!e&&n._reset&&(l=n._reset(n.context),l&&l.progress&&(t=l.forceFirstProgress,l=l.progress),C(l)&&!l.length&&(l=null)),n._progress=l,n._modBy=n._modDataCount=null;var a=n._downstream;return a&&a.dirty(),t}c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(n){(this._downstream!==n||this._dirty)&&(this._downstream=n,n._upstream=this,n.dirty())},c.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(n){this._outputDueEnd=this._settedOutputEnd=n},B.createTask=m},"9KIM":function(H,B,d){var _=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,l=n?o.x:o.y;return[l,l+(e||0)]}}function f(o,r,i){return o=c(o),function(n,e,l){return o.contain(e[0],e[1])&&!C(n,r,i)}}function c(o){return _.create(o)}B.makeRectPanelClipPath=w,B.makeLinearBrushOtherExtent=m,B.makeRectIsTargetByCursor=f},"9OqN":function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.mode.CTR=function(){var E=_.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}(),_.mode.CTR})},"9ama":function(H,B,d){},"9eas":function(H,B,d){d("HM/N"),d("tBnm")},"9hCq":function(H,B,d){var _=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 _.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,l,t,a){var s=e.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!s.get("show")||!t)return;var h=s.getModel("itemStyle"),p=h.getModel("textStyle"),g={pos:{left:s.get("left"),right:s.get("right"),top:s.get("top"),bottom:s.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:s.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(t,g,p),this._renderContent(e,g,h,p,a),E.positionElement(u,g.pos,g.box)},_prepare:function(e,l,t){for(var a=e;a;a=a.parentNode){var s=a.getModel().get("name"),u=t.getTextRect(s),h=Math.max(u.width+m*2,l.emptyItemWidth);l.totalWidth+=h+f,l.renderList.push({node:a,text:s,width:h})}},_renderContent:function(e,l,t,a,s){for(var u=0,h=l.emptyItemWidth,p=e.get("breadcrumb.height"),g=E.getAvailableSize(l.pos,l.box),v=l.totalWidth,y=l.renderList,x=y.length-1;x>=0;x--){var T=y[x],S=T.node,b=T.width,O=T.text;v>g.width&&(v-=b-h,b=h,O=null);var I=new _.Polygon({shape:{points:r(u,0,b,p,x===y.length-1,x===0)},style:C.defaults(t.getItemStyle(),{lineJoin:"bevel",text:O,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:C.curry(s,S)});this.group.add(I),i(I,e,S),u+=b+f}},remove:function(){this.group.removeAll()}};function r(e,l,t,a,s,u){var h=[[s?e:e-c,l],[e+t,l],[e+t,l+a],[s?e:e-c,l+a]];return!u&&h.splice(2,0,[e+t+c,l+a/2]),!s&&h.push([e,l+a/2]),h}function i(e,l,t){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&w(t,l)}}var n=o;H.exports=n},"9u0u":function(H,B,d){var _=d("bYtY");function E(A,w){var m={};return _.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,l=0;l<e;l++)i=Math.min(i,m[o][l]),n=Math.max(n,m[o][l]),r+=m[o][l];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)}),_.each(w,function(m,f){for(var c=E(_.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 _=d("IwbS"),E=d("FBjb"),C=d("bYtY"),A=C.isObject;function w(i){this.group=new _.Group,this._symbolCtor=i||E}var m=w.prototype;function f(i,n,e,l){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(n[0],n[1]))&&i.getItemVisual(e,"symbol")!=="none"}m.updateData=function(i,n){n=c(n);var e=this.group,l=i.hostModel,t=this._data,a=this._symbolCtor,s=o(i);t||e.removeAll(),i.diff(t).add(function(u){var h=i.getItemLayout(u);if(f(i,h,u,n)){var p=new a(i,u,s);p.attr("position",h),i.setItemGraphicEl(u,p),e.add(p)}}).update(function(u,h){var p=t.getItemGraphicEl(h),g=i.getItemLayout(u);if(!f(i,g,u,n)){e.remove(p);return}p?(p.updateData(i,u,s),_.updateProps(p,{position:g},l)):(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 l=i.getItemLayout(e);n.attr("position",l)})},m.incrementalPrepareUpdate=function(i){this._seriesScope=o(i),this._data=null,this.group.removeAll()},m.incrementalUpdate=function(i,n,e){e=c(e);function l(u){u.isGroup||(u.incremental=u.useHoverLayer=!0)}for(var t=i.start;t<i.end;t++){var a=n.getItemLayout(t);if(f(n,a,t,e)){var s=new this._symbolCtor(n,t,this._seriesScope);s.traverse(l),s.attr("position",a),this.group.add(s),n.setItemGraphicEl(t,s)}}};function c(i){return i!=null&&!A(i)&&(i={isIgnore:i}),i||{}}m.remove=function(i){var n=this.group,e=this._data;e&&i?e.eachItemGraphicEl(function(l){l.fadeOut(function(){n.remove(l)})}):n.removeAll()};function o(i){var n=i.hostModel;return{itemStyle:n.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:n.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:n.get("symbolRotate"),symbolOffset:n.get("symbolOffset"),hoverAnimation:n.get("hoverAnimation"),labelModel:n.getModel("label"),hoverLabelModel:n.getModel("emphasis.label"),cursorStyle:n.get("cursor")}}var r=w;H.exports=r},"9yH6":function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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("ID/q"),l=d("uaoM"),t=function(L,N){var D={};for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&N.indexOf(R)<0&&(D[R]=L[R]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,R=Object.getOwnPropertySymbols(L);k<R.length;k++)N.indexOf(R[k])<0&&Object.prototype.propertyIsEnumerable.call(L,R[k])&&(D[R[k]]=L[R[k]]);return D},a=function(N,D){var R,k=w.useContext(n),M=w.useContext(o.b),j=M.getPrefixCls,F=M.direction,U=w.useRef(),K=Object(e.a)(D,U);w.useEffect(function(){Object(l.a)(!("optionType"in N),"Radio","`optionType` is only support in Radio.Group.")},[]);var V=function(me){N.onChange&&N.onChange(me),(k==null?void 0:k.onChange)&&k.onChange(me)},z=N.prefixCls,Q=N.className,Z=N.children,le=N.style,ne=t(N,["prefixCls","className","children","style"]),ve=j("radio",z),xe=A()({},ne);k&&(xe.name=k.name,xe.onChange=V,xe.checked=N.value===k.value,xe.disabled=N.disabled||k.disabled);var _e=c()(Q,(R={},E()(R,"".concat(ve,"-wrapper"),!0),E()(R,"".concat(ve,"-wrapper-checked"),xe.checked),E()(R,"".concat(ve,"-wrapper-disabled"),xe.disabled),E()(R,"".concat(ve,"-wrapper-rtl"),F==="rtl"),R));return w.createElement("label",{className:_e,style:le,onMouseEnter:N.onMouseEnter,onMouseLeave:N.onMouseLeave},w.createElement(m.a,A()({},xe,{prefixCls:ve,ref:K})),Z!==void 0?w.createElement("span",null,Z):null)},s=w.forwardRef(a);s.displayName="Radio",s.defaultProps={type:"radio"};var u=s,h=d("J4zp"),p=d.n(h),g=d("6cGi"),v=d("3Nzz"),y=w.forwardRef(function(L,N){var D=w.useContext(o.b),R=D.getPrefixCls,k=D.direction,M=w.useContext(v.b),j=Object(g.a)(L.defaultValue,{value:L.value}),F=p()(j,2),U=F[0],K=F[1],V=function(Z){var le=U,ne=Z.target.value;"value"in L||K(ne);var ve=L.onChange;ve&&ne!==le&&ve(Z)},z=function(){var Z,le=L.prefixCls,ne=L.className,ve=ne===void 0?"":ne,xe=L.options,_e=L.optionType,Be=L.buttonStyle,me=L.disabled,Fe=L.children,ie=L.size,te=L.style,Ge=L.id,oe=L.onMouseEnter,Y=L.onMouseLeave,G=R("radio",le),X="".concat(G,"-group"),fe=Fe;if(xe&&xe.length>0){var de=_e==="button"?"".concat(G,"-button"):G;fe=xe.map(function(ue){return typeof ue=="string"?w.createElement(u,{ref:N,key:ue,prefixCls:de,disabled:me,value:ue,checked:U===ue},ue):w.createElement(u,{ref:N,key:"radio-group-value-options-".concat(ue.value),prefixCls:de,disabled:ue.disabled||me,value:ue.value,checked:U===ue.value,style:ue.style},ue.label)})}var Ce=ie||M,Me=c()(X,"".concat(X,"-").concat(Be),(Z={},E()(Z,"".concat(X,"-").concat(Ce),Ce),E()(Z,"".concat(X,"-rtl"),k==="rtl"),Z),ve);return w.createElement("div",{className:Me,style:te,onMouseEnter:oe,onMouseLeave:Y,id:Ge},fe)};return w.createElement(i,{value:{onChange:V,value:U,disabled:L.disabled,name:L.name}},z())});y.defaultProps={buttonStyle:"outline"};var x=w.memo(y),T=function(L,N){var D={};for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&N.indexOf(R)<0&&(D[R]=L[R]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,R=Object.getOwnPropertySymbols(L);k<R.length;k++)N.indexOf(R[k])<0&&Object.prototype.propertyIsEnumerable.call(L,R[k])&&(D[R[k]]=L[R[k]]);return D},S=function(N,D){var R=w.useContext(n),k=w.useContext(o.b),M=k.getPrefixCls,j=N.prefixCls,F=T(N,["prefixCls"]),U=M("radio-button",j);return R&&(F.checked=N.value===R.value,F.disabled=N.disabled||R.disabled),w.createElement(u,A()({prefixCls:U},F,{type:"radio",ref:D}))},b=w.forwardRef(S),O=u;O.Button=b,O.Group=x;var I=B.a=O},A1Ka:function(H,B,d){var _=d("bLfw"),E=d("sS/r"),C=d("D5nY"),A=C.detectSourceFormat,w=d("k9D9"),m=w.SERIES_LAYOUT_BY_COLUMN;_.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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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,l=e.getFont(),t=e.getTextColor(),a=this._getItemAlign(),s=i.itemSize,u=this._getViewData(),h=u.endsText,p=_.retrieve(i.get("showLabel",!0),!h);h&&this._renderEndsText(r,h[0],s,p,a),_.each(u.viewPieceList,g,this),h&&this._renderEndsText(r,h[1],s,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=_.bind(this._onItemClick,this,y),this._enableHoverLink(x,v.indexInModelPieceList);var T=i.getRepresentValue(y);if(this._createItemSymbol(x,T,[0,0,s[0],s[1]]),p){var S=this.visualMapModel.getValueState(T);x.add(new C.Text({style:{x:a==="right"?-n:s[0]+n,y:s[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:a,textFont:l,textFill:t,opacity:S==="outOfRange"?.5:1}}))}r.add(x)}},_enableHoverLink:function(r,i){r.on("mouseover",_.bind(n,this,"highlight")).on("mouseout",_.bind(n,this,"downplay"));function n(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:f.makeHighDownBatch(l.findTargetDataIndices(i),l)})}},_getItemAlign:function(){var r=this.visualMapModel,i=r.option;if(i.orient==="vertical")return f.getItemAlign(r,this.api,r.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},_renderEndsText:function(r,i,n,e,l){if(!i)return;var t=new C.Group,a=this.visualMapModel.textStyleModel;t.add(new C.Text({style:{x:e?l==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:i,textFont:a.getFont(),textFill:a.getTextColor()}})),r.add(t)},_getViewData:function(){var r=this.visualMapModel,i=_.map(r.getPieceList(),function(t,a){return{piece:t,indexInModelPieceList:a}}),n=r.get("text"),e=r.get("orient"),l=r.get("inverse");return(e==="horizontal"?l:!l)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},_createItemSymbol:function(r,i,n){r.add(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=_.clone(n.selected),l=i.getSelectedMapKey(r);n.selectedMode==="single"?(e[l]=!0,_.each(e,function(t,a){e[a]=a===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=c;H.exports=o},AEZ6:function(H,B,d){var _=d("bYtY"),E=_.each,C=_.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,l){o===e&&n.push(i.getRawIndex(l))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function f(o,r){if(o.encodeDefine)return;var i=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!i)return;var n=o.encodeDefine=C();E(i.dimensions,function(e){var l=c(e);n.set(e,l)})}function c(o){return+o.replace("dim","")}H.exports=m},AH3D:function(H,B,d){var _=d("ProS");d("y4/Y"),d("qWt2"),d("Qvb6"),_.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),_.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("5GtS"),A=d("4NO4"),w=A.defaultEmphasis,m=d("D5nY"),f=m.makeSeriesEncodeForNameBased,c=d("xKMd"),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),l=n.mapDimension("value"),t=n.getSum(l);return e.percent=t?+(n.get(l,i)/t*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),r=o;H.exports=r},ALsQ:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.mode.CFB=function(){var E=_.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}(),_.mode.CFB})},ANjR:function(H,B,d){var _=d("bYtY");function E(A,w){return w=w||[0,0],_.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:_.bind(E,A)}}}H.exports=C},AOa7:function(H,B,d){},AUH6:function(H,B,d){var _=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 l=this._rawTransformable;if(l.transform=n.calculateTransform(new E(c,o,r,i)),l.decomposeTransform(),e){var t=l.scale;t[1]=-t[1]}l.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return o[r]},addGeoCoord:function(c,o){this._nameCoordMap.set(c,o)},getGeoCoord:function(c){return this._nameCoordMap.get(c)},getBoundingRect:function(){return this._rect},dataToPoint:function(c,o,r){if(typeof c=="string"&&(c=this.getGeoCoord(c)),c)return C.prototype.dataToPoint.call(this,c,o,r)},convertToPixel:_.curry(m,"dataToPoint"),convertFromPixel:_.curry(m,"pointToData")},_.mixin(w,C);function m(c,o,r,i){var n=r.geoModel,e=r.seriesModel,l=n?n.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[c](i):null}var f=w;H.exports=f},AVZG:function(H,B,d){var _=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(),l=[e.x,e.x+e.width,e.y,e.y+e.height],t={left:0,right:1,top:0,bottom:1,onZero:2},a=A.get("offset")||0,s=n==="x"?[l[2]-a,l[3]+a]:[l[0]-a,l[1]+a];if(o){var u=o.toGlobalCoord(o.dataToCoord(0));s[t.onZero]=Math.max(Math.min(u,s[1]),s[0])}c.position=[n==="y"?s[t[i]]:l[0],n==="x"?s[t[i]]:l[3]],c.rotation=Math.PI/2*(n==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};c.labelDirection=c.tickDirection=c.nameDirection=h[r],c.labelOffset=o?s[t[r]]-s[t.onZero]:0,A.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),_.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 _(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=_},Ae16:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("IwbS");d("Wqna"),d("rySg"),_.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}))}}),_.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("PQMj"),A=d.n(C)},"B+YJ":function(H,B,d){d("TYVI"),d("p1MT")},"B6l+":function(H,B,d){var _=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+_(f-o,c):m}H.exports=w},B9cy:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("0XgM"),A=d.n(C)},B9fm:function(H,B,d){var _=d("bYtY"),E=d("Qe9p"),C=d("YH21"),A=d("Ze12"),w=d("ItGF"),m=d("7aKB"),f=_.each,c=m.toCamelCase,o=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function i(s){var u="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+s+"s "+u+",top "+s+"s "+u;return _.map(o,function(p){return p+"transition:"+h}).join(";")}function n(s){var u=[],h=s.get("fontSize"),p=s.getTextColor();return p&&u.push("color:"+p),u.push("font:"+s.getFont()),h&&u.push("line-height:"+Math.round(h*3/2)+"px"),f(["decoration","align"],function(g){var v=s.get(g);v&&u.push("text-"+g+":"+v)}),u.join(";")}function e(s){var u=[],h=s.get("transitionDuration"),p=s.get("backgroundColor"),g=s.getModel("textStyle"),v=s.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=s.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 l(s,u,h,p,g){var v=u&&u.painter;if(h){var y=v&&v.getViewportRoot();y&&A.transformLocalCoord(s,y,document.body,p,g)}else{s[0]=p,s[1]=g;var x=v&&v.getViewportRootOffset();x&&(s[0]+=x.offsetLeft,s[1]+=x.offsetTop)}}function t(s,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],l(this._styleCoord,g,v,u.getWidth()/2,u.getHeight()/2),v?document.body.appendChild(p):s.appendChild(p),this._container=s,this._show=!1,this._hideTimeout;var y=this;p.onmouseenter=function(){y._enterable&&(clearTimeout(y._hideTimeout),y._show=!0),y._inContent=!0},p.onmousemove=function(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 s=this._container,u=s.currentStyle||document.defaultView.getComputedStyle(s),h=s.style;h.position!=="absolute"&&u.position!=="absolute"&&(h.position="relative")},show:function(s){clearTimeout(this._hideTimeout);var u=this.el,h=this._styleCoord;u.style.cssText=r+e(s)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(s.get("extraCssText")||""),u.style.display=u.innerHTML?"block":"none",u.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(s){this.el.innerHTML=s==null?"":s},setEnterable:function(s){this._enterable=s},getSize:function(){var s=this.el;return[s.clientWidth,s.clientHeight]},moveTo:function(s,u){var h=this._styleCoord;l(h,this._zr,this._appendToBody,s,u);var p=this.el.style;p.left=h[0]+"px",p.top=h[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(s){this._show&&!(this._inContent&&this._enterable)&&(s?(this._hideDelay=s,this._show=!1,this._hideTimeout=setTimeout(_.bind(this.hide,this),s)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var s=this.el.clientWidth,u=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(s+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),u+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:s,height:u}}};var a=t;H.exports=a},BPZU:function(H,B){var d=32,_=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,l){var t=n+1;if(t===e)return 1;if(l(i[t++],i[n])<0){for(;t<e&&l(i[t],i[t-1])<0;)t++;w(i,n,t)}else for(;t<e&&l(i[t],i[t-1])>=0;)t++;return t-n}function w(i,n,e){for(e--;n<e;){var l=i[n];i[n++]=i[e],i[e--]=l}}function m(i,n,e,l,t){for(l===n&&l++;l<e;l++){for(var a=i[l],s=n,u=l,h;s<u;)h=s+u>>>1,t(a,i[h])<0?u=h:s=h+1;var p=l-s;switch(p){case 3:i[s+3]=i[s+2];case 2:i[s+2]=i[s+1];case 1:i[s+1]=i[s];break;default:for(;p>0;)i[s+p]=i[s+p-1],p--}i[s]=a}}function f(i,n,e,l,t,a){var s=0,u=0,h=1;if(a(i,n[e+t])>0){for(u=l-t;h<u&&a(i,n[e+t+h])>0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),s+=t,h+=t}else{for(u=t+1;h<u&&a(i,n[e+t-h])<=0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=s;s=t-h,h=t-p}for(s++;s<h;){var g=s+(h-s>>>1);a(i,n[e+g])>0?s=g+1:h=g}return h}function c(i,n,e,l,t,a){var s=0,u=0,h=1;if(a(i,n[e+t])<0){for(u=t+1;h<u&&a(i,n[e+t-h])<0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=s;s=t-h,h=t-p}else{for(u=l-t;h<u&&a(i,n[e+t+h])>=0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),s+=t,h+=t}for(s++;s<h;){var g=s+(h-s>>>1);a(i,n[e+g])<0?h=g:s=g+1}return h}function o(i,n){var e=_,l=0,t=E,a=0,s,u,h=0;l=i.length,l<2*E&&(t=l>>>1);var p=[];a=l<120?5:l<1542?10:l<119151?19:40,s=[],u=[];function g(b,O){s[h]=b,u[h]=O,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 O=s[b],I=u[b],L=s[b+1],N=u[b+1];u[b]=I+N,b===h-3&&(s[b+1]=s[b+2],u[b+1]=u[b+2]),h--;var D=c(i[L],i,O,I,0,n);if(O+=D,I-=D,I===0)return;if(N=f(i[O+I-1],i,L,N,N-1,n),N===0)return;I<=N?T(O,I,L,N):S(O,I,L,N)}function T(b,O,I,L){var N=0;for(N=0;N<O;N++)p[N]=i[b+N];var D=0,R=I,k=b;if(i[k++]=i[R++],--L===0){for(N=0;N<O;N++)i[k+N]=p[D+N];return}if(O===1){for(N=0;N<L;N++)i[k+N]=i[R+N];i[k+L]=p[D];return}for(var M=e,j,F,U;;){j=0,F=0,U=!1;do if(n(i[R],p[D])<0){if(i[k++]=i[R++],F++,j=0,--L===0){U=!0;break}}else if(i[k++]=p[D++],j++,F=0,--O===1){U=!0;break}while((j|F)<M);if(U)break;do{if(j=c(i[R],p,D,O,0,n),j!==0){for(N=0;N<j;N++)i[k+N]=p[D+N];if(k+=j,D+=j,O-=j,O<=1){U=!0;break}}if(i[k++]=i[R++],--L===0){U=!0;break}if(F=f(p[D],i,R,L,0,n),F!==0){for(N=0;N<F;N++)i[k+N]=i[R+N];if(k+=F,R+=F,L-=F,L===0){U=!0;break}}if(i[k++]=p[D++],--O===1){U=!0;break}M--}while(j>=_||F>=_);if(U)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),O===1){for(N=0;N<L;N++)i[k+N]=i[R+N];i[k+L]=p[D]}else{if(O===0)throw new Error;for(N=0;N<O;N++)i[k+N]=p[D+N]}}function S(b,O,I,L){var N=0;for(N=0;N<L;N++)p[N]=i[I+N];var D=b+O-1,R=L-1,k=I+L-1,M=0,j=0;if(i[k--]=i[D--],--O===0){for(M=k-(L-1),N=0;N<L;N++)i[M+N]=p[N];return}if(L===1){for(k-=O,D-=O,j=k+1,M=D+1,N=O-1;N>=0;N--)i[j+N]=i[M+N];i[k]=p[R];return}for(var F=e;;){var U=0,K=0,V=!1;do if(n(p[R],i[D])<0){if(i[k--]=i[D--],U++,K=0,--O===0){V=!0;break}}else if(i[k--]=p[R--],K++,U=0,--L===1){V=!0;break}while((U|K)<F);if(V)break;do{if(U=O-c(p[R],i,b,O,O-1,n),U!==0){for(k-=U,D-=U,O-=U,j=k+1,M=D+1,N=U-1;N>=0;N--)i[j+N]=i[M+N];if(O===0){V=!0;break}}if(i[k--]=p[R--],--L===1){V=!0;break}if(K=L-f(i[D],p,0,L,L-1,n),K!==0){for(k-=K,R-=K,L-=K,j=k+1,M=R+1,N=0;N<K;N++)i[j+N]=p[M+N];if(L<=1){V=!0;break}}if(i[k--]=i[D--],--O===0){V=!0;break}F--}while(U>=_||K>=_);if(V)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),L===1){for(k-=O,D-=O,j=k+1,M=D+1,N=O-1;N>=0;N--)i[j+N]=i[M+N];i[k]=p[R]}else{if(L===0)throw new Error;for(M=k-(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,l){e||(e=0),l||(l=i.length);var t=l-e;if(t<2)return;var a=0;if(t<d){a=A(i,e,l,n),m(i,e,l,e+a,n);return}var s=new o(i,n),u=C(t);do{if(a=A(i,e,l,n),a<u){var h=t;h>u&&(h=u),m(i,e,e+h,e+a,n),a=h}s.pushRun(e,a),s.mergeRuns(),t-=a,e+=a}while(t!==0);s.forceMergeRuns()}H.exports=r},Bd2K:function(H,B,d){(function(_){_(d("VrN/"),d("osHv"))})(function(_){_.defineOption("autoCloseTags",!1,function(o,r,i){if(i!=_.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 _.Pass;for(var r=o.listSelections(),i=[],n=o.getOption("autoCloseTags"),e=0;e<r.length;e++){if(!r[e].empty())return _.Pass;var l=r[e].head,t=o.getTokenAt(l),a=_.innerMode(o.getMode(),t.state),s=a.state,u=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(s),h=u&&u.name;if(!h)return _.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>l.ch&&(h=h.slice(0,h.length-t.end+l.ch));var y=h.toLowerCase();if(!h||t.type=="string"&&(t.end!=l.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&u.close||t.string.indexOf("/")==l.ch-t.start-1||g&&f(g,y)>-1||c(o,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(s)||[],h,l,!0))return _.Pass;var x=typeof n=="object"&&n.emptyTags;if(x&&f(x,h)>-1){i[e]={text:"/>",newPos:_.Pos(l.line,l.ch+2)};continue}var T=v&&f(v,y)>-1;i[e]={indent:T,text:">"+(T?`
|
|
|
|
|
|
`:"")+"</"+h+">",newPos:T?_.Pos(l.line+1,0):_.Pos(l.line,l.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=o.listSelections().slice(0);O[e]={head:b.newPos,anchor:b.newPos},o.setSelections(O),!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?"/":"</",l=o.getOption("autoCloseTags"),t=typeof l=="object"&&l.dontIndentOnSlash,a=0;a<i.length;a++){if(!i[a].empty())return _.Pass;var s=i[a].head,u=o.getTokenAt(s),h=_.innerMode(o.getMode(),u.state),p=h.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=s.ch-1))return _.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],s))return _.Pass;g=e+y[y.length-1]}o.getLine(s.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")?_.Pass:w(o,!0)}_.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(!_.scanForClosingTag)return!1;var l=Math.min(o.lastLine()+1,n.line+500),t=_.scanForClosingTag(o,n,null,l);if(!t||t.tag!=i)return!1;for(var a=e?1:0,s=r.length-1;s>=0&&r[s]==i;s--)++a;n=t.to;for(var s=1;s<a;s++){var u=_.scanForClosingTag(o,n,null,l);if(!u||u.tag!=i)return!1;n=u.to}return!0}})},BlVb:function(H,B,d){var _=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[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[0],o[1],n[0],n[1],m,f)),c!==0}B.contain=A},BoS7:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("czTT"),A=d.n(C)},Bq2U:function(H,B,d){var _=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 O=S&&g[0].length,b=0;b<S;b++)for(var I=0;I<O;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 O=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<O;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,O,I){var L=g.length;if(I===1)for(var N=0;N<L;N++)O[N]=l(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++)O[N][R]=l(g[N][R],v[N][R],y[N][R],x[N][R],T,S,b)}function l(g,v,y,x,T,S,b){var O=(y-g)*.5,I=(x-v)*.5;return(2*(v-y)+O+I)*b+(-3*(v-y)-2*O-I)*S+O*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 s(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,O=g._setter,I=v==="spline",L=x.length;if(!L)return;var N=x[0].value,D=A(N),R=!1,k=!1,M=D?s(x):0,j;x.sort(function(Y,G){return Y.time-G.time}),j=x[L-1].time;for(var F=[],U=[],K=x[0].value,V=!0,z=0;z<L;z++){F.push(x[z].time/j);var Q=x[z].value;if(D&&n(Q,K,M)||!D&&Q===K||(V=!1),K=Q,typeof Q=="string"){var Z=E.parse(Q);Z?(Q=Z,R=!0):k=!0}U.push(Q)}if(!S&&V)return;for(var le=U[L-1],z=0;z<L-1;z++)D?i(U[z],le,M):isNaN(U[z])&&!isNaN(le)&&!k&&!R&&(U[z]=le);D&&i(b(g._target,T),le,M);var ne=0,ve=0,xe,_e,Be,me,Fe,ie;if(R)var te=[0,0,0,0];var Ge=function(G,X){var fe;if(X<0)fe=0;else if(X<ve){for(xe=Math.min(ne+1,L-1),fe=xe;fe>=0&&!(F[fe]<=X);fe--);fe=Math.min(fe,L-2)}else{for(fe=ne;fe<L&&!(F[fe]>X);fe++);fe=Math.min(fe-1,L-2)}ne=fe,ve=X;var de=F[fe+1]-F[fe];if(de===0)return;if(_e=(X-F[fe])/de,I)if(me=U[fe],Be=U[fe===0?fe:fe-1],Fe=U[fe>L-2?L-1:fe+1],ie=U[fe>L-3?L-1:fe+2],D)e(Be,me,Fe,ie,_e,_e*_e,_e*_e*_e,b(G,T),M);else{var Ce;if(R)Ce=e(Be,me,Fe,ie,_e,_e*_e,_e*_e*_e,te,1),Ce=a(te);else{if(k)return o(me,Fe,_e);Ce=l(Be,me,Fe,ie,_e,_e*_e,_e*_e*_e)}O(G,T,Ce)}else if(D)r(U[fe],U[fe+1],_e,b(G,T),M);else{var Ce;if(R)r(U[fe],U[fe+1],_e,te,1),Ce=a(te);else{if(k)return o(U[fe],U[fe+1],_e);Ce=c(U[fe],U[fe+1],_e)}O(G,T,Ce)}},oe=new _({target:g._target,life:j,loop:g._loop,delay:g._delay,onframe:Ge,ondestroy:y});return v&&v!=="spline"&&(oe.easing=v),oe}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 O in this._tracks){if(!this._tracks.hasOwnProperty(O))continue;var I=u(this,v,S,this._tracks[O],O,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 _={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=_},Bsck:function(H,B,d){var _=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||{},_.isString(r)&&(r={order:r});var e=r.order||"preorder",l=this[r.attr||"children"],t;e==="preorder"&&(t=i.call(n,this));for(var a=0;!t&&a<l.length;a++)l[a].eachNode(r,i,n);e==="postorder"&&i.call(n,this)},updateDepthAndHeight:function(r){var i=0;this.depth=r;for(var n=0;n<this.children.length;n++){var e=this.children[n];e.updateDepthAndHeight(r+1),e.height>i&&(i=e.height)}this.height=i+1},getNodeById:function(r){if(this.getId()===r)return this;for(var i=0,n=this.children,e=n.length;i<e;i++){var l=n[i].getNodeById(r);if(l)return l}},contains:function(r){if(r===this)return!0;for(var i=0,n=this.children,e=n.length;i<e;i++){var l=n[i].contains(r);if(l)return l}},getAncestors:function(r){for(var i=[],n=r?this:this.parentNode;n;)i.push(n),n=n.parentNode;return i.reverse(),i},getValue:function(r){var i=this.hostTree.data;return i.get(i.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,i)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var i=this.hostTree,n=i.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?n.getModel(r,e.getModel(r)):n.getModel(r)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,i)},getVisual:function(r,i){return this.hostTree.data.getItemVisual(this.dataIndex,r,i)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(r){for(var i=r.parentNode;i;){if(i===this)return!0;i=i.parentNode}return!1},isDescendantOf:function(r){return r!==this&&r.isAncestorOf(this)}};function f(r,i){this.root,this.data,this._nodes=[],this.hostModel=r,this.levelModels=_.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 l=new f(i,n&&n.levels),t=[],a=1;s(r);function s(p,g){var v=p.value;a=Math.max(a,_.isArray(v)?v.length:1),t.push(p);var y=new m(p.name,l);g?c(y,g):l.root=y,l._nodes.push(y);var x=p.children;if(x)for(var T=0;T<x.length;T++)s(x[T],y)}l.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:l,structAttr:"tree"}),l.update(),l};function c(r,i){var n=i.children;if(r.parentNode===i)return;n.push(r),r.parentNode=i}var o=f;H.exports=o},BtR2:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="LikeOutlined";var f=B.a=E.forwardRef(m)},BuqR:function(H,B,d){var _=d("Tghj"),E=_.__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,l){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var t=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(e,l);var a=this.option.categories;this.resetVisual(function(s,u){t==="categories"?(s.mappingMethod="category",s.categories=C.clone(a)):(s.dataExtent=this.getExtent(),s.mappingMethod="piecewise",s.pieceList=C.map(this._pieceList,function(h){var h=C.clone(h);return u!=="inRange"&&(h.visual=null),h}))})},completeVisualOption:function(){var e=this.option,l={},t=w.listVisualTypes(),a=this.isCategory();C.each(e.pieces,function(u){C.each(t,function(h){u.hasOwnProperty(h)&&(l[h]=1)})}),C.each(l,function(u,h){var p=0;C.each(this.stateList,function(g){p|=s(e,g,h)||s(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 s(u,h,p){return u&&u[h]&&(C.isObject(u[h])?u[h].hasOwnProperty(p):u[h]===p)}A.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var t=this.option,a=this._pieceList,s=(l?t:e).selected||{};if(t.selected=s,C.each(a,function(h,p){var g=this.getSelectedMapKey(h);s.hasOwnProperty(g)||(s[g]=!0)},this),t.selectedMode==="single"){var u=!1;C.each(a,function(h,p){var g=this.getSelectedMapKey(h);s[g]&&(u?s[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 l=w.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(t){var a=[],s=t.getData();s.each(this.getDataDimension(s),function(u,h){var p=w.findPieceIndex(u,this._pieceList);p===e&&a.push(h)},this),l.push({seriesId:t.id,dataIndex:a})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var t=e.interval||[];l=t[0]===-Infinity&&t[1]===Infinity?0:(t[0]+t[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],t=[],a=this;function s(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:l.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&&s([p,v[0]],"outOfRange"),s(v.slice()),p=v[1])},this),{stops:l,outerColors:t}}}),r={splitNumber:function(){var e=this.option,l=this._pieceList,t=Math.min(e.precision,20),a=this.getExtent(),s=e.splitNumber;s=Math.max(parseInt(s,10),1),e.splitNumber=s;for(var u=(a[1]-a[0])/s;+u.toFixed(t)!==u&&t<5;)t++;e.precision=t,u=+u.toFixed(t),e.minOpen&&l.push({interval:[-Infinity,a[0]],close:[0,0]});for(var h=0,p=a[0];h<s;p+=u,h++){var g=h===s-1?a[1]:p+u;l.push({interval:[p,g],close:[1,1]})}e.maxOpen&&l.push({interval:[a[1],Infinity],close:[0,0]}),c(l),C.each(l,function(v,y){v.index=y,v.text=this.formatValueText(v.interval)},this)},categories:function(){var e=this.option;C.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),i(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;C.each(e.pieces,function(t,a){C.isObject(t)||(t={value:t});var s={text:"",index:a};if(t.label!=null&&(s.text=t.label),t.hasOwnProperty("value")){var u=s.value=t.value;s.interval=[u,u],s.close=[1,1]}else{for(var h=s.interval=[],p=s.close=[0,0],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]&&(s.value=h[0])}s.visual=w.retrieveVisuals(t),l.push(s)},this),i(e,l),c(l),C.each(l,function(t){var a=t.close,s=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,s)},this)}};function i(e,l){var t=e.inverse;(e.orient==="vertical"?!t:t)&&l.reverse()}var n=o;H.exports=n},BvKs:function(H,B,d){"use strict";d.d(B,"a",function(){return It});var _=d("pVnL"),E=d.n(_),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"),l=d("VTBJ"),t=d("1OyB"),a=d("vuIU"),s=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),O=d("TSYQ"),I=d.n(O),L=d("U8pU"),N=d("ODXe"),D=/iPhone/i,R=/iPod/i,k=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,F=/\bAndroid(?:.+)SD4930UR\b/i,U=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,K=/Windows Phone/i,V=/\bWindows(?:.+)ARM\b/i,z=/BlackBerry/i,Q=/BB10/i,Z=/Opera Mini/i,le=/\b(CriOS|Chrome)(?:.+)Mobile/i,ne=/Mobile(?:.+)Firefox\b/i;function ve(nt,at){return nt.test(at)}function xe(nt){var at=nt||(typeof navigator!="undefined"?navigator.userAgent:""),rr=at.split("[FBAN");if(typeof rr[1]!="undefined"){var Pt=rr,xt=Object(N.a)(Pt,1);at=xt[0]}if(rr=at.split("Twitter"),typeof rr[1]!="undefined"){var Kt=rr,yt=Object(N.a)(Kt,1);at=yt[0]}var kt={apple:{phone:ve(D,at)&&!ve(K,at),ipod:ve(R,at),tablet:!ve(D,at)&&ve(k,at)&&!ve(K,at),device:(ve(D,at)||ve(R,at)||ve(k,at))&&!ve(K,at)},amazon:{phone:ve(F,at),tablet:!ve(F,at)&&ve(U,at),device:ve(F,at)||ve(U,at)},android:{phone:!ve(K,at)&&ve(F,at)||!ve(K,at)&&ve(M,at),tablet:!ve(K,at)&&!ve(F,at)&&!ve(M,at)&&(ve(U,at)||ve(j,at)),device:!ve(K,at)&&(ve(F,at)||ve(U,at)||ve(M,at)||ve(j,at))||ve(/\bokhttp\b/i,at)},windows:{phone:ve(K,at),tablet:ve(V,at),device:ve(K,at)||ve(V,at)},other:{blackberry:ve(z,at),blackberry10:ve(Q,at),opera:ve(Z,at),firefox:ve(ne,at),chrome:ve(le,at),device:ve(z,at)||ve(Q,at)||ve(Z,at)||ve(ne,at)||ve(le,at)},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 _e=Object(l.a)(Object(l.a)({},xe()),{},{isMobile:xe}),Be=_e;function me(){}function Fe(nt,at,rr){var Pt=at||"";return nt.key||"".concat(Pt,"item_").concat(rr)}function ie(nt){return"".concat(nt,"-menu-")}function te(nt,at){var rr=-1;e.Children.forEach(nt,function(Pt){rr+=1,Pt&&Pt.type&&Pt.type.isMenuItemGroup?e.Children.forEach(Pt.props.children,function(xt){rr+=1,at(xt,rr)}):at(Pt,rr)})}function Ge(nt,at,rr){if(!nt||rr.find)return;e.Children.forEach(nt,function(Pt){if(Pt){var xt=Pt.type;if(!xt||!(xt.isSubMenu||xt.isMenuItem||xt.isMenuItemGroup))return;at.indexOf(Pt.key)!==-1?rr.find=!0:Pt.props.children&&Ge(Pt.props.children,at,rr)}})}var oe=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Y=function(at){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=at&&typeof at.getBoundingClientRect=="function"&&at.getBoundingClientRect().width;if(Pt){if(rr){var xt=getComputedStyle(at),Kt=xt.marginLeft,yt=xt.marginRight;Pt+=+Kt.replace("px","")+ +yt.replace("px","")}Pt=+Pt.toFixed(6)}return Pt||0},G=function(at,rr,Pt){at&&Object(L.a)(at.style)==="object"&&(at.style[rr]=Pt)},X=function(){return Be.any},fe=d("KQm4"),de=d("Ff2n"),Ce=d("i8i4"),Me=d("bdgK"),ue=d("Uaa1"),Ae=d("HTfv"),Te={adjustX:1,adjustY:1},Je={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Te,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Te,offset:[4,0]}},At={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Te,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Te,offset:[4,0]}},qe=Je,Re=0,Lt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},$e=function(at,rr,Pt){var xt=ie(rr),Kt=at.getState();at.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},Kt.defaultActiveFirst),{},Object(y.a)({},xt,Pt))})},Et=function(nt){Object(u.a)(rr,nt);var at=Object(h.a)(rr);function rr(Pt){var xt;Object(t.a)(this,rr),xt=at.call(this,Pt),xt.onDestroy=function(gr){xt.props.onDestroy(gr)},xt.onKeyDown=function(gr){var Jr=gr.keyCode,$r=xt.menuInstance,kn=xt.props,Dn=kn.isOpen,Zn=kn.store;if(Jr===x.a.ENTER)return xt.onTitleClick(gr),$e(Zn,xt.props.eventKey,!0),!0;if(Jr===x.a.RIGHT)return Dn?$r.onKeyDown(gr):(xt.triggerOpenChange(!0),$e(Zn,xt.props.eventKey,!0)),!0;if(Jr===x.a.LEFT){var li;if(Dn)li=$r.onKeyDown(gr);else return;return li||(xt.triggerOpenChange(!1),li=!0),li}return Dn&&(Jr===x.a.UP||Jr===x.a.DOWN)?$r.onKeyDown(gr):void 0},xt.onOpenChange=function(gr){xt.props.onOpenChange(gr)},xt.onPopupVisibleChange=function(gr){xt.triggerOpenChange(gr,gr?"mouseenter":"mouseleave")},xt.onMouseEnter=function(gr){var Jr=xt.props,$r=Jr.eventKey,kn=Jr.onMouseEnter,Dn=Jr.store;$e(Dn,xt.props.eventKey,!1),kn({key:$r,domEvent:gr})},xt.onMouseLeave=function(gr){var Jr=xt.props,$r=Jr.parentMenu,kn=Jr.eventKey,Dn=Jr.onMouseLeave;$r.subMenuInstance=Object(s.a)(xt),Dn({key:kn,domEvent:gr})},xt.onTitleMouseEnter=function(gr){var Jr=xt.props,$r=Jr.eventKey,kn=Jr.onItemHover,Dn=Jr.onTitleMouseEnter;kn({key:$r,hover:!0}),Dn({key:$r,domEvent:gr})},xt.onTitleMouseLeave=function(gr){var Jr=xt.props,$r=Jr.parentMenu,kn=Jr.eventKey,Dn=Jr.onItemHover,Zn=Jr.onTitleMouseLeave;$r.subMenuInstance=Object(s.a)(xt),Dn({key:kn,hover:!1}),Zn({key:kn,domEvent:gr})},xt.onTitleClick=function(gr){var Jr=Object(s.a)(xt),$r=Jr.props;if($r.onTitleClick({key:$r.eventKey,domEvent:gr}),$r.triggerSubMenuAction==="hover")return;xt.triggerOpenChange(!$r.isOpen,"click"),$e($r.store,xt.props.eventKey,!1)},xt.onSubMenuClick=function(gr){typeof xt.props.onClick=="function"&&xt.props.onClick(xt.addKeyPath(gr))},xt.onSelect=function(gr){xt.props.onSelect(gr)},xt.onDeselect=function(gr){xt.props.onDeselect(gr)},xt.getPrefixCls=function(){return"".concat(xt.props.rootPrefixCls,"-submenu")},xt.getActiveClassName=function(){return"".concat(xt.getPrefixCls(),"-active")},xt.getDisabledClassName=function(){return"".concat(xt.getPrefixCls(),"-disabled")},xt.getSelectedClassName=function(){return"".concat(xt.getPrefixCls(),"-selected")},xt.getOpenClassName=function(){return"".concat(xt.props.rootPrefixCls,"-submenu-open")},xt.saveMenuInstance=function(gr){xt.menuInstance=gr},xt.addKeyPath=function(gr){return Object(l.a)(Object(l.a)({},gr),{},{keyPath:(gr.keyPath||[]).concat(xt.props.eventKey)})},xt.triggerOpenChange=function(gr,Jr){var $r=xt.props.eventKey,kn=function(){xt.onOpenChange({key:$r,item:Object(s.a)(xt),trigger:Jr,open:gr})};Jr==="mouseenter"?xt.mouseenterTimeout=setTimeout(function(){kn()},0):kn()},xt.isChildrenSelected=function(){var gr={find:!1};return Ge(xt.props.children,xt.props.selectedKeys,gr),gr.find},xt.isOpen=function(){return xt.props.openKeys.indexOf(xt.props.eventKey)!==-1},xt.adjustWidth=function(){if(!xt.subMenuTitle||!xt.menuInstance)return;var gr=Ce.findDOMNode(xt.menuInstance);if(gr.offsetWidth>=xt.subMenuTitle.offsetWidth)return;gr.style.minWidth="".concat(xt.subMenuTitle.offsetWidth,"px")},xt.saveSubMenuTitle=function(gr){xt.subMenuTitle=gr},xt.getBaseProps=function(){var gr=Object(s.a)(xt),Jr=gr.props;return{mode:Jr.mode==="horizontal"?"vertical":Jr.mode,visible:xt.props.isOpen,level:Jr.level+1,inlineIndent:Jr.inlineIndent,focusable:!1,onClick:xt.onSubMenuClick,onSelect:xt.onSelect,onDeselect:xt.onDeselect,onDestroy:xt.onDestroy,selectedKeys:Jr.selectedKeys,eventKey:"".concat(Jr.eventKey,"-menu-"),openKeys:Jr.openKeys,motion:Jr.motion,onOpenChange:xt.onOpenChange,subMenuOpenDelay:Jr.subMenuOpenDelay,parentMenu:Object(s.a)(xt),subMenuCloseDelay:Jr.subMenuCloseDelay,forceSubMenuRender:Jr.forceSubMenuRender,triggerSubMenuAction:Jr.triggerSubMenuAction,builtinPlacements:Jr.builtinPlacements,defaultActiveFirst:Jr.store.getState().defaultActiveFirst[ie(Jr.eventKey)],multiple:Jr.multiple,prefixCls:Jr.rootPrefixCls,id:xt.internalMenuId,manualRef:xt.saveMenuInstance,itemIcon:Jr.itemIcon,expandIcon:Jr.expandIcon,direction:Jr.direction}},xt.getMotion=function(gr,Jr){var $r=Object(s.a)(xt),kn=$r.haveRendered,Dn=xt.props,Zn=Dn.motion,li=Dn.rootPrefixCls,Ai=Object(l.a)(Object(l.a)({},Zn),{},{leavedClassName:"".concat(li,"-hidden"),removeOnLeave:!1,motionAppear:kn||!Jr||gr!=="inline"});return Ai};var Kt=Pt.store,yt=Pt.eventKey,kt=Kt.getState(),Sr=kt.defaultActiveFirst;xt.isRootMenu=!1;var hr=!1;return Sr&&(hr=Sr[yt]),$e(Kt,yt,hr),xt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var xt=this,Kt=this.props,yt=Kt.mode,kt=Kt.parentMenu,Sr=Kt.manualRef;if(Sr&&Sr(this),yt!=="horizontal"||!kt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return xt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var xt=this.props,Kt=xt.onDestroy,yt=xt.eventKey;Kt&&Kt(yt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(xt){var Kt=this,yt=this.getBaseProps(),kt=this.getMotion(yt.mode,yt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||yt.visible||yt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Sr=yt.direction;return e.createElement(Ae.default,Object.assign({visible:yt.visible},kt),function(hr){var gr=hr.className,Jr=hr.style,$r=I()("".concat(yt.prefixCls,"-sub"),gr,Object(y.a)({},"".concat(yt.prefixCls,"-rtl"),Sr==="rtl"));return e.createElement(Yt,Object.assign({},yt,{id:Kt.internalMenuId,className:$r,style:Jr}),xt)})}},{key:"render",value:function(){var xt,Kt=Object(l.a)({},this.props),yt=Kt.isOpen,kt=this.getPrefixCls(),Sr=Kt.mode==="inline",hr=I()(kt,"".concat(kt,"-").concat(Kt.mode),(xt={},Object(y.a)(xt,Kt.className,!!Kt.className),Object(y.a)(xt,this.getOpenClassName(),yt),Object(y.a)(xt,this.getActiveClassName(),Kt.active||yt&&!Sr),Object(y.a)(xt,this.getDisabledClassName(),Kt.disabled),Object(y.a)(xt,this.getSelectedClassName(),this.isChildrenSelected()),xt));this.internalMenuId||(Kt.eventKey?this.internalMenuId="".concat(Kt.eventKey,"$Menu"):(Re+=1,this.internalMenuId="$__$".concat(Re,"$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 kn={},Dn=Kt.direction;Sr&&(Dn==="rtl"?kn.paddingRight=Kt.inlineIndent*Kt.level:kn.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(l.a)({},this.props))));var Ai=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:kn,className:"".concat(kt,"-title"),role:"button"},$r,Jr,{"aria-expanded":yt},Zn,{"aria-haspopup":"true",title:typeof Kt.title=="string"?Kt.title:void 0}),Kt.title,li||e.createElement("i",{className:"".concat(kt,"-arrow")})),Ii=this.renderChildren(Kt.children),Qe=Kt.parentMenu.isRootMenu?Kt.parentMenu.props.getPopupContainer:function(Ir){return Ir.parentNode},Se=Lt[Kt.mode],Ne=Kt.popupOffset?{offset:Kt.popupOffset}:{},je=Kt.mode==="inline"?"":Kt.popupClassName;je+=Dn==="rtl"?" ".concat(kt,"-rtl"):"";var Xe=Kt.disabled,ze=Kt.triggerSubMenuAction,Ze=Kt.subMenuOpenDelay,wt=Kt.forceSubMenuRender,st=Kt.subMenuCloseDelay,Jt=Kt.builtinPlacements;oe.forEach(function(Ir){return delete Kt[Ir]}),delete Kt.onClick;var Rr=Dn==="rtl"?Object.assign({},At,Jt):Object.assign({},Je,Jt);return delete Kt.direction,e.createElement("li",Object.assign({},Kt,gr,{className:hr,role:"menuitem"}),Sr&&Ai,Sr&&Ii,!Sr&&e.createElement(ue.a,{prefixCls:kt,popupClassName:I()("".concat(kt,"-popup"),je),getPopupContainer:Qe,builtinPlacements:Rr,popupPlacement:Se,popupVisible:yt,popupAlign:Ne,popup:Ii,action:Xe?[]:[ze],mouseEnterDelay:Ze,mouseLeaveDelay:st,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:wt},Ai))}}]),rr}(e.Component);Et.defaultProps={onMouseEnter:me,onMouseLeave:me,onTitleMouseEnter:me,onTitleMouseLeave:me,onTitleClick:me,manualRef:me,mode:"vertical",title:""};var Ut=Object(p.b)(function(nt,at){var rr=nt.openKeys,Pt=nt.activeKey,xt=nt.selectedKeys,Kt=at.eventKey,yt=at.subMenuKey;return{isOpen:rr.indexOf(Kt)>-1,active:Pt[yt]===Kt,selectedKeys:xt}})(Et);Ut.isSubMenu=!0;var Bt=Ut,_t="menuitem-overflowed",jt=.5,He=function(nt){Object(u.a)(rr,nt);var at=Object(h.a)(rr);function rr(){var Pt;return Object(t.a)(this,rr),Pt=at.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.getMenuItemNodes=function(){var xt=Pt.props.prefixCls,Kt=Ce.findDOMNode(Object(s.a)(Pt));return Kt?[].slice.call(Kt.children).filter(function(yt){return yt.className.split(" ").indexOf("".concat(xt,"-overflowed-submenu"))<0}):[]},Pt.getOverflowedSubMenuItem=function(xt,Kt,yt){var kt=Pt.props,Sr=kt.overflowedIndicator,hr=kt.level,gr=kt.mode,Jr=kt.prefixCls,$r=kt.theme;if(hr!==1||gr!=="horizontal")return null;var kn=Pt.props.children[0],Dn=kn.props,Zn=Dn.children,li=Dn.title,Ai=Dn.style,Ii=Object(de.a)(Dn,["children","title","style"]),Qe=Object(l.a)({},Ai),Se="".concat(xt,"-overflowed-indicator"),Ne="".concat(xt,"-overflowed-indicator");Kt.length===0&&yt!==!0?Qe=Object(l.a)(Object(l.a)({},Qe),{},{display:"none"}):yt&&(Qe=Object(l.a)(Object(l.a)({},Qe),{},{visibility:"hidden",position:"absolute"}),Se="".concat(Se,"-placeholder"),Ne="".concat(Ne,"-placeholder"));var je=$r?"".concat(Jr,"-").concat($r):"",Xe={};return oe.forEach(function(ze){Ii[ze]!==void 0&&(Xe[ze]=Ii[ze])}),e.createElement(Bt,Object.assign({title:Sr,className:"".concat(Jr,"-overflowed-submenu"),popupClassName:je},Xe,{key:Se,eventKey:Ne,disabled:!1,style:Qe}),Kt)},Pt.setChildrenWidthAndResize=function(){if(Pt.props.mode!=="horizontal")return;var xt=Ce.findDOMNode(Object(s.a)(Pt));if(!xt)return;var Kt=xt.children;if(!Kt||Kt.length===0)return;var yt=xt.children[Kt.length-1];G(yt,"display","inline-block");var kt=Pt.getMenuItemNodes(),Sr=kt.filter(function(hr){return hr.className.split(" ").indexOf(_t)>=0});Sr.forEach(function(hr){G(hr,"display","inline-block")}),Pt.menuItemSizes=kt.map(function(hr){return Y(hr,!0)}),Sr.forEach(function(hr){G(hr,"display","none")}),Pt.overflowedIndicatorWidth=Y(xt.children[xt.children.length-1],!0),Pt.originalTotalWidth=Pt.menuItemSizes.reduce(function(hr,gr){return hr+gr},0),Pt.handleResize(),G(yt,"display","none")},Pt.handleResize=function(){if(Pt.props.mode!=="horizontal")return;var xt=Ce.findDOMNode(Object(s.a)(Pt));if(!xt)return;var Kt=Y(xt);Pt.overflowedItems=[];var yt=0,kt;Pt.originalTotalWidth>Kt+jt&&(kt=-1,Pt.menuItemSizes.forEach(function(Sr){yt+=Sr,yt+Pt.overflowedIndicatorWidth<=Kt&&(kt+=1)})),Pt.setState({lastVisibleIndex:kt})},Pt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){var xt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Kt=Ce.findDOMNode(this);if(!Kt)return;this.resizeObserver=new Me.default(function(yt){yt.forEach(function(){var kt=xt.cancelFrameId;cancelAnimationFrame(kt),xt.cancelFrameId=requestAnimationFrame(xt.setChildrenWidthAndResize)})}),[].slice.call(Kt.children).concat(Kt).forEach(function(yt){xt.resizeObserver.observe(yt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){xt.resizeObserver.disconnect(),[].slice.call(Kt.children).concat(Kt).forEach(function(yt){xt.resizeObserver.observe(yt)}),xt.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(xt){var Kt=this,yt=this.state.lastVisibleIndex;return(xt||[]).reduce(function(kt,Sr,hr){var gr=Sr;if(Kt.props.mode==="horizontal"){var Jr=Kt.getOverflowedSubMenuItem(Sr.props.eventKey,[]);yt!==void 0&&Kt.props.className.indexOf("".concat(Kt.props.prefixCls,"-root"))!==-1&&(hr>yt&&(gr=e.cloneElement(Sr,{style:{display:"none"},eventKey:"".concat(Sr.props.eventKey,"-hidden"),className:"".concat(_t)})),hr===yt+1&&(Kt.overflowedItems=xt.slice(yt+1).map(function(kn){return e.cloneElement(kn,{key:kn.props.eventKey,mode:"vertical-left"})}),Jr=Kt.getOverflowedSubMenuItem(Sr.props.eventKey,Kt.overflowedItems)));var $r=[].concat(Object(fe.a)(kt),[Jr,gr]);return hr===xt.length-1&&$r.push(Kt.getOverflowedSubMenuItem(Sr.props.eventKey,[],!0)),$r}return[].concat(Object(fe.a)(kt),[gr])},[])}},{key:"render",value:function(){var xt=this.props,Kt=xt.visible,yt=xt.prefixCls,kt=xt.overflowedIndicator,Sr=xt.mode,hr=xt.level,gr=xt.tag,Jr=xt.children,$r=xt.theme,kn=Object(de.a)(xt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dn=gr;return e.createElement(Dn,Object.assign({},kn),this.renderChildren(Jr))}}]),rr}(e.Component);He.defaultProps={tag:"div",className:""};var se=He;function J(nt){return nt.length?nt.every(function(at){return!!at.props.disabled}):!0}function Ue(nt,at,rr){var Pt=nt.getState();nt.setState({activeKey:Object(l.a)(Object(l.a)({},Pt.activeKey),{},Object(y.a)({},at,rr))})}function Le(nt){return nt.eventKey||"0-menu-"}function ee(nt,at){var rr=at,Pt=nt.children,xt=nt.eventKey;if(rr){var Kt;if(te(Pt,function(yt,kt){yt&&yt.props&&!yt.props.disabled&&rr===Fe(yt,xt,kt)&&(Kt=!0)}),Kt)return rr}return rr=null,nt.defaultActiveFirst&&te(Pt,function(yt,kt){!rr&&yt&&!yt.props.disabled&&(rr=Fe(yt,xt,kt))}),rr}function ct(nt){if(nt){var at=this.instanceArray.indexOf(nt);at!==-1?this.instanceArray[at]=nt:this.instanceArray.push(nt)}}var Mt=function(nt){Object(u.a)(rr,nt);var at=Object(h.a)(rr);function rr(Pt){var xt;return Object(t.a)(this,rr),xt=at.call(this,Pt),xt.onKeyDown=function(Kt,yt){var kt=Kt.keyCode,Sr;if(xt.getFlatInstanceArray().forEach(function(gr){gr&&gr.props.active&&gr.onKeyDown&&(Sr=gr.onKeyDown(Kt))}),Sr)return 1;var hr=null;return(kt===x.a.UP||kt===x.a.DOWN)&&(hr=xt.step(kt===x.a.UP?-1:1)),hr?(Kt.preventDefault(),Ue(xt.props.store,Le(xt.props),hr.props.eventKey),typeof yt=="function"&&yt(hr),1):void 0},xt.onItemHover=function(Kt){var yt=Kt.key,kt=Kt.hover;Ue(xt.props.store,Le(xt.props),kt?yt:null)},xt.onDeselect=function(Kt){xt.props.onDeselect(Kt)},xt.onSelect=function(Kt){xt.props.onSelect(Kt)},xt.onClick=function(Kt){xt.props.onClick(Kt)},xt.onOpenChange=function(Kt){xt.props.onOpenChange(Kt)},xt.onDestroy=function(Kt){xt.props.onDestroy(Kt)},xt.getFlatInstanceArray=function(){return xt.instanceArray},xt.step=function(Kt){var yt=xt.getFlatInstanceArray(),kt=xt.props.store.getState().activeKey[Le(xt.props)],Sr=yt.length;if(!Sr)return null;Kt<0&&(yt=yt.concat().reverse());var hr=-1;if(yt.every(function(kn,Dn){return kn&&kn.props.eventKey===kt?(hr=Dn,!1):!0}),!xt.props.defaultActiveFirst&&hr!==-1&&J(yt.slice(hr,Sr-1)))return;var gr=(hr+1)%Sr,Jr=gr;do{var $r=yt[Jr];if(!$r||$r.props.disabled)Jr=(Jr+1)%Sr;else return $r}while(Jr!==gr);return null},xt.renderCommonMenuItem=function(Kt,yt,kt){var Sr=xt.props.store.getState(),hr=Object(s.a)(xt),gr=hr.props,Jr=Fe(Kt,gr.eventKey,yt),$r=Kt.props;if(!$r||typeof Kt.type=="string")return Kt;var kn=Jr===Sr.activeKey,Dn=Object(l.a)(Object(l.a)({mode:$r.mode||gr.mode,level:gr.level,inlineIndent:gr.inlineIndent,renderMenuItem:xt.renderMenuItem,rootPrefixCls:gr.prefixCls,index:yt,parentMenu:gr.parentMenu,manualRef:$r.disabled?void 0:Object(T.a)(Kt.ref,ct.bind(Object(s.a)(xt))),eventKey:Jr,active:!$r.disabled&&kn,multiple:gr.multiple,onClick:function(li){($r.onClick||me)(li),xt.onClick(li)},onItemHover:xt.onItemHover,motion:gr.motion,subMenuOpenDelay:gr.subMenuOpenDelay,subMenuCloseDelay:gr.subMenuCloseDelay,forceSubMenuRender:gr.forceSubMenuRender,onOpenChange:xt.onOpenChange,onDeselect:xt.onDeselect,onSelect:xt.onSelect,builtinPlacements:gr.builtinPlacements,itemIcon:$r.itemIcon||xt.props.itemIcon,expandIcon:$r.expandIcon||xt.props.expandIcon},kt),{},{direction:gr.direction});return(gr.mode==="inline"||X())&&(Dn.triggerSubMenuAction="click"),e.cloneElement(Kt,Dn)},xt.renderMenuItem=function(Kt,yt,kt){if(!Kt)return null;var Sr=xt.props.store.getState(),hr={openKeys:Sr.openKeys,selectedKeys:Sr.selectedKeys,triggerSubMenuAction:xt.props.triggerSubMenuAction,subMenuKey:kt};return xt.renderCommonMenuItem(Kt,yt,hr)},Pt.store.setState({activeKey:Object(l.a)(Object(l.a)({},Pt.store.getState().activeKey),{},Object(y.a)({},Pt.eventKey,ee(Pt,Pt.activeKey)))}),xt.instanceArray=[],xt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(xt){return this.props.visible||xt.visible||this.props.className!==xt.className||!b()(this.props.style,xt.style)}},{key:"componentDidUpdate",value:function(xt){var Kt=this.props,yt="activeKey"in Kt?Kt.activeKey:Kt.store.getState().activeKey[Le(Kt)],kt=ee(Kt,yt);if(kt!==yt)Ue(Kt.store,Le(Kt),kt);else if("activeKey"in xt){var Sr=ee(xt,xt.activeKey);kt!==Sr&&Ue(Kt.store,Le(Kt),kt)}}},{key:"render",value:function(){var xt=this,Kt=Object(v.a)({},this.props);this.instanceArray=[];var yt=I()(Kt.prefixCls,Kt.className,"".concat(Kt.prefixCls,"-").concat(Kt.mode)),kt={className:yt,role:Kt.role||"menu"};Kt.id&&(kt.id=Kt.id),Kt.focusable&&(kt.tabIndex=0,kt.onKeyDown=this.onKeyDown);var Sr=Kt.prefixCls,hr=Kt.eventKey,gr=Kt.visible,Jr=Kt.level,$r=Kt.mode,kn=Kt.overflowedIndicator,Dn=Kt.theme;return oe.forEach(function(Zn){return delete Kt[Zn]}),delete Kt.onClick,e.createElement(se,Object.assign({},Kt,{prefixCls:Sr,mode:$r,tag:"ul",level:Jr,theme:Dn,visible:gr,overflowedIndicator:kn},kt),e.Children.map(Kt.children,function(Zn,li){return xt.renderMenuItem(Zn,li,hr||"0-menu-")}))}}]),rr}(e.Component);Mt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:me};var ot=Object(p.b)()(Mt),Yt=ot,or=d("Kwbf");function Zr(nt,at,rr){var Pt=nt.prefixCls,xt=nt.motion,Kt=nt.defaultMotions,yt=Kt===void 0?{}:Kt,kt=nt.openAnimation,Sr=nt.openTransitionName,hr=at.switchingModeFromInline;if(xt)return xt;if(Object(L.a)(kt)==="object"&&kt)Object(or.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(Sr)return{motionName:Sr};var gr=yt[rr];return gr||(hr?null:yt.other)}var ir=function(nt){Object(u.a)(rr,nt);var at=Object(h.a)(rr);function rr(Pt){var xt;Object(t.a)(this,rr),xt=at.call(this,Pt),xt.inlineOpenKeys=[],xt.onSelect=function(kt){var Sr=Object(s.a)(xt),hr=Sr.props;if(hr.selectable){var gr=xt.store.getState(),Jr=gr.selectedKeys,$r=kt.key;hr.multiple?Jr=Jr.concat([$r]):Jr=[$r],"selectedKeys"in hr||xt.store.setState({selectedKeys:Jr}),hr.onSelect(Object(l.a)(Object(l.a)({},kt),{},{selectedKeys:Jr}))}},xt.onClick=function(kt){var Sr=xt.getRealMenuMode(),hr=Object(s.a)(xt),gr=hr.store,Jr=hr.props.onOpenChange;Sr!=="inline"&&!("openKeys"in xt.props)&&(gr.setState({openKeys:[]}),Jr([])),xt.props.onClick(kt)},xt.onKeyDown=function(kt,Sr){xt.innerMenu.getWrappedInstance().onKeyDown(kt,Sr)},xt.onOpenChange=function(kt){var Sr=Object(s.a)(xt),hr=Sr.props,gr=xt.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(kt)?kt.forEach($r):$r(kt),Jr&&("openKeys"in xt.props||xt.store.setState({openKeys:gr}),hr.onOpenChange(gr))},xt.onDeselect=function(kt){var Sr=Object(s.a)(xt),hr=Sr.props;if(hr.selectable){var gr=xt.store.getState().selectedKeys.concat(),Jr=kt.key,$r=gr.indexOf(Jr);$r!==-1&&gr.splice($r,1),"selectedKeys"in hr||xt.store.setState({selectedKeys:gr}),hr.onDeselect(Object(l.a)(Object(l.a)({},kt),{},{selectedKeys:gr}))}},xt.onMouseEnter=function(kt){xt.restoreModeVerticalFromInline();var Sr=xt.props.onMouseEnter;Sr&&Sr(kt)},xt.onTransitionEnd=function(kt){var Sr=kt.propertyName==="width"&&kt.target===kt.currentTarget,hr=kt.target.className,gr=Object.prototype.toString.call(hr)==="[object SVGAnimatedString]"?hr.animVal:hr,Jr=kt.propertyName==="font-size"&&gr.indexOf("anticon")>=0;(Sr||Jr)&&xt.restoreModeVerticalFromInline()},xt.setInnerMenu=function(kt){xt.innerMenu=kt},xt.isRootMenu=!0;var Kt=Pt.defaultSelectedKeys,yt=Pt.defaultOpenKeys;return"selectedKeys"in Pt&&(Kt=Pt.selectedKeys||[]),"openKeys"in Pt&&(yt=Pt.openKeys||[]),xt.store=Object(p.c)({selectedKeys:Kt,openKeys:yt,activeKey:{"0-menu-":ee(Pt,Pt.activeKey)}}),xt.state={switchingModeFromInline:!1},xt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(xt){this.updateOpentKeysWhenSwitchMode(xt),this.updateMiniStore();var Kt=this.props,yt=Kt.siderCollapsed,kt=Kt.inlineCollapsed,Sr=Kt.onOpenChange;(!xt.inlineCollapsed&&kt||!xt.siderCollapsed&&yt)&&Sr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(xt){var Kt=this.props,yt=this.store,kt=this.inlineOpenKeys,Sr=yt.getState(),hr={};xt.mode==="inline"&&Kt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Kt||((Kt.inlineCollapsed&&!xt.inlineCollapsed||Kt.siderCollapsed&&!xt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Sr.openKeys.concat(),hr.openKeys=[]),(!Kt.inlineCollapsed&&xt.inlineCollapsed||!Kt.siderCollapsed&&xt.siderCollapsed)&&(hr.openKeys=kt,this.inlineOpenKeys=[])),Object.keys(hr).length&&yt.setState(hr)}},{key:"updateMenuDisplay",value:function(){var xt=this.props.collapsedWidth,Kt=this.store,yt=this.prevOpenKeys,kt=this.getInlineCollapsed()&&(xt===0||xt==="0"||xt==="0px");kt?(this.prevOpenKeys=Kt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):yt&&(this.store.setState({openKeys:yt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var xt=this.props.mode,Kt=this.state.switchingModeFromInline,yt=this.getInlineCollapsed();return Kt&&yt?"inline":yt?"vertical":xt}},{key:"getInlineCollapsed",value:function(){var xt=this.props,Kt=xt.inlineCollapsed,yt=xt.siderCollapsed;return yt!==void 0?yt:Kt}},{key:"restoreModeVerticalFromInline",value:function(){var xt=this.state.switchingModeFromInline;xt&&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 xt=Object(l.a)({},Object(g.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Kt=this.getRealMenuMode();return xt.className+=" ".concat(xt.prefixCls,"-root"),xt.direction==="rtl"&&(xt.className+=" ".concat(xt.prefixCls,"-rtl")),xt=Object(l.a)(Object(l.a)({},xt),{},{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 xt.openAnimation,delete xt.openTransitionName,e.createElement(p.a,{store:this.store},e.createElement(Yt,Object.assign({},xt,{ref:this.setInnerMenu}),this.props.children))}}]),rr}(e.Component);ir.defaultProps={selectable:!0,onClick:me,onSelect:me,onOpenChange:me,onDeselect:me,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var dr=ir,qt=function(nt){Object(u.a)(rr,nt);var at=Object(h.a)(rr);function rr(){var Pt;return Object(t.a)(this,rr),Pt=at.apply(this,arguments),Pt.onKeyDown=function(xt){var Kt=xt.keyCode;return Kt===x.a.ENTER?(Pt.onClick(xt),!0):void 0},Pt.onMouseLeave=function(xt){var Kt=Pt.props,yt=Kt.eventKey,kt=Kt.onItemHover,Sr=Kt.onMouseLeave;kt({key:yt,hover:!1}),Sr({key:yt,domEvent:xt})},Pt.onMouseEnter=function(xt){var Kt=Pt.props,yt=Kt.eventKey,kt=Kt.onItemHover,Sr=Kt.onMouseEnter;kt({key:yt,hover:!0}),Sr({key:yt,domEvent:xt})},Pt.onClick=function(xt){var Kt=Pt.props,yt=Kt.eventKey,kt=Kt.multiple,Sr=Kt.onClick,hr=Kt.onSelect,gr=Kt.onDeselect,Jr=Kt.isSelected,$r={key:yt,keyPath:[yt],item:Object(s.a)(Pt),domEvent:xt};Sr($r),kt?Jr?gr($r):hr($r):Jr||hr($r)},Pt.saveNode=function(xt){Pt.node=xt},Pt}return Object(a.a)(rr,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var xt=this.props;xt.onDestroy&&xt.onDestroy(xt.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 xt,Kt=Object(l.a)({},this.props),yt=I()(this.getPrefixCls(),Kt.className,(xt={},Object(y.a)(xt,this.getActiveClassName(),!Kt.disabled&&Kt.active),Object(y.a)(xt,this.getSelectedClassName(),Kt.isSelected),Object(y.a)(xt,this.getDisabledClassName(),Kt.disabled),xt)),kt=Object(l.a)(Object(l.a)({},Kt.attribute),{},{title:typeof Kt.title=="string"?Kt.title:void 0,className:yt,role:Kt.role||"menuitem","aria-disabled":Kt.disabled});Kt.role==="option"?kt=Object(l.a)(Object(l.a)({},kt),{},{role:"option","aria-selected":Kt.isSelected}):(Kt.role===null||Kt.role==="none")&&(kt.role="none");var Sr={onClick:Kt.disabled?null:this.onClick,onMouseLeave:Kt.disabled?null:this.onMouseLeave,onMouseEnter:Kt.disabled?null:this.onMouseEnter},hr=Object(l.a)({},Kt.style);Kt.mode==="inline"&&(Kt.direction==="rtl"?hr.paddingRight=Kt.inlineIndent*Kt.level:hr.paddingLeft=Kt.inlineIndent*Kt.level),oe.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"]),kt,Sr,{style:hr,ref:this.saveNode}),Kt.children,gr)}}]),rr}(e.Component);qt.isMenuItem=!0,qt.defaultProps={onSelect:me,onMouseEnter:me,onMouseLeave:me,manualRef:me};var Ht=Object(p.b)(function(nt,at){var rr=nt.activeKey,Pt=nt.selectedKeys,xt=at.eventKey,Kt=at.subMenuKey;return{active:rr[Kt]===xt,isSelected:Pt.indexOf(xt)!==-1}})(qt),lt=Ht,Hr=function(nt){Object(u.a)(rr,nt);var at=Object(h.a)(rr);function rr(){var Pt;return Object(t.a)(this,rr),Pt=at.apply(this,arguments),Pt.renderInnerMenuItem=function(xt){var Kt=Pt.props,yt=Kt.renderMenuItem,kt=Kt.index;return yt(xt,kt,Pt.props.subMenuKey)},Pt}return Object(a.a)(rr,[{key:"render",value:function(){var xt=Object(v.a)({},this.props),Kt=xt.className,yt=Kt===void 0?"":Kt,kt=xt.rootPrefixCls,Sr="".concat(kt,"-item-group-title"),hr="".concat(kt,"-item-group-list"),gr=xt.title,Jr=xt.children;return oe.forEach(function($r){return delete xt[$r]}),delete xt.onClick,delete xt.direction,e.createElement("li",Object.assign({},xt,{className:"".concat(yt," ").concat(kt,"-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(at){var rr=at.className,Pt=at.rootPrefixCls,xt=at.style;return e.createElement("li",{className:"".concat(rr," ").concat(Pt,"-item-divider"),style:xt})};Nn.defaultProps={disabled:!0,className:"",style:{}};var Wn=Nn,gi=dr,yn=Object(e.createContext)({inlineCollapsed:!1}),Mn=yn,Ft=d("0n0R"),bt=function(nt){r()(rr,nt);var at=n()(rr);function rr(){return m()(this,rr),at.apply(this,arguments)}return c()(rr,[{key:"renderTitle",value:function(xt){var Kt=this.props,yt=Kt.icon,kt=Kt.title,Sr=Kt.level,hr=Kt.rootPrefixCls;if(!yt)return xt&&Sr===1&&kt&&typeof kt=="string"?e.createElement("div",{className:"".concat(hr,"-inline-collapsed-noicon")},kt.charAt(0)):kt;var gr=Object(Ft.b)(kt)&&kt.type==="span";return e.createElement(e.Fragment,null,yt,gr?kt:e.createElement("span",null,kt))}},{key:"render",value:function(){var xt=this,Kt=this.props,yt=Kt.rootPrefixCls,kt=Kt.popupClassName;return e.createElement(Mn.Consumer,null,function(Sr){var hr=Sr.inlineCollapsed,gr=Sr.antdMenuTheme;return e.createElement(Bt,E()({},Object(g.default)(xt.props,["icon"]),{title:xt.renderTitle(hr),popupClassName:I()(yt,"".concat(yt,"-").concat(gr),kt)}))})}}]),rr}(e.Component);bt.contextType=Mn,bt.isSubMenu=1;var Oe=bt,Ee=d("Zm9Q"),Ie=d("3S7+"),Ye=d("ZX9x"),rt=function(nt,at){var rr={};for(var Pt in nt)Object.prototype.hasOwnProperty.call(nt,Pt)&&at.indexOf(Pt)<0&&(rr[Pt]=nt[Pt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Pt=Object.getOwnPropertySymbols(nt);xt<Pt.length;xt++)at.indexOf(Pt[xt])<0&&Object.prototype.propertyIsEnumerable.call(nt,Pt[xt])&&(rr[Pt[xt]]=nt[Pt[xt]]);return rr},ut=function(nt){r()(rr,nt);var at=n()(rr);function rr(){var Pt;return m()(this,rr),Pt=at.apply(this,arguments),Pt.renderItem=function(xt){var Kt=xt.siderCollapsed,yt=Pt.props,kt=yt.level,Sr=yt.className,hr=yt.children,gr=yt.rootPrefixCls,Jr=Pt.props,$r=Jr.title,kn=Jr.icon,Dn=Jr.danger,Zn=rt(Jr,["title","icon","danger"]);return e.createElement(Mn.Consumer,null,function(li){var Ai,Ii=li.inlineCollapsed,Qe=li.direction,Se=$r;typeof $r=="undefined"?Se=kt===1?hr:"":$r===!1&&(Se="");var Ne={title:Se};!Kt&&!Ii&&(Ne.title=null,Ne.visible=!1);var je=Object(Ee.a)(hr).length;return e.createElement(Ie.a,E()({},Ne,{placement:Qe==="rtl"?"left":"right",overlayClassName:"".concat(gr,"-inline-collapsed-tooltip")}),e.createElement(lt,E()({},Zn,{className:I()(Sr,(Ai={},A()(Ai,"".concat(gr,"-item-danger"),Dn),A()(Ai,"".concat(gr,"-item-only-child"),(kn?je+1:je)===1),Ai)),title:$r}),kn,Pt.renderItemChildren(Ii)))})},Pt}return c()(rr,[{key:"renderItemChildren",value:function(xt){var Kt=this.props,yt=Kt.icon,kt=Kt.children,Sr=Kt.level,hr=Kt.rootPrefixCls;return!yt||Object(Ft.b)(kt)&&kt.type==="span"?kt&&xt&&Sr===1&&typeof kt=="string"?e.createElement("div",{className:"".concat(hr,"-inline-collapsed-noicon")},kt.charAt(0)):kt:e.createElement("span",null,kt)}},{key:"render",value:function(){return e.createElement(Ye.a.Consumer,null,this.renderItem)}}]),rr}(e.Component);ut.isMenuItem=!0;var Ot=d("H84U"),Ar=d("uaoM"),Pr=d("EXcs"),un=function(nt){r()(rr,nt);var at=n()(rr);function rr(Pt){var xt;return m()(this,rr),xt=at.call(this,Pt),xt.renderMenu=function(Kt){var yt=Kt.getPopupContainer,kt=Kt.getPrefixCls,Sr=Kt.direction,hr=xt.props,gr=hr.prefixCls,Jr=hr.className,$r=hr.theme,kn={horizontal:{motionName:"slide-up"},inline:Pr.a,other:{motionName:"zoom-big"}},Dn=kt("menu",gr),Zn=I()(Jr,"".concat(Dn,"-").concat($r),A()({},"".concat(Dn,"-inline-collapsed"),xt.getInlineCollapsed()));return e.createElement(Mn.Provider,{value:{inlineCollapsed:xt.getInlineCollapsed()||!1,antdMenuTheme:$r,direction:Sr}},e.createElement(gi,E()({getPopupContainer:yt},xt.props,{className:Zn,prefixCls:Dn,direction:Sr,defaultMotions:kn})))},Object(Ar.a)(!("inlineCollapsed"in Pt&&Pt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Ar.a)(!(Pt.siderCollapsed!==void 0&&"inlineCollapsed"in Pt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),xt}return c()(rr,[{key:"getInlineCollapsed",value:function(){var xt=this.props,Kt=xt.inlineCollapsed,yt=xt.siderCollapsed;return yt!==void 0?yt:Kt}},{key:"render",value:function(){return e.createElement(Ot.a,null,this.renderMenu)}}]),rr}(e.Component);un.defaultProps={className:"",theme:"light",focusable:!1};var It=function(nt){r()(rr,nt);var at=n()(rr);function rr(){return m()(this,rr),at.apply(this,arguments)}return c()(rr,[{key:"render",value:function(){var xt=this;return e.createElement(Ye.a.Consumer,null,function(Kt){return e.createElement(un,E()({},xt.props,Kt))})}}]),rr}(e.Component);It.Divider=Wn,It.Item=ut,It.SubMenu=Oe,It.ItemGroup=dn},C0SR:function(H,B,d){var _=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,l=i.length;e<l;e++){var t=i[e],a=_.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 l=A(i);return o.pinchX=l[0],o.pinchY=l[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 _=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var E=d("q3GZ");_.registerVisual(E)},CF2D:function(H,B,d){var _=d("ProS");d("vZI5"),d("GeKi");var E=d("6r85"),C=d("TJmX"),A=d("CbHG");_.registerPreprocessor(E),_.registerVisual(C),_.registerLayout(A)},CFYs:function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("TSYQ"),u=d.n(s),h=d("BGR+"),p=d("V/uB"),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),O=d("H84U"),I=d("CWQg"),L=d("uaoM"),N=d("Zss7"),D=d.n(N),R=2,k=.16,M=.05,j=.05,F=.15,U=5,K=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(ut,Ot,Ar){var Pr;return Math.round(ut.h)>=60&&Math.round(ut.h)<=240?Pr=Ar?Math.round(ut.h)-R*Ot:Math.round(ut.h)+R*Ot:Pr=Ar?Math.round(ut.h)+R*Ot:Math.round(ut.h)-R*Ot,Pr<0?Pr+=360:Pr>=360&&(Pr-=360),Pr}function Q(ut,Ot,Ar){if(ut.h===0&&ut.s===0)return ut.s;var Pr;return Ar?Pr=ut.s-k*Ot:Ot===K?Pr=ut.s+k:Pr=ut.s+M*Ot,Pr>1&&(Pr=1),Ar&&Ot===U&&Pr>.1&&(Pr=.1),Pr<.06&&(Pr=.06),Number(Pr.toFixed(2))}function Z(ut,Ot,Ar){var Pr;return Ar?Pr=ut.v+j*Ot:Pr=ut.v-F*Ot,Pr>1&&(Pr=1),Number(Pr.toFixed(2))}function le(ut){for(var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ar=[],Pr=D()(ut),un=U;un>0;un-=1){var It=Pr.toHsv(),nt=D()({h:z(It,un,!0),s:Q(It,un,!0),v:Z(It,un,!0)}).toHexString();Ar.push(nt)}Ar.push(Pr.toHexString());for(var at=1;at<=K;at+=1){var rr=Pr.toHsv(),Pt=D()({h:z(rr,at),s:Q(rr,at),v:Z(rr,at)}).toHexString();Ar.push(Pt)}return Ot.theme==="dark"?V.map(function(xt){var Kt=xt.index,yt=xt.opacity,kt=D.a.mix(Ot.backgroundColor||"#141414",Ar[Kt],yt*100).toHexString();return kt}):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"},ve={},xe={};Object.keys(ne).forEach(function(ut){ve[ut]=le(ne[ut]),ve[ut].primary=ve[ut][5],xe[ut]=le(ne[ut],{theme:"dark",backgroundColor:"#141414"}),xe[ut].primary=xe[ut][5]});var _e=ve.red,Be=ve.volcano,me=ve.gold,Fe=ve.orange,ie=ve.yellow,te=ve.lime,Ge=ve.green,oe=ve.cyan,Y=ve.blue,G=ve.geekblue,X=ve.purple,fe=ve.magenta,de=ve.grey;function Ce(ut){return!ut||ut<0?0:ut>100?100:ut}function Me(ut){var Ot=ut.success,Ar=ut.successPercent,Pr=Ar;return Ot&&"progress"in Ot&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Pr=Ot.progress),Ot&&"percent"in Ot&&(Pr=Ot.percent),Pr}var ue=function(ut,Ot){var Ar={};for(var Pr in ut)Object.prototype.hasOwnProperty.call(ut,Pr)&&Ot.indexOf(Pr)<0&&(Ar[Pr]=ut[Pr]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Pr=Object.getOwnPropertySymbols(ut);un<Pr.length;un++)Ot.indexOf(Pr[un])<0&&Object.prototype.propertyIsEnumerable.call(ut,Pr[un])&&(Ar[Pr[un]]=ut[Pr[un]]);return Ar},Ae=function(Ot){var Ar=[];return Object.keys(Ot).forEach(function(Pr){var un=parseFloat(Pr.replace(/%/g,""));isNaN(un)||Ar.push({key:un,value:Ot[Pr]})}),Ar=Ar.sort(function(Pr,un){return Pr.key-un.key}),Ar.map(function(Pr){var un=Pr.key,It=Pr.value;return"".concat(It," ").concat(un,"%")}).join(", ")},Te=function(Ot){var Ar=Ot.from,Pr=Ar===void 0?ne.blue:Ar,un=Ot.to,It=un===void 0?ne.blue:un,nt=Ot.direction,at=nt===void 0?"to right":nt,rr=ue(Ot,["from","to","direction"]);if(Object.keys(rr).length!==0){var Pt=Ae(rr);return{backgroundImage:"linear-gradient(".concat(at,", ").concat(Pt,")")}}return{backgroundImage:"linear-gradient(".concat(at,", ").concat(Pr,", ").concat(It,")")}},Je=function(Ot){var Ar=Ot.prefixCls,Pr=Ot.percent,un=Ot.strokeWidth,It=Ot.size,nt=Ot.strokeColor,at=Ot.strokeLinecap,rr=Ot.children,Pt=Ot.trailColor,xt=Ot.success,Kt=nt&&typeof nt!="string"?Te(nt):{background:nt},yt=Pt?{backgroundColor:Pt}:void 0,kt=A()({width:"".concat(Ce(Pr),"%"),height:un||(It==="small"?6:8),borderRadius:at==="square"?0:""},Kt),Sr=Me(Ot),hr={width:"".concat(Ce(Sr),"%"),height:un||(It==="small"?6:8),borderRadius:at==="square"?0:"",backgroundColor:xt==null?void 0:xt.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:yt},t.createElement("div",{className:"".concat(Ar,"-bg"),style:kt}),gr)),rr)},At=Je,qe={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Re=function(Ot){var Ar=Ot.map(function(){return Object(t.useRef)()}),Pr=Object(t.useRef)();return Object(t.useEffect)(function(){var un=Date.now(),It=!1;Object.keys(Ar).forEach(function(nt){var at=Ar[nt].current;if(!at)return;It=!0;var rr=at.style;rr.transitionDuration=".3s, .3s, .3s, .06s",Pr.current&&un-Pr.current<100&&(rr.transitionDuration="0s, 0s")}),It&&(Pr.current=Date.now())}),[Ar]};function Lt(){return Lt=Object.assign||function(ut){for(var Ot=1;Ot<arguments.length;Ot++){var Ar=arguments[Ot];for(var Pr in Ar)Object.prototype.hasOwnProperty.call(Ar,Pr)&&(ut[Pr]=Ar[Pr])}return ut},Lt.apply(this,arguments)}function $e(ut,Ot){return jt(ut)||_t(ut,Ot)||Ut(ut,Ot)||Et()}function Et(){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 Ut(ut,Ot){if(!ut)return;if(typeof ut=="string")return Bt(ut,Ot);var Ar=Object.prototype.toString.call(ut).slice(8,-1);if(Ar==="Object"&&ut.constructor&&(Ar=ut.constructor.name),Ar==="Map"||Ar==="Set")return Array.from(ut);if(Ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ar))return Bt(ut,Ot)}function Bt(ut,Ot){(Ot==null||Ot>ut.length)&&(Ot=ut.length);for(var Ar=0,Pr=new Array(Ot);Ar<Ot;Ar++)Pr[Ar]=ut[Ar];return Pr}function _t(ut,Ot){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(ut)))return;var Ar=[],Pr=!0,un=!1,It=void 0;try{for(var nt=ut[Symbol.iterator](),at;!(Pr=(at=nt.next()).done)&&!(Ar.push(at.value),Ot&&Ar.length===Ot);Pr=!0);}catch(rr){un=!0,It=rr}finally{try{!Pr&&nt.return!=null&&nt.return()}finally{if(un)throw It}}return Ar}function jt(ut){if(Array.isArray(ut))return ut}function He(ut,Ot){if(ut==null)return{};var Ar=se(ut,Ot),Pr,un;if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(ut);for(un=0;un<It.length;un++){if(Pr=It[un],Ot.indexOf(Pr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ut,Pr))continue;Ar[Pr]=ut[Pr]}}return Ar}function se(ut,Ot){if(ut==null)return{};var Ar={},Pr=Object.keys(ut),un,It;for(It=0;It<Pr.length;It++){if(un=Pr[It],Ot.indexOf(un)>=0)continue;Ar[un]=ut[un]}return Ar}var J=function(Ot){var Ar=Ot.className,Pr=Ot.percent,un=Ot.prefixCls,It=Ot.strokeColor,nt=Ot.strokeLinecap,at=Ot.strokeWidth,rr=Ot.style,Pt=Ot.trailColor,xt=Ot.trailWidth,Kt=Ot.transition,yt=He(Ot,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete yt.gapPosition;var kt=Array.isArray(Pr)?Pr:[Pr],Sr=Array.isArray(It)?It:[It],hr=Re(kt),gr=$e(hr,1),Jr=gr[0],$r=at/2,kn=100-at/2,Dn="M ".concat(nt==="round"?$r:0,",").concat($r,`
|
|
|
L `).concat(nt==="round"?kn:100,",").concat($r),Zn="0 0 100 ".concat(at),li=0;return a.a.createElement("svg",Lt({className:u()("".concat(un,"-line"),Ar),viewBox:Zn,preserveAspectRatio:"none",style:rr},yt),a.a.createElement("path",{className:"".concat(un,"-line-trail"),d:Dn,strokeLinecap:nt,stroke:Pt,strokeWidth:xt||at,fillOpacity:"0"}),kt.map(function(Ai,Ii){var Qe={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:nt,stroke:Se,strokeWidth:at,fillOpacity:"0",ref:Jr[Ii],style:Qe})}))};J.defaultProps=qe;var Ue=J;function Le(){return Le=Object.assign||function(ut){for(var Ot=1;Ot<arguments.length;Ot++){var Ar=arguments[Ot];for(var Pr in Ar)Object.prototype.hasOwnProperty.call(Ar,Pr)&&(ut[Pr]=Ar[Pr])}return ut},Le.apply(this,arguments)}function ee(ut,Ot){return or(ut)||Yt(ut,Ot)||Mt(ut,Ot)||ct()}function ct(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt(ut,Ot){if(!ut)return;if(typeof ut=="string")return ot(ut,Ot);var Ar=Object.prototype.toString.call(ut).slice(8,-1);if(Ar==="Object"&&ut.constructor&&(Ar=ut.constructor.name),Ar==="Map"||Ar==="Set")return Array.from(ut);if(Ar==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ar))return ot(ut,Ot)}function ot(ut,Ot){(Ot==null||Ot>ut.length)&&(Ot=ut.length);for(var Ar=0,Pr=new Array(Ot);Ar<Ot;Ar++)Pr[Ar]=ut[Ar];return Pr}function Yt(ut,Ot){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(ut)))return;var Ar=[],Pr=!0,un=!1,It=void 0;try{for(var nt=ut[Symbol.iterator](),at;!(Pr=(at=nt.next()).done)&&!(Ar.push(at.value),Ot&&Ar.length===Ot);Pr=!0);}catch(rr){un=!0,It=rr}finally{try{!Pr&&nt.return!=null&&nt.return()}finally{if(un)throw It}}return Ar}function or(ut){if(Array.isArray(ut))return ut}function Zr(ut,Ot){if(ut==null)return{};var Ar=ir(ut,Ot),Pr,un;if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(ut);for(un=0;un<It.length;un++){if(Pr=It[un],Ot.indexOf(Pr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ut,Pr))continue;Ar[Pr]=ut[Pr]}}return Ar}function ir(ut,Ot){if(ut==null)return{};var Ar={},Pr=Object.keys(ut),un,It;for(It=0;It<Pr.length;It++){if(un=Pr[It],Ot.indexOf(un)>=0)continue;Ar[un]=ut[un]}return Ar}var dr=0;function qt(ut){return+ut.replace("%","")}function Ht(ut){return Array.isArray(ut)?ut:[ut]}function lt(ut,Ot,Ar,Pr){var un=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,It=arguments.length>5?arguments[5]:void 0,nt=50-Pr/2,at=0,rr=-nt,Pt=0,xt=-2*nt;switch(It){case"left":at=-nt,rr=0,Pt=2*nt,xt=0;break;case"right":at=nt,rr=0,Pt=-2*nt,xt=0;break;case"bottom":rr=nt,xt=2*nt;break;default:}var Kt="M 50,50 m ".concat(at,",").concat(rr,`
|
|
|
a `).concat(nt,",").concat(nt," 0 1 1 ").concat(Pt,",").concat(-xt,`
|
|
|
a `).concat(nt,",").concat(nt," 0 1 1 ").concat(-Pt,",").concat(xt),yt=Math.PI*2*nt,kt={stroke:Ar,strokeDasharray:"".concat(Ot/100*(yt-un),"px ").concat(yt,"px"),strokeDashoffset:"-".concat(un/2+ut/100*(yt-un),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Kt,pathStyle:kt}}var Hr=function(Ot){var Ar=Ot.prefixCls,Pr=Ot.strokeWidth,un=Ot.trailWidth,It=Ot.gapDegree,nt=Ot.gapPosition,at=Ot.trailColor,rr=Ot.strokeLinecap,Pt=Ot.style,xt=Ot.className,Kt=Ot.strokeColor,yt=Ot.percent,kt=Zr(Ot,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Sr=Object(t.useMemo)(function(){return dr+=1,dr},[]),hr=lt(0,100,at,Pr,It,nt),gr=hr.pathString,Jr=hr.pathStyle,$r=Ht(yt),kn=Ht(Kt),Dn=kn.find(function(Qe){return Object.prototype.toString.call(Qe)==="[object Object]"}),Zn=Re($r),li=ee(Zn,1),Ai=li[0],Ii=function(){var Se=0;return $r.map(function(Ne,je){var Xe=kn[je]||kn[kn.length-1],ze=Object.prototype.toString.call(Xe)==="[object Object]"?"url(#".concat(Ar,"-gradient-").concat(Sr,")"):"",Ze=lt(Se,Ne,Xe,Pr,It,nt);return Se+=Ne,a.a.createElement("path",{key:je,className:"".concat(Ar,"-circle-path"),d:Ze.pathString,stroke:ze,strokeLinecap:rr,strokeWidth:Pr,opacity:Ne===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:Ai[je]})})};return a.a.createElement("svg",Le({className:u()("".concat(Ar,"-circle"),xt),viewBox:"0 0 100 100",style:Pt},kt),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(Qe,Se){return qt(Qe)-qt(Se)}).map(function(Qe,Se){return a.a.createElement("stop",{key:Se,offset:Qe,stopColor:Dn[Qe]})}))),a.a.createElement("path",{className:"".concat(Ar,"-circle-trail"),d:gr,stroke:at,strokeLinecap:rr,strokeWidth:un||Pr,fillOpacity:"0",style:Jr}),Ii().reverse())};Hr.defaultProps=qe;var dn=Hr,Nn={Line:Ue,Circle:dn};function Wn(ut){var Ot=ut.percent,Ar=ut.success,Pr=ut.successPercent,un=Ce(Ot),It=Me({success:Ar,successPercent:Pr});return It?[Ce(It),Ce(un-Ce(It))]:un}function gi(ut){var Ot=ut.success,Ar=ut.strokeColor,Pr=ut.successPercent,un=Ar||null,It=Me({success:Ot,successPercent:Pr});return It?[ne.green,un]:un}var yn=function(Ot){var Ar=Ot.prefixCls,Pr=Ot.width,un=Ot.strokeWidth,It=Ot.trailColor,nt=Ot.strokeLinecap,at=Ot.gapPosition,rr=Ot.gapDegree,Pt=Ot.type,xt=Ot.children,Kt=Pr||120,yt={width:Kt,height:Kt,fontSize:Kt*.15+6},kt=un||6,Sr=at||Pt==="dashboard"&&"bottom"||"top",hr=function(){return rr||rr===0?rr:Pt==="dashboard"?75:void 0},gr=gi(Ot),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:yt},t.createElement(dn,{percent:Wn(Ot),strokeWidth:kt,trailWidth:kt,strokeColor:gr,strokeLinecap:nt,trailColor:It,prefixCls:Ar,gapDegree:hr(),gapPosition:Sr}),xt)},Mn=yn,Ft=function(Ot){for(var Ar=Ot.size,Pr=Ot.steps,un=Ot.percent,It=un===void 0?0:un,nt=Ot.strokeWidth,at=nt===void 0?8:nt,rr=Ot.strokeColor,Pt=Ot.trailColor,xt=Ot.prefixCls,Kt=Ot.children,yt=Math.floor(Pr*(It/100)),kt=Ar==="small"?2:14,Sr=[],hr=0;hr<Pr;hr+=1)Sr.push(t.createElement("div",{key:hr,className:u()("".concat(xt,"-steps-item"),E()({},"".concat(xt,"-steps-item-active"),hr<=yt-1)),style:{backgroundColor:hr<=yt-1?rr:Pt,width:kt,height:at}}));return t.createElement("div",{className:"".concat(xt,"-steps-outer")},Sr,Kt)},bt=Ft,Oe=function(ut,Ot){var Ar={};for(var Pr in ut)Object.prototype.hasOwnProperty.call(ut,Pr)&&Ot.indexOf(Pr)<0&&(Ar[Pr]=ut[Pr]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Pr=Object.getOwnPropertySymbols(ut);un<Pr.length;un++)Ot.indexOf(Pr[un])<0&&Object.prototype.propertyIsEnumerable.call(ut,Pr[un])&&(Ar[Pr[un]]=ut[Pr[un]]);return Ar},Ee=Object(I.a)("line","circle","dashboard"),Ie=Object(I.a)("normal","exception","active","success"),Ye=function(ut){n()(Ar,ut);var Ot=l()(Ar);function Ar(){var Pr;return m()(this,Ar),Pr=Ot.apply(this,arguments),Pr.renderProgress=function(un){var It,nt=un.getPrefixCls,at=un.direction,rr=r()(Pr),Pt=rr.props,xt=Pt.prefixCls,Kt=Pt.className,yt=Pt.size,kt=Pt.type,Sr=Pt.steps,hr=Pt.showInfo,gr=Pt.strokeColor,Jr=Oe(Pt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),$r=nt("progress",xt),kn=Pr.getProgressStatus(),Dn=Pr.renderProcessInfo($r,kn);Object(L.a)(!("successPercent"in Pt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var Zn;kt==="line"?Zn=Sr?t.createElement(bt,A()({},Pr.props,{strokeColor:typeof gr=="string"?gr:void 0,prefixCls:$r,steps:Sr}),Dn):t.createElement(At,A()({},Pr.props,{prefixCls:$r}),Dn):(kt==="circle"||kt==="dashboard")&&(Zn=t.createElement(Mn,A()({},Pr.props,{prefixCls:$r,progressStatus:kn}),Dn));var li=u()($r,(It={},E()(It,"".concat($r,"-").concat(kt==="dashboard"&&"circle"||Sr&&"steps"||kt),!0),E()(It,"".concat($r,"-status-").concat(kn),!0),E()(It,"".concat($r,"-show-info"),hr),E()(It,"".concat($r,"-").concat(yt),yt),E()(It,"".concat($r,"-rtl"),at==="rtl"),It),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)},Pr}return c()(Ar,[{key:"getPercentNumber",value:function(){var un=this.props.percent,It=un===void 0?0:un,nt=Me(this.props);return parseInt(nt!==void 0?nt.toString():It.toString(),10)}},{key:"getProgressStatus",value:function(){var un=this.props.status;return Ie.indexOf(un)<0&&this.getPercentNumber()>=100?"success":un||"normal"}},{key:"renderProcessInfo",value:function(un,It){var nt=this.props,at=nt.showInfo,rr=nt.format,Pt=nt.type,xt=nt.percent,Kt=Me(this.props);if(!at)return null;var yt,kt=rr||function(hr){return"".concat(hr,"%")},Sr=Pt==="line";return rr||It!=="exception"&&It!=="success"?yt=kt(Ce(xt),Ce(Kt)):It==="exception"?yt=Sr?t.createElement(b.a,null):t.createElement(g.a,null):It==="success"&&(yt=Sr?t.createElement(T.a,null):t.createElement(y.a,null)),t.createElement("span",{className:"".concat(un,"-text"),title:typeof yt=="string"?yt:void 0},yt)}},{key:"render",value:function(){return t.createElement(O.a,null,this.renderProgress)}}]),Ar}(t.Component);Ye.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var rt=B.a=Ye},"CMP+":function(H,B,d){var _=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"}},_.inherits(C,E);var A=C;H.exports=A},CP8R:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},"CWI+":function(H,B,d){},CbHG:function(H,B,d){var _=d("IwbS"),E=_.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,l=n.getData(),t=i(n,l),a=0,s=1,u=["x","y"],h=l.mapDimension(u[a]),p=l.mapDimension(u[s],!0),g=p[0],v=p[1],y=p[2],x=p[3];if(l.setLayout({candleWidth:t,isSimpleBox:t<=1.3}),h==null||p.length<4)return;return{progress:n.pipelineContext.large?S:T};function T(b,O){for(var I;(I=b.next())!=null;){var L=O.get(h,I),N=O.get(g,I),D=O.get(v,I),R=O.get(y,I),k=O.get(x,I),M=Math.min(N,D),j=Math.max(N,D),F=Q(M,L),U=Q(j,L),K=Q(R,L),V=Q(k,L),z=[];Z(z,U,0),Z(z,F,1),z.push(ne(V),ne(U),ne(K),ne(F)),O.setItemLayout(I,{sign:r(O,I,N,D,v),initBaseline:N>D?U[s]:F[s],ends:z,brushRect:le(R,k,L)})}function Q(ve,xe){var _e=[];return _e[a]=xe,_e[s]=ve,isNaN(xe)||isNaN(ve)?[NaN,NaN]:e.dataToPoint(_e)}function Z(ve,xe,_e){var Be=xe.slice(),me=xe.slice();Be[a]=E(Be[a]+t/2,1,!1),me[a]=E(me[a]-t/2,1,!0),_e?ve.push(Be,me):ve.push(me,Be)}function le(ve,xe,_e){var Be=Q(ve,_e),me=Q(xe,_e);return Be[a]-=t/2,me[a]-=t/2,{x:Be[0],y:Be[1],width:s?t:me[0]-Be[0],height:s?me[1]-Be[1]:t}}function ne(ve){return ve[a]=E(ve[a],1),ve}}function S(b,O){for(var I=new c(b.count*4),L=0,N,D=[],R=[],k;(k=b.next())!=null;){var M=O.get(h,k),j=O.get(g,k),F=O.get(v,k),U=O.get(y,k),K=O.get(x,k);if(isNaN(M)||isNaN(U)||isNaN(K)){I[L++]=NaN,L+=3;continue}I[L++]=r(O,k,j,F,v),D[a]=M,D[s]=U,N=e.dataToPoint(D,null,R),I[L++]=N?N[0]:NaN,I[L++]=N?N[1]:NaN,D[s]=K,N=e.dataToPoint(D,null,R),I[L++]=N?N[1]:NaN}O.setLayout("largePoints",I)}}};function r(n,e,l,t,a){var s;return l>t?s=-1:l<t?s=1:s=e>0?n.get(a,e-1)<=t?1:-1:1,s}function i(n,e){var l=n.getBaseAxis(),t,a=l.type==="category"?l.getBandWidth():(t=l.getExtent(),Math.abs(t[1]-t[0])/e.count()),s=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,s),u)}H.exports=o},CiB2:function(H,B,d){"use strict";d.d(B,"a",function(){return _});function _(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 _=d("MFOe"),E=_.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 _=E(d("4vCz"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},D1WM:function(H,B,d){var _=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"}},_.inherits(C,E);var A=C;H.exports=A},D5nY:function(H,B,d){var _=d("Tghj"),E=_.__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,l=m.isArrayLike,t=m.extend,a=m.assert,s=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 O(z){var Q=z.option.source,Z=y;if(e(Q))Z=x;else if(r(Q)){Q.length===0&&(Z=p);for(var le=0,ne=Q.length;le<ne;le++){var ve=Q[le];if(ve==null)continue;if(r(ve)){Z=p;break}else if(n(ve)){Z=g;break}}}else if(n(Q)){for(var xe in Q)if(Q.hasOwnProperty(xe)&&l(Q[xe])){Z=v;break}}else if(Q!=null)throw new Error("Invalid data");b(z).sourceFormat=Z}function I(z){return b(z).source}function L(z){b(z).datasetMap=f()}function N(z){var Q=z.option,Z=Q.data,le=e(Z)?x:h,ne=!1,ve=Q.seriesLayoutBy,xe=Q.sourceHeader,_e=Q.dimensions,Be=U(z);if(Be){var me=Be.option;Z=me.source,le=b(Be).sourceFormat,ne=!0,ve=ve||me.seriesLayoutBy,xe==null&&(xe=me.sourceHeader),_e=_e||me.dimensions}var Fe=D(Z,le,ve,xe,_e);b(z).source=new s({data:Z,fromDataset:ne,seriesLayoutBy:ve,sourceFormat:le,dimensionsDefine:Fe.dimensionsDefine,startIndex:Fe.startIndex,dimensionsDetectCount:Fe.dimensionsDetectCount,encodeDefine:Q.encode})}function D(z,Q,Z,le,ne){if(!z)return{dimensionsDefine:R(ne)};var ve,xe;if(Q===p)le==="auto"||le==null?k(function(Be){Be!=null&&Be!=="-"&&(i(Be)?xe==null&&(xe=1):xe=0)},Z,z,10):xe=le?1:0,!ne&&xe===1&&(ne=[],k(function(Be,me){ne[me]=Be!=null?Be:""},Z,z)),ve=ne?ne.length:Z===T?z.length:z[0]?z[0].length:null;else if(Q===g)ne||(ne=M(z));else if(Q===v)ne||(ne=[],c(z,function(Be,me){ne.push(me)}));else if(Q===h){var _e=w(z[0]);ve=r(_e)&&_e.length||1}else Q===x;return{startIndex:xe,dimensionsDefine:R(ne),dimensionsDetectCount:ve}}function R(z){if(!z)return;var Q=f();return o(z,function(Z,le){if(Z=t({},n(Z)?Z:{name:Z}),Z.name==null)return Z;Z.name+="",Z.displayName==null&&(Z.displayName=Z.name);var ne=Q.get(Z.name);return ne?Z.name+="-"+ne.count++:Q.set(Z.name,{count:1}),Z})}function k(z,Q,Z,le){if(le==null&&(le=Infinity),Q===T)for(var ne=0;ne<Z.length&&ne<le;ne++)z(Z[ne]?Z[ne][0]:null,ne);else for(var ve=Z[0]||[],ne=0;ne<ve.length&&ne<le;ne++)z(ve[ne],ne)}function M(z){for(var Q=0,Z;Q<z.length&&!(Z=z[Q++]););if(Z){var le=[];return c(Z,function(ne,ve){le.push(ve)}),le}}function j(z,Q,Z){var le={},ne=U(Q);if(!ne||!z)return le;var ve=[],xe=[],_e=Q.ecModel,Be=b(_e).datasetMap,me=ne.uid+"_"+Z.seriesLayoutBy,Fe,ie;z=z.slice(),c(z,function(Y,G){!n(Y)&&(z[G]={name:Y}),Y.type==="ordinal"&&Fe==null&&(Fe=G,ie=oe(z[G])),le[Y.name]=[]});var te=Be.get(me)||Be.set(me,{categoryWayDim:ie,valueWayDim:0});c(z,function(Y,G){var X=Y.name,fe=oe(Y);if(Fe==null){var de=te.valueWayDim;Ge(le[X],de,fe),Ge(xe,de,fe),te.valueWayDim+=fe}else if(Fe===G)Ge(le[X],0,fe),Ge(ve,0,fe);else{var de=te.categoryWayDim;Ge(le[X],de,fe),Ge(xe,de,fe),te.categoryWayDim+=fe}});function Ge(Y,G,X){for(var fe=0;fe<X;fe++)Y.push(G+fe)}function oe(Y){var G=Y.dimsDef;return G?G.length:1}return ve.length&&(le.itemName=ve),xe.length&&(le.seriesName=xe),le}function F(z,Q,Z){var le={},ne=U(z);if(!ne)return le;var ve=Q.sourceFormat,xe=Q.dimensionsDefine,_e;(ve===g||ve===v)&&c(xe,function(Fe,ie){(n(Fe)?Fe.name:Fe)==="name"&&(_e=ie)});var Be=function(){for(var Fe={},ie={},te=[],Ge=0,oe=Math.min(5,Z);Ge<oe;Ge++){var Y=V(Q.data,ve,Q.seriesLayoutBy,xe,Q.startIndex,Ge);te.push(Y);var G=Y===S.Not;if(G&&Fe.v==null&&Ge!==_e&&(Fe.v=Ge),(Fe.n==null||Fe.n===Fe.v||!G&&te[Fe.n]===S.Not)&&(Fe.n=Ge),X(Fe)&&te[Fe.n]!==S.Not)return Fe;G||(Y===S.Might&&ie.v==null&&Ge!==_e&&(ie.v=Ge),(ie.n==null||ie.n===ie.v)&&(ie.n=Ge))}function X(fe){return fe.v!=null&&fe.n!=null}return X(Fe)?Fe:X(ie)?ie:null}();if(Be){le.value=Be.v;var me=_e!=null?_e:Be.n;le.itemName=[me],le.seriesName=[me]}return le}function U(z){var Q=z.option,Z=Q.data;if(!Z)return z.ecModel.getComponent("dataset",Q.datasetIndex||0)}function K(z,Q){return V(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,Q)}function V(z,Q,Z,le,ne,ve){var xe,_e=5;if(e(z))return S.Not;var Be,me;if(le){var Fe=le[ve];n(Fe)?(Be=Fe.name,me=Fe.type):i(Fe)&&(Be=Fe)}if(me!=null)return me==="ordinal"?S.Must:S.Not;if(Q===p)if(Z===T){for(var ie=z[ve],te=0;te<(ie||[]).length&&te<_e;te++)if((xe=G(ie[ne+te]))!=null)return xe}else for(var te=0;te<z.length&&te<_e;te++){var Ge=z[ne+te];if(Ge&&(xe=G(Ge[ve]))!=null)return xe}else if(Q===g){if(!Be)return S.Not;for(var te=0;te<z.length&&te<_e;te++){var oe=z[te];if(oe&&(xe=G(oe[Be]))!=null)return xe}}else if(Q===v){if(!Be)return S.Not;var ie=z[Be];if(!ie||e(ie))return S.Not;for(var te=0;te<ie.length&&te<_e;te++)if((xe=G(ie[te]))!=null)return xe}else if(Q===h)for(var te=0;te<z.length&&te<_e;te++){var oe=z[te],Y=w(oe);if(!r(Y))return S.Not;if((xe=G(Y[ve]))!=null)return xe}function G(X){var fe=i(X);if(X!=null&&isFinite(X)&&X!=="")return fe?S.Might:S.Not;if(fe&&X!=="-")return S.Must}return S.Not}B.BE_ORDINAL=S,B.detectSourceFormat=O,B.getSource=I,B.resetSourceDefaulter=L,B.prepareSource=N,B.makeSeriesEncodeForAxisCoordSys=j,B.makeSeriesEncodeForNameBased=F,B.guessOrdinal=K},D9ME:function(H,B,d){var _=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){_.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),l=e.getModel("effect"),t=l.get("symbolSize"),a=l.get("symbol");C.isArray(t)||(t=[t,t]);var s=l.get("color")||i.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==a&&(this.remove(u),u=w(a,-.5,-.5,1,1,s),u.z2=100,u.culling=!0,this.add(u)),!u)return;u.setStyle("shadowColor",s),u.setStyle(l.getItemStyle(["color"])),u.attr("scale",t),u.setColor(s),u.attr("scale",t),this._symbolType=a,this._symbolScale=t,this._updateEffectAnimation(i,l,n)},o._updateEffectAnimation=function(i,n,e){var l=this.childAt(1);if(!l)return;var t=this,a=i.getItemLayout(e),s=n.get("period")*1e3,u=n.get("loop"),h=n.get("constantSpeed"),p=C.retrieve(n.get("delay"),function(x){return x/i.count()*s/3}),g=typeof p=="function";if(l.ignore=!0,this.updateAnimationPoints(l,a),h>0&&(s=this.getLineLength(l)/h*1e3),s!==this._period||u!==this._loop){l.stopAnimation();var v=p;g&&(v=p(e)),l.__t>0&&(v=-s*l.__t),l.__t=0;var y=l.animate("",u).when(s,{__t:1}).delay(v).during(function(){t.updateSymbolPosition(l)});u||y.done(function(){t.remove(l)}),y.start()}this._period=s,this._loop=u},o.getLineLength=function(i){return 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,l=i.__cp1,t=i.__t,a=i.position,s=[a[0],a[1]],u=f.quadraticAt,h=f.quadraticDerivativeAt;a[0]=u(n[0],l[0],e[0],t),a[1]=u(n[1],l[1],e[1],t);var p=h(n[0],l[0],e[0],t),g=h(n[1],l[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(s,a)*1.05;i.attr("scale",[i.scale[0],v]),t===1&&(a[0]=s[0]+(a[0]-s[0])/2,a[1]=s[1]+(a[1]-s[1])/2)}else if(i.__lastT===1){var v=2*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,_.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,l=[{newPos:-1,components:[]}],t=this.extractCommon(l[0],f,m,0);if(l[0].newPos+1>=r&&t+1>=i){for(var a=[],s=0;s<f.length;s++)a.push(s);return[{indices:a,count:f.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var g,v=l[p-1],y=l[p+1],x=(y?y.newPos:0)-p;v&&(l[p-1]=void 0);var T=v&&v.newPos+1<r,S=y&&0<=x&&x<i;if(!T&&!S){l[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,g.components,f,m);l[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,l=0;n+1<r&&e+1<i&&this.equals(f[n+1],c[e+1]);)n++,e++,l++;return l&&m.components.push({count:l}),m.newPos=n,e},tokenize:function(m){return m.slice()},join:function(m){return m.slice()}};function _(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 l=[],t=n;t<n+e.count;t++)l.push(t);e.indices=l,n+=e.count}else{for(var l=[],t=i;t<i+e.count;t++)l.push(t);e.indices=l,i+=e.count,e.added||(n+=e.count)}}return 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 _=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 s=a.getItemStyle(),u=a.get("areaColor");return u!=null&&(s.fill=u),s}function n(a,s,u,h,p){u.off("click"),u.off("mousedown"),s.get("selectedMode")&&(u.on("mousedown",function(){a._mouseDownFlag=!0}),u.on("click",function(g){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var v=g.target;!v.__regions;)v=v.parent;if(!v)return;var y={type:(s.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:_.map(v.__regions,function(x){return{name:x.name,from:p.uid}})};y[s.mainType+"Id"]=s.id,h.dispatchAction(y),e(s,u)}))}function e(a,s){s.eachChild(function(u){_.each(u.__regions,function(h){u.trigger(a.isSelected(h.name)?"emphasis":"normal")})})}function l(a,s){var u=new m.Group;this.uid=o("ec_map_draw"),this._controller=new E(a.getZr()),this._controllerHost={target:s?u:null},this.group=u,this._updateGroup=s,this._mouseDownFlag,this._mapName,this._initialized,u.add(this._regionsGroup=new m.Group),u.add(this._backgroundGroup=new m.Group)}l.prototype={constructor:l,draw:function(a,s,u,h,p){var g=a.mainType==="geo",v=a.getData&&a.getData();g&&s.eachComponent({mainType:"series",subType:"map"},function(U){!v&&U.getHostGeoModel()===a&&(v=U.getData())});var y=a.coordinateSystem;this._updateBackground(y);var x=this._regionsGroup,T=this.group,S=y.getTransformInfo(),b=!x.childAt(0)||p,O;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};O=I.scale,m.updateProps(T,L,a)}var N=S.rawScale,D=S.rawPosition;x.removeAll();var R=["itemStyle"],k=["emphasis","itemStyle"],M=["label"],j=["emphasis","label"],F=_.createHashMap();_.each(y.regions,function(U){var K=F.get(U.name)||F.set(U.name,new m.Group),V=new m.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});K.add(V);var z=a.getRegionModel(U.name)||a,Q=z.getModel(R),Z=z.getModel(k),le=i(Q),ne=i(Z),ve=z.getModel(M),xe=z.getModel(j),_e;if(v){_e=v.indexOfName(U.name);var Be=v.getItemVisual(_e,"color",!0);Be&&(le.fill=Be)}var me=function(de){return[de[0]*N[0]+D[0],de[1]*N[1]+D[1]]};_.each(U.geometries,function(de){if(de.type!=="polygon")return;for(var Ce=[],Me=0;Me<de.exterior.length;++Me)Ce.push(me(de.exterior[Me]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Me=0;Me<(de.interiors?de.interiors.length:0);++Me){for(var ue=de.interiors[Me],Ce=[],Ae=0;Ae<ue.length;++Ae)Ce.push(me(ue[Ae]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),V.setStyle(le),V.style.strokeNoScale=!0,V.culling=!0;var Fe=ve.get("show"),ie=xe.get("show"),te=v&&isNaN(v.get(v.mapDimension("value"),_e)),Ge=v&&v.getItemLayout(_e);if(g||te&&(Fe||ie)||Ge&&Ge.showLabel){var oe=g?U.name:_e,Y;(!v||_e>=0)&&(Y=a);var G=new m.Text({position:me(U.center.slice()),scale:[1/T.scale[0],1/T.scale[1]],z2:10,silent:!0});if(m.setLabelStyle(G.style,G.hoverStyle={},ve,xe,{labelFetcher:Y,labelDataIndex:oe,defaultText:U.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var X=[1/O[0],1/O[1]];m.updateProps(G,{scale:X},a)}K.add(G)}if(v)v.setItemGraphicEl(_e,K);else{var z=a.getRegionModel(U.name);V.eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:U.name,region:z&&z.option||{}}}var fe=K.__regions||(K.__regions=[]);fe.push(U),K.highDownSilentOnTouch=!!a.get("selectedMode"),m.setHoverStyle(K,ne),x.add(K)}),this._updateController(a,s,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 s=a.map;this._mapName!==s&&_.each(f.makeGraphic(s,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=s},_updateController:function(a,s,u){var h=a.coordinateSystem,p=this._controller,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(_.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(_.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=l;H.exports=t},DFOY:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=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"),O=d("zT1h"),I=d("QC+M"),L=d("TSYQ"),N=d.n(L);function D(Dt,ft,St){return St?Dt[0]===ft[0]:Dt[0]===ft[0]&&Dt[1]===ft[1]}function R(Dt,ft,St){var Ct=Dt[ft]||{};return Object(s.a)(Object(s.a)({},Ct),St)}function k(Dt,ft,St,Ct){for(var Nt=St.points,gt=Object.keys(Dt),Qt=0;Qt<gt.length;Qt+=1){var tr=gt[Qt];if(D(Dt[tr].points,Nt,Ct))return"".concat(ft,"-placement-").concat(tr)}return""}var M=d("Ff2n"),j=d("xEkU"),F=d.n(j),U=d("9mu1"),K=d("rePB"),V=d("U8pU"),z=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Q(Dt,ft){var St={};return St[Dt.toLowerCase()]=ft.toLowerCase(),St["Webkit".concat(Dt)]="webkit".concat(ft),St["Moz".concat(Dt)]="moz".concat(ft),St["ms".concat(Dt)]="MS".concat(ft),St["O".concat(Dt)]="o".concat(ft.toLowerCase()),St}function Z(Dt,ft){var St={animationend:Q("Animation","AnimationEnd"),transitionend:Q("Transition","TransitionEnd")};return Dt&&("AnimationEvent"in ft||delete St.animationend.animation,"TransitionEvent"in ft||delete St.transitionend.transition),St}var le=Z(z,typeof window!="undefined"?window:{}),ne={};if(z){var ve=document.createElement("div");ne=ve.style}var xe={};function _e(Dt){if(xe[Dt])return xe[Dt];var ft=le[Dt];if(ft)for(var St=Object.keys(ft),Ct=St.length,Nt=0;Nt<Ct;Nt+=1){var gt=St[Nt];if(Object.prototype.hasOwnProperty.call(ft,gt)&> in ne)return xe[Dt]=ft[gt],xe[Dt]}return""}var Be=_e("animationend"),me=_e("transitionend"),Fe=!!(Be&&me);function ie(Dt,ft){if(!Dt)return null;if(Object(V.a)(Dt)==="object"){var St=ft.replace(/-\w/g,function(Ct){return Ct[1].toUpperCase()});return Dt[St]}return"".concat(Dt,"-").concat(ft)}var te="none",Ge="appear",oe="enter",Y="leave";function G(Dt){var ft=Dt,St=!!t.forwardRef;Object(V.a)(Dt)==="object"&&(ft=Dt.transitionSupport,St="forwardRef"in Dt?Dt.forwardRef:St);function Ct(gt){return!!(gt.motionName&&ft)}var Nt=function(gt){Object(g.a)(tr,gt);var Qt=Object(v.a)(tr);function tr(){var ar;return Object(u.a)(this,tr),ar=Qt.apply(this,arguments),ar.$cacheEle=null,ar.node=null,ar.raf=null,ar.destroyed=!1,ar.deadlineId=null,ar.state={status:te,statusActive:!1,newStatus:!1,statusStyle:null},ar.onDomUpdate=function(){var yr=ar.state,xn=yr.status,vn=yr.newStatus,zn=ar.props,Yr=zn.onAppearStart,xr=zn.onEnterStart,ln=zn.onLeaveStart,On=zn.onAppearActive,In=zn.onEnterActive,Un=zn.onLeaveActive,ti=zn.motionAppear,ui=zn.motionEnter,si=zn.motionLeave;if(!Ct(ar.props))return;var ki=ar.getElement();ar.$cacheEle!==ki&&(ar.removeEventListener(ar.$cacheEle),ar.addEventListener(ki),ar.$cacheEle=ki),vn&&xn===Ge&&ti?ar.updateStatus(Yr,null,null,function(){ar.updateActiveStatus(On,Ge)}):vn&&xn===oe&&ui?ar.updateStatus(xr,null,null,function(){ar.updateActiveStatus(In,oe)}):vn&&xn===Y&&si&&ar.updateStatus(ln,null,null,function(){ar.updateActiveStatus(Un,Y)})},ar.onMotionEnd=function(yr){if(yr&&!yr.deadline&&yr.target!==ar.getElement())return;var xn=ar.state,vn=xn.status,zn=xn.statusActive,Yr=ar.props,xr=Yr.onAppearEnd,ln=Yr.onEnterEnd,On=Yr.onLeaveEnd;vn===Ge&&zn?ar.updateStatus(xr,{status:te},yr):vn===oe&&zn?ar.updateStatus(ln,{status:te},yr):vn===Y&&zn&&ar.updateStatus(On,{status:te},yr)},ar.setNodeRef=function(yr){var xn=ar.props.internalRef;ar.node=yr,Object(b.b)(xn,yr)},ar.getElement=function(){try{return Object(S.a)(ar.node||Object(p.a)(ar))}catch(yr){return ar.$cacheEle}},ar.addEventListener=function(yr){if(!yr)return;yr.addEventListener(me,ar.onMotionEnd),yr.addEventListener(Be,ar.onMotionEnd)},ar.removeEventListener=function(yr){if(!yr)return;yr.removeEventListener(me,ar.onMotionEnd),yr.removeEventListener(Be,ar.onMotionEnd)},ar.updateStatus=function(yr,xn,vn,zn){var Yr=yr?yr(ar.getElement(),vn):null;if(Yr===!1||ar.destroyed)return;var xr;zn&&(xr=function(){ar.nextFrame(zn)}),ar.setState(Object(s.a)({statusStyle:Object(V.a)(Yr)==="object"?Yr:null,newStatus:!1},xn),xr)},ar.updateActiveStatus=function(yr,xn){ar.nextFrame(function(){var vn=ar.state.status;if(vn!==xn)return;var zn=ar.props.motionDeadline;ar.updateStatus(yr,{statusActive:!0}),zn>0&&(ar.deadlineId=setTimeout(function(){ar.onMotionEnd({deadline:!0})},zn))})},ar.nextFrame=function(yr){ar.cancelNextFrame(),ar.raf=F()(yr)},ar.cancelNextFrame=function(){ar.raf&&(F.a.cancel(ar.raf),ar.raf=null)},ar}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,zn=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===te||!Ct(this.props)?In?ln(Object(s.a)({},ui),this.setNodeRef):Un?null:ln(Object(s.a)(Object(s.a)({},ui),{},{className:ti}),this.setNodeRef):ln(Object(s.a)(Object(s.a)({},ui),{},{className:N()(ie(On,vn),(yr={},Object(K.a)(yr,ie(On,"".concat(vn,"-active")),zn),Object(K.a)(yr,On,typeof On=="string"),yr)),style:Yr}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(yr,xn){var vn=xn.prevProps,zn=xn.status;if(!Ct(yr))return{};var Yr=yr.visible,xr=yr.motionAppear,ln=yr.motionEnter,On=yr.motionLeave,In=yr.motionLeaveImmediately,Un={prevProps:yr};return(zn===Ge&&!xr||zn===oe&&!ln||zn===Y&&!On)&&(Un.status=te,Un.statusActive=!1,Un.newStatus=!1),!vn&&Yr&&xr&&(Un.status=Ge,Un.statusActive=!1,Un.newStatus=!0),vn&&!vn.visible&&Yr&&ln&&(Un.status=oe,Un.statusActive=!1,Un.newStatus=!0),(vn&&vn.visible&&!Yr&&On||!vn&&In&&!Yr&&On)&&(Un.status=Y,Un.statusActive=!1,Un.newStatus=!0),Un}}]),tr}(t.Component);return Nt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},St?t.forwardRef(function(gt,Qt){return t.createElement(Nt,Object.assign({internalRef:Qt},gt))}):Nt}var X=G(Fe),fe="add",de="keep",Ce="remove",Me="removed";function ue(Dt){var ft;return Dt&&Object(V.a)(Dt)==="object"&&"key"in Dt?ft=Dt:ft={key:Dt},Object(s.a)(Object(s.a)({},ft),{},{key:String(ft.key)})}function Ae(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Dt.map(ue)}function Te(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],St=[],Ct=0,Nt=ft.length,gt=Ae(Dt),Qt=Ae(ft);gt.forEach(function(yr){for(var xn=!1,vn=Ct;vn<Nt;vn+=1){var zn=Qt[vn];if(zn.key===yr.key){Ct<vn&&(St=St.concat(Qt.slice(Ct,vn).map(function(Yr){return Object(s.a)(Object(s.a)({},Yr),{},{status:fe})})),Ct=vn),St.push(Object(s.a)(Object(s.a)({},zn),{},{status:de})),Ct+=1,xn=!0;break}}xn||St.push(Object(s.a)(Object(s.a)({},yr),{},{status:Ce}))}),Ct<Nt&&(St=St.concat(Qt.slice(Ct).map(function(yr){return Object(s.a)(Object(s.a)({},yr),{},{status:fe})})));var tr={};St.forEach(function(yr){var xn=yr.key;tr[xn]=(tr[xn]||0)+1});var ar=Object.keys(tr).filter(function(yr){return tr[yr]>1});return ar.forEach(function(yr){St=St.filter(function(xn){var vn=xn.key,zn=xn.status;return vn!==yr||zn!==Ce}),St.forEach(function(xn){xn.key===yr&&(xn.status=de)})}),St}var Je=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function At(Dt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:X,St=function(Ct){Object(g.a)(gt,Ct);var Nt=Object(v.a)(gt);function gt(){var Qt;return Object(u.a)(this,gt),Qt=Nt.apply(this,arguments),Qt.state={keyEntities:[]},Qt.removeKey=function(tr){Qt.setState(function(ar){var yr=ar.keyEntities;return{keyEntities:yr.map(function(xn){return xn.key!==tr?xn:Object(s.a)(Object(s.a)({},xn),{},{status:Me})})}})},Qt}return Object(h.a)(gt,[{key:"render",value:function(){var tr=this,ar=this.state.keyEntities,yr=this.props,xn=yr.component,vn=yr.children,zn=Object(M.a)(yr,["component","children"]),Yr=xn||t.Fragment,xr={};return Je.forEach(function(ln){xr[ln]=zn[ln],delete zn[ln]}),delete zn.keys,t.createElement(Yr,Object.assign({},zn),ar.map(function(ln){var On=ln.status,In=Object(M.a)(ln,["status"]),Un=On===fe||On===de;return t.createElement(ft,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,ar){var yr=tr.keys,xn=ar.keyEntities,vn=Ae(yr);if(!Dt)return{keyEntities:vn.map(function(xr){return Object(s.a)(Object(s.a)({},xr),{},{status:de})})};var zn=Te(xn,vn),Yr=xn.length;return{keyEntities:zn.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===Me&&xr.status===Ce)})}}}]),gt}(t.Component);return St.defaultProps={component:"div"},St}var qe=At(Fe),Re=X,Lt=function(ft,St){var Ct=ft.prefixCls,Nt=ft.className,gt=ft.style,Qt=ft.children,tr=ft.onMouseEnter,ar=ft.onMouseLeave,yr=ft.onMouseDown,xn=ft.onTouchStart,vn=Qt;return t.Children.count(Qt)>1&&(vn=t.createElement("div",{className:"".concat(Ct,"-content")},Qt)),t.createElement("div",{ref:St,className:Nt,onMouseEnter:tr,onMouseLeave:ar,onMouseDown:yr,onTouchStart:xn,style:gt},vn)},$e=t.forwardRef(Lt);$e.displayName="PopupInner";var Et=$e;function Ut(Dt){var ft=Dt.prefixCls,St=Dt.motion,Ct=Dt.animation,Nt=Dt.transitionName;return St||(Ct?{motionName:"".concat(ft,"-").concat(Ct)}:Nt?{motionName:Nt}:null)}function Bt(Dt){return Dt&&Dt.motionName}var _t=function(Dt){Object(g.a)(St,Dt);var ft=Object(v.a)(St);function St(){var Ct;return Object(u.a)(this,St),Ct=ft.apply(this,arguments),Ct.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Ct.popupRef=a.a.createRef(),Ct.alignRef=a.a.createRef(),Ct.nextFrameState=null,Ct.nextFrameId=null,Ct.onAlign=function(Nt,gt){var Qt=Ct.state.status,tr=Ct.props,ar=tr.getClassNameFromAlign,yr=tr.onAlign,xn=ar(gt);Qt==="align"?Ct.setState({alignClassName:xn,status:"aligned"},function(){Ct.alignRef.current.forceAlign()}):Qt==="aligned"?(Ct.setState({alignClassName:xn,status:"afterAlign"}),yr(Nt,gt)):Ct.setState({alignClassName:xn})},Ct.onMotionEnd=function(){var Nt=Ct.props.visible;Ct.setState({status:Nt?"AfterMotion":"stable",inMotion:!1})},Ct.setStateOnNextFrame=function(Nt){Ct.cancelFrameState(),Ct.nextFrameState=Object(s.a)(Object(s.a)({},Ct.nextFrameState),Nt),Ct.nextFrameId=F()(function(){var gt=Object(s.a)({},Ct.nextFrameState);Ct.nextFrameState=null,Ct.setState(gt)})},Ct.getMotion=function(){return Object(s.a)({},Ut(Ct.props))},Ct.getAlignTarget=function(){var Nt=Ct.props,gt=Nt.point,Qt=Nt.getRootDomNode;return gt||Qt},Ct.cancelFrameState=function(){F.a.cancel(Ct.nextFrameId)},Ct.renderPopupElement=function(){var Nt=Ct.state,gt=Nt.status,Qt=Nt.targetHeight,tr=Nt.targetWidth,ar=Nt.alignClassName,yr=Ct.props,xn=yr.prefixCls,vn=yr.className,zn=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,ki=N()(xn,vn,ar),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(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},Ri),Ct.getZIndexStyle()),zn),{},{opacity:gt==="stable"||!xr?void 0:0,pointerEvents:gt==="stable"||!xr?void 0:"none"}),$n=Ct.getMotion(),gn=xr;xr&>!=="beforeMotion"&>!=="motion"&>!=="stable"&&($n.motionAppear=!1,$n.motionEnter=!1,$n.motionLeave=!1),(gt==="afterAlign"||gt==="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),Ct.setState({inMotion:!0})}});var mi=!xr||gt!=="align"&>!=="aligned"&>!=="stable",Hi=!0;return gt==="stable"&&(Hi=xr),On&&!Hi?null:a.a.createElement(Re,Object.assign({visible:gn},$n,{removeOnLeave:!1,onEnterEnd:Ct.onMotionEnd,onLeaveEnd:Ct.onMotionEnd,leavedClassName:zi}),function(Li,Bi){var wr=Li.style,lr=Li.className;return a.a.createElement(U.a,{target:Ct.getAlignTarget(),key:"popup",ref:Ct.alignRef,monitorWindowResize:!0,disabled:mi,align:ln,onAlign:Ct.onAlign},a.a.createElement(Et,{prefixCls:xn,className:N()(ki,lr),ref:Object(b.a)(Bi,Ct.popupRef),onMouseEnter:In,onMouseLeave:Un,onMouseDown:ti,onTouchStart:ui,style:Object(s.a)(Object(s.a)({},Yi),wr)},si))})},Ct.renderMaskElement=function(){var Nt=Ct.props,gt=Nt.mask,Qt=Nt.maskMotion,tr=Nt.maskTransitionName,ar=Nt.maskAnimation,yr=Nt.prefixCls,xn=Nt.visible;if(!gt)return null;var vn={};return Qt&&Qt.motionName&&(vn=Object(s.a)({motionAppear:!0},Ut({motion:Qt,prefixCls:yr,transitionName:tr,animation:ar}))),a.a.createElement(Re,Object.assign({},vn,{visible:xn,removeOnLeave:!0}),function(zn){var Yr=zn.className;return a.a.createElement("div",{style:Ct.getZIndexStyle(),key:"mask",className:N()("".concat(yr,"-mask"),Yr)})})},Ct}return Object(h.a)(St,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Nt=this.state.status,gt=this.props,Qt=gt.getRootDomNode,tr=gt.visible,ar=gt.stretch;if(this.cancelFrameState(),tr&&Nt!=="stable")switch(Nt){case null:{this.setStateOnNextFrame({status:ar?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Bt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var yr=["measure","align",null,"beforeMotion","motion"],xn=yr.indexOf(Nt),vn=yr[xn+1];xn!==-1&&vn&&this.setStateOnNextFrame({status:vn})}}if(Nt==="measure"){var zn=Qt();zn&&this.setStateOnNextFrame({targetHeight:zn.offsetHeight,targetWidth:zn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Nt=this.props.zIndex;return{zIndex:Nt}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Nt,gt){var Qt=Nt.visible,tr=Object(M.a)(Nt,["visible"]),ar=gt.prevVisible,yr=gt.status,xn=gt.inMotion,vn={prevVisible:Qt,status:yr},zn=Ut(tr);return ar===null&&Qt===!1?(vn.status="stable",vn.inMotion=!1):Qt!==ar&&(vn.inMotion=!1,Qt||Bt(zn)&&xn?vn.status=null:vn.status="stable",Qt&&(vn.alignClassName=null)),vn}}]),St}(t.Component),jt=_t,He=t.createContext(null),se=He;function J(){}function Ue(){return""}function Le(){return window.document}var ee=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ct(Dt){var ft=function(St){Object(g.a)(Nt,St);var Ct=Object(v.a)(Nt);function Nt(gt){var Qt;Object(u.a)(this,Nt),Qt=Ct.call(this,gt),Qt.popupRef=a.a.createRef(),Qt.triggerRef=a.a.createRef(),Qt.onMouseEnter=function(ar){var yr=Qt.props.mouseEnterDelay;Qt.fireEvents("onMouseEnter",ar),Qt.delaySetPopupVisible(!0,yr,yr?null:ar)},Qt.onMouseMove=function(ar){Qt.fireEvents("onMouseMove",ar),Qt.setPoint(ar)},Qt.onMouseLeave=function(ar){Qt.fireEvents("onMouseLeave",ar),Qt.delaySetPopupVisible(!1,Qt.props.mouseLeaveDelay)},Qt.onPopupMouseEnter=function(){Qt.clearDelayTimer()},Qt.onPopupMouseLeave=function(ar){if(ar.relatedTarget&&!ar.relatedTarget.setTimeout&&Qt.popupRef.current&&Qt.popupRef.current.popupRef.current&&Object(T.a)(Qt.popupRef.current.popupRef.current,ar.relatedTarget))return;Qt.delaySetPopupVisible(!1,Qt.props.mouseLeaveDelay)},Qt.onFocus=function(ar){Qt.fireEvents("onFocus",ar),Qt.clearDelayTimer(),Qt.isFocusToShow()&&(Qt.focusTime=Date.now(),Qt.delaySetPopupVisible(!0,Qt.props.focusDelay))},Qt.onMouseDown=function(ar){Qt.fireEvents("onMouseDown",ar),Qt.preClickTime=Date.now()},Qt.onTouchStart=function(ar){Qt.fireEvents("onTouchStart",ar),Qt.preTouchTime=Date.now()},Qt.onBlur=function(ar){Qt.fireEvents("onBlur",ar),Qt.clearDelayTimer(),Qt.isBlurToHide()&&Qt.delaySetPopupVisible(!1,Qt.props.blurDelay)},Qt.onContextMenu=function(ar){ar.preventDefault(),Qt.fireEvents("onContextMenu",ar),Qt.setPopupVisible(!0,ar)},Qt.onContextMenuClose=function(){Qt.isContextMenuToShow()&&Qt.close()},Qt.onClick=function(ar){if(Qt.fireEvents("onClick",ar),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())&&ar&&ar.preventDefault&&ar.preventDefault();var xn=!Qt.state.popupVisible;(Qt.isClickToHide()&&!xn||xn&&Qt.isClickToShow())&&Qt.setPopupVisible(!Qt.state.popupVisible,ar)},Qt.onPopupMouseDown=function(){if(Qt.hasPopupMouseDown=!0,clearTimeout(Qt.mouseDownTimeout),Qt.mouseDownTimeout=window.setTimeout(function(){Qt.hasPopupMouseDown=!1},0),Qt.context){var ar;(ar=Qt.context).onPopupMouseDown.apply(ar,arguments)}},Qt.onDocumentClick=function(ar){if(Qt.props.mask&&!Qt.props.maskClosable)return;var yr=ar.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 ar=Qt.props.getTriggerDOMNode;if(ar)return ar(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(ar){var yr=[],xn=Qt.props,vn=xn.popupPlacement,zn=xn.builtinPlacements,Yr=xn.prefixCls,xr=xn.alignPoint,ln=xn.getPopupClassNameFromAlign;return vn&&zn&&yr.push(k(zn,Yr,ar,xr)),ln&&yr.push(ln(ar)),yr.join(" ")},Qt.getComponent=function(){var ar=Qt.props,yr=ar.prefixCls,xn=ar.destroyPopupOnHide,vn=ar.popupClassName,zn=ar.onPopupAlign,Yr=ar.popupMotion,xr=ar.popupAnimation,ln=ar.popupTransitionName,On=ar.popupStyle,In=ar.mask,Un=ar.maskAnimation,ti=ar.maskTransitionName,ui=ar.maskMotion,si=ar.zIndex,ki=ar.popup,zi=ar.stretch,Ri=ar.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(jt,Object.assign({prefixCls:yr,destroyPopupOnHide:xn,visible:$n,point:Ri&&gn,className:vn,align:mi,onAlign:zn,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 ki=="function"?ki():ki)},Qt.getContainer=function(){var ar=Object(p.a)(Qt),yr=ar.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(ar){var yr=Qt.props.alignPoint;if(!yr||!ar)return;Qt.setState({point:{pageX:ar.pageX,pageY:ar.pageY}})},Qt.handlePortalUpdate=function(){Qt.state.prevPopupVisible!==Qt.state.popupVisible&&Qt.props.afterPopupVisibleChange(Qt.state.popupVisible)};var tr;return"popupVisible"in gt?tr=!!gt.popupVisible:tr=!!gt.defaultPopupVisible,Qt.state={prevPopupVisible:tr,popupVisible:tr},ee.forEach(function(ar){Qt["fire".concat(ar)]=function(yr){Qt.fireEvents(ar,yr)}}),Qt}return Object(h.a)(Nt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Qt=this.props,tr=this.state;if(tr.popupVisible){var ar;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ar=Qt.getDocument(),this.clickOutsideHandler=Object(O.a)(ar,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ar=ar||Qt.getDocument(),this.touchOutsideHandler=Object(O.a)(ar,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ar=ar||Qt.getDocument(),this.contextMenuOutsideHandler1=Object(O.a)(ar,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(O.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Qt=this.props,tr=Qt.popupPlacement,ar=Qt.popupAlign,yr=Qt.builtinPlacements;return tr&&yr?R(yr,tr,ar):ar}},{key:"setPopupVisible",value:function(Qt,tr){var ar=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)),ar&&tr&&this.setPoint(tr)}},{key:"delaySetPopupVisible",value:function(Qt,tr,ar){var yr=this,xn=tr*1e3;if(this.clearDelayTimer(),xn){var vn=ar?{pageX:ar.pageX,pageY:ar.pageY}:null;this.delayTimer=window.setTimeout(function(){yr.setPopupVisible(Qt,vn),yr.clearDelayTimer()},xn)}else this.setPopupVisible(Qt,ar)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Qt){var tr=this.props.children.props,ar=this.props;return tr[Qt]&&ar[Qt]?this["fire".concat(Qt)]:tr[Qt]||ar[Qt]}},{key:"isClickToShow",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.showAction;return tr.indexOf("click")!==-1||ar.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.showAction;return tr.indexOf("contextMenu")!==-1||ar.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.hideAction;return tr.indexOf("click")!==-1||ar.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.showAction;return tr.indexOf("hover")!==-1||ar.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.hideAction;return tr.indexOf("hover")!==-1||ar.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.showAction;return tr.indexOf("focus")!==-1||ar.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Qt=this.props,tr=Qt.action,ar=Qt.hideAction;return tr.indexOf("focus")!==-1||ar.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Qt,tr){var ar=this.props.children.props[Qt];ar&&ar(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,ar=tr.children,yr=tr.forceRender,xn=tr.alignPoint,vn=tr.className,zn=tr.autoDestroy,Yr=a.a.Children.only(ar),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(s.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(Dt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Qt&&zn&&(Un=null),a.a.createElement(se.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},In,Un)}}],[{key:"getDerivedStateFromProps",value:function(Qt,tr){var ar=Qt.popupVisible,yr={};return ar!==void 0&&tr.popupVisible!==ar&&(yr.popupVisible=ar,yr.prevPopupVisible=tr.popupVisible),yr}}]),Nt}(a.a.Component);return ft.contextType=se,ft.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ue,getDocument:Le,onPopupVisibleChange:J,afterPopupVisibleChange:J,onPopupAlign:J,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ft}var Mt=ct(I.a),ot=d("2W6z"),Yt=d.n(ot),or=d("4IlW"),Zr=d("uK0f"),ir=d.n(Zr);function dr(Dt,ft){if(Dt===ft)return!0;if(!Dt||!ft)return!1;var St=Dt.length;if(ft.length!==St)return!1;for(var Ct=0;Ct<St;Ct++)if(Dt[Ct]!==ft[Ct])return!1;return!0}function qt(Dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qt=function(St){return typeof St}:qt=function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},qt(Dt)}function Ht(Dt,ft){if(!(Dt instanceof ft))throw new TypeError("Cannot call a class as a function")}function lt(Dt,ft){for(var St=0;St<ft.length;St++){var Ct=ft[St];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Dt,Ct.key,Ct)}}function Hr(Dt,ft,St){return ft&<(Dt.prototype,ft),St&<(Dt,St),Dt}function dn(Dt,ft){if(typeof ft!="function"&&ft!==null)throw new TypeError("Super expression must either be null or a function");Dt.prototype=Object.create(ft&&ft.prototype,{constructor:{value:Dt,writable:!0,configurable:!0}}),ft&&Nn(Dt,ft)}function Nn(Dt,ft){return Nn=Object.setPrototypeOf||function(Ct,Nt){return Ct.__proto__=Nt,Ct},Nn(Dt,ft)}function Wn(Dt){var ft=Mn();return function(){var St=Ft(Dt),Ct;if(ft){var Nt=Ft(this).constructor;Ct=Reflect.construct(St,arguments,Nt)}else Ct=St.apply(this,arguments);return gi(this,Ct)}}function gi(Dt,ft){return ft&&(qt(ft)==="object"||typeof ft=="function")?ft:yn(Dt)}function yn(Dt){if(Dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Dt}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(Dt){return!1}}function Ft(Dt){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(St){return St.__proto__||Object.getPrototypeOf(St)},Ft(Dt)}var bt=function(){var Dt=function(ft){dn(Ct,ft);var St=Wn(Ct);function Ct(){var Nt;return Ht(this,Ct),Nt=St.apply(this,arguments),Nt.menuItems={},Nt.saveMenuItem=function(gt){return function(Qt){Nt.menuItems[gt]=Qt}},Nt}return Hr(Ct,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(gt){!gt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(gt){var Qt=this.props,tr=Qt.fieldNames,ar=Qt.defaultFieldNames;return tr[gt]||ar[gt]}},{key:"getOption",value:function(gt,Qt){var tr=this.props,ar=tr.prefixCls,yr=tr.expandTrigger,xn=tr.expandIcon,vn=tr.loadingIcon,zn=this.props.onSelect.bind(this,gt,Qt),Yr=this.props.onItemDoubleClick.bind(this,gt,Qt),xr={onClick:zn,onDoubleClick:Yr},ln="".concat(ar,"-menu-item"),On=null,In=gt[this.getFieldName("children")]&>[this.getFieldName("children")].length>0;(In||gt.isLeaf===!1)&&(ln+=" ".concat(ar,"-menu-item-expand"),gt.loading||(On=t.createElement("span",{className:"".concat(ar,"-menu-item-expand-icon")},xn))),yr==="hover"&&(In||gt.isLeaf===!1)&&(xr={onMouseEnter:this.delayOnSelect.bind(this,zn),onMouseLeave:this.delayOnSelect.bind(this),onClick:zn}),this.isActiveOption(gt,Qt)&&(ln+=" ".concat(ar,"-menu-item-active"),xr.ref=this.saveMenuItem(Qt)),gt.disabled&&(ln+=" ".concat(ar,"-menu-item-disabled"));var Un=null;gt.loading&&(ln+=" ".concat(ar,"-menu-item-loading"),Un=vn||null);var ti="";return"title"in gt?ti=gt.title:typeof gt[this.getFieldName("label")]=="string"&&(ti=gt[this.getFieldName("label")]),t.createElement("li",Object.assign({key:gt[this.getFieldName("value")],className:ln,title:ti},xr,{role:"menuitem",onMouseDown:function(si){return si.preventDefault()}}),gt[this.getFieldName("label")],On,Un)}},{key:"getActiveOptions",value:function(gt){var Qt=this,tr=this.props.options,ar=gt||this.props.activeValue;return ir()(tr,function(yr,xn){return yr[Qt.getFieldName("value")]===ar[xn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var gt=this,Qt=this.props.options,tr=this.getActiveOptions().map(function(ar){return ar[gt.getFieldName("children")]}).filter(function(ar){return!!ar});return tr.unshift(Qt),tr}},{key:"delayOnSelect",value:function(gt){for(var Qt=this,tr=arguments.length,ar=new Array(tr>1?tr-1:0),yr=1;yr<tr;yr++)ar[yr-1]=arguments[yr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof gt=="function"&&(this.delayTimer=window.setTimeout(function(){gt(ar),Qt.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var gt=this.getShowOptions().length,Qt=0;Qt<gt;Qt++){var tr=this.menuItems[Qt];tr&&tr.parentElement&&(tr.parentElement.scrollTop=tr.offsetTop)}}},{key:"isActiveOption",value:function(gt,Qt){var tr=this.props.activeValue,ar=tr===void 0?[]:tr;return ar[Qt]===gt[this.getFieldName("value")]}},{key:"render",value:function(){var gt=this,Qt=this.props,tr=Qt.prefixCls,ar=Qt.dropdownMenuColumnStyle;return t.createElement("div",null,this.getShowOptions().map(function(yr,xn){return t.createElement("ul",{className:"".concat(tr,"-menu"),key:xn,style:ar},yr.map(function(vn){return gt.getOption(vn,xn)}))}))}}]),Ct}(t.Component);return Dt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Dt}(),Oe=bt,Ee={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}}},Ie=Ee;function Ye(Dt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ye=function(St){return typeof St}:Ye=function(St){return St&&typeof Symbol=="function"&&St.constructor===Symbol&&St!==Symbol.prototype?"symbol":typeof St},Ye(Dt)}function rt(Dt,ft){if(Dt==null)return{};var St=ut(Dt,ft),Ct,Nt;if(Object.getOwnPropertySymbols){var gt=Object.getOwnPropertySymbols(Dt);for(Nt=0;Nt<gt.length;Nt++){if(Ct=gt[Nt],ft.indexOf(Ct)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Dt,Ct))continue;St[Ct]=Dt[Ct]}}return St}function ut(Dt,ft){if(Dt==null)return{};var St={},Ct=Object.keys(Dt),Nt,gt;for(gt=0;gt<Ct.length;gt++){if(Nt=Ct[gt],ft.indexOf(Nt)>=0)continue;St[Nt]=Dt[Nt]}return St}function Ot(Dt){return It(Dt)||un(Dt)||Pr(Dt)||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 Pr(Dt,ft){if(!Dt)return;if(typeof Dt=="string")return nt(Dt,ft);var St=Object.prototype.toString.call(Dt).slice(8,-1);if(St==="Object"&&Dt.constructor&&(St=Dt.constructor.name),St==="Map"||St==="Set")return Array.from(Dt);if(St==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(St))return nt(Dt,ft)}function un(Dt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Dt))return Array.from(Dt)}function It(Dt){if(Array.isArray(Dt))return nt(Dt)}function nt(Dt,ft){(ft==null||ft>Dt.length)&&(ft=Dt.length);for(var St=0,Ct=new Array(ft);St<ft;St++)Ct[St]=Dt[St];return Ct}function at(Dt,ft){if(!(Dt instanceof ft))throw new TypeError("Cannot call a class as a function")}function rr(Dt,ft){for(var St=0;St<ft.length;St++){var Ct=ft[St];Ct.enumerable=Ct.enumerable||!1,Ct.configurable=!0,"value"in Ct&&(Ct.writable=!0),Object.defineProperty(Dt,Ct.key,Ct)}}function Pt(Dt,ft,St){return ft&&rr(Dt.prototype,ft),St&&rr(Dt,St),Dt}function xt(Dt,ft){if(typeof ft!="function"&&ft!==null)throw new TypeError("Super expression must either be null or a function");Dt.prototype=Object.create(ft&&ft.prototype,{constructor:{value:Dt,writable:!0,configurable:!0}}),ft&&Kt(Dt,ft)}function Kt(Dt,ft){return Kt=Object.setPrototypeOf||function(Ct,Nt){return Ct.__proto__=Nt,Ct},Kt(Dt,ft)}function yt(Dt){var ft=hr();return function(){var St=gr(Dt),Ct;if(ft){var Nt=gr(this).constructor;Ct=Reflect.construct(St,arguments,Nt)}else Ct=St.apply(this,arguments);return kt(this,Ct)}}function kt(Dt,ft){return ft&&(Ye(ft)==="object"||typeof ft=="function")?ft:Sr(Dt)}function Sr(Dt){if(Dt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Dt}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(Dt){return!1}}function gr(Dt){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(St){return St.__proto__||Object.getPrototypeOf(St)},gr(Dt)}var Jr=function(){var Dt=function(ft){xt(Ct,ft);var St=yt(Ct);function Ct(Nt){var gt;at(this,Ct),gt=St.call(this,Nt),gt.setPopupVisible=function(tr){var ar=gt.state.value;"popupVisible"in gt.props||gt.setState({popupVisible:tr}),tr&&!gt.state.popupVisible&>.setState({activeValue:ar}),gt.props.onPopupVisibleChange(tr)},gt.handleChange=function(tr,ar,yr){var xn=ar.visible;(yr.type!=="keydown"||yr.keyCode===or.a.ENTER)&&(gt.props.onChange(tr.map(function(vn){return vn[gt.getFieldName("value")]}),tr),gt.setPopupVisible(xn))},gt.handlePopupVisibleChange=function(tr){gt.setPopupVisible(tr)},gt.handleMenuSelect=function(tr,ar,yr){var xn=gt.trigger.getRootDomNode();xn&&xn.focus&&xn.focus();var vn=gt.props,zn=vn.changeOnSelect,Yr=vn.loadData,xr=vn.expandTrigger;if(!tr||tr.disabled)return;var ln=gt.state.activeValue;ln=ln.slice(0,ar+1),ln[ar]=tr[gt.getFieldName("value")];var On=gt.getActiveOptions(ln);if(tr.isLeaf===!1&&!tr[gt.getFieldName("children")]&&Yr){zn&>.handleChange(On,{visible:!0},yr),gt.setState({activeValue:ln}),Yr(On);return}var In={};!tr[gt.getFieldName("children")]||!tr[gt.getFieldName("children")].length?(gt.handleChange(On,{visible:!1},yr),In.value=ln):zn&&(yr.type==="click"||yr.type==="keydown")&&(xr==="hover"?gt.handleChange(On,{visible:!1},yr):gt.handleChange(On,{visible:!0},yr),In.value=ln),In.activeValue=ln,("value"in gt.props||yr.type==="keydown"&&yr.keyCode!==or.a.ENTER)&&delete In.value,gt.setState(In)},gt.handleItemDoubleClick=function(){var tr=gt.props.changeOnSelect;tr&>.setPopupVisible(!1)},gt.handleKeyDown=function(tr){var ar=gt.props.children;if(ar&&ar.props.onKeyDown){ar.props.onKeyDown(tr);return}var yr=Ot(gt.state.activeValue),xn=yr.length-1<0?0:yr.length-1,vn=gt.getCurrentLevelOptions(),zn=vn.map(function(On){return On[gt.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(!gt.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){gt.setPopupVisible(!0);return}if(tr.keyCode===or.a.DOWN||tr.keyCode===or.a.UP){tr.preventDefault();var Yr=zn;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][gt.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[zn]&&vn[zn][gt.getFieldName("children")]&&yr.push(vn[zn][gt.getFieldName("children")][0][gt.getFieldName("value")]);else if(tr.keyCode===or.a.ESC||tr.keyCode===or.a.TAB){gt.setPopupVisible(!1);return}(!yr||yr.length===0)&>.setPopupVisible(!1);var xr=gt.getActiveOptions(yr),ln=xr[xr.length-1];gt.handleMenuSelect(ln,xr.length-1,tr),gt.props.onKeyDown&>.props.onKeyDown(tr)},gt.saveTrigger=function(tr){gt.trigger=tr};var Qt=[];return"value"in Nt?Qt=Nt.value||[]:"defaultValue"in Nt&&(Qt=Nt.defaultValue||[]),Yt()(!("filedNames"in Nt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),gt.state={popupVisible:Nt.popupVisible,activeValue:Qt,value:Qt,prevProps:Nt},gt.defaultFieldNames={label:"label",value:"value",children:"children"},gt}return Pt(Ct,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(gt){var Qt=this.defaultFieldNames,tr=this.props,ar=tr.fieldNames,yr=tr.filedNames;return"filedNames"in this.props?yr[gt]||Qt[gt]:ar[gt]||Qt[gt]}},{key:"getFieldNames",value:function(){var gt=this.props,Qt=gt.fieldNames,tr=gt.filedNames;return"filedNames"in this.props?tr:Qt}},{key:"getCurrentLevelOptions",value:function(){var gt=this,Qt=this.props.options,tr=Qt===void 0?[]:Qt,ar=this.state.activeValue,yr=ar===void 0?[]:ar,xn=ir()(tr,function(vn,zn){return vn[gt.getFieldName("value")]===yr[zn]},{childrenKeyName:this.getFieldName("children")});return xn[xn.length-2]?xn[xn.length-2][this.getFieldName("children")]:Ot(tr).filter(function(vn){return!vn.disabled})}},{key:"getActiveOptions",value:function(gt){var Qt=this;return ir()(this.props.options||[],function(tr,ar){return tr[Qt.getFieldName("value")]===gt[ar]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var gt=this.props,Qt=gt.prefixCls,tr=gt.transitionName,ar=gt.popupClassName,yr=gt.options,xn=yr===void 0?[]:yr,vn=gt.disabled,zn=gt.builtinPlacements,Yr=gt.popupPlacement,xr=gt.children,ln=gt.dropdownRender,On=rt(gt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),In=t.createElement("div",null),Un="";xn&&xn.length>0?In=t.createElement(Oe,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(Mt,Object.assign({ref:this.saveTrigger},On,{popupPlacement:Yr,builtinPlacements:zn,popupTransitionName:tr,action:vn?[]:["click"],popupVisible:vn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(Qt,"-menus"),popupClassName:ar+Un,popup:ti}),t.cloneElement(xr,{onKeyDown:this.handleKeyDown,tabIndex:vn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(gt,Qt){var tr=Qt.prevProps,ar=tr===void 0?{}:tr,yr={prevProps:gt};return"value"in gt&&!dr(ar.value,gt.value)&&(yr.value=gt.value||[],"loadData"in gt||(yr.activeValue=gt.value||[])),"popupVisible"in gt&&(yr.popupVisible=gt.popupVisible),yr}}]),Ct}(t.Component);return Dt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Ie,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Dt}(),$r=Jr,kn=$r,Dn=d("BGR+"),Zn=d("kbBi"),li=d.n(Zn),Ai=d("HQEm"),Ii=d.n(Ai),Qe=d("fEPi"),Se=d.n(Qe),Ne=d("5YOS"),je=d.n(Ne),Xe=d("DFhj"),ze=d.n(Xe),Ze=d("5rEg"),wt=d("H84U"),st=d("YMnH"),Jt=d("uaoM"),Rr=d("3Nzz"),Ir=d("0n0R"),Xr=function(Dt,ft){var St={};for(var Ct in Dt)Object.prototype.hasOwnProperty.call(Dt,Ct)&&ft.indexOf(Ct)<0&&(St[Ct]=Dt[Ct]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ct=Object.getOwnPropertySymbols(Dt);Nt<Ct.length;Nt++)ft.indexOf(Ct[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Ct[Nt])&&(St[Ct[Nt]]=Dt[Ct[Nt]]);return St},er=50;function pn(Dt,ft,St){return Dt.split(ft).map(function(Ct,Nt){return Nt===0?Ct:[t.createElement("span",{className:"".concat(St,"-menu-item-keyword"),key:"seperator"},ft),Ct]})}function fr(Dt,ft,St){return ft.some(function(Ct){return Ct[St.label].indexOf(Dt)>-1})}function mn(Dt,ft,St,Ct){return ft.map(function(Nt,gt){var Qt=Nt[Ct.label],tr=Qt.indexOf(Dt)>-1?pn(Qt,Dt,St):Qt;return gt===0?tr:[" / ",tr]})}function en(Dt,ft,St,Ct){function Nt(gt){return gt[Ct.label].indexOf(St)>-1}return Dt.findIndex(Nt)-ft.findIndex(Nt)}function Mr(Dt){var ft=Dt.fieldNames;return ft}function Gn(Dt){var ft=Mr(Dt)||{},St={children:ft.children||"children",label:ft.label||"label",value:ft.value||"value"};return St}function di(Dt,ft){var St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Ct=Gn(ft),Nt=[],gt=Ct.children;return Dt.forEach(function(Qt){var tr=St.concat(Qt);(ft.changeOnSelect||!Qt[gt]||!Qt[gt].length)&&Nt.push(tr),Qt[gt]&&(Nt=Nt.concat(di(Qt[gt],ft,tr)))}),Nt}var _i=function(ft){return ft.join(" / ")};function Br(Dt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Dt||[]).forEach(function(St){var Ct=ft.value||"value";Object(Jt.a)(Ct in St,"Cascader","Not found `value` in `options`."),Br(St[ft.children||"children"],ft)})}var sn=function(Dt){n()(St,Dt);var ft=l()(St);function St(Ct){var Nt;return m()(this,St),Nt=ft.call(this,Ct),Nt.cachedOptions=[],Nt.setValue=function(gt){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Nt.props||Nt.setState({value:gt});var tr=Nt.props.onChange;tr&&tr(gt,Qt)},Nt.saveInput=function(gt){Nt.input=gt},Nt.handleChange=function(gt,Qt){if(Nt.setState({inputValue:""}),Qt[0].__IS_FILTERED_OPTION){var tr=gt[0],ar=Qt[0].path;Nt.setValue(tr,ar);return}Nt.setValue(gt,Qt)},Nt.handlePopupVisibleChange=function(gt){"popupVisible"in Nt.props||Nt.setState(function(tr){return{popupVisible:gt,inputFocused:gt,inputValue:gt?tr.inputValue:""}});var Qt=Nt.props.onPopupVisibleChange;Qt&&Qt(gt)},Nt.handleInputBlur=function(){Nt.setState({inputFocused:!1})},Nt.handleInputClick=function(gt){var Qt=Nt.state,tr=Qt.inputFocused,ar=Qt.popupVisible;(tr||ar)&>.stopPropagation()},Nt.handleKeyDown=function(gt){(gt.keyCode===or.a.BACKSPACE||gt.keyCode===or.a.SPACE)&>.stopPropagation()},Nt.handleInputChange=function(gt){var Qt=Nt.state.popupVisible,tr=gt.target.value;Qt||Nt.handlePopupVisibleChange(!0),Nt.setState({inputValue:tr})},Nt.clearSelection=function(gt){var Qt=Nt.state.inputValue;gt.preventDefault(),gt.stopPropagation(),Qt?Nt.setState({inputValue:""}):(Nt.handlePopupVisibleChange(!1),Nt.clearSelectionTimeout=setTimeout(function(){Nt.setValue([])},200))},Nt.renderCascader=function(gt,Qt){var tr=gt.getPopupContainer,ar=gt.getPrefixCls,yr=gt.renderEmpty,xn=gt.direction;return t.createElement(Rr.b.Consumer,null,function(vn){var zn,Yr,xr,ln,On=r()(Nt),In=On.props,Un=On.state,ti=In.prefixCls,ui=In.inputPrefixCls,si=In.children,ki=In.placeholder,zi=ki===void 0?Qt.placeholder||"Please select":ki,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,vt=Un.inputFocused,mr=xn==="rtl",vr=ar("cascader",ti),Fr=ar("input",ui),nn=N()((zn={},A()(zn,"".concat(Fr,"-lg"),Wr==="large"),A()(zn,"".concat(Fr,"-sm"),Wr==="small"),zn)),cn=mi&&!Yi&&An.length>0||Un.inputValue?t.createElement(li.a,{className:"".concat(vr,"-picker-clear"),onClick:Nt.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"),vt),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(Nt.props);if(Xn&&Xn.length>0)Un.inputValue&&(Xn=Nt.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?Nt.cachedOptions=Xn:Xn=Nt.cachedOptions;var pi={},Si=(Xn||[]).length===1&&Xn[0].isEmptyNode;Si&&(pi.height="auto");var Ni=Li.matchInputWidth!==!1;Ni&&(Un.inputValue||Si)&&Nt.input&&(pi.width=Nt.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")},Nt.getLabel()),t.createElement(Ze.a,E()({},Tn,{tabIndex:"-1",ref:Nt.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?Nt.handleInputClick:void 0,onBlur:Li?Nt.handleInputBlur:void 0,onKeyDown:Nt.handleKeyDown,onChange:Li?Nt.handleInputChange:void 0})),cn,xi),vi;wr?vi=wr:vi=mr?t.createElement(ze.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(kn,E()({},$i,{prefixCls:vr,getPopupContainer:Ui,options:Xn,value:An,popupVisible:Un.popupVisible,onPopupVisibleChange:Nt.handlePopupVisibleChange,onChange:Nt.handleChange,dropdownMenuColumnStyle:pi,expandIcon:vi,loadingIcon:Ti,popupClassName:Di,popupPlacement:Nt.getPopupPlacement(xn),dropdownRender:br}),yi)})},Nt.state={value:Ct.value||Ct.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Ct.popupVisible,flattenOptions:Ct.showSearch?di(Ct.options,Ct):void 0,prevProps:Ct},Nt}return c()(St,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Nt=this.props,gt=Nt.options,Qt=Nt.displayRender,tr=Qt===void 0?_i:Qt,ar=Gn(this.props),yr=this.state.value,xn=Array.isArray(yr[0])?yr[0]:yr,vn=ir()(gt,function(Yr,xr){return Yr[ar.value]===xn[xr]},{childrenKeyName:ar.children}),zn=vn.length?vn.map(function(Yr){return Yr[ar.label]}):yr;return tr(zn,vn)}},{key:"generateFilteredOptions",value:function(Nt,gt){var Qt=this,tr,ar=this.props,yr=ar.showSearch,xn=ar.notFoundContent,vn=Gn(this.props),zn=yr.filter,Yr=zn===void 0?fr:zn,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?er:Un,ui=this.state,si=ui.flattenOptions,ki=si===void 0?[]:si,zi=ui.inputValue,Ri;if(ti>0){Ri=[];var Yi=0;ki.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=ki.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,Nt,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||gt("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 Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",gt=this.props.popupPlacement;return gt!==void 0?gt:Nt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Nt=this;return t.createElement(wt.a,null,function(gt){return t.createElement(st.a,null,function(Qt){return Nt.renderCascader(gt,Qt)})})}}],[{key:"getDerivedStateFromProps",value:function(Nt,gt){var Qt=gt.prevProps,tr={prevProps:Nt};return"value"in Nt&&(tr.value=Nt.value||[]),"popupVisible"in Nt&&(tr.popupVisible=Nt.popupVisible),Nt.showSearch&&Qt.options!==Nt.options&&(tr.flattenOptions=di(Nt.options,Nt)),tr}}]),St}(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 _=E(d("GGyF"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},DL4k:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},DN4a:function(H,B,d){var _=d("Fofx"),E=d("QBsz"),C=_.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,l=this.needLocalTransform(),t=this.transform;if(!(l||e)){t&&C(t);return}t=t||_.create(),l?this.getLocalTransform(t):C(t),e&&(l?_.mul(t,n.transform,t):_.copy(t,n.transform)),this.transform=t;var a=this.globalScaleRatio;if(a!=null&&a!==1){this.getGlobalScale(c);var s=c[0]<0?-1:1,u=c[1]<0?-1:1,h=((c[0]-s)*a+s)/c[0]||0,p=((c[1]-u)*a+u)/c[1]||0;t[0]*=h,t[1]*=h,t[2]*=p,t[3]*=p}this.invTransform=this.invTransform||_.create(),_.invert(this.invTransform,t)},f.getLocalTransform=function(n){return m.getLocalTransform(this,n)},f.setTransform=function(n){var e=this.transform,l=n.dpr||1;e?n.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):n.setTransform(l,0,0,l,0,0)},f.restoreTransform=function(n){var e=n.dpr||1;n.setTransform(e,0,0,e,0,0)};var o=[],r=_.create();f.setLocalTransform=function(n){if(!n)return;var e=n[0]*n[0]+n[1]*n[1],l=n[2]*n[2]+n[3]*n[3],t=this.position,a=this.scale;w(e-1)&&(e=Math.sqrt(e)),w(l-1)&&(l=Math.sqrt(l)),n[0]<0&&(e=-e),n[3]<0&&(l=-l),t[0]=n[4],t[1]=n[5],a[0]=e,a[1]=l,this.rotation=Math.atan2(-n[1]/l,n[0]/e)},f.decomposeTransform=function(){if(!this.transform)return;var n=this.parent,e=this.transform;n&&n.transform&&(_.mul(o,n.invTransform,e),e=o);var l=this.origin;l&&(l[0]||l[1])&&(r[4]=l[0],r[5]=l[1],_.mul(o,e,r),o[4]-=l[0],o[5]-=l[1],e=o),this.setLocalTransform(e)},f.getGlobalScale=function(n){var e=this.transform;return n=n||[],e?(n[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),n[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(n[0]=-n[0]),e[3]<0&&(n[1]=-n[1]),n):(n[0]=1,n[1]=1,n)},f.transformCoordToLocal=function(n,e){var l=[n,e],t=this.invTransform;return t&&E.applyTransform(l,l,t),l},f.transformCoordToGlobal=function(n,e){var l=[n,e],t=this.transform;return t&&E.applyTransform(l,l,t),l},m.getLocalTransform=function(n,e){e=e||[],C(e);var l=n.origin,t=n.scale||[1,1],a=n.rotation||0,s=n.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),_.scale(e,e,t),a&&_.rotate(e,e,a),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=s[0],e[5]+=s[1],e};var i=m;H.exports=i},DO2E:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},DYRE:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("OPEp"),A=d.n(C)},DZo9:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("JGo8"),A=d.n(C),w=d("+L6B"),m=d("MXD1"),f=d("5Dmo")},Dagg:function(H,B,d){var _=d("Gev7"),E=d("mFDi"),C=d("bYtY"),A=d("Xnb7");function w(f){_.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,l=r.y||0,t=r.width,a=r.height,s=n.width/n.height;if(t==null&&a!=null?t=a*s:a==null&&t!=null?a=t/s:t==null&&a==null&&(t=n.width,a=n.height),this.setTransform(c),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;c.drawImage(n,u,h,r.sWidth,r.sHeight,e,l,t,a)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=t-u,g=a-h;c.drawImage(n,u,h,p,g,e,l,t,a)}else c.drawImage(n,e,l,t,a);r.text!=null&&(this.restoreTransform(c),this.drawRectText(c,this.getBoundingRect()))},getBoundingRect:function(){var c=this.style;return this._rect||(this._rect=new E(c.x||0,c.y||0,c.width||0,c.height||0)),this._rect}},C.inherits(w,_);var m=w;H.exports=m},Dg8C:function(H,B,d){var _=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 _({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:m.get("color")}),e=n.mapValueToVisual(i.getLayout().value),l=i.getModel().get("itemStyle.color");l!=null?i.setVisual("color",l):i.setVisual("color",e)})}})}H.exports=C},DjyN:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("Urep"),A=d.n(C),w=d("OaEy")},DlQD:function(H,B,d){(function(_,E){H.exports=E()})(this,function(){"use strict";function _(Bt,_t){for(var jt=0;jt<_t.length;jt++){var He=_t[jt];He.enumerable=He.enumerable||!1,He.configurable=!0,"value"in He&&(He.writable=!0),Object.defineProperty(Bt,He.key,He)}}function E(Bt,_t,jt){return _t&&_(Bt.prototype,_t),jt&&_(Bt,jt),Bt}function C(Bt,_t){if(!Bt)return;if(typeof Bt=="string")return A(Bt,_t);var jt=Object.prototype.toString.call(Bt).slice(8,-1);if(jt==="Object"&&Bt.constructor&&(jt=Bt.constructor.name),jt==="Map"||jt==="Set")return Array.from(Bt);if(jt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jt))return A(Bt,_t)}function A(Bt,_t){(_t==null||_t>Bt.length)&&(_t=Bt.length);for(var jt=0,He=new Array(_t);jt<_t;jt++)He[jt]=Bt[jt];return He}function w(Bt,_t){var jt;if(typeof Symbol=="undefined"||Bt[Symbol.iterator]==null){if(Array.isArray(Bt)||(jt=C(Bt))||_t&&Bt&&typeof Bt.length=="number"){jt&&(Bt=jt);var He=0;return function(){return He>=Bt.length?{done:!0}:{done:!1,value:Bt[He++]}}}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 jt=Bt[Symbol.iterator](),jt.next.bind(jt)}function m(Bt,_t){return _t={exports:{}},Bt(_t,_t.exports),_t.exports}var f=m(function(Bt){function _t(){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 jt(He){Bt.exports.defaults=He}Bt.exports={defaults:_t(),getDefaults:_t,changeDefaults:jt}}),c=f.defaults,o=f.getDefaults,r=f.changeDefaults,i=/[&<>"']/,n=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},a=function(_t){return t[_t]};function s(Bt,_t){if(_t){if(i.test(Bt))return Bt.replace(n,a)}else if(e.test(Bt))return Bt.replace(l,a);return Bt}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(Bt){return Bt.replace(u,function(_t,jt){return jt=jt.toLowerCase(),jt==="colon"?":":jt.charAt(0)==="#"?jt.charAt(1)==="x"?String.fromCharCode(parseInt(jt.substring(2),16)):String.fromCharCode(+jt.substring(1)):""})}var p=/(^|[^\[])\^/g;function g(Bt,_t){Bt=Bt.source||Bt,_t=_t||"";var jt={replace:function(se,J){return J=J.source||J,J=J.replace(p,"$1"),Bt=Bt.replace(se,J),jt},getRegex:function(){return new RegExp(Bt,_t)}};return jt}var v=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function x(Bt,_t,jt){if(Bt){var He;try{He=decodeURIComponent(h(jt)).replace(v,"").toLowerCase()}catch(se){return null}if(He.indexOf("javascript:")===0||He.indexOf("vbscript:")===0||He.indexOf("data:")===0)return null}_t&&!y.test(jt)&&(jt=I(_t,jt));try{jt=encodeURI(jt).replace(/%25/g,"%")}catch(se){return null}return jt}var T={},S=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(Bt,_t){T[" "+Bt]||(S.test(Bt)?T[" "+Bt]=Bt+"/":T[" "+Bt]=R(Bt,"/",!0)),Bt=T[" "+Bt];var jt=Bt.indexOf(":")===-1;return _t.substring(0,2)==="//"?jt?_t:Bt.replace(b,"$1")+_t:_t.charAt(0)==="/"?jt?_t:Bt.replace(O,"$1")+_t:Bt+_t}var L={exec:function(){}};function N(Bt){for(var _t=1,jt,He;_t<arguments.length;_t++){jt=arguments[_t];for(He in jt)Object.prototype.hasOwnProperty.call(jt,He)&&(Bt[He]=jt[He])}return Bt}function D(Bt,_t){var jt=Bt.replace(/\|/g,function(J,Ue,Le){for(var ee=!1,ct=Ue;--ct>=0&&Le[ct]==="\\";)ee=!ee;return ee?"|":" |"}),He=jt.split(/ \|/),se=0;if(He.length>_t)He.splice(_t);else for(;He.length<_t;)He.push("");for(;se<He.length;se++)He[se]=He[se].trim().replace(/\\\|/g,"|");return He}function R(Bt,_t,jt){var He=Bt.length;if(He===0)return"";for(var se=0;se<He;){var J=Bt.charAt(He-se-1);if(J===_t&&!jt)se++;else if(J!==_t&&jt)se++;else break}return Bt.substr(0,He-se)}function k(Bt,_t){if(Bt.indexOf(_t[1])===-1)return-1;for(var jt=Bt.length,He=0,se=0;se<jt;se++)if(Bt[se]==="\\")se++;else if(Bt[se]===_t[0])He++;else if(Bt[se]===_t[1]&&(He--,He<0))return se;return-1}function M(Bt){Bt&&Bt.sanitize&&!Bt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var j={escape:s,unescape:h,edit:g,cleanUrl:x,resolveUrl:I,noopTest:L,merge:N,splitCells:D,rtrim:R,findClosingBracket:k,checkSanitizeDeprecation:M},F=f.defaults,U=j.rtrim,K=j.splitCells,V=j.escape,z=j.findClosingBracket;function Q(Bt,_t,jt){var He=_t.href,se=_t.title?V(_t.title):null,J=Bt[1].replace(/\\([\[\]])/g,"$1");return Bt[0].charAt(0)!=="!"?{type:"link",raw:jt,href:He,title:se,text:J}:{type:"image",raw:jt,href:He,title:se,text:V(J)}}function Z(Bt,_t){var jt=Bt.match(/^(\s+)(?:```)/);if(jt===null)return _t;var He=jt[1];return _t.split(`
|
|
|
`).map(function(se){var J=se.match(/^\s+/);if(J===null)return se;var Ue=J[0];return Ue.length>=He.length?se.slice(He.length):se}).join(`
|
|
|
`)}var le=function(){function Bt(jt){this.options=jt||F}var _t=Bt.prototype;return _t.space=function(He){var se=this.rules.block.newline.exec(He);if(se)return se[0].length>1?{type:"space",raw:se[0]}:{raw:`
|
|
|
`}},_t.code=function(He,se){var J=this.rules.block.code.exec(He);if(J){var Ue=se[se.length-1];if(Ue&&Ue.type==="paragraph")return{raw:J[0],text:J[0].trimRight()};var Le=J[0].replace(/^ {4}/gm,"");return{type:"code",raw:J[0],codeBlockStyle:"indented",text:this.options.pedantic?Le:U(Le,`
|
|
|
`)}}},_t.fences=function(He){var se=this.rules.block.fences.exec(He);if(se){var J=se[0],Ue=Z(J,se[3]||"");return{type:"code",raw:J,lang:se[2]?se[2].trim():se[2],text:Ue}}},_t.heading=function(He){var se=this.rules.block.heading.exec(He);if(se)return{type:"heading",raw:se[0],depth:se[1].length,text:se[2]}},_t.nptable=function(He){var se=this.rules.block.nptable.exec(He);if(se){var J={type:"table",header:K(se[1].replace(/^ *| *\| *$/g,"")),align:se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:se[3]?se[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:se[0]};if(J.header.length===J.align.length){var Ue=J.align.length,Le;for(Le=0;Le<Ue;Le++)/^ *-+: *$/.test(J.align[Le])?J.align[Le]="right":/^ *:-+: *$/.test(J.align[Le])?J.align[Le]="center":/^ *:-+ *$/.test(J.align[Le])?J.align[Le]="left":J.align[Le]=null;for(Ue=J.cells.length,Le=0;Le<Ue;Le++)J.cells[Le]=K(J.cells[Le],J.header.length);return J}}},_t.hr=function(He){var se=this.rules.block.hr.exec(He);if(se)return{type:"hr",raw:se[0]}},_t.blockquote=function(He){var se=this.rules.block.blockquote.exec(He);if(se){var J=se[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:se[0],text:J}}},_t.list=function(He){var se=this.rules.block.list.exec(He);if(se){for(var J=se[0],Ue=se[2],Le=Ue.length>1,ee=Ue[Ue.length-1]===")",ct={type:"list",raw:J,ordered:Le,start:Le?+Ue.slice(0,-1):"",loose:!1,items:[]},Mt=se[0].match(this.rules.block.item),ot=!1,Yt,or,Zr,ir,dr,qt,Ht,lt=Mt.length,Hr=0;Hr<lt;Hr++)Yt=Mt[Hr],J=Yt,or=Yt.length,Yt=Yt.replace(/^ *([*+-]|\d+[.)]) */,""),~Yt.indexOf(`
|
|
|
`)&&(or-=Yt.length,Yt=this.options.pedantic?Yt.replace(/^ {1,4}/gm,""):Yt.replace(new RegExp("^ {1,"+or+"}","gm"),"")),Hr!==lt-1&&(Zr=this.rules.block.bullet.exec(Mt[Hr+1])[0],(Le?Zr.length===1||!ee&&Zr[Zr.length-1]===")":Zr.length>1||this.options.smartLists&&Zr!==Ue)&&(ir=Mt.slice(Hr+1).join(`
|
|
|
`),ct.raw=ct.raw.substring(0,ct.raw.length-ir.length),Hr=lt-1)),dr=ot||/\n\n(?!\s*$)/.test(Yt),Hr!==lt-1&&(ot=Yt.charAt(Yt.length-1)===`
|
|
|
`,dr||(dr=ot)),dr&&(ct.loose=!0),qt=/^\[[ xX]\] /.test(Yt),Ht=void 0,qt&&(Ht=Yt[1]!==" ",Yt=Yt.replace(/^\[[ xX]\] +/,"")),ct.items.push({type:"list_item",raw:J,task:qt,checked:Ht,loose:dr,text:Yt});return ct}},_t.html=function(He){var se=this.rules.block.html.exec(He);if(se)return{type:this.options.sanitize?"paragraph":"html",raw:se[0],pre:!this.options.sanitizer&&(se[1]==="pre"||se[1]==="script"||se[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):V(se[0]):se[0]}},_t.def=function(He){var se=this.rules.block.def.exec(He);if(se){se[3]&&(se[3]=se[3].substring(1,se[3].length-1));var J=se[1].toLowerCase().replace(/\s+/g," ");return{tag:J,raw:se[0],href:se[2],title:se[3]}}},_t.table=function(He){var se=this.rules.block.table.exec(He);if(se){var J={type:"table",header:K(se[1].replace(/^ *| *\| *$/g,"")),align:se[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:se[3]?se[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(J.header.length===J.align.length){J.raw=se[0];var Ue=J.align.length,Le;for(Le=0;Le<Ue;Le++)/^ *-+: *$/.test(J.align[Le])?J.align[Le]="right":/^ *:-+: *$/.test(J.align[Le])?J.align[Le]="center":/^ *:-+ *$/.test(J.align[Le])?J.align[Le]="left":J.align[Le]=null;for(Ue=J.cells.length,Le=0;Le<Ue;Le++)J.cells[Le]=K(J.cells[Le].replace(/^ *\| *| *\| *$/g,""),J.header.length);return J}}},_t.lheading=function(He){var se=this.rules.block.lheading.exec(He);if(se)return{type:"heading",raw:se[0],depth:se[2].charAt(0)==="="?1:2,text:se[1]}},_t.paragraph=function(He){var se=this.rules.block.paragraph.exec(He);if(se)return{type:"paragraph",raw:se[0],text:se[1].charAt(se[1].length-1)===`
|
|
|
`?se[1].slice(0,-1):se[1]}},_t.text=function(He,se){var J=this.rules.block.text.exec(He);if(J){var Ue=se[se.length-1];return Ue&&Ue.type==="text"?{raw:J[0],text:J[0]}:{type:"text",raw:J[0],text:J[0]}}},_t.escape=function(He){var se=this.rules.inline.escape.exec(He);if(se)return{type:"escape",raw:se[0],text:V(se[1])}},_t.tag=function(He,se,J){var Ue=this.rules.inline.tag.exec(He);if(Ue)return!se&&/^<a /i.test(Ue[0])?se=!0:se&&/^<\/a>/i.test(Ue[0])&&(se=!1),!J&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ue[0])?J=!0:J&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ue[0])&&(J=!1),{type:this.options.sanitize?"text":"html",raw:Ue[0],inLink:se,inRawBlock:J,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):V(Ue[0]):Ue[0]}},_t.link=function(He){var se=this.rules.inline.link.exec(He);if(se){var J=z(se[2],"()");if(J>-1){var Ue=se[0].indexOf("!")===0?5:4,Le=Ue+se[1].length+J;se[2]=se[2].substring(0,J),se[0]=se[0].substring(0,Le).trim(),se[3]=""}var ee=se[2],ct="";if(this.options.pedantic){var Mt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ee);Mt?(ee=Mt[1],ct=Mt[3]):ct=""}else ct=se[3]?se[3].slice(1,-1):"";ee=ee.trim().replace(/^<([\s\S]*)>$/,"$1");var ot=Q(se,{href:ee&&ee.replace(this.rules.inline._escapes,"$1"),title:ct&&ct.replace(this.rules.inline._escapes,"$1")},se[0]);return ot}},_t.reflink=function(He,se){var J;if((J=this.rules.inline.reflink.exec(He))||(J=this.rules.inline.nolink.exec(He))){var Ue=(J[2]||J[1]).replace(/\s+/g," ");if(Ue=se[Ue.toLowerCase()],!Ue||!Ue.href){var Le=J[0].charAt(0);return{type:"text",raw:Le,text:Le}}var ee=Q(J,Ue,J[0]);return ee}},_t.strong=function(He,se,J){J===void 0&&(J="");var Ue=this.rules.inline.strong.start.exec(He);if(Ue&&(!Ue[1]||Ue[1]&&(J===""||this.rules.inline.punctuation.exec(J)))){se=se.slice(-1*He.length);var Le=Ue[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Le.lastIndex=0;for(var ee;(Ue=Le.exec(se))!=null;)if(ee=this.rules.inline.strong.middle.exec(se.slice(0,Ue.index+3)),ee)return{type:"strong",raw:He.slice(0,ee[0].length),text:He.slice(2,ee[0].length-2)}}},_t.em=function(He,se,J){J===void 0&&(J="");var Ue=this.rules.inline.em.start.exec(He);if(Ue&&(!Ue[1]||Ue[1]&&(J===""||this.rules.inline.punctuation.exec(J)))){se=se.slice(-1*He.length);var Le=Ue[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Le.lastIndex=0;for(var ee;(Ue=Le.exec(se))!=null;)if(ee=this.rules.inline.em.middle.exec(se.slice(0,Ue.index+2)),ee)return{type:"em",raw:He.slice(0,ee[0].length),text:He.slice(1,ee[0].length-1)}}},_t.codespan=function(He){var se=this.rules.inline.code.exec(He);if(se){var J=se[2].replace(/\n/g," "),Ue=/[^ ]/.test(J),Le=J.startsWith(" ")&&J.endsWith(" ");return Ue&&Le&&(J=J.substring(1,J.length-1)),J=V(J,!0),{type:"codespan",raw:se[0],text:J}}},_t.br=function(He){var se=this.rules.inline.br.exec(He);if(se)return{type:"br",raw:se[0]}},_t.del=function(He){var se=this.rules.inline.del.exec(He);if(se)return{type:"del",raw:se[0],text:se[1]}},_t.autolink=function(He,se){var J=this.rules.inline.autolink.exec(He);if(J){var Ue,Le;return J[2]==="@"?(Ue=V(this.options.mangle?se(J[1]):J[1]),Le="mailto:"+Ue):(Ue=V(J[1]),Le=Ue),{type:"link",raw:J[0],text:Ue,href:Le,tokens:[{type:"text",raw:Ue,text:Ue}]}}},_t.url=function(He,se){var J;if(J=this.rules.inline.url.exec(He)){var Ue,Le;if(J[2]==="@")Ue=V(this.options.mangle?se(J[0]):J[0]),Le="mailto:"+Ue;else{var ee;do ee=J[0],J[0]=this.rules.inline._backpedal.exec(J[0])[0];while(ee!==J[0]);Ue=V(J[0]),J[1]==="www."?Le="http://"+Ue:Le=Ue}return{type:"link",raw:J[0],text:Ue,href:Le,tokens:[{type:"text",raw:Ue,text:Ue}]}}},_t.inlineText=function(He,se,J){var Ue=this.rules.inline.text.exec(He);if(Ue){var Le;return se?Le=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ue[0]):V(Ue[0]):Ue[0]:Le=V(this.options.smartypants?J(Ue[0]):Ue[0]),{type:"text",raw:Ue[0],text:Le}}},Bt}(),ne=j.noopTest,ve=j.edit,xe=j.merge,_e={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]+/};_e._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_e._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,_e.def=ve(_e.def).replace("label",_e._label).replace("title",_e._title).getRegex(),_e.bullet=/(?:[*+-]|\d{1,9}[.)])/,_e.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,_e.item=ve(_e.item,"gm").replace(/bull/g,_e.bullet).getRegex(),_e.list=ve(_e.list).replace(/bull/g,_e.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+_e.def.source+")").getRegex(),_e._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",_e._comment=/<!--(?!-?>)[\s\S]*?-->/,_e.html=ve(_e.html,"i").replace("comment",_e._comment).replace("tag",_e._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e.paragraph=ve(_e._paragraph).replace("hr",_e.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",_e._tag).getRegex(),_e.blockquote=ve(_e.blockquote).replace("paragraph",_e.paragraph).getRegex(),_e.normal=xe({},_e),_e.gfm=xe({},_e.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*|$)"}),_e.gfm.nptable=ve(_e.gfm.nptable).replace("hr",_e.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",_e._tag).getRegex(),_e.gfm.table=ve(_e.gfm.table).replace("hr",_e.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",_e._tag).getRegex(),_e.pedantic=xe({},_e.normal,{html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_e._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:ve(_e.normal._paragraph).replace("hr",_e.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",_e.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Be={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])/};Be._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Be.punctuation=ve(Be.punctuation).replace(/punctuation/g,Be._punctuation).getRegex(),Be._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Be._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Be.em.start=ve(Be.em.start).replace(/punctuation/g,Be._punctuation).getRegex(),Be.em.middle=ve(Be.em.middle).replace(/punctuation/g,Be._punctuation).replace(/overlapSkip/g,Be._overlapSkip).getRegex(),Be.em.endAst=ve(Be.em.endAst,"g").replace(/punctuation/g,Be._punctuation).getRegex(),Be.em.endUnd=ve(Be.em.endUnd,"g").replace(/punctuation/g,Be._punctuation).getRegex(),Be.strong.start=ve(Be.strong.start).replace(/punctuation/g,Be._punctuation).getRegex(),Be.strong.middle=ve(Be.strong.middle).replace(/punctuation/g,Be._punctuation).replace(/blockSkip/g,Be._blockSkip).getRegex(),Be.strong.endAst=ve(Be.strong.endAst,"g").replace(/punctuation/g,Be._punctuation).getRegex(),Be.strong.endUnd=ve(Be.strong.endUnd,"g").replace(/punctuation/g,Be._punctuation).getRegex(),Be.blockSkip=ve(Be._blockSkip,"g").getRegex(),Be.overlapSkip=ve(Be._overlapSkip,"g").getRegex(),Be._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Be._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Be._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])?)+(?![-_])/,Be.autolink=ve(Be.autolink).replace("scheme",Be._scheme).replace("email",Be._email).getRegex(),Be._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Be.tag=ve(Be.tag).replace("comment",_e._comment).replace("attribute",Be._attribute).getRegex(),Be._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Be._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Be._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Be.link=ve(Be.link).replace("label",Be._label).replace("href",Be._href).replace("title",Be._title).getRegex(),Be.reflink=ve(Be.reflink).replace("label",Be._label).getRegex(),Be.reflinkSearch=ve(Be.reflinkSearch,"g").replace("reflink",Be.reflink).replace("nolink",Be.nolink).getRegex(),Be.normal=xe({},Be),Be.pedantic=xe({},Be.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Be._label).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Be._label).getRegex()}),Be.gfm=xe({},Be.normal,{escape:ve(Be.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Be.gfm.url=ve(Be.gfm.url,"i").replace("email",Be.gfm._extended_email).getRegex(),Be.breaks=xe({},Be.gfm,{br:ve(Be.br).replace("{2,}","*").getRegex(),text:ve(Be.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var me={block:_e,inline:Be},Fe=f.defaults,ie=me.block,te=me.inline;function Ge(Bt){return Bt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function oe(Bt){var _t="",jt,He,se=Bt.length;for(jt=0;jt<se;jt++)He=Bt.charCodeAt(jt),Math.random()>.5&&(He="x"+He.toString(16)),_t+="&#"+He+";";return _t}var Y=function(){function Bt(jt){this.tokens=[],this.tokens.links=Object.create(null),this.options=jt||Fe,this.options.tokenizer=this.options.tokenizer||new le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var He={block:ie.normal,inline:te.normal};this.options.pedantic?(He.block=ie.pedantic,He.inline=te.pedantic):this.options.gfm&&(He.block=ie.gfm,this.options.breaks?He.inline=te.breaks:He.inline=te.gfm),this.tokenizer.rules=He}Bt.lex=function(He,se){var J=new Bt(se);return J.lex(He)};var _t=Bt.prototype;return _t.lex=function(He){return He=He.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(He,this.tokens,!0),this.inline(this.tokens),this.tokens},_t.blockTokens=function(He,se,J){se===void 0&&(se=[]),J===void 0&&(J=!0),He=He.replace(/^ +$/gm,"");for(var Ue,Le,ee,ct;He;){if(Ue=this.tokenizer.space(He)){He=He.substring(Ue.raw.length),Ue.type&&se.push(Ue);continue}if(Ue=this.tokenizer.code(He,se)){He=He.substring(Ue.raw.length),Ue.type?se.push(Ue):(ct=se[se.length-1],ct.raw+=`
|
|
|
`+Ue.raw,ct.text+=`
|
|
|
`+Ue.text);continue}if(Ue=this.tokenizer.fences(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(Ue=this.tokenizer.heading(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(Ue=this.tokenizer.nptable(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(Ue=this.tokenizer.hr(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(Ue=this.tokenizer.blockquote(He)){He=He.substring(Ue.raw.length),Ue.tokens=this.blockTokens(Ue.text,[],J),se.push(Ue);continue}if(Ue=this.tokenizer.list(He)){for(He=He.substring(Ue.raw.length),ee=Ue.items.length,Le=0;Le<ee;Le++)Ue.items[Le].tokens=this.blockTokens(Ue.items[Le].text,[],!1);se.push(Ue);continue}if(Ue=this.tokenizer.html(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(J&&(Ue=this.tokenizer.def(He))){He=He.substring(Ue.raw.length),this.tokens.links[Ue.tag]||(this.tokens.links[Ue.tag]={href:Ue.href,title:Ue.title});continue}if(Ue=this.tokenizer.table(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(Ue=this.tokenizer.lheading(He)){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(J&&(Ue=this.tokenizer.paragraph(He))){He=He.substring(Ue.raw.length),se.push(Ue);continue}if(Ue=this.tokenizer.text(He,se)){He=He.substring(Ue.raw.length),Ue.type?se.push(Ue):(ct=se[se.length-1],ct.raw+=`
|
|
|
`+Ue.raw,ct.text+=`
|
|
|
`+Ue.text);continue}if(He){var Mt="Infinite loop on byte: "+He.charCodeAt(0);if(this.options.silent){console.error(Mt);break}else throw new Error(Mt)}}return se},_t.inline=function(He){var se,J,Ue,Le,ee,ct,Mt=He.length;for(se=0;se<Mt;se++){ct=He[se];switch(ct.type){case"paragraph":case"text":case"heading":{ct.tokens=[],this.inlineTokens(ct.text,ct.tokens);break}case"table":{for(ct.tokens={header:[],cells:[]},Le=ct.header.length,J=0;J<Le;J++)ct.tokens.header[J]=[],this.inlineTokens(ct.header[J],ct.tokens.header[J]);for(Le=ct.cells.length,J=0;J<Le;J++)for(ee=ct.cells[J],ct.tokens.cells[J]=[],Ue=0;Ue<ee.length;Ue++)ct.tokens.cells[J][Ue]=[],this.inlineTokens(ee[Ue],ct.tokens.cells[J][Ue]);break}case"blockquote":{this.inline(ct.tokens);break}case"list":{for(Le=ct.items.length,J=0;J<Le;J++)this.inline(ct.items[J].tokens);break}}}return He},_t.inlineTokens=function(He,se,J,Ue,Le){se===void 0&&(se=[]),J===void 0&&(J=!1),Ue===void 0&&(Ue=!1),Le===void 0&&(Le="");var ee,ct=He,Mt;if(this.tokens.links){var ot=Object.keys(this.tokens.links);if(ot.length>0)for(;(Mt=this.tokenizer.rules.inline.reflinkSearch.exec(ct))!=null;)ot.includes(Mt[0].slice(Mt[0].lastIndexOf("[")+1,-1))&&(ct=ct.slice(0,Mt.index)+"["+"a".repeat(Mt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Mt=this.tokenizer.rules.inline.blockSkip.exec(ct))!=null;)ct=ct.slice(0,Mt.index)+"["+"a".repeat(Mt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;He;){if(ee=this.tokenizer.escape(He)){He=He.substring(ee.raw.length),se.push(ee);continue}if(ee=this.tokenizer.tag(He,J,Ue)){He=He.substring(ee.raw.length),J=ee.inLink,Ue=ee.inRawBlock,se.push(ee);continue}if(ee=this.tokenizer.link(He)){He=He.substring(ee.raw.length),ee.type==="link"&&(ee.tokens=this.inlineTokens(ee.text,[],!0,Ue)),se.push(ee);continue}if(ee=this.tokenizer.reflink(He,this.tokens.links)){He=He.substring(ee.raw.length),ee.type==="link"&&(ee.tokens=this.inlineTokens(ee.text,[],!0,Ue)),se.push(ee);continue}if(ee=this.tokenizer.strong(He,ct,Le)){He=He.substring(ee.raw.length),ee.tokens=this.inlineTokens(ee.text,[],J,Ue),se.push(ee);continue}if(ee=this.tokenizer.em(He,ct,Le)){He=He.substring(ee.raw.length),ee.tokens=this.inlineTokens(ee.text,[],J,Ue),se.push(ee);continue}if(ee=this.tokenizer.codespan(He)){He=He.substring(ee.raw.length),se.push(ee);continue}if(ee=this.tokenizer.br(He)){He=He.substring(ee.raw.length),se.push(ee);continue}if(ee=this.tokenizer.del(He)){He=He.substring(ee.raw.length),ee.tokens=this.inlineTokens(ee.text,[],J,Ue),se.push(ee);continue}if(ee=this.tokenizer.autolink(He,oe)){He=He.substring(ee.raw.length),se.push(ee);continue}if(!J&&(ee=this.tokenizer.url(He,oe))){He=He.substring(ee.raw.length),se.push(ee);continue}if(ee=this.tokenizer.inlineText(He,Ue,Ge)){He=He.substring(ee.raw.length),Le=ee.raw.slice(-1),se.push(ee);continue}if(He){var Yt="Infinite loop on byte: "+He.charCodeAt(0);if(this.options.silent){console.error(Yt);break}else throw new Error(Yt)}}return se},E(Bt,null,[{key:"rules",get:function(){return{block:ie,inline:te}}}]),Bt}(),G=f.defaults,X=j.cleanUrl,fe=j.escape,de=function(){function Bt(jt){this.options=jt||G}var _t=Bt.prototype;return _t.code=function(He,se,J){var Ue=(se||"").match(/\S*/)[0];if(this.options.highlight){var Le=this.options.highlight(He,Ue);Le!=null&&Le!==He&&(J=!0,He=Le)}return Ue?'<pre><code class="'+this.options.langPrefix+fe(Ue,!0)+'">'+(J?He:fe(He,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(J?He:fe(He,!0))+`</code></pre>
|
|
|
`},_t.blockquote=function(He){return`<blockquote>
|
|
|
`+He+`</blockquote>
|
|
|
`},_t.html=function(He){return He},_t.heading=function(He,se,J,Ue){return this.options.headerIds?"<h"+se+' id="'+this.options.headerPrefix+Ue.slug(J)+'">'+He+"</h"+se+`>
|
|
|
`:"<h"+se+">"+He+"</h"+se+`>
|
|
|
`},_t.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},_t.list=function(He,se,J){var Ue=se?"ol":"ul",Le=se&&J!==1?' start="'+J+'"':"";return"<"+Ue+Le+`>
|
|
|
`+He+"</"+Ue+`>
|
|
|
`},_t.listitem=function(He){return"<li>"+He+`</li>
|
|
|
`},_t.checkbox=function(He){return"<input "+(He?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},_t.paragraph=function(He){return"<p>"+He+`</p>
|
|
|
`},_t.table=function(He,se){return se&&(se="<tbody>"+se+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+He+`</thead>
|
|
|
`+se+`</table>
|
|
|
`},_t.tablerow=function(He){return`<tr>
|
|
|
`+He+`</tr>
|
|
|
`},_t.tablecell=function(He,se){var J=se.header?"th":"td",Ue=se.align?"<"+J+' align="'+se.align+'">':"<"+J+">";return Ue+He+"</"+J+`>
|
|
|
`},_t.strong=function(He){return"<strong>"+He+"</strong>"},_t.em=function(He){return"<em>"+He+"</em>"},_t.codespan=function(He){return"<code>"+He+"</code>"},_t.br=function(){return this.options.xhtml?"<br/>":"<br>"},_t.del=function(He){return"<del>"+He+"</del>"},_t.link=function(He,se,J){if(He=X(this.options.sanitize,this.options.baseUrl,He),He===null)return J;var Ue='<a href="'+fe(He)+'"';return se&&(Ue+=' title="'+se+'"'),Ue+=">"+J+"</a>",Ue},_t.image=function(He,se,J){if(He=X(this.options.sanitize,this.options.baseUrl,He),He===null)return J;var Ue='<img src="'+He+'" alt="'+J+'"';return se&&(Ue+=' title="'+se+'"'),Ue+=this.options.xhtml?"/>":">",Ue},_t.text=function(He){return He},Bt}(),Ce=function(){function Bt(){}var _t=Bt.prototype;return _t.strong=function(He){return He},_t.em=function(He){return He},_t.codespan=function(He){return He},_t.del=function(He){return He},_t.html=function(He){return He},_t.text=function(He){return He},_t.link=function(He,se,J){return""+J},_t.image=function(He,se,J){return""+J},_t.br=function(){return""},Bt}(),Me=function(){function Bt(){this.seen={}}var _t=Bt.prototype;return _t.slug=function(He){var se=He.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(se)){var J=se;do this.seen[J]++,se=J+"-"+this.seen[J];while(this.seen.hasOwnProperty(se))}return this.seen[se]=0,se},Bt}(),ue=f.defaults,Ae=j.unescape,Te=function(){function Bt(jt){this.options=jt||ue,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 Me}Bt.parse=function(He,se){var J=new Bt(se);return J.parse(He)};var _t=Bt.prototype;return _t.parse=function(He,se){se===void 0&&(se=!0);var J="",Ue,Le,ee,ct,Mt,ot,Yt,or,Zr,ir,dr,qt,Ht,lt,Hr,dn,Nn,Wn,gi=He.length;for(Ue=0;Ue<gi;Ue++){ir=He[Ue];switch(ir.type){case"space":continue;case"hr":{J+=this.renderer.hr();continue}case"heading":{J+=this.renderer.heading(this.parseInline(ir.tokens),ir.depth,Ae(this.parseInline(ir.tokens,this.textRenderer)),this.slugger);continue}case"code":{J+=this.renderer.code(ir.text,ir.lang,ir.escaped);continue}case"table":{for(or="",Yt="",ct=ir.header.length,Le=0;Le<ct;Le++)Yt+=this.renderer.tablecell(this.parseInline(ir.tokens.header[Le]),{header:!0,align:ir.align[Le]});for(or+=this.renderer.tablerow(Yt),Zr="",ct=ir.cells.length,Le=0;Le<ct;Le++){for(ot=ir.tokens.cells[Le],Yt="",Mt=ot.length,ee=0;ee<Mt;ee++)Yt+=this.renderer.tablecell(this.parseInline(ot[ee]),{header:!1,align:ir.align[ee]});Zr+=this.renderer.tablerow(Yt)}J+=this.renderer.table(or,Zr);continue}case"blockquote":{Zr=this.parse(ir.tokens),J+=this.renderer.blockquote(Zr);continue}case"list":{for(dr=ir.ordered,qt=ir.start,Ht=ir.loose,ct=ir.items.length,Zr="",Le=0;Le<ct;Le++)Hr=ir.items[Le],dn=Hr.checked,Nn=Hr.task,lt="",Hr.task&&(Wn=this.renderer.checkbox(dn),Ht?Hr.tokens.length>0&&Hr.tokens[0].type==="text"?(Hr.tokens[0].text=Wn+" "+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=Wn+" "+Hr.tokens[0].tokens[0].text)):Hr.tokens.unshift({type:"text",text:Wn}):lt+=Wn),lt+=this.parse(Hr.tokens,Ht),Zr+=this.renderer.listitem(lt,Nn,dn);J+=this.renderer.list(Zr,dr,qt);continue}case"html":{J+=this.renderer.html(ir.text);continue}case"paragraph":{J+=this.renderer.paragraph(this.parseInline(ir.tokens));continue}case"text":{for(Zr=ir.tokens?this.parseInline(ir.tokens):ir.text;Ue+1<gi&&He[Ue+1].type==="text";)ir=He[++Ue],Zr+=`
|
|
|
`+(ir.tokens?this.parseInline(ir.tokens):ir.text);J+=se?this.renderer.paragraph(Zr):Zr;continue}default:{var yn='Token with "'+ir.type+'" type was not found.';if(this.options.silent){console.error(yn);return}else throw new Error(yn)}}}return J},_t.parseInline=function(He,se){se=se||this.renderer;var J="",Ue,Le,ee=He.length;for(Ue=0;Ue<ee;Ue++){Le=He[Ue];switch(Le.type){case"escape":{J+=se.text(Le.text);break}case"html":{J+=se.html(Le.text);break}case"link":{J+=se.link(Le.href,Le.title,this.parseInline(Le.tokens,se));break}case"image":{J+=se.image(Le.href,Le.title,Le.text);break}case"strong":{J+=se.strong(this.parseInline(Le.tokens,se));break}case"em":{J+=se.em(this.parseInline(Le.tokens,se));break}case"codespan":{J+=se.codespan(Le.text);break}case"br":{J+=se.br();break}case"del":{J+=se.del(this.parseInline(Le.tokens,se));break}case"text":{J+=se.text(Le.text);break}default:{var ct='Token with "'+Le.type+'" type was not found.';if(this.options.silent){console.error(ct);return}else throw new Error(ct)}}}return J},Bt}(),Je=j.merge,At=j.checkSanitizeDeprecation,qe=j.escape,Re=f.getDefaults,Lt=f.changeDefaults,$e=f.defaults;function Et(Bt,_t,jt){if(typeof Bt=="undefined"||Bt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Bt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Bt)+", string expected");if(typeof _t=="function"&&(jt=_t,_t=null),_t=Je({},Et.defaults,_t||{}),At(_t),jt){var He=_t.highlight,se;try{se=Y.lex(Bt,_t)}catch(ee){return jt(ee)}var J=function(ct){var Mt;if(!ct)try{Mt=Te.parse(se,_t)}catch(ot){ct=ot}return _t.highlight=He,ct?jt(ct):jt(null,Mt)};if(!He||He.length<3)return J();if(delete _t.highlight,!se.length)return J();var Ue=0;Et.walkTokens(se,function(ee){ee.type==="code"&&(Ue++,setTimeout(function(){He(ee.text,ee.lang,function(ct,Mt){if(ct)return J(ct);Mt!=null&&Mt!==ee.text&&(ee.text=Mt,ee.escaped=!0),Ue--,Ue===0&&J()})},0))}),Ue===0&&J();return}try{var Le=Y.lex(Bt,_t);return _t.walkTokens&&Et.walkTokens(Le,_t.walkTokens),Te.parse(Le,_t)}catch(ee){if(ee.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,_t.silent)return"<p>An error occurred:</p><pre>"+qe(ee.message+"",!0)+"</pre>";throw ee}}Et.options=Et.setOptions=function(Bt){return Je(Et.defaults,Bt),Lt(Et.defaults),Et},Et.getDefaults=Re,Et.defaults=$e,Et.use=function(Bt){var _t=Je({},Bt);if(Bt.renderer&&function(){var He=Et.defaults.renderer||new de,se=function(Le){var ee=He[Le];He[Le]=function(){for(var ct=arguments.length,Mt=new Array(ct),ot=0;ot<ct;ot++)Mt[ot]=arguments[ot];var Yt=Bt.renderer[Le].apply(He,Mt);return Yt===!1&&(Yt=ee.apply(He,Mt)),Yt}};for(var J in Bt.renderer)se(J);_t.renderer=He}(),Bt.tokenizer&&function(){var He=Et.defaults.tokenizer||new le,se=function(Le){var ee=He[Le];He[Le]=function(){for(var ct=arguments.length,Mt=new Array(ct),ot=0;ot<ct;ot++)Mt[ot]=arguments[ot];var Yt=Bt.tokenizer[Le].apply(He,Mt);return Yt===!1&&(Yt=ee.apply(He,Mt)),Yt}};for(var J in Bt.tokenizer)se(J);_t.tokenizer=He}(),Bt.walkTokens){var jt=Et.defaults.walkTokens;_t.walkTokens=function(He){Bt.walkTokens(He),jt&&jt(He)}}Et.setOptions(_t)},Et.walkTokens=function(Bt,_t){for(var jt=w(Bt),He;!(He=jt()).done;){var se=He.value;_t(se);switch(se.type){case"table":{for(var J=w(se.tokens.header),Ue;!(Ue=J()).done;){var Le=Ue.value;Et.walkTokens(Le,_t)}for(var ee=w(se.tokens.cells),ct;!(ct=ee()).done;)for(var Mt=ct.value,ot=w(Mt),Yt;!(Yt=ot()).done;){var or=Yt.value;Et.walkTokens(or,_t)}break}case"list":{Et.walkTokens(se.items,_t);break}default:se.tokens&&Et.walkTokens(se.tokens,_t)}}},Et.Parser=Te,Et.parser=Te.parse,Et.Renderer=de,Et.TextRenderer=Ce,Et.Lexer=Y,Et.lexer=Y.lex,Et.Tokenizer=le,Et.Slugger=Me,Et.parse=Et;var Ut=Et;return Ut})},"DlR+":function(H,B,d){var _=d("MFOe"),E=_.Global,C=_.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 l=n[e].split("="),t=unescape(l[0]),a=unescape(l[1]);i(a,t)}}function f(i,n){if(!i)return;A.cookie=escape(i)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(i){if(!i||!r(i))return;A.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){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 _=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,l,t,a){var s=this;c.superCall(this,"renderInner",r,i,n,e,l,t,a);var u=this._controllerGroup,h=i.get("pageIconSize",!0);_.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:_.bind(s._pageGo,s,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,l,t){var a=this.getSelectorGroup(),s=r.getOrient().index,u=m[s],h=f[s],p=m[1-s],g=f[1-s];l&&C.box("horizontal",a,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),y=a.getBoundingRect(),x=[-y.x,-y.y],T=_.clone(n);l&&(T[u]=n[u]-y[u]-v);var S=this._layoutContentAndController(r,e,T,s,u,p,g);if(l){if(t==="end")x[s]+=S[u]+v;else{var b=y[u]+v;x[s]-=b,S[h]-=b}S[u]+=y[u]+v,x[1-s]+=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-s]),a.attr("position",x)}return S},_layoutContentAndController:function(r,i,n,e,l,t,a){var s=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;C.box(r.get("orient"),s,r.get("itemGap"),e?n.width:null,e?null:n.height),C.box("horizontal",h,r.get("pageButtonItemGap",!0));var p=s.getBoundingRect(),g=h.getBoundingRect(),v=this._showController=p[l]>n[l],y=[-p.x,-p.y];i||(y[e]=s.position[e]);var x=[0,0],T=[-g.x,-g.y],S=_.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var b=r.get("pageButtonPosition",!0);b==="end"?T[e]+=n[l]-g[l]:x[e]+=g[l]+S}T[1-e]+=p[t]/2-g[t]/2,s.attr("position",y),u.attr("position",x),h.attr("position",T);var O={x:0,y:0};if(O[l]=v?n[l]:p[l],O[t]=Math.max(p[t],g[t]),O[a]=Math.min(0,g[a]+T[1-e]),u.__rectSize=n[l],v){var I={x:0,y:0};I[l]=Math.max(n[l]-g[l]-S,0),I[t]=O[t],u.setClipPath(new E.Rect({shape:I})),u.__rectSize=I[l]}else h.eachChild(function(N){N.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(r);return L.pageIndex!=null&&E.updateProps(s,{position:L.contentPosition},v?r:!1),this._updatePageInfoView(r,L),O},_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;_.each(["pagePrev","pageNext"],function(u){var h=i[u+"DataIndex"]!=null,p=n.childOfName(u);p&&(p.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=h?"pointer":"default")});var e=n.childOfName("pageText"),l=r.get("pageFormatter"),t=i.pageIndex,a=t!=null?t+1:0,s=i.pageCount;e&&l&&e.setStyle("text",_.isString(l)?l.replace("{current}",a).replace("{total}",s):l({current:a,total:s}))},_getPageInfo:function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),e=this._containerGroup.__rectSize,l=r.getOrient().index,t=m[l],a=f[l],s=this._findTargetItemIndex(i),u=n.children(),h=u[s],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=O(h);v.contentPosition[l]=-y.s;for(var x=s+1,T=y,S=y,b=null;x<=p;++x)b=O(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=s-1,T=y,S=y,b=null;x>=-1;--x)b=O(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 O(L){if(L){var N=L.getBoundingRect(),D=N[a]+L.position[l];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(l,t){var a=l.__legendDataIndex;e==null&&a!=null&&(e=t),a===r&&(i=t)}),i!=null?i:e}}),o=c;H.exports=o},"E/ki":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},E2g8:function(H,B,d){(function(_,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,Me){y[f]=Ce,y[f+1]=Me,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,l=e||{},t=l.MutationObserver||l.WebKitMutationObserver,a=typeof self=="undefined"&&typeof _!="undefined"&&{}.toString.call(_)==="[object process]",s=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return _.nextTick(x)}}function h(){return typeof c!="undefined"?function(){c(x)}:v()}function p(){var de=0,Ce=new t(x),Me=document.createTextNode("");return Ce.observe(Me,{characterData:!0}),function(){Me.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],Me=y[de+1];Ce(Me),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():s?S=g():e===void 0&&!0?S=T():S=v();function b(de,Ce){var Me=this,ue=new this.constructor(L);ue[I]===void 0&&me(ue);var Ae=Me._state;if(Ae){var Te=arguments[Ae-1];r(function(){return ve(Ae,ue,Te,Me._result)})}else le(Me,ue,de,Ce);return ue}function O(de){var Ce=this;if(de&&typeof de=="object"&&de.constructor===Ce)return de;var Me=new Ce(L);return V(Me,de),Me}var I=Math.random().toString(36).substring(2);function L(){}var N=void 0,D=1,R=2;function k(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function j(de,Ce,Me,ue){try{de.call(Ce,Me,ue)}catch(Ae){return Ae}}function F(de,Ce,Me){r(function(ue){var Ae=!1,Te=j(Me,Ce,function(Je){if(Ae)return;Ae=!0,Ce!==Je?V(ue,Je):Q(ue,Je)},function(Je){if(Ae)return;Ae=!0,Z(ue,Je)},"Settle: "+(ue._label||" unknown promise"));!Ae&&Te&&(Ae=!0,Z(ue,Te))},de)}function U(de,Ce){Ce._state===D?Q(de,Ce._result):Ce._state===R?Z(de,Ce._result):le(Ce,void 0,function(Me){return V(de,Me)},function(Me){return Z(de,Me)})}function K(de,Ce,Me){Ce.constructor===de.constructor&&Me===b&&Ce.constructor.resolve===O?U(de,Ce):Me===void 0?Q(de,Ce):A(Me)?F(de,Ce,Me):Q(de,Ce)}function V(de,Ce){if(de===Ce)Z(de,k());else if(C(Ce)){var Me=void 0;try{Me=Ce.then}catch(ue){Z(de,ue);return}K(de,Ce,Me)}else Q(de,Ce)}function z(de){de._onerror&&de._onerror(de._result),ne(de)}function Q(de,Ce){if(de._state!==N)return;de._result=Ce,de._state=D,de._subscribers.length!==0&&r(ne,de)}function Z(de,Ce){if(de._state!==N)return;de._state=R,de._result=Ce,r(z,de)}function le(de,Ce,Me,ue){var Ae=de._subscribers,Te=Ae.length;de._onerror=null,Ae[Te]=Ce,Ae[Te+D]=Me,Ae[Te+R]=ue,Te===0&&de._state&&r(ne,de)}function ne(de){var Ce=de._subscribers,Me=de._state;if(Ce.length===0)return;for(var ue=void 0,Ae=void 0,Te=de._result,Je=0;Je<Ce.length;Je+=3)ue=Ce[Je],Ae=Ce[Je+Me],ue?ve(Me,ue,Ae,Te):Ae(Te);de._subscribers.length=0}function ve(de,Ce,Me,ue){var Ae=A(Me),Te=void 0,Je=void 0,At=!0;if(Ae){try{Te=Me(ue)}catch(qe){At=!1,Je=qe}if(Ce===Te){Z(Ce,M());return}}else Te=ue;Ce._state!==N||(Ae&&At?V(Ce,Te):At===!1?Z(Ce,Je):de===D?Q(Ce,Te):de===R&&Z(Ce,Te))}function xe(de,Ce){try{Ce(function(ue){V(de,ue)},function(ue){Z(de,ue)})}catch(Me){Z(de,Me)}}var _e=0;function Be(){return _e++}function me(de){de[I]=_e++,de._state=void 0,de._result=void 0,de._subscribers=[]}function Fe(){return new Error("Array Methods must be provided an Array")}var ie=function(){function de(Ce,Me){this._instanceConstructor=Ce,this.promise=new Ce(L),this.promise[I]||me(this.promise),m(Me)?(this.length=Me.length,this._remaining=Me.length,this._result=new Array(this.length),this.length===0?Q(this.promise,this._result):(this.length=this.length||0,this._enumerate(Me),this._remaining===0&&Q(this.promise,this._result))):Z(this.promise,Fe())}return de.prototype._enumerate=function(Me){for(var ue=0;this._state===N&&ue<Me.length;ue++)this._eachEntry(Me[ue],ue)},de.prototype._eachEntry=function(Me,ue){var Ae=this._instanceConstructor,Te=Ae.resolve;if(Te===O){var Je=void 0,At=void 0,qe=!1;try{Je=Me.then}catch(Lt){qe=!0,At=Lt}if(Je===b&&Me._state!==N)this._settledAt(Me._state,ue,Me._result);else if(typeof Je!="function")this._remaining--,this._result[ue]=Me;else if(Ae===X){var Re=new Ae(L);qe?Z(Re,At):K(Re,Me,Je),this._willSettleAt(Re,ue)}else this._willSettleAt(new Ae(function(Lt){return Lt(Me)}),ue)}else this._willSettleAt(Te(Me),ue)},de.prototype._settledAt=function(Me,ue,Ae){var Te=this.promise;Te._state===N&&(this._remaining--,Me===R?Z(Te,Ae):this._result[ue]=Ae),this._remaining===0&&Q(Te,this._result)},de.prototype._willSettleAt=function(Me,ue){var Ae=this;le(Me,void 0,function(Te){return Ae._settledAt(D,ue,Te)},function(Te){return Ae._settledAt(R,ue,Te)})},de}();function te(de){return new ie(this,de).promise}function Ge(de){var Ce=this;return m(de)?new Ce(function(Me,ue){for(var Ae=de.length,Te=0;Te<Ae;Te++)Ce.resolve(de[Te]).then(Me,ue)}):new Ce(function(Me,ue){return ue(new TypeError("You must pass an array to race."))})}function oe(de){var Ce=this,Me=new Ce(L);return Z(Me,de),Me}function Y(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function G(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var X=function(){function de(Ce){this[I]=Be(),this._result=this._state=void 0,this._subscribers=[],L!==Ce&&(typeof Ce!="function"&&Y(),this instanceof de?xe(this,Ce):G())}return de.prototype.catch=function(Me){return this.then(null,Me)},de.prototype.finally=function(Me){var ue=this,Ae=ue.constructor;return A(Me)?ue.then(function(Te){return Ae.resolve(Me()).then(function(){return Te})},function(Te){return Ae.resolve(Me()).then(function(){throw Te})}):ue.then(Me,Me)},de}();X.prototype.then=b,X.all=te,X.race=Ge,X.resolve=O,X.reject=oe,X._setScheduler=i,X._setAsap=n,X._asap=r;function fe(){var de=void 0;if(typeof E!="undefined")de=E;else if(typeof self!="undefined")de=self;else try{de=Function("return this")()}catch(ue){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=de.Promise;if(Ce){var Me=null;try{Me=Object.prototype.toString.call(Ce.resolve())}catch(ue){}if(Me==="[object Promise]"&&!Ce.cast)return}de.Promise=X}return X.polyfill=fe,X.Promise=X,X})}).call(this,d("Q2Ig"),d("yLpj"))},E4JC:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(_){return function(){var E=_,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,l=0;l<4;l++)n[l]=(n[l]<<8|n[l]>>>24)&16711935|(n[l]<<24|n[l]>>>8)&4278255360;var t=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],a=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var l=0;l<4;l++)r.call(this);for(var l=0;l<8;l++)a[l]^=t[l+4&7];if(e){var s=e.words,u=s[0],h=s[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,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 l=0;l<4;l++)r.call(this)}},_doProcessBlock:function(n,e){var l=this._X;r.call(this),m[0]=l[0]^l[5]>>>16^l[3]<<16,m[1]=l[2]^l[7]>>>16^l[5]<<16,m[2]=l[4]^l[1]>>>16^l[7]<<16,m[3]=l[6]^l[3]>>>16^l[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 l=i[e]+n[e],t=l&65535,a=l>>>16,s=((t*t>>>17)+t*a>>>15)+a*a,u=((l&4294901760)*l|0)+((l&65535)*l|0);c[e]=s^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.Rabbit=A._createHelper(o)}(),_.Rabbit})},E9nw:function(H,B){H.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var _=document.activeElement,E=[],C=0;C<d.rangeCount;C++)E.push(d.getRangeAt(C));switch(_.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":_.blur();break;default:_=null;break}return d.removeAllRanges(),function(){d.type==="Caret"&&d.removeAllRanges(),d.rangeCount||E.forEach(function(A){d.addRange(A)}),_&&_.focus()}}},ELLl:function(H,B,d){(function(_){_(d("VrN/"))})(function(_){var E={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},C=_.Pos;_.defineOption("autoCloseBrackets",!1,function(t,a,s){s&&s!=_.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 s=t.charAt(a),u="'"+s+"'";w[u]||(w[u]=f(s))}}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 s=t.getModeAt(t.getCursor());return s.closeBrackets||a}function o(t){var a=c(t);if(!a||t.getOption("disableInput"))return _.Pass;for(var s=A(a,"pairs"),u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return _.Pass;var p=e(t,u[h].head);if(!p||s.indexOf(p)%2!=0)return _.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),s=a&&A(a,"explode");if(!s||t.getOption("disableInput"))return _.Pass;for(var u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return _.Pass;var p=e(t,u[h].head);if(!p||s.indexOf(p)%2!=0)return _.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=_.cmpPos(t.anchor,t.head)>0;return{anchor:new C(t.anchor.line,t.anchor.ch+(a?-1:1)),head:new C(t.head.line,t.head.ch+(a?1:-1))}}function n(t,a){var s=c(t);if(!s||t.getOption("disableInput"))return _.Pass;var u=A(s,"pairs"),h=u.indexOf(a);if(h==-1)return _.Pass;for(var p=A(s,"closeBefore"),g=A(s,"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],O=b.head,I,L=t.getRange(O,C(O.line,O.ch+1));if(x&&!b.empty())I="surround";else if((v||!x)&&L==a)v&&l(t,O)?I="both":g.indexOf(a)>=0&&t.getRange(O,C(O.line,O.ch+3))==a+a+a?I="skipThree":I="skip";else if(v&&O.ch>1&&g.indexOf(a)>=0&&t.getRange(C(O.line,O.ch-2),O)==a+a){if(O.ch>2&&/\bstring/.test(t.getTokenTypeAt(C(O.line,O.ch-2))))return _.Pass;I="addFour"}else if(v){var N=O.ch==0?" ":t.getRange(C(O.line,O.ch-1),O);if(!_.isWordChar(L)&&N!=a&&!_.isWordChar(N))I="both";else return _.Pass}else if(x&&(L.length===0||/\s/.test(L)||p.indexOf(L)>-1))I="both";else return _.Pass;if(!T)T=I;else if(T!=I)return _.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 k=0;k<3;k++)t.execCommand("goCharRight");else if(T=="surround"){for(var M=t.getSelections(),k=0;k<M.length;k++)M[k]=D+M[k]+R;t.replaceSelections(M,"around"),M=t.listSelections().slice();for(var k=0;k<M.length;k++)M[k]=i(M[k]);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 s=t.getRange(C(a.line,a.ch-1),C(a.line,a.ch+1));return s.length==2?s:null}function l(t,a){var s=t.getTokenAt(C(a.line,a.ch+1));return/\bstring/.test(s.type)&&s.start==a.ch&&(a.ch==0||!/\bstring/.test(t.getTokenTypeAt(a)))}})},ELcG:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){/** @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=_,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]),l=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,O=n.words,I=e.words,L=c.words,N=o.words,D=r.words,R=i.words,k,M,j,F,U,K,V,z,Q,Z;K=k=b[0],V=M=b[1],z=j=b[2],Q=F=b[3],Z=U=b[4];for(var le,x=0;x<80;x+=1)le=k+v[y+L[x]]|0,x<16?le+=t(M,j,F)+O[0]:x<32?le+=a(M,j,F)+O[1]:x<48?le+=s(M,j,F)+O[2]:x<64?le+=u(M,j,F)+O[3]:le+=h(M,j,F)+O[4],le=le|0,le=p(le,D[x]),le=le+U|0,k=U,U=F,F=p(j,10),j=M,M=le,le=K+v[y+N[x]]|0,x<16?le+=h(V,z,Q)+I[0]:x<32?le+=u(V,z,Q)+I[1]:x<48?le+=s(V,z,Q)+I[2]:x<64?le+=a(V,z,Q)+I[3]:le+=t(V,z,Q)+I[4],le=le|0,le=p(le,R[x]),le=le+Z|0,K=Z,Z=Q,Q=p(z,10),z=V,V=le;le=b[1]+j+Q|0,b[1]=b[2]+F+Z|0,b[2]=b[3]+U+K|0,b[3]=b[4]+k+V|0,b[4]=b[0]+M+z|0,b[0]=le},_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,O=0;O<5;O++){var I=b[O];b[O]=(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 s(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(l),C.HmacRIPEMD160=m._createHmacHelper(l)}(Math),_.RIPEMD160})},EMyp:function(H,B,d){var _=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=_.PRIORITY.VISUAL.BRUSH;_.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)})}_.registerVisual(i,function(g,v,y){var x=[],T,S;g.eachComponent({mainType:"brush"},function(b,O){var I={brushId:b.id,brushIndex:O,brushName:b.name,areas:E.clone(b.areas),selected:[]};x.push(I);var L=b.option,N=L.brushLink,D=[],R=[],k=[],M=0;O||(T=L.throttleType,S=L.throttleDelay);var j=E.map(b.areas,function(Q){return u(E.defaults({boundingRect:h[Q.brushType](Q)},Q))}),F=A.createVisualMappings(b.option,c,function(Q){Q.mappingMethod="fixed"});E.isArray(N)&&E.each(N,function(Q){D[Q]=1});function U(Q){return N==="all"||D[Q]}function K(Q){return!!Q.length}g.eachSeries(function(Q,Z){var le=k[Z]=[];Q.subType==="parallel"?V(Q,Z,le):z(Q,Z,le)});function V(Q,Z){var le=Q.coordinateSystem;M|=le.hasAxisBrushed(),U(Z)&&le.eachActiveState(Q.getData(),function(ne,ve){ne==="active"&&(R[ve]=1)})}function z(Q,Z,le){var ne=a(Q);if(!ne||s(b,Z))return;if(E.each(j,function(xe){ne[xe.brushType]&&b.brushTargetManager.controlSeries(xe,Q,g)&&le.push(xe),M|=K(le)}),U(Z)&&K(le)){var ve=Q.getData();ve.each(function(xe){t(ne,le,ve,xe)&&(R[xe]=1)})}}g.eachSeries(function(Q,Z){var le={seriesId:Q.id,seriesIndex:Z,seriesName:Q.name,dataIndex:[]};I.selected.push(le);var ne=a(Q),ve=k[Z],xe=Q.getData(),_e=U(Z)?function(Be){return R[Be]?(le.dataIndex.push(xe.getRawIndex(Be)),"inBrush"):"outOfBrush"}:function(Be){return t(ne,ve,xe,Be)?(le.dataIndex.push(xe.getRawIndex(Be)),"inBrush"):"outOfBrush"};(U(Z)?M:K(ve))&&A.applyVisual(c,F,xe,_e)})}),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]=l);var b=m.createOrUpdate(S,o,y,v);b(g,x)}function l(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,O,I,L){var N=O.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 s(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 _=d("ProS");d("Z6js"),d("R4Th");var E=d("f5Yq"),C=d("h8O9");_.registerVisual(E("effectScatter","circle")),_.registerLayout(C("effectScatter"))},ETIr:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(){var E=_,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=[],l=0;l<i;l+=3)for(var t=r[l>>>2]>>>24-l%4*8&255,a=r[l+1>>>2]>>>24-(l+1)%4*8&255,s=r[l+2>>>2]>>>24-(l+2)%4*8&255,u=t<<16|a<<8|s,h=0;h<4&&l+h*.75<i;h++)e.push(n.charAt(u>>>6*(3-h)&63));var p=n.charAt(64);if(p)for(;e.length%4;)e.push(p);return e.join("")},parse:function(o){var r=o.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<i.length;e++)n[i.charCodeAt(e)]=e}var l=i.charAt(64);if(l){var t=o.indexOf(l);t!==-1&&(r=t)}return f(o,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(c,o,r){for(var i=[],n=0,e=0;e<o;e++)if(e%4){var l=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=l|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),_.enc.Base64})},EXcs:function(H,B,d){"use strict";var _=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:_,onEnterStart:_,onAppearActive:E,onEnterActive:E,onLeaveStart:C,onLeaveActive:_,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};B.a=w},Em2t:function(H,B,d){var _=d("bahg"),E=d("quyA"),C=d("0JQy");function A(w){return E(w)?C(w):_(w)}H.exports=A},Ez2D:function(H,B,d){var _=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||_.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(_.map(n.dimensions,function(l){return o.mapDimension(l)}),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(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(){if(typeof ArrayBuffer!="function")return;var E=_,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}(),_.lib.WordArray})},F0hE:function(H,B,d){var _=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=_.extendComponentModel({type:"radar",optionUpdated:function(){var r=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),t=this.get("axisType"),a=this.get("axisLabel"),s=this.get("name"),u=this.get("name.show"),h=this.get("name.formatter"),p=this.get("nameGap"),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=s;if(y.color!=null&&(x=E.defaults({color:y.color},s)),y=E.merge(E.clone(y),{boundaryGap:r,splitNumber:i,scale:n,axisLine:e,axisTick:l,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 _(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=_},F7hV:function(H,B,d){var _=d("MBQ8"),E=_.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 _=d("bYtY"),E=d("ItGF"),C=d("4NO4"),A=C.makeInner,w=A(),m=_.each;function f(l,t,a){if(E.node)return;var s=t.getZr();w(s).records||(w(s).records={}),c(s,t);var u=w(s).records[l]||(w(s).records[l]={});u.handler=a}function c(l,t){if(w(l).initialized)return;w(l).initialized=!0,a("click",_.curry(i,"click")),a("mousemove",_.curry(i,"mousemove")),a("globalout",r);function a(s,u){l.on(s,function(h){var p=n(t);m(w(l).records,function(g){g&&u(g,h,p.dispatchAction)}),o(p.pendings,t)})}}function o(l,t){var a=l.showTip.length,s=l.hideTip.length,u;a?u=l.showTip[a-1]:s&&(u=l.hideTip[s-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}function r(l,t,a){l.handler("leave",null,a)}function i(l,t,a,s){t.handler(l,a,s)}function n(l){var t={showTip:[],hideTip:[]},a=function(s){var u=t[s.type];u?u.push(s):(s.dispatchAction=a,l.dispatchAction(s))};return{dispatchAction:a,pendings:t}}function e(l,t){if(E.node)return;var a=t.getZr(),s=(w(a).records||{})[l];s&&(w(a).records[l]=null)}B.register=f,B.unregister=e},FBjb:function(H,B,d){var _=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 O=this.childAt(0);O.silent=!1,A.updateProps(O,{scale:n(T)},x,g)}if(this._updateCommon(p,g,T,v),S){var O=this.childAt(0),I=v&&v.fadeIn,L={scale:O.scale.slice()};I&&(L.style={opacity:O.style.opacity}),O.scale=[0,0],I&&(O.style.opacity=0),A.initProps(O,L,x,g)}this._seriesModel=x};var l=["itemStyle"],t=["emphasis","itemStyle"],a=["label"],s=["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,O=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 k=y&&y.itemModel?y.itemModel:p.getItemModel(g);b=k.getModel(l).getItemStyle(["color"]),O=k.getModel(t).getItemStyle(),I=k.getShallow("symbolOffset"),L=k.getModel(a),N=k.getModel(s),D=k.getShallow("hoverAnimation"),R=k.getShallow("cursor")}else O=_.extend({},O);var M=x.style,j=p.getItemVisual(g,"symbolRotate");x.attr("rotation",(j||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 U=p.getItemVisual(g,"liftZ"),K=x.__z2Origin;U!=null?K==null&&(x.__z2Origin=x.z2,x.z2+=U):K!=null&&(x.z2=K,x.__z2Origin=null);var V=y&&y.useNameLabel;A.setLabelStyle(M,O,L,N,{labelFetcher:T,labelDataIndex:g,defaultText:z,isRectText:!0,autoColor:S});function z(Q,Z){return V?p.getName(Q):c(p,Q)}x.__symbolOriginalScale=n(v),x.hoverStyle=O,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)},_.inherits(o,A.Group);var h=o;H.exports=h},FGaS:function(H,B,d){var _=d("ProS"),E=d("IwbS"),C=d("bYtY"),A=d("oVpE");function w(f){return C.isArray(f)||(f=[+f,+f]),f}var m=_.extendChartView({type:"radar",render:function(f,c,o){var r=f.coordinateSystem,i=this.group,n=f.getData(),e=this._data;function l(s,u){var h=s.getItemVisual(u,"symbol")||"circle",p=s.getItemVisual(u,"color");if(h==="none")return;var g=w(s.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(s,u,h,p,g,v){h.removeAll();for(var y=0;y<u.length-1;y++){var x=l(p,g);x&&(x.__dimIdx=y,s[y]?(x.attr("position",s[y]),E[v?"initProps":"updateProps"](x,{position:u[y]},f,g)):x.attr("position",u[y]),h.add(x))}}function a(s){return C.map(s,function(u){return[r.cx,r.cy]})}n.diff(e).add(function(s){var u=n.getItemLayout(s);if(!u)return;var h=new 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,s),E.initProps(p,g,f,s);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,s,!0),n.setItemGraphicEl(s,v)}).update(function(s,u){var h=e.getItemGraphicEl(u),p=h.childAt(0),g=h.childAt(1),v=h.childAt(2),y={shape:{points:n.getItemLayout(s)}};if(!y.shape.points)return;t(p.shape.points,y.shape.points,v,n,s,!1),E.updateProps(p,y,f),E.updateProps(g,y,f),n.setItemGraphicEl(s,h)}).remove(function(s){i.remove(e.getItemGraphicEl(s))}).execute(),n.eachItemGraphicEl(function(s,u){var h=n.getItemModel(u),p=s.childAt(0),g=s.childAt(1),v=s.childAt(2),y=n.getItemVisual(u,"color");i.add(s),p.useStyle(C.defaults(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=h.getModel("emphasis.lineStyle").getLineStyle();var 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 O=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(O),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})}),s.highDownOnUpdate=function(D,R){g.attr("ignore",R==="emphasis"?b:S)},E.setHoverStyle(s)}),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 _=E(d("ZMnZ"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},FJo9:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("8txm"),A=d.n(C),w=d("MXD1")},FNN5:function(H,B,d){var _=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(),l=i.getTicksCoords(),t=i.getMinorTicksCoords(),a=e.getExtent()[0],s=i.getExtent(),u=c(n,o,a),h=new C(o,u);_.each(w,h.add,h),this.group.add(h.getGroup()),_.each(m,function(p){o.get(p+".show")&&!i.scale.isBlank()&&this["_"+p](o,n,a,s,l,t)},this)},_splitLine:function(o,r,i,n,e){var l=o.getModel("splitLine"),t=l.getModel("lineStyle"),a=t.get("color"),s=0;a=a instanceof Array?a:[a];for(var u=[],h=0;h<e.length;h++){var p=s++%a.length;u[p]=u[p]||[],u[p].push(new 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:_.defaults({stroke:a[h%a.length],fill:null},t.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,r,i,n,e,l){if(!l.length)return;for(var t=o.getModel("minorSplitLine"),a=t.getModel("lineStyle"),s=[],u=0;u<l.length;u++)for(var h=0;h<l[u].length;h++)s.push(new E.Circle({shape:{cx:r.cx,cy:r.cy,r:l[u][h].coord}}));this.group.add(E.mergePath(s,{style:_.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(o,r,i,n,e){if(!e.length)return;var l=o.getModel("splitArea"),t=l.getModel("areaStyle"),a=t.get("color"),s=0;a=a instanceof Array?a:[a];for(var u=[],h=e[0].coord,p=1;p<e.length;p++){var g=s++%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:_.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 _=d("q1tI"),E=d.n(_),C=_.createContext(null)},FUi9:function(H,B,d){var _=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 l=d("oVpE");B.createSymbol=l.createSymbol;function t(h){return E(h.getSource(),h)}var a={isDimensionStacked:r,enableDataStack:o,getStackedDimension:i};function s(h,p){var g=p;w.isInstance(p)||(g=new w(p),_.mixin(g,A));var v=C.createScaleByModel(g);return v.setExtent(h[0],h[1]),C.niceScaleExtent(v,g),v}function u(h){_.mixin(h,A)}B.createList=t,B.dataStack=a,B.createScale=s,B.mixinAxisModelCommonMethods=u},"Fa/5":function(H,B,d){var _=d("ProS");d("y2l5"),d("q/+u");var E=d("f5Yq"),C=d("h8O9");d("Ae16"),_.registerVisual(E("scatter","circle")),_.registerLayout(C("scatter"))},FhB9:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},"Fm1+":function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _(){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],l=i[1]*n[0]+i[3]*n[1],t=i[0]*n[2]+i[2]*n[3],a=i[1]*n[2]+i[3]*n[3],s=i[0]*n[4]+i[2]*n[5]+i[4],u=i[1]*n[4]+i[3]*n[5]+i[5];return r[0]=e,r[1]=l,r[2]=t,r[3]=a,r[4]=s,r[5]=u,r}function 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],l=i[2],t=i[4],a=i[1],s=i[3],u=i[5],h=Math.sin(n),p=Math.cos(n);return r[0]=e*p+a*h,r[1]=-e*h+a*p,r[2]=l*p+s*h,r[3]=-l*h+p*s,r[4]=p*t+h*u,r[5]=p*u-h*t,r}function f(r,i,n){var e=n[0],l=n[1];return r[0]=i[0]*e,r[1]=i[1]*l,r[2]=i[2]*e,r[3]=i[3]*l,r[4]=i[4]*e,r[5]=i[5]*l,r}function c(r,i){var n=i[0],e=i[2],l=i[4],t=i[1],a=i[3],s=i[5],u=n*a-t*e;return u?(u=1/u,r[0]=a*u,r[1]=-t*u,r[2]=-e*u,r[3]=n*u,r[4]=(e*s-a*l)*u,r[5]=(t*l-n*s)*u,r):null}function o(r){var i=_();return C(i,r),i}B.create=_,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 _(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(a){return typeof a}:_=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_(l)}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(l){return l&&l.__esModule?l:{default:l}}function c(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return c=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||_(l)!=="object"&&typeof l!="function")return{default:l};var t=c();if(t&&t.has(l))return t.get(l);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var h=s?Object.getOwnPropertyDescriptor(l,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=l[u]}return a.default=l,t&&t.set(l,a),a}function r(l,t){if(!(l instanceof t))throw new TypeError("Cannot call a class as a function")}function i(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function n(l,t,a){return t&&i(l.prototype,t),a&&i(l,a),l}var e=function(){function l(t){r(this,l),this._target=t||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return n(l,[{key:"_sendKeyEvent",value:function(a,s,u){if(u)this._keyDownList[s]=a;else{if(!(s in this._keyDownList))return;delete this._keyDownList[s]}E.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+a,", code: "+s),this.onkeyevent(a,s,u)}},{key:"_getKeyCode",value:function(a){var s=A.getKeycode(a);if(s!=="Unidentified")return s;if(a.keyCode&&a.type!=="keypress"&&a.keyCode!==229)return"Platform"+a.keyCode;if(a.keyIdentifier){if(a.keyIdentifier.substr(0,2)!=="U+")return a.keyIdentifier;var u=parseInt(a.keyIdentifier.substr(2),16),h=String.fromCharCode(u).toUpperCase();return"Platform"+h.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var s=this._getKeyCode(a),u=A.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),s==="AltRight"&&a.timeStamp-this._altGrCtrlTime<50?u=w.default.XK_ISO_Level3_Shift:this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)),s==="Unidentified"){u&&(this._sendKeyEvent(u,s,!0),this._sendKeyEvent(u,s,!1)),(0,C.stopEvent)(a);return}if(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(s in this._keyDownList&&(u=this._keyDownList[s]),(m.isMac()||m.isIOS())&&s==="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=s,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,C.stopEvent)(a),s==="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,s,!0)}},{key:"_handleKeyPress",value:function(a){if((0,C.stopEvent)(a),this._pendingKey===null)return;var s=this._getKeyCode(a),u=A.getKeysym(a);if(s!=="Unidentified"&&s!=this._pendingKey)return;if(s=this._pendingKey,this._pendingKey=null,!u){E.Info("keypress with no keysym:",a);return}this._sendKeyEvent(u,s,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var s,u=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)s=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var h=String.fromCharCode(a.keyCode);a.shiftKey?h=h.toUpperCase():h=h.toLowerCase(),s=h.charCodeAt()}else s=0;this._sendKeyEvent(s,u,!0)}},{key:"_handleKeyUp",value:function(a){(0,C.stopEvent)(a);var s=this._getKeyCode(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(w.default.XK_Control_L,"ControlLeft",!0)),(m.isMac()||m.isIOS())&&s==="CapsLock"){this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(w.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[s],s,!1),m.isWindows()&&(s==="ShiftLeft"||s==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(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 s=this._target,u=this._keyDownList;["AltLeft","AltRight"].forEach(function(h){if(!(h in u))return;var p=new KeyboardEvent("keyup",{key:u[h],code:h});p.skipCheckAlt=!0,s.dispatchEvent(p)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),m.isWindows()&&m.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(s){return document.addEventListener(s,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(m.isWindows()&&m.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(s){return document.removeEventListener(s,a)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),l}();B.default=e},FxDU:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.createSensor=void 0;var _=d("QO+J"),E=d("j5sG"),C=typeof ResizeObserver!="undefined"?E.createSensor:_.createSensor;B.createSensor=C},GGyF:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="PoweroffOutlined";var f=B.a=E.forwardRef(m)},GMDS:function(H,B,d){var _=d("bYtY"),E=d("4NgU"),C=d("jkPA"),A=E.prototype,w=E.extend({type:"ordinal",init:function(f,c){(!f||_.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:_.noop,niceExtent:_.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=_,B.toSigned32bit=E;function _(C){return C>>>0}function E(C){return C|0}},GRuw:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("lPiR"))})(this,function(_){return function(){var E=_,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)}(),_.SHA224})},GUcZ:function(H,B,d){"use strict";var _=d("fWQN"),E=d("mtLc"),C=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Oe,Ee){return Oe.__proto__=Ee,Oe},Object.assign=Object.assign||function(Oe){if(Oe==null)throw new TypeError("Cannot convert undefined or null to object");for(var Ee=Object(Oe),Ie=1;Ie<arguments.length;Ie++){var Ye=arguments[Ie];if(Ye!=null)for(var rt in Ye)Ye.hasOwnProperty(rt)&&(Ee[rt]=Ye[rt])}return Ee},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),Ft}();C.install();var A=C,w=d("+qE3"),m=d.n(w),f=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"e",value:function(Oe,Ee){(!Oe||Ft.FORCE_GLOBAL_TAG)&&(Oe=Ft.GLOBAL_TAG);var Ie="[".concat(Oe,"] > ").concat(Ee);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","error",Ie),!Ft.ENABLE_ERROR)return;console.error?console.error(Ie):console.warn?console.warn(Ie):console.log(Ie)}},{key:"i",value:function(Oe,Ee){(!Oe||Ft.FORCE_GLOBAL_TAG)&&(Oe=Ft.GLOBAL_TAG);var Ie="[".concat(Oe,"] > ").concat(Ee);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","info",Ie),!Ft.ENABLE_INFO)return;console.info?console.info(Ie):console.log(Ie)}},{key:"w",value:function(Oe,Ee){(!Oe||Ft.FORCE_GLOBAL_TAG)&&(Oe=Ft.GLOBAL_TAG);var Ie="[".concat(Oe,"] > ").concat(Ee);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","warn",Ie),!Ft.ENABLE_WARN)return;console.warn?console.warn(Ie):console.log(Ie)}},{key:"d",value:function(Oe,Ee){(!Oe||Ft.FORCE_GLOBAL_TAG)&&(Oe=Ft.GLOBAL_TAG);var Ie="[".concat(Oe,"] > ").concat(Ee);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","debug",Ie),!Ft.ENABLE_DEBUG)return;console.debug?console.debug(Ie):console.log(Ie)}},{key:"v",value:function(Oe,Ee){(!Oe||Ft.FORCE_GLOBAL_TAG)&&(Oe=Ft.GLOBAL_TAG);var Ie="[".concat(Oe,"] > ").concat(Ee);if(Ft.ENABLE_CALLBACK&&Ft.emitter.emit("log","verbose",Ie),!Ft.ENABLE_VERBOSE)return;console.log(Ie)}}]),Ft}();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 Ft(){Object(_.a)(this,Ft),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)(Ft,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Oe){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Oe,this._totalBytes+=Oe):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Oe,this._totalBytes+=Oe):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Oe,this._totalBytes+=Oe,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Oe=(this._now()-this._lastCheckpoint)/1e3;return Oe==0&&(Oe=1),this._intervalBytes/Oe/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 Oe=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Oe/1024}}]),Ft}(),r=o,i=d("yKVA"),n=d("879j"),e=function(){function Ft(bt){Object(_.a)(this,Ft),this._message=bt}return Object(E.a)(Ft,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),Ft}(),l=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee){return Object(_.a)(this,Oe),bt.call(this,Ee)}return Object(E.a)(Oe,[{key:"name",get:function(){return"IllegalStateException"}}]),Oe}(e),t=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee){return Object(_.a)(this,Oe),bt.call(this,Ee)}return Object(E.a)(Oe,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Oe}(e),a=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee){return Object(_.a)(this,Oe),bt.call(this,Ee)}return Object(E.a)(Oe,[{key:"name",get:function(){return"NotImplementedException"}}]),Oe}(e),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},u={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},h=function(){function Ft(bt){Object(_.a)(this,Ft),this._type=bt||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(E.a)(Ft,[{key:"destroy",value:function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===s.kConnecting||this._status===s.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(Oe){this._onContentLengthKnown=Oe}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Oe){this._onURLRedirect=Oe}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Oe){this._onDataArrival=Oe}},{key:"onError",get:function(){return this._onError},set:function(Oe){this._onError=Oe}},{key:"onComplete",get:function(){return this._onComplete},set:function(Oe){this._onComplete=Oe}},{key:"open",value:function(Oe,Ee){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),Ft}(),p=d("w4Tj"),g=d("oZsa"),v={};function y(){var Ft=self.navigator.userAgent.toLowerCase(),bt=/(edge)\/([\w.]+)/.exec(Ft)||/(opr)[\/]([\w.]+)/.exec(Ft)||/(chrome)[ \/]([\w.]+)/.exec(Ft)||/(iemobile)[\/]([\w.]+)/.exec(Ft)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ft)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Ft)||/(webkit)[ \/]([\w.]+)/.exec(Ft)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Ft)||/(msie) ([\w.]+)/.exec(Ft)||Ft.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Ft)||Ft.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Ft)||[],Oe=/(ipad)/.exec(Ft)||/(ipod)/.exec(Ft)||/(windows phone)/.exec(Ft)||/(iphone)/.exec(Ft)||/(kindle)/.exec(Ft)||/(android)/.exec(Ft)||/(windows)/.exec(Ft)||/(mac)/.exec(Ft)||/(linux)/.exec(Ft)||/(cros)/.exec(Ft)||[],Ee={browser:bt[5]||bt[3]||bt[1]||"",version:bt[2]||bt[4]||"0",majorVersion:bt[4]||bt[2]||"0",platform:Oe[0]||""},Ie={};if(Ee.browser){Ie[Ee.browser]=!0;var Ye=Ee.majorVersion.split(".");Ie.version={major:parseInt(Ee.majorVersion,10),string:Ee.version},Ye.length>1&&(Ie.version.minor=parseInt(Ye[1],10)),Ye.length>2&&(Ie.version.build=parseInt(Ye[2],10))}if(Ee.platform&&(Ie[Ee.platform]=!0),(Ie.chrome||Ie.opr||Ie.safari)&&(Ie.webkit=!0),Ie.rv||Ie.iemobile){Ie.rv&&delete Ie.rv;var rt="msie";Ee.browser=rt,Ie[rt]=!0}if(Ie.edge){delete Ie.edge;var ut="msedge";Ee.browser=ut,Ie[ut]=!0}if(Ie.opr){var Ot="opera";Ee.browser=Ot,Ie[Ot]=!0}if(Ie.safari&&Ie.android){var Ar="android";Ee.browser=Ar,Ie[Ar]=!0}Ie.name=Ee.browser,Ie.platform=Ee.platform;for(var Pr in v)v.hasOwnProperty(Pr)&&delete v[Pr];Object.assign(v,Ie)}y();var x=v,T=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee,Ie){var Ye;return Object(_.a)(this,Oe),Ye=bt.call(this,"fetch-stream-loader"),Ye.TAG="FetchStreamLoader",Ye._seekHandler=Ee,Ye._config=Ie,Ye._needStash=!0,Ye._requestAbort=!1,Ye._contentLength=null,Ye._receivedLength=0,Ye}return Object(E.a)(Oe,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(p.a)(Object(g.a)(Oe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie,Ye){var rt=this;this._dataSource=Ie,this._range=Ye;var ut=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(ut=Ie.redirectedURL);var Ot=this._seekHandler.getConfig(ut,Ye),Ar=new self.Headers;if(typeof Ot.headers=="object"){var Pr=Ot.headers;for(var un in Pr)Pr.hasOwnProperty(un)&&Ar.append(un,Pr[un])}var It={method:"GET",headers:Ar,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var nt in this._config.headers)Ar.append(nt,this._config.headers[nt]);Ie.cors===!1&&(It.mode="same-origin"),Ie.withCredentials&&(It.credentials="include"),Ie.referrerPolicy&&(It.referrerPolicy=Ie.referrerPolicy),this._status=s.kConnecting,self.fetch(Ot.url,It).then(function(at){if(rt._requestAbort){rt._requestAbort=!1,rt._status=s.kIdle;return}if(at.ok&&at.status>=200&&at.status<=299){if(at.url!==Ot.url&&rt._onURLRedirect){var rr=rt._seekHandler.removeURLParameters(at.url);rt._onURLRedirect(rr)}var Pt=at.headers.get("Content-Length");return Pt!=null&&(rt._contentLength=parseInt(Pt),rt._contentLength!==0&&(rt._onContentLengthKnown&&rt._onContentLengthKnown(rt._contentLength))),rt._pump.call(rt,at.body.getReader())}else if(rt._status=s.kError,rt._onError)rt._onError(u.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+at.status+" "+at.statusText)}).catch(function(at){if(rt._status=s.kError,rt._onError)rt._onError(u.EXCEPTION,{code:-1,msg:at.message});else throw at})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Ie){var Ye=this;return Ie.read().then(function(rt){if(rt.done)if(Ye._contentLength!==null&&Ye._receivedLength<Ye._contentLength){Ye._status=s.kError;var ut=u.EARLY_EOF,Ot={code:-1,msg:"Fetch stream meet Early-EOF"};if(Ye._onError)Ye._onError(ut,Ot);else throw new e(Ot.msg)}else Ye._status=s.kComplete,Ye._onComplete&&Ye._onComplete(Ye._range.from,Ye._range.from+Ye._receivedLength-1);else{if(Ye._requestAbort===!0)return Ye._requestAbort=!1,Ye._status=s.kComplete,Ie.cancel();Ye._status=s.kBuffering;var Ar=rt.value.buffer,Pr=Ye._range.from+Ye._receivedLength;Ye._receivedLength+=Ar.byteLength,Ye._onDataArrival&&Ye._onDataArrival(Ar,Pr,Ye._receivedLength),Ye._pump(Ie)}}).catch(function(rt){if(rt.code===11&&x.msedge)return;Ye._status=s.kError;var ut=0,Ot=null;if((rt.code===19||rt.message==="network error")&&(Ye._contentLength===null||Ye._contentLength!==null&&Ye._receivedLength<Ye._contentLength)?(ut=u.EARLY_EOF,Ot={code:rt.code,msg:"Fetch stream meet Early-EOF"}):(ut=u.EXCEPTION,Ot={code:rt.code,msg:rt.message}),Ye._onError)Ye._onError(ut,Ot);else throw new e(Ot.msg)})}}],[{key:"isSupported",value:function(){try{var Ie=x.msedge&&x.version.minor>=15048,Ye=x.msedge?Ie:!0;return self.fetch&&self.ReadableStream&&Ye}catch(rt){return!1}}}]),Oe}(h),S=T,b=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee,Ie){var Ye;return Object(_.a)(this,Oe),Ye=bt.call(this,"xhr-moz-chunked-loader"),Ye.TAG="MozChunkedLoader",Ye._seekHandler=Ee,Ye._config=Ie,Ye._needStash=!0,Ye._xhr=null,Ye._requestAbort=!1,Ye._contentLength=null,Ye._receivedLength=0,Ye}return Object(E.a)(Oe,[{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)(Oe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie,Ye){this._dataSource=Ie,this._range=Ye;var rt=Ie.url;this._config.reuseRedirectedURL&&Ie.redirectedURL!=null&&(rt=Ie.redirectedURL);var ut=this._seekHandler.getConfig(rt,Ye);this._requestURL=ut.url;var Ot=this._xhr=new XMLHttpRequest;if(Ot.open("GET",ut.url,!0),Ot.responseType="moz-chunked-arraybuffer",Ot.onreadystatechange=this._onReadyStateChange.bind(this),Ot.onprogress=this._onProgress.bind(this),Ot.onloadend=this._onLoadEnd.bind(this),Ot.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(Ot.withCredentials=!0),typeof ut.headers=="object"){var Ar=ut.headers;for(var Pr in Ar)Ar.hasOwnProperty(Pr)&&Ot.setRequestHeader(Pr,Ar[Pr])}if(typeof this._config.headers=="object"){var un=this._config.headers;for(var It in un)un.hasOwnProperty(It)&&Ot.setRequestHeader(It,un[It])}this._status=s.kConnecting,Ot.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=s.kComplete}},{key:"_onReadyStateChange",value:function(Ie){var Ye=Ie.target;if(Ye.readyState===2){if(Ye.responseURL!=null&&Ye.responseURL!==this._requestURL&&this._onURLRedirect){var rt=this._seekHandler.removeURLParameters(Ye.responseURL);this._onURLRedirect(rt)}if(Ye.status!==0&&(Ye.status<200||Ye.status>299))if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ye.status,msg:Ye.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+Ye.status+" "+Ye.statusText);else this._status=s.kBuffering}}},{key:"_onProgress",value:function(Ie){if(this._status===s.kError)return;this._contentLength===null&&(Ie.total!==null&&Ie.total!==0&&(this._contentLength=Ie.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var Ye=Ie.target.response,rt=this._range.from+this._receivedLength;this._receivedLength+=Ye.byteLength,this._onDataArrival&&this._onDataArrival(Ye,rt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Ie){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===s.kError)return;this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Ie){this._status=s.kError;var Ye=0,rt=null;if(this._contentLength&&Ie.loaded<this._contentLength?(Ye=u.EARLY_EOF,rt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Ye=u.EXCEPTION,rt={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(Ye,rt);else throw new e(rt.msg)}}],[{key:"isSupported",value:function(){try{var Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="moz-chunked-arraybuffer",Ie.responseType==="moz-chunked-arraybuffer"}catch(Ye){return c.w("MozChunkedLoader",Ye.message),!1}}}]),Oe}(h),O=b,I=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee,Ie){var Ye;return Object(_.a)(this,Oe),Ye=bt.call(this,"xhr-msstream-loader"),Ye.TAG="MSStreamLoader",Ye._seekHandler=Ee,Ye._config=Ie,Ye._needStash=!0,Ye._xhr=null,Ye._reader=null,Ye._totalRange=null,Ye._currentRange=null,Ye._currentRequestURL=null,Ye._currentRedirectedURL=null,Ye._contentLength=null,Ye._receivedLength=0,Ye._bufferLimit=16*1024*1024,Ye._lastTimeBufferSize=0,Ye._isReconnecting=!1,Ye}return Object(E.a)(Oe,[{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)(Oe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie,Ye){this._internalOpen(Ie,Ye,!1)}},{key:"_internalOpen",value:function(Ie,Ye,rt){this._dataSource=Ie,rt?this._currentRange=Ye:this._totalRange=Ye;var ut=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?ut=this._currentRedirectedURL:Ie.redirectedURL!=null&&(ut=Ie.redirectedURL));var Ot=this._seekHandler.getConfig(ut,Ye);this._currentRequestURL=Ot.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 Pr=this._xhr=new XMLHttpRequest;if(Pr.open("GET",Ot.url,!0),Pr.responseType="ms-stream",Pr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Pr.onerror=this._xhrOnError.bind(this),Ie.withCredentials&&(Pr.withCredentials=!0),typeof Ot.headers=="object"){var un=Ot.headers;for(var It in un)un.hasOwnProperty(It)&&Pr.setRequestHeader(It,un[It])}if(typeof this._config.headers=="object"){var nt=this._config.headers;for(var at in nt)nt.hasOwnProperty(at)&&Pr.setRequestHeader(at,nt[at])}this._isReconnecting?this._isReconnecting=!1:this._status=s.kConnecting,Pr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=s.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(Ie){var Ye=Ie.target;if(Ye.readyState===2)if(Ye.status>=200&&Ye.status<=299){if(this._status=s.kBuffering,Ye.responseURL!=null){var rt=this._seekHandler.removeURLParameters(Ye.responseURL);Ye.responseURL!==this._currentRequestURL&&rt!==this._currentRedirectedURL&&(this._currentRedirectedURL=rt,this._onURLRedirect&&this._onURLRedirect(rt))}var ut=Ye.getResponseHeader("Content-Length");if(ut!=null&&this._contentLength==null){var Ot=parseInt(ut);Ot>0&&(this._contentLength=Ot,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ye.status,msg:Ye.statusText});else throw new e("MSStreamLoader: Http code invalid, "+Ye.status+" "+Ye.statusText);else if(Ye.readyState===3&&(Ye.status>=200&&Ye.status<=299)){this._status=s.kBuffering;var Ar=Ye.response;this._reader.readAsArrayBuffer(Ar)}}},{key:"_xhrOnError",value:function(Ie){this._status=s.kError;var Ye=u.EXCEPTION,rt={code:-1,msg:Ie.constructor.name+" "+Ie.type};if(this._onError)this._onError(Ye,rt);else throw new e(rt.msg)}},{key:"_msrOnProgress",value:function(Ie){var Ye=Ie.target,rt=Ye.result;if(rt==null){this._doReconnectIfNeeded();return}var ut=rt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=rt.byteLength;var Ot=this._totalRange.from+this._receivedLength;this._receivedLength+=ut.byteLength,this._onDataArrival&&this._onDataArrival(ut,Ot,this._receivedLength),rt.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Ot+ut.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 Ie={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Ie,!0)}}},{key:"_msrOnLoad",value:function(Ie){this._status=s.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Ie){this._status=s.kError;var Ye=0,rt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Ye=u.EARLY_EOF,rt={code:-1,msg:"MSStream meet Early-Eof"}):(Ye=u.EARLY_EOF,rt={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(Ye,rt);else throw new e(rt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="ms-stream",Ie.responseType==="ms-stream"}catch(Ye){return c.w("MSStreamLoader",Ye.message),!1}}}]),Oe}(h),L=I,N=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(Ee,Ie){var Ye;return Object(_.a)(this,Oe),Ye=bt.call(this,"xhr-range-loader"),Ye.TAG="RangeLoader",Ye._seekHandler=Ee,Ye._config=Ie,Ye._needStash=!1,Ye._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],Ye._currentChunkSizeKB=384,Ye._currentSpeedNormalized=0,Ye._zeroSpeedChunkCount=0,Ye._xhr=null,Ye._speedSampler=new r,Ye._requestAbort=!1,Ye._waitForTotalLength=!1,Ye._totalLengthReceived=!1,Ye._currentRequestURL=null,Ye._currentRedirectedURL=null,Ye._currentRequestRange=null,Ye._totalLength=null,Ye._contentLength=null,Ye._receivedLength=0,Ye._lastTimeLoaded=0,Ye}return Object(E.a)(Oe,[{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)(Oe.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Ie,Ye){this._dataSource=Ie,this._range=Ye,this._status=s.kConnecting;var rt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(rt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!rt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Ie=this._currentChunkSizeKB*1024,Ye=this._range.from+this._receivedLength,rt=Ye+Ie;this._contentLength!=null&&(rt-this._range.from>=this._contentLength&&(rt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:Ye,to:rt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Ie,Ye){this._lastTimeLoaded=0;var rt=Ie.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?rt=this._currentRedirectedURL:Ie.redirectedURL!=null&&(rt=Ie.redirectedURL));var ut=this._seekHandler.getConfig(rt,Ye);this._currentRequestURL=ut.url;var Ot=this._xhr=new XMLHttpRequest;if(Ot.open("GET",ut.url,!0),Ot.responseType="arraybuffer",Ot.onreadystatechange=this._onReadyStateChange.bind(this),Ot.onprogress=this._onProgress.bind(this),Ot.onload=this._onLoad.bind(this),Ot.onerror=this._onXhrError.bind(this),Ie.withCredentials&&(Ot.withCredentials=!0),typeof ut.headers=="object"){var Ar=ut.headers;for(var Pr in Ar)Ar.hasOwnProperty(Pr)&&Ot.setRequestHeader(Pr,Ar[Pr])}if(typeof this._config.headers=="object"){var un=this._config.headers;for(var It in un)un.hasOwnProperty(It)&&Ot.setRequestHeader(It,un[It])}Ot.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=s.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(Ie){var Ye=Ie.target;if(Ye.readyState===2){if(Ye.responseURL!=null){var rt=this._seekHandler.removeURLParameters(Ye.responseURL);Ye.responseURL!==this._currentRequestURL&&rt!==this._currentRedirectedURL&&(this._currentRedirectedURL=rt,this._onURLRedirect&&this._onURLRedirect(rt))}if(Ye.status>=200&&Ye.status<=299){if(this._waitForTotalLength)return;this._status=s.kBuffering}else if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ye.status,msg:Ye.statusText});else throw new e("RangeLoader: Http code invalid, "+Ye.status+" "+Ye.statusText)}}},{key:"_onProgress",value:function(Ie){if(this._status===s.kError)return;if(this._contentLength===null){var Ye=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Ye=!0;var rt=Ie.total;this._internalAbort(),rt!=null&rt!==0&&(this._totalLength=rt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Ye){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var ut=Ie.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Ie.loaded,this._speedSampler.addBytes(ut)}},{key:"_normalizeSpeed",value:function(Ie){var Ye=this._chunkSizeKBList,rt=Ye.length-1,ut=0,Ot=0,Ar=rt;if(Ie<Ye[0])return Ye[0];for(;Ot<=Ar;){if(ut=Ot+Math.floor((Ar-Ot)/2),ut===rt||Ie>=Ye[ut]&&Ie<Ye[ut+1])return Ye[ut];Ye[ut]<Ie?Ot=ut+1:Ar=ut-1}}},{key:"_onLoad",value:function(Ie){if(this._status===s.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var Ye=this._speedSampler.lastSecondKBps;if(Ye===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Ye=this._speedSampler.currentKBps)),Ye!==0){var rt=this._normalizeSpeed(Ye);this._currentSpeedNormalized!==rt&&(this._currentSpeedNormalized=rt,this._currentChunkSizeKB=rt)}var ut=Ie.target.response,Ot=this._range.from+this._receivedLength;this._receivedLength+=ut.byteLength;var Ar=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ar=!0,this._onDataArrival&&this._onDataArrival(ut,Ot,this._receivedLength),Ar&&(this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Ie){this._status=s.kError;var Ye=0,rt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Ye=u.EARLY_EOF,rt={code:-1,msg:"RangeLoader meet Early-Eof"}):(Ye=u.EXCEPTION,rt={code:-1,msg:Ie.constructor.name+" "+Ie.type}),this._onError)this._onError(Ye,rt);else throw new e(rt.msg)}}],[{key:"isSupported",value:function(){try{var Ie=new XMLHttpRequest;return Ie.open("GET","https://example.com",!0),Ie.responseType="arraybuffer",Ie.responseType==="arraybuffer"}catch(Ye){return c.w("RangeLoader",Ye.message),!1}}}]),Oe}(h),D=N,R=function(Ft){Object(i.a)(Oe,Ft);var bt=Object(n.a)(Oe);function Oe(){var Ee;return Object(_.a)(this,Oe),Ee=bt.call(this,"websocket-loader"),Ee.TAG="WebSocketLoader",Ee._needStash=!0,Ee._ws=null,Ee._requestAbort=!1,Ee._receivedLength=0,Ee}return Object(E.a)(Oe,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(p.a)(Object(g.a)(Oe.prototype),"destroy",this).call(this)}},{key:"open",value:function(Ie){try{var Ye=this._ws=new self.WebSocket(Ie.url);Ye.binaryType="arraybuffer",Ye.onopen=this._onWebSocketOpen.bind(this),Ye.onclose=this._onWebSocketClose.bind(this),Ye.onmessage=this._onWebSocketMessage.bind(this),Ye.onerror=this._onWebSocketError.bind(this),this._status=s.kConnecting}catch(ut){this._status=s.kError;var rt={code:ut.code,msg:ut.message};if(this._onError)this._onError(u.EXCEPTION,rt);else throw new e(rt.msg)}}},{key:"abort",value:function(){var Ie=this._ws;Ie&&(Ie.readyState===0||Ie.readyState===1)&&(this._requestAbort=!0,Ie.close()),this._ws=null,this._status=s.kComplete}},{key:"_onWebSocketOpen",value:function(Ie){this._status=s.kBuffering}},{key:"_onWebSocketClose",value:function(Ie){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=s.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Ie){var Ye=this;if(Ie.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Ie.data);else if(Ie.data instanceof Blob){var rt=new FileReader;rt.onload=function(){Ye._dispatchArrayBuffer(rt.result)},rt.readAsArrayBuffer(Ie.data)}else{this._status=s.kError;var ut={code:-1,msg:"Unsupported WebSocket message type: "+Ie.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,ut);else throw new e(ut.msg)}}},{key:"_dispatchArrayBuffer",value:function(Ie){var Ye=Ie,rt=this._receivedLength;this._receivedLength+=Ye.byteLength,this._onDataArrival&&this._onDataArrival(Ye,rt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Ie){this._status=s.kError;var Ye={code:Ie.code,msg:Ie.message};if(this._onError)this._onError(u.EXCEPTION,Ye);else throw new e(Ye.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Ie){return!1}}}]),Oe}(h),k=R,M=function(){function Ft(bt){Object(_.a)(this,Ft),this._zeroStart=bt||!1}return Object(E.a)(Ft,[{key:"getConfig",value:function(Oe,Ee){var Ie={};if(Ee.from!==0||Ee.to!==-1){var Ye;Ee.to!==-1?Ye="bytes=".concat(Ee.from.toString(),"-").concat(Ee.to.toString()):Ye="bytes=".concat(Ee.from.toString(),"-"),Ie.Range=Ye}else this._zeroStart&&(Ie.Range="bytes=0-");return{url:Oe,headers:Ie}}},{key:"removeURLParameters",value:function(Oe){return Oe}}]),Ft}(),j=M,F=function(){function Ft(bt,Oe){Object(_.a)(this,Ft),this._startName=bt,this._endName=Oe}return Object(E.a)(Ft,[{key:"getConfig",value:function(Oe,Ee){var Ie=Oe;if(Ee.from!==0||Ee.to!==-1){var Ye=!0;Ie.indexOf("?")===-1&&(Ie+="?",Ye=!1),Ye&&(Ie+="&"),Ie+="".concat(this._startName,"=").concat(Ee.from.toString()),Ee.to!==-1&&(Ie+="&".concat(this._endName,"=").concat(Ee.to.toString()))}return{url:Ie,headers:{}}}},{key:"removeURLParameters",value:function(Oe){var Ee=Oe.split("?")[0],Ie=void 0,Ye=Oe.indexOf("?");Ye!==-1&&(Ie=Oe.substring(Ye+1));var rt="";if(Ie!=null&&Ie.length>0)for(var ut=Ie.split("&"),Ot=0;Ot<ut.length;Ot++){var Ar=ut[Ot].split("="),Pr=Ot>0;Ar[0]!==this._startName&&Ar[0]!==this._endName&&(Pr&&(rt+="&"),rt+=ut[Ot])}return rt.length===0?Ee:Ee+"?"+rt}}]),Ft}(),U=F,K=function(){function Ft(bt,Oe,Ee){Object(_.a)(this,Ft),this.TAG="IOController",this._config=Oe,this._extraData=Ee,this._stashInitialSize=1024*384,Oe.stashInitialSize!=null&&Oe.stashInitialSize>0&&(this._stashInitialSize=Oe.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,Oe.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=bt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(bt.url),this._refTotalLength=bt.filesize?bt.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)(Ft,[{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(Oe){this._extraData=Oe}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Oe){this._onDataArrival=Oe}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Oe){this._onSeeked=Oe}},{key:"onError",get:function(){return this._onError},set:function(Oe){this._onError=Oe}},{key:"onComplete",get:function(){return this._onComplete},set:function(Oe){this._onComplete=Oe}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Oe){this._onRedirect=Oe}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Oe){this._onRecoveredEarlyEof=Oe}},{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 Oe=this._config;if(Oe.seekType==="range")this._seekHandler=new j(this._config.rangeLoadZeroStart);else if(Oe.seekType==="param"){var Ee=Oe.seekParamStart||"bstart",Ie=Oe.seekParamEnd||"bend";this._seekHandler=new U(Ee,Ie)}else if(Oe.seekType==="custom"){if(typeof Oe.customSeekHandler!="function")throw new t("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Oe.customSeekHandler}else throw new t("Invalid seekType in config: ".concat(Oe.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=k;else if(S.isSupported())this._loaderClass=S;else if(O.isSupported())this._loaderClass=O;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(Oe){this._currentRange={from:0,to:-1},Oe&&(this._currentRange.from=Oe),this._speedSampler.reset(),Oe||(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 Oe=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Oe,!0)}}},{key:"seek",value:function(Oe){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Oe,!0)}},{key:"_internalSeek",value:function(Oe,Ee){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Ee),this._loader.destroy(),this._loader=null;var Ie={from:Oe,to:-1};this._currentRange={from:Ie.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Ie),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Oe){if(!Oe||typeof Oe!="string"||Oe.length===0)throw new t("Url must be a non-empty string!");this._dataSource.url=Oe}},{key:"_expandBuffer",value:function(Oe){for(var Ee=this._stashSize;Ee+1024*1024*1<Oe;)Ee*=2;if(Ee+=1024*1024*1,Ee===this._bufferSize)return;var Ie=new ArrayBuffer(Ee);if(this._stashUsed>0){var Ye=new Uint8Array(this._stashBuffer,0,this._stashUsed),rt=new Uint8Array(Ie,0,Ee);rt.set(Ye,0)}this._stashBuffer=Ie,this._bufferSize=Ee}},{key:"_normalizeSpeed",value:function(Oe){var Ee=this._speedNormalizeList,Ie=Ee.length-1,Ye=0,rt=0,ut=Ie;if(Oe<Ee[0])return Ee[0];for(;rt<=ut;){if(Ye=rt+Math.floor((ut-rt)/2),Ye===Ie||Oe>=Ee[Ye]&&Oe<Ee[Ye+1])return Ee[Ye];Ee[Ye]<Oe?rt=Ye+1:ut=Ye-1}}},{key:"_adjustStashSize",value:function(Oe){var Ee=0;this._config.isLive||Oe<512?Ee=Oe:Oe>=512&&Oe<=1024?Ee=Math.floor(Oe*1.5):Ee=Oe*2,Ee>8192&&(Ee=8192);var Ie=Ee*1024+1024*1024*1;this._bufferSize<Ie&&this._expandBuffer(Ie),this._stashSize=Ee*1024}},{key:"_dispatchChunks",value:function(Oe,Ee){return this._currentRange.to=Ee+Oe.byteLength-1,this._onDataArrival(Oe,Ee)}},{key:"_onURLRedirect",value:function(Oe){this._redirectedURL=Oe,this._onRedirect&&this._onRedirect(Oe)}},{key:"_onContentLengthKnown",value:function(Oe){Oe&&this._fullRequestFlag&&(this._totalLength=Oe,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Oe,Ee,Ie){if(!this._onDataArrival)throw new l("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Oe.byteLength);var Ye=this._speedSampler.lastSecondKBps;if(Ye!==0){var rt=this._normalizeSpeed(Ye);this._speedNormalized!==rt&&(this._speedNormalized=rt,this._adjustStashSize(rt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Ee),this._stashUsed+Oe.byteLength<=this._stashSize){var nt=new Uint8Array(this._stashBuffer,0,this._stashSize);nt.set(new Uint8Array(Oe),this._stashUsed),this._stashUsed+=Oe.byteLength}else{var at=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var rr=this._stashBuffer.slice(0,this._stashUsed),Pt=this._dispatchChunks(rr,this._stashByteStart);if(Pt<rr.byteLength){if(Pt>0){var xt=new Uint8Array(rr,Pt);at.set(xt,0),this._stashUsed=xt.byteLength,this._stashByteStart+=Pt}}else this._stashUsed=0,this._stashByteStart+=Pt;this._stashUsed+Oe.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Oe.byteLength),at=new Uint8Array(this._stashBuffer,0,this._bufferSize)),at.set(new Uint8Array(Oe),this._stashUsed),this._stashUsed+=Oe.byteLength}else{var Kt=this._dispatchChunks(Oe,Ee);if(Kt<Oe.byteLength){var yt=Oe.byteLength-Kt;yt>this._bufferSize&&(this._expandBuffer(yt),at=new Uint8Array(this._stashBuffer,0,this._bufferSize)),at.set(new Uint8Array(Oe,Kt),0),this._stashUsed+=yt,this._stashByteStart=Ee+Kt}}}else if(this._stashUsed===0){var ut=this._dispatchChunks(Oe,Ee);if(ut<Oe.byteLength){var Ot=Oe.byteLength-ut;Ot>this._bufferSize&&this._expandBuffer(Ot);var Ar=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ar.set(new Uint8Array(Oe,ut),0),this._stashUsed+=Ot,this._stashByteStart=Ee+ut}}else{this._stashUsed+Oe.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Oe.byteLength);var Pr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Pr.set(new Uint8Array(Oe),this._stashUsed),this._stashUsed+=Oe.byteLength;var un=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(un<this._stashUsed&&un>0){var It=new Uint8Array(this._stashBuffer,un);Pr.set(It,0)}this._stashUsed-=un,this._stashByteStart+=un}}},{key:"_flushStashBuffer",value:function(Oe){if(this._stashUsed>0){var Ee=this._stashBuffer.slice(0,this._stashUsed),Ie=this._dispatchChunks(Ee,this._stashByteStart),Ye=Ee.byteLength-Ie;if(Ie<Ee.byteLength)if(Oe)c.w(this.TAG,"".concat(Ye," bytes unconsumed data remain when flush buffer, dropped"));else{if(Ie>0){var rt=new Uint8Array(this._stashBuffer,0,this._bufferSize),ut=new Uint8Array(Ee,Ie);rt.set(ut,0),this._stashUsed=ut.byteLength,this._stashByteStart+=Ie}return 0}return this._stashUsed=0,this._stashByteStart=0,Ye}return 0}},{key:"_onLoaderComplete",value:function(Oe,Ee){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Oe,Ee){c.e(this.TAG,"Loader error, code = ".concat(Ee.code,", msg = ").concat(Ee.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Oe=u.UNRECOVERABLE_EARLY_EOF);switch(Oe){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Ie=this._currentRange.to+1;Ie<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Ie,!1));return}Oe=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(Oe,Ee);else throw new e("IOException: "+Ee.msg)}}]),Ft}(),V=K,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 Q(){return Object.assign({},z)}var Z=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Oe=new V({},Q()),Ee=Oe.loaderType;return Oe.destroy(),Ee=="fetch-stream-loader"||Ee=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Oe=new V({},Q()),Ee=Oe.loaderType;return Oe.destroy(),Ee}},{key:"supportNativeMediaPlayback",value:function(Oe){Ft.videoElement==null&&(Ft.videoElement=window.document.createElement("video"));var Ee=Ft.videoElement.canPlayType(Oe);return Ee==="probably"||Ee=="maybe"}},{key:"getFeatureList",value:function(){var Oe={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Oe.mseFlvPlayback=Ft.supportMSEH264Playback(),Oe.networkStreamIO=Ft.supportNetworkStreamIO(),Oe.networkLoaderName=Ft.getNetworkLoaderTypeName(),Oe.mseLiveFlvPlayback=Oe.mseFlvPlayback&&Oe.networkStreamIO,Oe.nativeMP4H264Playback=Ft.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Oe.nativeWebmVP8Playback=Ft.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Oe.nativeWebmVP9Playback=Ft.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Oe}}]),Ft}(),le=Z,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"},ve=ne,xe=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(Oe){c.FORCE_GLOBAL_TAG=Oe,Ft._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(Oe){c.GLOBAL_TAG=Oe,Ft._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(Oe){c.ENABLE_VERBOSE=Oe,c.ENABLE_DEBUG=Oe,c.ENABLE_INFO=Oe,c.ENABLE_WARN=Oe,c.ENABLE_ERROR=Oe,Ft._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(Oe){c.ENABLE_DEBUG=Oe,Ft._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(Oe){c.ENABLE_VERBOSE=Oe,Ft._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(Oe){c.ENABLE_INFO=Oe,Ft._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(Oe){c.ENABLE_WARN=Oe,Ft._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(Oe){c.ENABLE_ERROR=Oe,Ft._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(Oe){c.GLOBAL_TAG=Oe.globalTag,c.FORCE_GLOBAL_TAG=Oe.forceGlobalTag,c.ENABLE_VERBOSE=Oe.enableVerbose,c.ENABLE_DEBUG=Oe.enableDebug,c.ENABLE_INFO=Oe.enableInfo,c.ENABLE_WARN=Oe.enableWarn,c.ENABLE_ERROR=Oe.enableError,c.ENABLE_CALLBACK=Oe.enableCallback}},{key:"_notifyChange",value:function(){var Oe=Ft.emitter;if(Oe.listenerCount("change")>0){var Ee=Ft.getConfig();Oe.emit("change",Ee)}}},{key:"registerListener",value:function(Oe){Ft.emitter.addListener("change",Oe)}},{key:"removeListener",value:function(Oe){Ft.emitter.removeListener("change",Oe)}},{key:"addLogListener",value:function(Oe){c.emitter.addListener("log",Oe),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,Ft._notifyChange())}},{key:"removeLogListener",value:function(Oe){c.emitter.removeListener("log",Oe),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,Ft._notifyChange())}}]),Ft}();xe.emitter=new m.a;var _e=xe,Be=function(){function Ft(){Object(_.a)(this,Ft),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)(Ft,[{key:"isComplete",value:function(){var Oe=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Ee=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&&Oe&&Ee}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Oe){if(this.keyframesIndex==null)return null;var Ee=this.keyframesIndex,Ie=this._search(Ee.times,Oe);return{index:Ie,milliseconds:Ee.times[Ie],fileposition:Ee.filepositions[Ie]}}},{key:"_search",value:function(Oe,Ee){var Ie=0,Ye=Oe.length-1,rt=0,ut=0,Ot=Ye;for(Ee<Oe[0]&&(Ie=0,ut=Ot+1);ut<=Ot;)if(rt=ut+Math.floor((Ot-ut)/2),rt===Ye||Ee>=Oe[rt]&&Ee<Oe[rt+1]){Ie=rt;break}else Oe[rt]<Ee?ut=rt+1:Ot=rt-1;return Ie}}]),Ft}(),me=Be;function Fe(Ft,bt,Oe){var Ee=Ft;if(bt+Oe<Ee.length){for(;Oe--;)if((Ee[++bt]&192)!==128)return!1;return!0}else return!1}function ie(Ft){for(var bt=[],Oe=Ft,Ee=0,Ie=Ft.length;Ee<Ie;){if(Oe[Ee]<128){bt.push(String.fromCharCode(Oe[Ee])),++Ee;continue}else if(!(Oe[Ee]<192)){if(Oe[Ee]<224){if(Fe(Oe,Ee,1)){var Ye=(Oe[Ee]&31)<<6|Oe[Ee+1]&63;if(Ye>=128){bt.push(String.fromCharCode(Ye&65535)),Ee+=2;continue}}}else if(Oe[Ee]<240){if(Fe(Oe,Ee,2)){var rt=(Oe[Ee]&15)<<12|(Oe[Ee+1]&63)<<6|Oe[Ee+2]&63;if(rt>=2048&&(rt&63488)!==55296){bt.push(String.fromCharCode(rt&65535)),Ee+=3;continue}}}else if(Oe[Ee]<248&&Fe(Oe,Ee,3)){var ut=(Oe[Ee]&7)<<18|(Oe[Ee+1]&63)<<12|(Oe[Ee+2]&63)<<6|Oe[Ee+3]&63;if(ut>65536&&ut<1114112){ut-=65536,bt.push(String.fromCharCode(ut>>>10|55296)),bt.push(String.fromCharCode(ut&1023|56320)),Ee+=4;continue}}}bt.push(String.fromCharCode(65533)),++Ee}return bt.join("")}var te=ie,Ge=function(){var Ft=new ArrayBuffer(2);return new DataView(Ft).setInt16(0,256,!0),new Int16Array(Ft)[0]===256}(),oe=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"parseScriptData",value:function(Oe,Ee,Ie){var Ye={};try{var rt=Ft.parseValue(Oe,Ee,Ie),ut=Ft.parseValue(Oe,Ee+rt.size,Ie-rt.size);Ye[rt.data]=ut.data}catch(Ot){c.e("AMF",Ot.toString())}return Ye}},{key:"parseObject",value:function(Oe,Ee,Ie){if(Ie<3)throw new l("Data not enough when parse ScriptDataObject");var Ye=Ft.parseString(Oe,Ee,Ie),rt=Ft.parseValue(Oe,Ee+Ye.size,Ie-Ye.size),ut=rt.objectEnd;return{data:{name:Ye.data,value:rt.data},size:Ye.size+rt.size,objectEnd:ut}}},{key:"parseVariable",value:function(Oe,Ee,Ie){return Ft.parseObject(Oe,Ee,Ie)}},{key:"parseString",value:function(Oe,Ee,Ie){if(Ie<2)throw new l("Data not enough when parse String");var Ye=new DataView(Oe,Ee,Ie),rt=Ye.getUint16(0,!Ge),ut;return rt>0?ut=te(new Uint8Array(Oe,Ee+2,rt)):ut="",{data:ut,size:2+rt}}},{key:"parseLongString",value:function(Oe,Ee,Ie){if(Ie<4)throw new l("Data not enough when parse LongString");var Ye=new DataView(Oe,Ee,Ie),rt=Ye.getUint32(0,!Ge),ut;return rt>0?ut=te(new Uint8Array(Oe,Ee+4,rt)):ut="",{data:ut,size:4+rt}}},{key:"parseDate",value:function(Oe,Ee,Ie){if(Ie<10)throw new l("Data size invalid when parse Date");var Ye=new DataView(Oe,Ee,Ie),rt=Ye.getFloat64(0,!Ge),ut=Ye.getInt16(8,!Ge);return rt+=ut*60*1e3,{data:new Date(rt),size:8+2}}},{key:"parseValue",value:function(Oe,Ee,Ie){if(Ie<1)throw new l("Data not enough when parse Value");var Ye=new DataView(Oe,Ee,Ie),rt=1,ut=Ye.getUint8(0),Ot,Ar=!1;try{switch(ut){case 0:Ot=Ye.getFloat64(1,!Ge),rt+=8;break;case 1:{var Pr=Ye.getUint8(1);Ot=!!Pr,rt+=1;break}case 2:{var un=Ft.parseString(Oe,Ee+1,Ie-1);Ot=un.data,rt+=un.size;break}case 3:{Ot={};var It=0;for((Ye.getUint32(Ie-4,!Ge)&16777215)===9&&(It=3);rt<Ie-4;){var nt=Ft.parseObject(Oe,Ee+rt,Ie-rt-It);if(nt.objectEnd)break;Ot[nt.data.name]=nt.data.value,rt+=nt.size}if(rt<=Ie-3){var at=Ye.getUint32(rt-1,!Ge)&16777215;at===9&&(rt+=3)}break}case 8:{Ot={},rt+=4;var rr=0;for((Ye.getUint32(Ie-4,!Ge)&16777215)===9&&(rr=3);rt<Ie-8;){var Pt=Ft.parseVariable(Oe,Ee+rt,Ie-rt-rr);if(Pt.objectEnd)break;Ot[Pt.data.name]=Pt.data.value,rt+=Pt.size}if(rt<=Ie-3){var xt=Ye.getUint32(rt-1,!Ge)&16777215;xt===9&&(rt+=3)}break}case 9:Ot=void 0,rt=1,Ar=!0;break;case 10:{Ot=[];var Kt=Ye.getUint32(1,!Ge);rt+=4;for(var yt=0;yt<Kt;yt++){var kt=Ft.parseValue(Oe,Ee+rt,Ie-rt);Ot.push(kt.data),rt+=kt.size}break}case 11:{var Sr=Ft.parseDate(Oe,Ee+1,Ie-1);Ot=Sr.data,rt+=Sr.size;break}case 12:{var hr=Ft.parseString(Oe,Ee+1,Ie-1);Ot=hr.data,rt+=hr.size;break}default:rt=Ie,c.w("AMF","Unsupported AMF value type "+ut)}}catch(gr){c.e("AMF",gr.toString())}return{data:Ot,size:rt,objectEnd:Ar}}}]),Ft}(),Y=oe,G=function(){function Ft(bt){Object(_.a)(this,Ft),this.TAG="ExpGolomb",this._buffer=bt,this._buffer_index=0,this._total_bytes=bt.byteLength,this._total_bits=bt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(E.a)(Ft,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Oe=this._total_bytes-this._buffer_index;if(Oe<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var Ee=Math.min(4,Oe),Ie=new Uint8Array(4);Ie.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Ee)),this._current_word=new DataView(Ie.buffer).getUint32(0,!1),this._buffer_index+=Ee,this._current_word_bits_left=Ee*8}},{key:"readBits",value:function(Oe){if(Oe>32)throw new t("ExpGolomb: readBits() bits exceeded max 32bits!");if(Oe<=this._current_word_bits_left){var Ee=this._current_word>>>32-Oe;return this._current_word<<=Oe,this._current_word_bits_left-=Oe,Ee}var Ie=this._current_word_bits_left?this._current_word:0;Ie=Ie>>>32-this._current_word_bits_left;var Ye=Oe-this._current_word_bits_left;this._fillCurrentWord();var rt=Math.min(Ye,this._current_word_bits_left),ut=this._current_word>>>32-rt;return this._current_word<<=rt,this._current_word_bits_left-=rt,Ie=Ie<<rt|ut,Ie}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Oe;for(Oe=0;Oe<this._current_word_bits_left;Oe++)if((this._current_word&2147483648>>>Oe)!==0)return this._current_word<<=Oe,this._current_word_bits_left-=Oe,Oe;return this._fillCurrentWord(),Oe+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Oe=this._skipLeadingZero();return this.readBits(Oe+1)-1}},{key:"readSEG",value:function(){var Oe=this.readUEG();return Oe&1?Oe+1>>>1:-1*(Oe>>>1)}}]),Ft}(),X=G,fe=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"_ebsp2rbsp",value:function(Oe){for(var Ee=Oe,Ie=Ee.byteLength,Ye=new Uint8Array(Ie),rt=0,ut=0;ut<Ie;ut++){if(ut>=2&&(Ee[ut]===3&&Ee[ut-1]===0&&Ee[ut-2]===0))continue;Ye[rt]=Ee[ut],rt++}return new Uint8Array(Ye.buffer,0,rt)}},{key:"parseSPS",value:function(Oe){var Ee=Ft._ebsp2rbsp(Oe),Ie=new X(Ee);Ie.readByte();var Ye=Ie.readByte();Ie.readByte();var rt=Ie.readByte();Ie.readUEG();var ut=Ft.getProfileString(Ye),Ot=Ft.getLevelString(rt),Ar=1,Pr=420,un=[0,420,422,444],It=8;if((Ye===100||Ye===110||Ye===122||Ye===244||Ye===44||Ye===83||Ye===86||Ye===118||Ye===128||Ye===138||Ye===144)&&(Ar=Ie.readUEG(),Ar===3&&Ie.readBits(1),Ar<=3&&(Pr=un[Ar]),It=Ie.readUEG()+8,Ie.readUEG(),Ie.readBits(1),Ie.readBool()))for(var nt=Ar!==3?8:12,at=0;at<nt;at++)Ie.readBool()&&(at<6?Ft._skipScalingList(Ie,16):Ft._skipScalingList(Ie,64));Ie.readUEG();var rr=Ie.readUEG();if(rr===0)Ie.readUEG();else if(rr===1){Ie.readBits(1),Ie.readSEG(),Ie.readSEG();for(var Pt=Ie.readUEG(),xt=0;xt<Pt;xt++)Ie.readSEG()}var Kt=Ie.readUEG();Ie.readBits(1);var yt=Ie.readUEG(),kt=Ie.readUEG(),Sr=Ie.readBits(1);Sr===0&&Ie.readBits(1),Ie.readBits(1);var hr=0,gr=0,Jr=0,$r=0,kn=Ie.readBool();kn&&(hr=Ie.readUEG(),gr=Ie.readUEG(),Jr=Ie.readUEG(),$r=Ie.readUEG());var Dn=1,Zn=1,li=0,Ai=!0,Ii=0,Qe=0,Se=Ie.readBool();if(Se){if(Ie.readBool()){var Ne=Ie.readByte(),je=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Xe=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ne>0&&Ne<16?(Dn=je[Ne-1],Zn=Xe[Ne-1]):Ne===255&&(Dn=Ie.readByte()<<8|Ie.readByte(),Zn=Ie.readByte()<<8|Ie.readByte())}if(Ie.readBool()&&Ie.readBool(),Ie.readBool()&&(Ie.readBits(4),Ie.readBool()&&Ie.readBits(24)),Ie.readBool()&&(Ie.readUEG(),Ie.readUEG()),Ie.readBool()){var ze=Ie.readBits(32),Ze=Ie.readBits(32);Ai=Ie.readBool(),Ii=Ze,Qe=ze*2,li=Ii/Qe}}var wt=1;(Dn!==1||Zn!==1)&&(wt=Dn/Zn);var st=0,Jt=0;if(Ar===0)st=1,Jt=2-Sr;else{var Rr=Ar===3?1:2,Ir=Ar===1?2:1;st=Rr,Jt=Ir*(2-Sr)}var Xr=(yt+1)*16,er=(2-Sr)*((kt+1)*16);Xr-=(hr+gr)*st,er-=(Jr+$r)*Jt;var pn=Math.ceil(Xr*wt);return Ie.destroy(),Ie=null,{profile_string:ut,level_string:Ot,bit_depth:It,ref_frames:Kt,chroma_format:Pr,chroma_format_string:Ft.getChromaFormatString(Pr),frame_rate:{fixed:Ai,fps:li,fps_den:Qe,fps_num:Ii},sar_ratio:{width:Dn,height:Zn},codec_size:{width:Xr,height:er},present_size:{width:pn,height:er}}}},{key:"_skipScalingList",value:function(Oe,Ee){for(var Ie=8,Ye=8,rt=0,ut=0;ut<Ee;ut++)Ye!==0&&(rt=Oe.readSEG(),Ye=(Ie+rt+256)%256),Ie=Ye===0?Ie:Ye}},{key:"getProfileString",value:function(Oe){switch(Oe){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(Oe){return(Oe/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Oe){switch(Oe){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Ft}(),de=fe,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Me=Ce;function ue(Ft){return Ft>>>8&255|(Ft&255)<<8}function Ae(Ft){return(Ft&4278190080)>>>24|(Ft&16711680)>>>8|(Ft&65280)<<8|(Ft&255)<<24}function Te(Ft,bt){return Ft[bt]<<24|Ft[bt+1]<<16|Ft[bt+2]<<8|Ft[bt+3]}var Je=function(){function Ft(bt,Oe){Object(_.a)(this,Ft),this.TAG="FLVDemuxer",this._config=Oe,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=bt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=bt.hasAudioTrack,this._hasVideo=bt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new me,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var Ee=new ArrayBuffer(2);return new DataView(Ee).setInt16(0,256,!0),new Int16Array(Ee)[0]===256}()}return Object(E.a)(Ft,[{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(Oe){return Oe.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Oe){this._onTrackMetadata=Oe}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Oe){this._onMediaInfo=Oe}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Oe){this._onMetaDataArrived=Oe}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Oe){this._onScriptDataArrived=Oe}},{key:"onError",get:function(){return this._onError},set:function(Oe){this._onError=Oe}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Oe){this._onDataAvailable=Oe}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Oe){this._timestampBase=Oe}},{key:"overridedDuration",get:function(){return this._duration},set:function(Oe){this._durationOverrided=!0,this._duration=Oe,this._mediaInfo.duration=Oe}},{key:"overridedHasAudio",set:function(Oe){this._hasAudioFlagOverrided=!0,this._hasAudio=Oe,this._mediaInfo.hasAudio=Oe}},{key:"overridedHasVideo",set:function(Oe){this._hasVideoFlagOverrided=!0,this._hasVideo=Oe,this._mediaInfo.hasVideo=Oe}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new me}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(Oe,Ee){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Ie=0,Ye=this._littleEndian;if(Ee===0)if(Oe.byteLength>13){var rt=Ft.probe(Oe);Ie=rt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Ee+Ie!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var ut=new DataView(Oe,Ie),Ot=ut.getUint32(0,!Ye);Ot!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Ie+=4}for(;Ie<Oe.byteLength;){this._dispatch=!0;var Ar=new DataView(Oe,Ie);if(Ie+11+4>Oe.byteLength)break;var Pr=Ar.getUint8(0),un=Ar.getUint32(0,!Ye)&16777215;if(Ie+11+un+4>Oe.byteLength)break;if(Pr!==8&&Pr!==9&&Pr!==18){c.w(this.TAG,"Unsupported tag type ".concat(Pr,", skipped")),Ie+=11+un+4;continue}var It=Ar.getUint8(4),nt=Ar.getUint8(5),at=Ar.getUint8(6),rr=Ar.getUint8(7),Pt=at|nt<<8|It<<16|rr<<24,xt=Ar.getUint32(7,!Ye)&16777215;xt!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var Kt=Ie+11;switch(Pr){case 8:this._parseAudioData(Oe,Kt,un,Pt);break;case 9:this._parseVideoData(Oe,Kt,un,Pt,Ee+Ie);break;case 18:this._parseScriptData(Oe,Kt,un);break}var yt=Ar.getUint32(11+un,!Ye);yt!==11+un&&c.w(this.TAG,"Invalid PrevTagSize ".concat(yt)),Ie+=11+un+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Ie}},{key:"_parseScriptData",value:function(Oe,Ee,Ie){var Ye=Y.parseScriptData(Oe,Ee,Ie);if(Ye.hasOwnProperty("onMetaData")){if(Ye.onMetaData==null||typeof Ye.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ye;var rt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},rt)),typeof rt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=rt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof rt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=rt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof rt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=rt.audiodatarate),typeof rt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=rt.videodatarate),typeof rt.width=="number"&&(this._mediaInfo.width=rt.width),typeof rt.height=="number"&&(this._mediaInfo.height=rt.height),typeof rt.duration=="number"){if(!this._durationOverrided){var ut=Math.floor(rt.duration*this._timescale);this._duration=ut,this._mediaInfo.duration=ut}}else this._mediaInfo.duration=0;if(typeof rt.framerate=="number"){var Ot=Math.floor(rt.framerate*1e3);if(Ot>0){var Ar=Ot/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Ar,this._referenceFrameRate.fps_num=Ot,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Ar}}if(typeof rt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var Pr=rt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Pr),rt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=rt,c.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ye).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ye)))}},{key:"_parseKeyframesIndex",value:function(Oe){for(var Ee=[],Ie=[],Ye=1;Ye<Oe.times.length;Ye++){var rt=this._timestampBase+Math.floor(Oe.times[Ye]*1e3);Ee.push(rt),Ie.push(Oe.filepositions[Ye])}return{times:Ee,filepositions:Ie}}},{key:"_parseAudioData",value:function(Oe,Ee,Ie,Ye){if(Ie<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var rt=this._littleEndian,ut=new DataView(Oe,Ee,Ie),Ot=ut.getUint8(0),Ar=Ot>>>4;if(Ar!==2&&Ar!==10){this._onError(Me.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ar);return}var Pr=0,un=(Ot&12)>>>2;if(un>=0&&un<=4)Pr=this._flvSoundRateTable[un];else{this._onError(Me.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+un);return}var It=(Ot&2)>>>1,nt=Ot&1,at=this._audioMetadata,rr=this._audioTrack;if(at||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),at=this._audioMetadata={},at.type="audio",at.id=rr.id,at.timescale=this._timescale,at.duration=this._duration,at.audioSampleRate=Pr,at.channelCount=nt===0?1:2),Ar===10){var Pt=this._parseAACAudioData(Oe,Ee+1,Ie-1);if(Pt==null)return;if(Pt.packetType===0){at.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var xt=Pt.data;at.audioSampleRate=xt.samplingRate,at.channelCount=xt.channelCount,at.codec=xt.codec,at.originalCodec=xt.originalCodec,at.config=xt.config,at.refSampleDuration=1024/at.audioSampleRate*at.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",at);var Kt=this._mediaInfo;Kt.audioCodec=at.originalCodec,Kt.audioSampleRate=at.audioSampleRate,Kt.audioChannelCount=at.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(Pt.packetType===1){var yt=this._timestampBase+Ye,kt={unit:Pt.data,length:Pt.data.byteLength,dts:yt,pts:yt};rr.samples.push(kt),rr.length+=Pt.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Pt.packetType))}else if(Ar===2){if(!at.codec){var Sr=this._parseMP3AudioData(Oe,Ee+1,Ie-1,!0);if(Sr==null)return;at.audioSampleRate=Sr.samplingRate,at.channelCount=Sr.channelCount,at.codec=Sr.codec,at.originalCodec=Sr.originalCodec,at.refSampleDuration=1152/at.audioSampleRate*at.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",at);var hr=this._mediaInfo;hr.audioCodec=at.codec,hr.audioSampleRate=at.audioSampleRate,hr.audioChannelCount=at.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(Oe,Ee+1,Ie-1,!1);if(gr==null)return;var Jr=this._timestampBase+Ye,$r={unit:gr,length:gr.byteLength,dts:Jr,pts:Jr};rr.samples.push($r),rr.length+=gr.length}}},{key:"_parseAACAudioData",value:function(Oe,Ee,Ie){if(Ie<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var Ye={},rt=new Uint8Array(Oe,Ee,Ie);return Ye.packetType=rt[0],rt[0]===0?Ye.data=this._parseAACAudioSpecificConfig(Oe,Ee+1,Ie-1):Ye.data=rt.subarray(1),Ye}},{key:"_parseAACAudioSpecificConfig",value:function(Oe,Ee,Ie){var Ye=new Uint8Array(Oe,Ee,Ie),rt=null,ut=0,Ot=0,Ar=null,Pr=0,un=null;if(ut=Ot=Ye[0]>>>3,Pr=(Ye[0]&7)<<1|Ye[1]>>>7,Pr<0||Pr>=this._mpegSamplingRates.length){this._onError(Me.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var It=this._mpegSamplingRates[Pr],nt=(Ye[1]&120)>>>3;if(nt<0||nt>=8){this._onError(Me.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}ut===5&&(un=(Ye[1]&7)<<1|Ye[2]>>>7,Ar=(Ye[2]&124)>>>2);var at=self.navigator.userAgent.toLowerCase();return at.indexOf("firefox")!==-1?Pr>=6?(ut=5,rt=new Array(4),un=Pr-3):(ut=2,rt=new Array(2),un=Pr):at.indexOf("android")!==-1?(ut=2,rt=new Array(2),un=Pr):(ut=5,un=Pr,rt=new Array(4),Pr>=6?un=Pr-3:nt===1&&(ut=2,rt=new Array(2),un=Pr)),rt[0]=ut<<3,rt[0]|=(Pr&15)>>>1,rt[1]=(Pr&15)<<7,rt[1]|=(nt&15)<<3,ut===5&&(rt[1]|=(un&15)>>>1,rt[2]=(un&1)<<7,rt[2]|=2<<2,rt[3]=0),{config:rt,samplingRate:It,channelCount:nt,codec:"mp4a.40."+ut,originalCodec:"mp4a.40."+Ot}}},{key:"_parseMP3AudioData",value:function(Oe,Ee,Ie,Ye){if(Ie<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var rt=this._littleEndian,ut=new Uint8Array(Oe,Ee,Ie),Ot=null;if(Ye){if(ut[0]!==255)return;var Ar=ut[1]>>>3&3,Pr=(ut[1]&6)>>1,un=(ut[2]&240)>>>4,It=(ut[2]&12)>>>2,nt=ut[3]>>>6&3,at=nt!==3?2:1,rr=0,Pt=0,xt=34,Kt="mp3";switch(Ar){case 0:rr=this._mpegAudioV25SampleRateTable[It];break;case 2:rr=this._mpegAudioV20SampleRateTable[It];break;case 3:rr=this._mpegAudioV10SampleRateTable[It];break}switch(Pr){case 1:xt=34,un<this._mpegAudioL3BitRateTable.length&&(Pt=this._mpegAudioL3BitRateTable[un]);break;case 2:xt=33,un<this._mpegAudioL2BitRateTable.length&&(Pt=this._mpegAudioL2BitRateTable[un]);break;case 3:xt=32,un<this._mpegAudioL1BitRateTable.length&&(Pt=this._mpegAudioL1BitRateTable[un]);break}Ot={bitRate:Pt,samplingRate:rr,channelCount:at,codec:Kt,originalCodec:Kt}}else Ot=ut;return Ot}},{key:"_parseVideoData",value:function(Oe,Ee,Ie,Ye,rt){if(Ie<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var ut=new Uint8Array(Oe,Ee,Ie)[0],Ot=(ut&240)>>>4,Ar=ut&15;if(Ar!==7){this._onError(Me.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Ar));return}this._parseAVCVideoPacket(Oe,Ee+1,Ie-1,Ye,rt,Ot)}},{key:"_parseAVCVideoPacket",value:function(Oe,Ee,Ie,Ye,rt,ut){if(Ie<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Ot=this._littleEndian,Ar=new DataView(Oe,Ee,Ie),Pr=Ar.getUint8(0),un=Ar.getUint32(0,!Ot)&16777215,It=un<<8>>8;if(Pr===0)this._parseAVCDecoderConfigurationRecord(Oe,Ee+4,Ie-4);else if(Pr===1)this._parseAVCVideoData(Oe,Ee+4,Ie-4,Ye,rt,ut,It);else if(!(Pr===2)){this._onError(Me.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(Pr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Oe,Ee,Ie){if(Ie<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var Ye=this._videoMetadata,rt=this._videoTrack,ut=this._littleEndian,Ot=new DataView(Oe,Ee,Ie);Ye?typeof Ye.avcc!="undefined"&&c.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ye=this._videoMetadata={},Ye.type="video",Ye.id=rt.id,Ye.timescale=this._timescale,Ye.duration=this._duration);var Ar=Ot.getUint8(0),Pr=Ot.getUint8(1),un=Ot.getUint8(2),It=Ot.getUint8(3);if(Ar!==1||Pr===0){this._onError(Me.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Ot.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Me.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var nt=Ot.getUint8(5)&31;if(nt===0){this._onError(Me.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else nt>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(nt));for(var at=6,rr=0;rr<nt;rr++){var Pt=Ot.getUint16(at,!ut);if(at+=2,Pt===0)continue;var xt=new Uint8Array(Oe,Ee+at,Pt);at+=Pt;var Kt=de.parseSPS(xt);if(rr!==0)continue;Ye.codecWidth=Kt.codec_size.width,Ye.codecHeight=Kt.codec_size.height,Ye.presentWidth=Kt.present_size.width,Ye.presentHeight=Kt.present_size.height,Ye.profile=Kt.profile_string,Ye.level=Kt.level_string,Ye.bitDepth=Kt.bit_depth,Ye.chromaFormat=Kt.chroma_format,Ye.sarRatio=Kt.sar_ratio,Ye.frameRate=Kt.frame_rate,(Kt.frame_rate.fixed===!1||Kt.frame_rate.fps_num===0||Kt.frame_rate.fps_den===0)&&(Ye.frameRate=this._referenceFrameRate);var yt=Ye.frameRate.fps_den,kt=Ye.frameRate.fps_num;Ye.refSampleDuration=Ye.timescale*(yt/kt);for(var Sr=xt.subarray(1,4),hr="avc1.",gr=0;gr<3;gr++){var Jr=Sr[gr].toString(16);Jr.length<2&&(Jr="0"+Jr),hr+=Jr}Ye.codec=hr;var $r=this._mediaInfo;$r.width=Ye.codecWidth,$r.height=Ye.codecHeight,$r.fps=Ye.frameRate.fps,$r.profile=Ye.profile,$r.level=Ye.level,$r.refFrames=Kt.ref_frames,$r.chromaFormat=Kt.chroma_format_string,$r.sarNum=Ye.sarRatio.width,$r.sarDen=Ye.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 kn=Ot.getUint8(at);if(kn===0){this._onError(Me.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else kn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(kn));at++;for(var Dn=0;Dn<kn;Dn++){var Zn=Ot.getUint16(at,!ut);if(at+=2,Zn===0)continue;at+=Zn}Ye.avcc=new Uint8Array(Ie),Ye.avcc.set(new Uint8Array(Oe,Ee,Ie),0),c.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",Ye)}},{key:"_parseAVCVideoData",value:function(Oe,Ee,Ie,Ye,rt,ut,Ot){for(var Ar=this._littleEndian,Pr=new DataView(Oe,Ee,Ie),un=[],It=0,nt=0,at=this._naluLengthSize,rr=this._timestampBase+Ye,Pt=ut===1;nt<Ie;){if(nt+4>=Ie){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(rr,", offset = ").concat(nt,", dataSize = ").concat(Ie));break}var xt=Pr.getUint32(nt,!Ar);if(at===3&&(xt>>>=8),xt>Ie-at){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(rr,", NaluSize > DataSize!"));return}var Kt=Pr.getUint8(nt+at)&31;Kt===5&&(Pt=!0);var yt=new Uint8Array(Oe,Ee+nt,at+xt),kt={type:Kt,data:yt};un.push(kt),It+=yt.byteLength,nt+=at+xt}if(un.length){var Sr=this._videoTrack,hr={units:un,length:It,isKeyframe:Pt,dts:rr,cts:Ot,pts:rr+Ot};Pt&&(hr.fileposition=rt),Sr.samples.push(hr),Sr.length+=It}}}],[{key:"probe",value:function(Oe){var Ee=new Uint8Array(Oe),Ie={match:!1};if(Ee[0]!==70||Ee[1]!==76||Ee[2]!==86||Ee[3]!==1)return Ie;var Ye=(Ee[4]&4)>>>2!==0,rt=(Ee[4]&1)!==0,ut=Te(Ee,5);return ut<9?Ie:{match:!0,consumed:ut,dataOffset:ut,hasAudioTrack:Ye,hasVideoTrack:rt}}}]),Ft}(),At=Je,qe=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"init",value:function(){Ft.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 Oe in Ft.types)Ft.types.hasOwnProperty(Oe)&&(Ft.types[Oe]=[Oe.charCodeAt(0),Oe.charCodeAt(1),Oe.charCodeAt(2),Oe.charCodeAt(3)]);var Ee=Ft.constants={};Ee.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ee.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ee.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ee.STSC=Ee.STCO=Ee.STTS,Ee.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ee.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]),Ee.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]),Ee.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ee.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ee.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Oe){for(var Ee=8,Ie=null,Ye=Array.prototype.slice.call(arguments,1),rt=Ye.length,ut=0;ut<rt;ut++)Ee+=Ye[ut].byteLength;Ie=new Uint8Array(Ee),Ie[0]=Ee>>>24&255,Ie[1]=Ee>>>16&255,Ie[2]=Ee>>>8&255,Ie[3]=Ee&255,Ie.set(Oe,4);for(var Ot=8,Ar=0;Ar<rt;Ar++)Ie.set(Ye[Ar],Ot),Ot+=Ye[Ar].byteLength;return Ie}},{key:"generateInitSegment",value:function(Oe){var Ee=Ft.box(Ft.types.ftyp,Ft.constants.FTYP),Ie=Ft.moov(Oe),Ye=new Uint8Array(Ee.byteLength+Ie.byteLength);return Ye.set(Ee,0),Ye.set(Ie,Ee.byteLength),Ye}},{key:"moov",value:function(Oe){var Ee=Ft.mvhd(Oe.timescale,Oe.duration),Ie=Ft.trak(Oe),Ye=Ft.mvex(Oe);return Ft.box(Ft.types.moov,Ee,Ie,Ye)}},{key:"mvhd",value:function(Oe,Ee){return Ft.box(Ft.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Oe>>>24&255,Oe>>>16&255,Oe>>>8&255,Oe&255,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&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(Oe){return Ft.box(Ft.types.trak,Ft.tkhd(Oe),Ft.mdia(Oe))}},{key:"tkhd",value:function(Oe){var Ee=Oe.id,Ie=Oe.duration,Ye=Oe.presentWidth,rt=Oe.presentHeight;return Ft.box(Ft.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,Ye>>>8&255,Ye&255,0,0,rt>>>8&255,rt&255,0,0]))}},{key:"mdia",value:function(Oe){return Ft.box(Ft.types.mdia,Ft.mdhd(Oe),Ft.hdlr(Oe),Ft.minf(Oe))}},{key:"mdhd",value:function(Oe){var Ee=Oe.timescale,Ie=Oe.duration;return Ft.box(Ft.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,85,196,0,0]))}},{key:"hdlr",value:function(Oe){var Ee=null;return Oe.type==="audio"?Ee=Ft.constants.HDLR_AUDIO:Ee=Ft.constants.HDLR_VIDEO,Ft.box(Ft.types.hdlr,Ee)}},{key:"minf",value:function(Oe){var Ee=null;return Oe.type==="audio"?Ee=Ft.box(Ft.types.smhd,Ft.constants.SMHD):Ee=Ft.box(Ft.types.vmhd,Ft.constants.VMHD),Ft.box(Ft.types.minf,Ee,Ft.dinf(),Ft.stbl(Oe))}},{key:"dinf",value:function(){var Oe=Ft.box(Ft.types.dinf,Ft.box(Ft.types.dref,Ft.constants.DREF));return Oe}},{key:"stbl",value:function(Oe){var Ee=Ft.box(Ft.types.stbl,Ft.stsd(Oe),Ft.box(Ft.types.stts,Ft.constants.STTS),Ft.box(Ft.types.stsc,Ft.constants.STSC),Ft.box(Ft.types.stsz,Ft.constants.STSZ),Ft.box(Ft.types.stco,Ft.constants.STCO));return Ee}},{key:"stsd",value:function(Oe){return Oe.type==="audio"?Oe.codec==="mp3"?Ft.box(Ft.types.stsd,Ft.constants.STSD_PREFIX,Ft.mp3(Oe)):Ft.box(Ft.types.stsd,Ft.constants.STSD_PREFIX,Ft.mp4a(Oe)):Ft.box(Ft.types.stsd,Ft.constants.STSD_PREFIX,Ft.avc1(Oe))}},{key:"mp3",value:function(Oe){var Ee=Oe.channelCount,Ie=Oe.audioSampleRate,Ye=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ee,0,16,0,0,0,0,Ie>>>8&255,Ie&255,0,0]);return Ft.box(Ft.types[".mp3"],Ye)}},{key:"mp4a",value:function(Oe){var Ee=Oe.channelCount,Ie=Oe.audioSampleRate,Ye=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ee,0,16,0,0,0,0,Ie>>>8&255,Ie&255,0,0]);return Ft.box(Ft.types.mp4a,Ye,Ft.esds(Oe))}},{key:"esds",value:function(Oe){var Ee=Oe.config||[],Ie=Ee.length,Ye=new Uint8Array([0,0,0,0,3,23+Ie,0,1,0,4,15+Ie,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Ie]).concat(Ee).concat([6,1,2]));return Ft.box(Ft.types.esds,Ye)}},{key:"avc1",value:function(Oe){var Ee=Oe.avcc,Ie=Oe.codecWidth,Ye=Oe.codecHeight,rt=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,Ie>>>8&255,Ie&255,Ye>>>8&255,Ye&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Ft.box(Ft.types.avc1,rt,Ft.box(Ft.types.avcC,Ee))}},{key:"mvex",value:function(Oe){return Ft.box(Ft.types.mvex,Ft.trex(Oe))}},{key:"trex",value:function(Oe){var Ee=Oe.id,Ie=new Uint8Array([0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Ft.box(Ft.types.trex,Ie)}},{key:"moof",value:function(Oe,Ee){return Ft.box(Ft.types.moof,Ft.mfhd(Oe.sequenceNumber),Ft.traf(Oe,Ee))}},{key:"mfhd",value:function(Oe){var Ee=new Uint8Array([0,0,0,0,Oe>>>24&255,Oe>>>16&255,Oe>>>8&255,Oe&255]);return Ft.box(Ft.types.mfhd,Ee)}},{key:"traf",value:function(Oe,Ee){var Ie=Oe.id,Ye=Ft.box(Ft.types.tfhd,new Uint8Array([0,0,0,0,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255])),rt=Ft.box(Ft.types.tfdt,new Uint8Array([0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255])),ut=Ft.sdtp(Oe),Ot=Ft.trun(Oe,ut.byteLength+16+16+8+16+8+8);return Ft.box(Ft.types.traf,Ye,rt,Ot,ut)}},{key:"sdtp",value:function(Oe){for(var Ee=Oe.samples||[],Ie=Ee.length,Ye=new Uint8Array(4+Ie),rt=0;rt<Ie;rt++){var ut=Ee[rt].flags;Ye[rt+4]=ut.isLeading<<6|ut.dependsOn<<4|ut.isDependedOn<<2|ut.hasRedundancy}return Ft.box(Ft.types.sdtp,Ye)}},{key:"trun",value:function(Oe,Ee){var Ie=Oe.samples||[],Ye=Ie.length,rt=12+16*Ye,ut=new Uint8Array(rt);Ee+=8+rt,ut.set([0,0,15,1,Ye>>>24&255,Ye>>>16&255,Ye>>>8&255,Ye&255,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255],0);for(var Ot=0;Ot<Ye;Ot++){var Ar=Ie[Ot].duration,Pr=Ie[Ot].size,un=Ie[Ot].flags,It=Ie[Ot].cts;ut.set([Ar>>>24&255,Ar>>>16&255,Ar>>>8&255,Ar&255,Pr>>>24&255,Pr>>>16&255,Pr>>>8&255,Pr&255,un.isLeading<<2|un.dependsOn,un.isDependedOn<<6|un.hasRedundancy<<4|un.isNonSync,0,0,It>>>24&255,It>>>16&255,It>>>8&255,It&255],12+16*Ot)}return Ft.box(Ft.types.trun,ut)}},{key:"mdat",value:function(Oe){return Ft.box(Ft.types.mdat,Oe)}}]),Ft}();qe.init();var Re=qe,Lt=function(){function Ft(){Object(_.a)(this,Ft)}return Object(E.a)(Ft,null,[{key:"getSilentFrame",value:function(Oe,Ee){if(Oe==="mp4a.40.2"){if(Ee===1)return new Uint8Array([0,200,0,128,35,128]);if(Ee===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Ee===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Ee===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Ee===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(Ee===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(Ee===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(Ee===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(Ee===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}}]),Ft}(),$e=Lt,Et=Object(E.a)(function Ft(bt,Oe,Ee,Ie,Ye){Object(_.a)(this,Ft),this.dts=bt,this.pts=Oe,this.duration=Ee,this.originalDts=Ie,this.isSyncPoint=Ye,this.fileposition=null}),Ut=function(){function Ft(){Object(_.a)(this,Ft),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)(Ft,[{key:"appendSyncPoint",value:function(Oe){Oe.isSyncPoint=!0,this.syncPoints.push(Oe)}}]),Ft}(),Bt=function(){function Ft(){Object(_.a)(this,Ft),this._list=[]}return Object(E.a)(Ft,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Oe){var Ee=this._list;if(Oe.length===0)return;Ee.length>0&&Oe[0].originalDts<Ee[Ee.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Ee,Oe)}},{key:"getLastSyncPointBeforeDts",value:function(Oe){if(this._list.length==0)return null;var Ee=this._list,Ie=0,Ye=Ee.length-1,rt=0,ut=0,Ot=Ye;for(Oe<Ee[0].dts&&(Ie=0,ut=Ot+1);ut<=Ot;)if(rt=ut+Math.floor((Ot-ut)/2),rt===Ye||Oe>=Ee[rt].dts&&Oe<Ee[rt+1].dts){Ie=rt;break}else Ee[rt].dts<Oe?ut=rt+1:Ot=rt-1;return this._list[Ie]}}]),Ft}(),_t=function(){function Ft(bt){Object(_.a)(this,Ft),this._type=bt,this._list=[],this._lastAppendLocation=-1}return Object(E.a)(Ft,[{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(Oe){var Ee=this._list;if(Ee.length===0)return-2;var Ie=Ee.length-1,Ye=0,rt=0,ut=Ie,Ot=0;if(Oe<Ee[0].originalBeginDts)return Ot=-1,Ot;for(;rt<=ut;)if(Ye=rt+Math.floor((ut-rt)/2),Ye===Ie||Oe>Ee[Ye].lastSample.originalDts&&Oe<Ee[Ye+1].originalBeginDts){Ot=Ye;break}else Ee[Ye].originalBeginDts<Oe?rt=Ye+1:ut=Ye-1;return Ot}},{key:"_searchNearestSegmentAfter",value:function(Oe){return this._searchNearestSegmentBefore(Oe)+1}},{key:"append",value:function(Oe){var Ee=this._list,Ie=Oe,Ye=this._lastAppendLocation,rt=0;Ye!==-1&&Ye<Ee.length&&Ie.originalBeginDts>=Ee[Ye].lastSample.originalDts&&(Ye===Ee.length-1||Ye<Ee.length-1&&Ie.originalBeginDts<Ee[Ye+1].originalBeginDts)?rt=Ye+1:Ee.length>0&&(rt=this._searchNearestSegmentBefore(Ie.originalBeginDts)+1),this._lastAppendLocation=rt,this._list.splice(rt,0,Ie)}},{key:"getLastSegmentBefore",value:function(Oe){var Ee=this._searchNearestSegmentBefore(Oe);return Ee>=0?this._list[Ee]:null}},{key:"getLastSampleBefore",value:function(Oe){var Ee=this.getLastSegmentBefore(Oe);return Ee!=null?Ee.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Oe){for(var Ee=this._searchNearestSegmentBefore(Oe),Ie=this._list[Ee].syncPoints;Ie.length===0&&Ee>0;)Ee--,Ie=this._list[Ee].syncPoints;return Ie.length>0?Ie[Ie.length-1]:null}}]),Ft}(),jt=function(){function Ft(bt){Object(_.a)(this,Ft),this.TAG="MP4Remuxer",this._config=bt,this._isLive=bt.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 _t("audio"),this._videoSegmentInfoList=new _t("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)(Ft,[{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(Oe){return Oe.onDataAvailable=this.remux.bind(this),Oe.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Oe){this._onInitSegment=Oe}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Oe){this._onMediaSegment=Oe}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Oe){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Oe,Ee){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Oe,Ee),this._remuxVideo(Ee),this._remuxAudio(Oe)}},{key:"_onTrackMetadataReceived",value:function(Oe,Ee){var Ie=null,Ye="mp4",rt=Ee.codec;if(Oe==="audio")this._audioMeta=Ee,Ee.codec==="mp3"&&this._mp3UseMpegAudio?(Ye="mpeg",rt="",Ie=new Uint8Array):Ie=Re.generateInitSegment(Ee);else if(Oe==="video")this._videoMeta=Ee,Ie=Re.generateInitSegment(Ee);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Oe,{type:Oe,data:Ie.buffer,codec:rt,container:"".concat(Oe,"/").concat(Ye),mediaDuration:Ee.duration})}},{key:"_calculateDtsBase",value:function(Oe,Ee){if(this._dtsBaseInited)return;Oe.samples&&Oe.samples.length&&(this._audioDtsBase=Oe.samples[0].dts),Ee.samples&&Ee.samples.length&&(this._videoDtsBase=Ee.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Oe=this._videoStashedLastSample,Ee=this._audioStashedLastSample,Ie={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Oe!=null&&(Ie.samples.push(Oe),Ie.length=Oe.length);var Ye={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Ee!=null&&(Ye.samples.push(Ee),Ye.length=Ee.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Ie,!0),this._remuxAudio(Ye,!0)}},{key:"_remuxAudio",value:function(Oe,Ee){if(this._audioMeta==null)return;var Ie=Oe,Ye=Ie.samples,rt=void 0,ut=-1,Ot=-1,Ar=-1,Pr=this._audioMeta.refSampleDuration,un=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,It=this._dtsBaseInited&&this._audioNextDts===void 0,nt=!1;if(!Ye||Ye.length===0)return;if(Ye.length===1&&!Ee)return;var at=0,rr=null,Pt=0;un?(at=0,Pt=Ie.length):(at=8,Pt=8+Ie.length);var xt=null;if(Ye.length>1&&(xt=Ye.pop(),Pt-=xt.length),this._audioStashedLastSample!=null){var Kt=this._audioStashedLastSample;this._audioStashedLastSample=null,Ye.unshift(Kt),Pt+=Kt.length}xt!=null&&(this._audioStashedLastSample=xt);var yt=Ye[0].dts-this._dtsBase;if(this._audioNextDts)rt=yt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())rt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(nt=!0));else{var kt=this._audioSegmentInfoList.getLastSampleBefore(yt);if(kt!=null){var Sr=yt-(kt.originalDts+kt.duration);Sr<=3&&(Sr=0);var hr=kt.dts+kt.duration+Sr;rt=yt-hr}else rt=0}if(nt){var gr=yt-rt,Jr=this._videoSegmentInfoList.getLastSegmentBefore(yt);if(Jr!=null&&Jr.beginDts<gr){var $r=$e.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if($r){var kn=Jr.beginDts,Dn=gr-Jr.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(kn,", duration: ").concat(Dn)),Ye.unshift({unit:$r,dts:kn,pts:kn}),Pt+=$r.byteLength}}else nt=!1}for(var Zn=[],li=0;li<Ye.length;li++){var Ai=Ye[li],Ii=Ai.unit,Qe=Ai.dts-this._dtsBase,Se=Qe-rt;ut===-1&&(ut=Se);var Ne=0;if(li!==Ye.length-1){var je=Ye[li+1].dts-this._dtsBase-rt;Ne=je-Se}else if(xt!=null){var Xe=xt.dts-this._dtsBase-rt;Ne=Xe-Se}else Zn.length>=1?Ne=Zn[Zn.length-1].duration:Ne=Math.floor(Pr);var ze=!1,Ze=null;if(Ne>Pr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){ze=!0;var wt=Math.abs(Ne-Pr),st=Math.ceil(wt/Pr),Jt=Se+Pr;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+Ne," ms, expected: ").concat(Se+Math.round(Pr)," ms, ")+"delta: ".concat(Math.round(wt)," ms, generate: ").concat(st," frames"));var Rr=$e.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),Ze=[];for(var Ir=0;Ir<st;Ir++){var Xr=Math.round(Jt);if(Ze.length>0){var er=Ze[Ze.length-1];er.duration=Xr-er.dts}var pn={dts:Xr,pts:Xr,cts:0,unit:Rr,size:Rr.byteLength,duration:0,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ze.push(pn),Pt+=pn.size,Jt+=Pr}var fr=Ze[Ze.length-1];fr.duration=Se+Ne-fr.dts,Ne=Math.round(Pr)}Zn.push({dts:Se,pts:Se,cts:0,unit:Ai.unit,size:Ai.unit.byteLength,duration:Ne,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ze&&Zn.push.apply(Zn,Ze)}un?rr=new Uint8Array(Pt):(rr=new Uint8Array(Pt),rr[0]=Pt>>>24&255,rr[1]=Pt>>>16&255,rr[2]=Pt>>>8&255,rr[3]=Pt&255,rr.set(Re.types.mdat,4));for(var mn=0;mn<Zn.length;mn++){var en=Zn[mn].unit;rr.set(en,at),at+=en.byteLength}var Mr=Zn[Zn.length-1];Ot=Mr.dts+Mr.duration,this._audioNextDts=Ot;var Gn=new Ut;Gn.beginDts=ut,Gn.endDts=Ot,Gn.beginPts=ut,Gn.endPts=Ot,Gn.originalBeginDts=Zn[0].originalDts,Gn.originalEndDts=Mr.originalDts+Mr.duration,Gn.firstSample=new Et(Zn[0].dts,Zn[0].pts,Zn[0].duration,Zn[0].originalDts,!1),Gn.lastSample=new Et(Mr.dts,Mr.pts,Mr.duration,Mr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Gn),Ie.samples=Zn,Ie.sequenceNumber++;var di=null;un?di=new Uint8Array:di=Re.moof(Ie,ut),Ie.samples=[],Ie.length=0;var _i={type:"audio",data:this._mergeBoxes(di,rr).buffer,sampleCount:Zn.length,info:Gn};un&&It&&(_i.timestampOffset=ut),this._onMediaSegment("audio",_i)}},{key:"_remuxVideo",value:function(Oe,Ee){if(this._videoMeta==null)return;var Ie=Oe,Ye=Ie.samples,rt=void 0,ut=-1,Ot=-1,Ar=-1,Pr=-1;if(!Ye||Ye.length===0)return;if(Ye.length===1&&!Ee)return;var un=8,It=null,nt=8+Oe.length,at=null;if(Ye.length>1&&(at=Ye.pop(),nt-=at.length),this._videoStashedLastSample!=null){var rr=this._videoStashedLastSample;this._videoStashedLastSample=null,Ye.unshift(rr),nt+=rr.length}at!=null&&(this._videoStashedLastSample=at);var Pt=Ye[0].dts-this._dtsBase;if(this._videoNextDts)rt=Pt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())rt=0;else{var xt=this._videoSegmentInfoList.getLastSampleBefore(Pt);if(xt!=null){var Kt=Pt-(xt.originalDts+xt.duration);Kt<=3&&(Kt=0);var yt=xt.dts+xt.duration+Kt;rt=Pt-yt}else rt=0}for(var kt=new Ut,Sr=[],hr=0;hr<Ye.length;hr++){var gr=Ye[hr],Jr=gr.dts-this._dtsBase,$r=gr.isKeyframe,kn=Jr-rt,Dn=gr.cts,Zn=kn+Dn;ut===-1&&(ut=kn,Ar=Zn);var li=0;if(hr!==Ye.length-1){var Ai=Ye[hr+1].dts-this._dtsBase-rt;li=Ai-kn}else if(at!=null){var Ii=at.dts-this._dtsBase-rt;li=Ii-kn}else Sr.length>=1?li=Sr[Sr.length-1].duration:li=Math.floor(this._videoMeta.refSampleDuration);if($r){var Qe=new Et(kn,Zn,li,gr.dts,!0);Qe.fileposition=gr.fileposition,kt.appendSyncPoint(Qe)}Sr.push({dts:kn,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}})}It=new Uint8Array(nt),It[0]=nt>>>24&255,It[1]=nt>>>16&255,It[2]=nt>>>8&255,It[3]=nt&255,It.set(Re.types.mdat,4);for(var Se=0;Se<Sr.length;Se++)for(var Ne=Sr[Se].units;Ne.length;){var je=Ne.shift(),Xe=je.data;It.set(Xe,un),un+=Xe.byteLength}var ze=Sr[Sr.length-1];if(Ot=ze.dts+ze.duration,Pr=ze.pts+ze.duration,this._videoNextDts=Ot,kt.beginDts=ut,kt.endDts=Ot,kt.beginPts=Ar,kt.endPts=Pr,kt.originalBeginDts=Sr[0].originalDts,kt.originalEndDts=ze.originalDts+ze.duration,kt.firstSample=new Et(Sr[0].dts,Sr[0].pts,Sr[0].duration,Sr[0].originalDts,Sr[0].isKeyframe),kt.lastSample=new Et(ze.dts,ze.pts,ze.duration,ze.originalDts,ze.isKeyframe),this._isLive||this._videoSegmentInfoList.append(kt),Ie.samples=Sr,Ie.sequenceNumber++,this._forceFirstIDR){var Ze=Sr[0].flags;Ze.dependsOn=2,Ze.isNonSync=0}var wt=Re.moof(Ie,ut);Ie.samples=[],Ie.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(wt,It).buffer,sampleCount:Sr.length,info:kt})}},{key:"_mergeBoxes",value:function(Oe,Ee){var Ie=new Uint8Array(Oe.byteLength+Ee.byteLength);return Ie.set(Oe,0),Ie.set(Ee,Oe.byteLength),Ie}}]),Ft}(),He=jt,se={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},J=se,Ue=function(){function Ft(bt,Oe){Object(_.a)(this,Ft),this.TAG="TransmuxingController",this._emitter=new m.a,this._config=Oe,bt.segments||(bt.segments=[{duration:bt.duration,filesize:bt.filesize,url:bt.url}]),typeof bt.cors!="boolean"&&(bt.cors=!0),typeof bt.withCredentials!="boolean"&&(bt.withCredentials=!1),this._mediaDataSource=bt,this._currentSegmentIndex=0;var Ee=0;this._mediaDataSource.segments.forEach(function(Ie){Ie.timestampBase=Ee,Ee+=Ie.duration,Ie.cors=bt.cors,Ie.withCredentials=bt.withCredentials,Oe.referrerPolicy&&(Ie.referrerPolicy=Oe.referrerPolicy)}),!isNaN(Ee)&&this._mediaDataSource.duration!==Ee&&(this._mediaDataSource.duration=Ee),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)(Ft,[{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(Oe,Ee){this._emitter.addListener(Oe,Ee)}},{key:"off",value:function(Oe,Ee){this._emitter.removeListener(Oe,Ee)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Oe,Ee){this._currentSegmentIndex=Oe;var Ie=this._mediaDataSource.segments[Oe],Ye=this._ioctl=new V(Ie,this._config,Oe);Ye.onError=this._onIOException.bind(this),Ye.onSeeked=this._onIOSeeked.bind(this),Ye.onComplete=this._onIOComplete.bind(this),Ye.onRedirect=this._onIORedirect.bind(this),Ye.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Ee?this._demuxer.bindDataSource(this._ioctl):Ye.onDataArrival=this._onInitChunkArrival.bind(this),Ye.open(Ee)}},{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(Oe){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Ee=this._searchSegmentIndexContains(Oe);if(Ee===this._currentSegmentIndex){var Ie=this._mediaInfo.segments[Ee];if(Ie==null)this._pendingSeekTime=Oe;else{var Ye=Ie.getNearestKeyframe(Oe);this._remuxer.seek(Ye.milliseconds),this._ioctl.seek(Ye.fileposition),this._pendingResolveSeekPoint=Ye.milliseconds}}else{var rt=this._mediaInfo.segments[Ee];if(rt==null)this._pendingSeekTime=Oe,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Ee);else{var ut=rt.getNearestKeyframe(Oe);this._internalAbort(),this._remuxer.seek(Oe),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Ee].timestampBase,this._loadSegment(Ee,ut.fileposition),this._pendingResolveSeekPoint=ut.milliseconds,this._reportSegmentMediaInfo(Ee)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Oe){for(var Ee=this._mediaDataSource.segments,Ie=Ee.length-1,Ye=0;Ye<Ee.length;Ye++)if(Oe<Ee[Ye].timestampBase){Ie=Ye-1;break}return Ie}},{key:"_onInitChunkArrival",value:function(Oe,Ee){var Ie=this,Ye=null,rt=0;if(Ee>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,rt=this._demuxer.parseChunks(Oe,Ee);else if((Ye=At.probe(Oe)).match){this._demuxer=new At(Ye,this._config),this._remuxer||(this._remuxer=new He(this._config));var ut=this._mediaDataSource;ut.duration!=null&&!isNaN(ut.duration)&&(this._demuxer.overridedDuration=ut.duration),typeof ut.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=ut.hasAudio),typeof ut.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=ut.hasVideo),this._demuxer.timestampBase=ut.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),rt=this._demuxer.parseChunks(Oe,Ee)}else Ye=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Ie._internalAbort()}),this._emitter.emit(J.DEMUX_ERROR,Me.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),rt=0;return rt}},{key:"_onMediaInfo",value:function(Oe){var Ee=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Oe),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,me.prototype));var Ie=Object.assign({},Oe);Object.setPrototypeOf(Ie,me.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Ie,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var Ye=Ee._pendingSeekTime;Ee._pendingSeekTime=null,Ee.seek(Ye)})}},{key:"_onMetaDataArrived",value:function(Oe){this._emitter.emit(J.METADATA_ARRIVED,Oe)}},{key:"_onScriptDataArrived",value:function(Oe){this._emitter.emit(J.SCRIPTDATA_ARRIVED,Oe)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Oe){var Ee=Oe,Ie=Ee+1;Ie<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Ie)):(this._remuxer.flushStashedSamples(),this._emitter.emit(J.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Oe){var Ee=this._ioctl.extraData;this._mediaDataSource.segments[Ee].redirectedURL=Oe}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(J.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Oe,Ee){c.e(this.TAG,"IOException: type = ".concat(Oe,", code = ").concat(Ee.code,", msg = ").concat(Ee.msg)),this._emitter.emit(J.IO_ERROR,Oe,Ee),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Oe,Ee){c.e(this.TAG,"DemuxException: type = ".concat(Oe,", info = ").concat(Ee)),this._emitter.emit(J.DEMUX_ERROR,Oe,Ee)}},{key:"_onRemuxerInitSegmentArrival",value:function(Oe,Ee){this._emitter.emit(J.INIT_SEGMENT,Oe,Ee)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Oe,Ee){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(J.MEDIA_SEGMENT,Oe,Ee),this._pendingResolveSeekPoint!=null&&Oe==="video"){var Ie=Ee.info.syncPoints,Ye=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,x.safari&&Ie.length>0&&Ie[0].originalDts===Ye&&(Ye=Ie[0].pts),this._emitter.emit(J.RECOMMEND_SEEKPOINT,Ye)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(Oe){var Ee=this._mediaInfo.segments[Oe],Ie=Object.assign({},Ee);Ie.duration=this._mediaInfo.duration,Ie.segmentCount=this._mediaInfo.segmentCount,delete Ie.segments,delete Ie.keyframesIndex,this._emitter.emit(J.MEDIA_INFO,Ie)}},{key:"_reportStatisticsInfo",value:function(){var Oe={};Oe.url=this._ioctl.currentURL,Oe.hasRedirect=this._ioctl.hasRedirect,Oe.hasRedirect&&(Oe.redirectedURL=this._ioctl.currentRedirectedURL),Oe.speed=this._ioctl.currentSpeed,Oe.loaderType=this._ioctl.loaderType,Oe.currentSegmentIndex=this._currentSegmentIndex,Oe.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(J.STATISTICS_INFO,Oe)}}]),Ft}(),Le=Ue,ee=function(bt){var Oe="TransmuxingWorker",Ee=null,Ie=Pt.bind(this);A.install(),bt.addEventListener("message",function(xt){switch(xt.data.cmd){case"init":Ee=new Le(xt.data.param[0],xt.data.param[1]),Ee.on(J.IO_ERROR,nt.bind(this)),Ee.on(J.DEMUX_ERROR,at.bind(this)),Ee.on(J.INIT_SEGMENT,Ye.bind(this)),Ee.on(J.MEDIA_SEGMENT,rt.bind(this)),Ee.on(J.LOADING_COMPLETE,ut.bind(this)),Ee.on(J.RECOVERED_EARLY_EOF,Ot.bind(this)),Ee.on(J.MEDIA_INFO,Ar.bind(this)),Ee.on(J.METADATA_ARRIVED,Pr.bind(this)),Ee.on(J.SCRIPTDATA_ARRIVED,un.bind(this)),Ee.on(J.STATISTICS_INFO,It.bind(this)),Ee.on(J.RECOMMEND_SEEKPOINT,rr.bind(this));break;case"destroy":Ee&&(Ee.destroy(),Ee=null),bt.postMessage({msg:"destroyed"});break;case"start":Ee.start();break;case"stop":Ee.stop();break;case"seek":Ee.seek(xt.data.param);break;case"pause":Ee.pause();break;case"resume":Ee.resume();break;case"logging_config":{var Kt=xt.data.param;_e.applyConfig(Kt),Kt.enableCallback===!0?_e.addLogListener(Ie):_e.removeLogListener(Ie);break}}});function Ye(xt,Kt){var yt={msg:J.INIT_SEGMENT,data:{type:xt,data:Kt}};bt.postMessage(yt,[Kt.data])}function rt(xt,Kt){var yt={msg:J.MEDIA_SEGMENT,data:{type:xt,data:Kt}};bt.postMessage(yt,[Kt.data])}function ut(){var xt={msg:J.LOADING_COMPLETE};bt.postMessage(xt)}function Ot(){var xt={msg:J.RECOVERED_EARLY_EOF};bt.postMessage(xt)}function Ar(xt){var Kt={msg:J.MEDIA_INFO,data:xt};bt.postMessage(Kt)}function Pr(xt){var Kt={msg:J.METADATA_ARRIVED,data:xt};bt.postMessage(Kt)}function un(xt){var Kt={msg:J.SCRIPTDATA_ARRIVED,data:xt};bt.postMessage(Kt)}function It(xt){var Kt={msg:J.STATISTICS_INFO,data:xt};bt.postMessage(Kt)}function nt(xt,Kt){bt.postMessage({msg:J.IO_ERROR,data:{type:xt,info:Kt}})}function at(xt,Kt){bt.postMessage({msg:J.DEMUX_ERROR,data:{type:xt,info:Kt}})}function rr(xt){bt.postMessage({msg:J.RECOMMEND_SEEKPOINT,data:xt})}function Pt(xt,Kt){bt.postMessage({msg:"logcat_callback",data:{type:xt,logcat:Kt}})}},ct=ee,Mt=function(){function Ft(bt,Oe){if(Object(_.a)(this,Ft),this.TAG="Transmuxer",this._emitter=new m.a,Oe.enableWorker&&typeof Worker!="undefined")try{var Ee=d("0r65");this._worker=Ee(ct),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[bt,Oe]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},_e.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:_e.getConfig()})}catch(Ye){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Le(bt,Oe)}else this._controller=new Le(bt,Oe);if(this._controller){var Ie=this._controller;Ie.on(J.IO_ERROR,this._onIOError.bind(this)),Ie.on(J.DEMUX_ERROR,this._onDemuxError.bind(this)),Ie.on(J.INIT_SEGMENT,this._onInitSegment.bind(this)),Ie.on(J.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Ie.on(J.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Ie.on(J.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Ie.on(J.MEDIA_INFO,this._onMediaInfo.bind(this)),Ie.on(J.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Ie.on(J.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Ie.on(J.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Ie.on(J.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(E.a)(Ft,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),_e.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Oe,Ee){this._emitter.addListener(Oe,Ee)}},{key:"off",value:function(Oe,Ee){this._emitter.removeListener(Oe,Ee)}},{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(Oe){this._worker?this._worker.postMessage({cmd:"seek",param:Oe}):this._controller.seek(Oe)}},{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(Oe,Ee){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(J.INIT_SEGMENT,Oe,Ee)})}},{key:"_onMediaSegment",value:function(Oe,Ee){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(J.MEDIA_SEGMENT,Oe,Ee)})}},{key:"_onLoadingComplete",value:function(){var Oe=this;Promise.resolve().then(function(){Oe._emitter.emit(J.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Oe=this;Promise.resolve().then(function(){Oe._emitter.emit(J.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Oe){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(J.MEDIA_INFO,Oe)})}},{key:"_onMetaDataArrived",value:function(Oe){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(J.METADATA_ARRIVED,Oe)})}},{key:"_onScriptDataArrived",value:function(Oe){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(J.SCRIPTDATA_ARRIVED,Oe)})}},{key:"_onStatisticsInfo",value:function(Oe){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(J.STATISTICS_INFO,Oe)})}},{key:"_onIOError",value:function(Oe,Ee){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(J.IO_ERROR,Oe,Ee)})}},{key:"_onDemuxError",value:function(Oe,Ee){var Ie=this;Promise.resolve().then(function(){Ie._emitter.emit(J.DEMUX_ERROR,Oe,Ee)})}},{key:"_onRecommendSeekpoint",value:function(Oe){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(J.RECOMMEND_SEEKPOINT,Oe)})}},{key:"_onLoggingConfigChanged",value:function(Oe){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Oe})}},{key:"_onWorkerMessage",value:function(Oe){var Ee=Oe.data,Ie=Ee.data;if(Ee.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Ee.msg){case J.INIT_SEGMENT:case J.MEDIA_SEGMENT:this._emitter.emit(Ee.msg,Ie.type,Ie.data);break;case J.LOADING_COMPLETE:case J.RECOVERED_EARLY_EOF:this._emitter.emit(Ee.msg);break;case J.MEDIA_INFO:Object.setPrototypeOf(Ie,me.prototype),this._emitter.emit(Ee.msg,Ie);break;case J.METADATA_ARRIVED:case J.SCRIPTDATA_ARRIVED:case J.STATISTICS_INFO:this._emitter.emit(Ee.msg,Ie);break;case J.IO_ERROR:case J.DEMUX_ERROR:this._emitter.emit(Ee.msg,Ie.type,Ie.info);break;case J.RECOMMEND_SEEKPOINT:this._emitter.emit(Ee.msg,Ie);break;case"logcat_callback":c.emitter.emit("log",Ie.type,Ie.logcat);break;default:break}}}]),Ft}(),ot=Mt,Yt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},or=Yt,Zr=function(){function Ft(bt){Object(_.a)(this,Ft),this.TAG="MSEController",this._config=bt,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 Bt}return Object(E.a)(Ft,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Oe,Ee){this._emitter.addListener(Oe,Ee)}},{key:"off",value:function(Oe,Ee){this._emitter.removeListener(Oe,Ee)}},{key:"attachMediaElement",value:function(Oe){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var Ee=this._mediaSource=new window.MediaSource;Ee.addEventListener("sourceopen",this.e.onSourceOpen),Ee.addEventListener("sourceended",this.e.onSourceEnded),Ee.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Oe,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Oe.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Oe=this._mediaSource;for(var Ee in this._sourceBuffers){var Ie=this._pendingSegments[Ee];Ie.splice(0,Ie.length),this._pendingSegments[Ee]=null,this._pendingRemoveRanges[Ee]=null,this._lastInitSegments[Ee]=null;var Ye=this._sourceBuffers[Ee];if(Ye){if(Oe.readyState!=="closed"){try{Oe.removeSourceBuffer(Ye)}catch(rt){c.e(this.TAG,rt.message)}Ye.removeEventListener("error",this.e.onSourceBufferError),Ye.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Ee]=null,this._sourceBuffers[Ee]=null}}if(Oe.readyState==="open")try{Oe.endOfStream()}catch(rt){c.e(this.TAG,rt.message)}Oe.removeEventListener("sourceopen",this.e.onSourceOpen),Oe.removeEventListener("sourceended",this.e.onSourceEnded),Oe.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(Oe,Ee){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Oe),this._pendingSegments[Oe.type].push(Oe);return}var Ie=Oe,Ye="".concat(Ie.container);Ie.codec&&Ie.codec.length>0&&(Ye+=";codecs=".concat(Ie.codec));var rt=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+Ye),this._lastInitSegments[Ie.type]=Ie,Ye!==this._mimeTypes[Ie.type]){if(this._mimeTypes[Ie.type])c.v(this.TAG,"Notice: ".concat(Ie.type," mimeType changed, origin: ").concat(this._mimeTypes[Ie.type],", target: ").concat(Ye));else{rt=!0;try{var ut=this._sourceBuffers[Ie.type]=this._mediaSource.addSourceBuffer(Ye);ut.addEventListener("error",this.e.onSourceBufferError),ut.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Ot){c.e(this.TAG,Ot.message),this._emitter.emit(or.ERROR,{code:Ot.code,msg:Ot.message});return}}this._mimeTypes[Ie.type]=Ye}Ee||this._pendingSegments[Ie.type].push(Ie),rt||this._sourceBuffers[Ie.type]&&!this._sourceBuffers[Ie.type].updating&&this._doAppendSegments(),x.safari&&Ie.container==="audio/mpeg"&&Ie.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Ie.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Oe){var Ee=Oe;this._pendingSegments[Ee.type].push(Ee),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Ie=this._sourceBuffers[Ee.type];Ie&&!Ie.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Oe){for(var Ee in this._sourceBuffers){if(!this._sourceBuffers[Ee])continue;var Ie=this._sourceBuffers[Ee];if(this._mediaSource.readyState==="open")try{Ie.abort()}catch(Pr){c.e(this.TAG,Pr.message)}this._idrList.clear();var Ye=this._pendingSegments[Ee];if(Ye.splice(0,Ye.length),this._mediaSource.readyState==="closed")continue;for(var rt=0;rt<Ie.buffered.length;rt++){var ut=Ie.buffered.start(rt),Ot=Ie.buffered.end(rt);this._pendingRemoveRanges[Ee].push({start:ut,end:Ot})}if(Ie.updating||this._doRemoveRanges(),x.safari){var Ar=this._lastInitSegments[Ee];Ar&&(this._pendingSegments[Ee].push(Ar),Ie.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Oe=this._mediaSource,Ee=this._sourceBuffers;if(!Oe||Oe.readyState!=="open"){Oe&&Oe.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Ee.video&&Ee.video.updating||Ee.audio&&Ee.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Oe.endOfStream())}},{key:"getNearestKeyframe",value:function(Oe){return this._idrList.getLastSyncPointBeforeDts(Oe)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Oe=this._mediaElement.currentTime;for(var Ee in this._sourceBuffers){var Ie=this._sourceBuffers[Ee];if(Ie){var Ye=Ie.buffered;if(Ye.length>=1&&Oe-Ye.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Oe=this._mediaElement.currentTime;for(var Ee in this._sourceBuffers){var Ie=this._sourceBuffers[Ee];if(Ie){for(var Ye=Ie.buffered,rt=!1,ut=0;ut<Ye.length;ut++){var Ot=Ye.start(ut),Ar=Ye.end(ut);if(Ot<=Oe&&Oe<Ar+3){if(Oe-Ot>=this._config.autoCleanupMaxBackwardDuration){rt=!0;var Pr=Oe-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Ee].push({start:Ot,end:Pr})}}else Ar<Oe&&(rt=!0,this._pendingRemoveRanges[Ee].push({start:Ot,end:Ar}))}rt&&!Ie.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Oe=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Oe.video&&Oe.video.updating||Oe.audio&&Oe.audio.updating)return;var Ee=this._mediaSource.duration,Ie=this._pendingMediaDuration;Ie>0&&(isNaN(Ee)||Ie>Ee)&&(c.v(this.TAG,"Update MediaSource duration from ".concat(Ee," to ").concat(Ie)),this._mediaSource.duration=Ie),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Oe in this._pendingRemoveRanges){if(!this._sourceBuffers[Oe]||this._sourceBuffers[Oe].updating)continue;for(var Ee=this._sourceBuffers[Oe],Ie=this._pendingRemoveRanges[Oe];Ie.length&&!Ee.updating;){var Ye=Ie.shift();Ee.remove(Ye.start,Ye.end)}}}},{key:"_doAppendSegments",value:function(){var Oe=this._pendingSegments;for(var Ee in Oe){if(!this._sourceBuffers[Ee]||this._sourceBuffers[Ee].updating)continue;if(Oe[Ee].length>0){var Ie=Oe[Ee].shift();if(Ie.timestampOffset){var Ye=this._sourceBuffers[Ee].timestampOffset,rt=Ie.timestampOffset/1e3,ut=Math.abs(Ye-rt);ut>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(Ye," to ").concat(rt)),this._sourceBuffers[Ee].timestampOffset=rt),delete Ie.timestampOffset}if(!Ie.data||Ie.data.byteLength===0)continue;try{this._sourceBuffers[Ee].appendBuffer(Ie.data),this._isBufferFull=!1,Ee==="video"&&Ie.hasOwnProperty("info")&&this._idrList.appendArray(Ie.info.syncPoints)}catch(Ot){this._pendingSegments[Ee].unshift(Ie),Ot.code===22?(this._isBufferFull||this._emitter.emit(or.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,Ot.message),this._emitter.emit(or.ERROR,{code:Ot.code,msg:Ot.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 Oe=this._pendingSourceBufferInit;Oe.length;){var Ee=Oe.shift();this.appendInitSegment(Ee,!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 Oe=this._pendingSegments;return Oe.video.length>0||Oe.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Oe=this._pendingRemoveRanges;return Oe.video.length>0||Oe.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(Oe){c.e(this.TAG,"SourceBuffer Error: ".concat(Oe))}}]),Ft}(),ir=Zr,dr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},qt={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:Me.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Me.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Me.CODEC_UNSUPPORTED},Ht=function(){function Ft(bt,Oe){if(Object(_.a)(this,Ft),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new m.a,this._config=Q(),typeof Oe=="object"&&Object.assign(this._config,Oe),bt.type.toLowerCase()!=="flv")throw new t("FlvPlayer requires an flv MediaDataSource input!");bt.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=bt,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 Ee=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(Ee||x.msedge||x.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(E.a)(Ft,[{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(Oe,Ee){var Ie=this;Oe===ve.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Ie._emitter.emit(ve.MEDIA_INFO,Ie.mediaInfo)}):Oe===ve.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Ie._emitter.emit(ve.STATISTICS_INFO,Ie.statisticsInfo)})),this._emitter.addListener(Oe,Ee)}},{key:"off",value:function(Oe,Ee){this._emitter.removeListener(Oe,Ee)}},{key:"attachMediaElement",value:function(Oe){var Ee=this;if(this._mediaElement=Oe,Oe.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Oe.addEventListener("seeking",this.e.onvSeeking),Oe.addEventListener("canplay",this.e.onvCanPlay),Oe.addEventListener("stalled",this.e.onvStalled),Oe.addEventListener("progress",this.e.onvProgress),this._msectl=new ir(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(){Ee._mseSourceOpened=!0,Ee._hasPendingLoad&&(Ee._hasPendingLoad=!1,Ee.load())}),this._msectl.on(or.ERROR,function(Ie){Ee._emitter.emit(ve.ERROR,dr.MEDIA_ERROR,qt.MEDIA_MSE_ERROR,Ie)}),this._msectl.attachMediaElement(Oe),this._pendingSeekTime!=null)try{Oe.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ie){}}},{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 Oe=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ot(this._mediaDataSource,this._config),this._transmuxer.on(J.INIT_SEGMENT,function(Ee,Ie){Oe._msectl.appendInitSegment(Ie)}),this._transmuxer.on(J.MEDIA_SEGMENT,function(Ee,Ie){if(Oe._msectl.appendMediaSegment(Ie),Oe._config.lazyLoad&&!Oe._config.isLive){var Ye=Oe._mediaElement.currentTime;Ie.info.endDts>=(Ye+Oe._config.lazyLoadMaxDuration)*1e3&&(Oe._progressChecker==null&&(c.v(Oe.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Oe._suspendTransmuxer()))}}),this._transmuxer.on(J.LOADING_COMPLETE,function(){Oe._msectl.endOfStream(),Oe._emitter.emit(ve.LOADING_COMPLETE)}),this._transmuxer.on(J.RECOVERED_EARLY_EOF,function(){Oe._emitter.emit(ve.RECOVERED_EARLY_EOF)}),this._transmuxer.on(J.IO_ERROR,function(Ee,Ie){Oe._emitter.emit(ve.ERROR,dr.NETWORK_ERROR,Ee,Ie)}),this._transmuxer.on(J.DEMUX_ERROR,function(Ee,Ie){Oe._emitter.emit(ve.ERROR,dr.MEDIA_ERROR,Ee,{code:-1,msg:Ie})}),this._transmuxer.on(J.MEDIA_INFO,function(Ee){Oe._mediaInfo=Ee,Oe._emitter.emit(ve.MEDIA_INFO,Object.assign({},Ee))}),this._transmuxer.on(J.METADATA_ARRIVED,function(Ee){Oe._emitter.emit(ve.METADATA_ARRIVED,Ee)}),this._transmuxer.on(J.SCRIPTDATA_ARRIVED,function(Ee){Oe._emitter.emit(ve.SCRIPTDATA_ARRIVED,Ee)}),this._transmuxer.on(J.STATISTICS_INFO,function(Ee){Oe._statisticsInfo=Oe._fillStatisticsInfo(Ee),Oe._emitter.emit(ve.STATISTICS_INFO,Object.assign({},Oe._statisticsInfo))}),this._transmuxer.on(J.RECOMMEND_SEEKPOINT,function(Ee){Oe._mediaElement&&!Oe._config.accurateSeek&&(Oe._requestSetTime=!0,Oe._mediaElement.currentTime=Ee/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(Oe){this._mediaElement.volume=Oe}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Oe){this._mediaElement.muted=Oe}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Oe){this._mediaElement?this._internalSeek(Oe):this._pendingSeekTime=Oe}},{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(Oe){if(Oe.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Oe;var Ee=!0,Ie=0,Ye=0;if(this._mediaElement.getVideoPlaybackQuality){var rt=this._mediaElement.getVideoPlaybackQuality();Ie=rt.totalVideoFrames,Ye=rt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Ie=this._mediaElement.webkitDecodedFrameCount,Ye=this._mediaElement.webkitDroppedFrameCount):Ee=!1;return Ee&&(Oe.decodedFrames=Ie,Oe.droppedFrames=Ye),Oe}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Oe=this._mediaElement.buffered,Ee=this._mediaElement.currentTime,Ie=0,Ye=0,rt=0;rt<Oe.length;rt++){var ut=Oe.start(rt),Ot=Oe.end(rt);if(ut<=Ee&&Ee<Ot){Ie=ut,Ye=Ot;break}}Ye>=Ee+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 Oe=this._mediaElement.currentTime,Ee=this._mediaElement.buffered,Ie=!1,Ye=0;Ye<Ee.length;Ye++){var rt=Ee.start(Ye),ut=Ee.end(Ye);if(Oe>=rt&&Oe<ut){Oe>=ut-this._config.lazyLoadRecoverDuration&&(Ie=!0);break}}Ie&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Ie&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Oe){for(var Ee=this._mediaElement.buffered,Ie=0;Ie<Ee.length;Ie++){var Ye=Ee.start(Ie),rt=Ee.end(Ie);if(Oe>=Ye&&Oe<rt)return!0}return!1}},{key:"_internalSeek",value:function(Oe){var Ee=this._isTimepointBuffered(Oe),Ie=!1,Ye=0;if(Oe<1&&this._mediaElement.buffered.length>0){var rt=this._mediaElement.buffered.start(0);(rt<1&&Oe<rt||x.safari)&&(Ie=!0,Ye=x.safari?.1:rt)}if(Ie)this._requestSetTime=!0,this._mediaElement.currentTime=Ye;else if(Ee){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Oe;else{var ut=this._msectl.getNearestKeyframe(Math.floor(Oe*1e3));this._requestSetTime=!0,ut!=null?this._mediaElement.currentTime=ut.dts/1e3:this._mediaElement.currentTime=Oe}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Oe),this._transmuxer.seek(Math.floor(Oe*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Oe)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Oe=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Oe)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Oe),this._transmuxer.seek(Math.floor(Oe*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Oe))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Oe){var Ee=this._mediaElement;if(Oe||!this._receivedCanPlay||Ee.readyState<2){var Ie=Ee.buffered;Ie.length>0&&Ee.currentTime<Ie.start(0)&&(c.w(this.TAG,"Playback seems stuck at ".concat(Ee.currentTime,", seek to ").concat(Ie.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Ie.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Oe){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Oe){var Ee=this._mediaElement.currentTime,Ie=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Ee<1&&Ie.length>0){var Ye=Ie.start(0);if(Ye<1&&Ee<Ye||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.safari?.1:Ye;return}}if(this._isTimepointBuffered(Ee)){if(this._alwaysSeekKeyframe){var rt=this._msectl.getNearestKeyframe(Math.floor(Ee*1e3));rt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=rt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Ee,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Oe){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Oe){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Oe){this._checkAndResumeStuckPlayback()}}]),Ft}(),lt=Ht,Hr=function(){function Ft(bt,Oe){if(Object(_.a)(this,Ft),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new m.a,this._config=Q(),typeof Oe=="object"&&Object.assign(this._config,Oe),bt.type.toLowerCase()==="flv")throw new t("NativePlayer does't support flv MediaDataSource input!");if(bt.hasOwnProperty("segments"))throw new t("NativePlayer(".concat(bt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=bt,this._mediaElement=null}return Object(E.a)(Ft,[{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(Oe,Ee){var Ie=this;Oe===ve.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Ie._emitter.emit(ve.MEDIA_INFO,Ie.mediaInfo)}):Oe===ve.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Ie._emitter.emit(ve.STATISTICS_INFO,Ie.statisticsInfo)})),this._emitter.addListener(Oe,Ee)}},{key:"off",value:function(Oe,Ee){this._emitter.removeListener(Oe,Ee)}},{key:"attachMediaElement",value:function(Oe){if(this._mediaElement=Oe,Oe.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Oe.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ee){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Oe){this._mediaElement.volume=Oe}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Oe){this._mediaElement.muted=Oe}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Oe){this._mediaElement?this._mediaElement.currentTime=Oe:this._pendingSeekTime=Oe}},{key:"mediaInfo",get:function(){var Oe=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Ee={mimeType:Oe+this._mediaDataSource.type};return this._mediaElement&&(Ee.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Ee.width=this._mediaElement.videoWidth,Ee.height=this._mediaElement.videoHeight)),Ee}},{key:"statisticsInfo",get:function(){var Oe={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Oe;var Ee=!0,Ie=0,Ye=0;if(this._mediaElement.getVideoPlaybackQuality){var rt=this._mediaElement.getVideoPlaybackQuality();Ie=rt.totalVideoFrames,Ye=rt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Ie=this._mediaElement.webkitDecodedFrameCount,Ye=this._mediaElement.webkitDroppedFrameCount):Ee=!1;return Ee&&(Oe.decodedFrames=Ie,Oe.droppedFrames=Ye),Oe}},{key:"_onvLoadedMetadata",value:function(Oe){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(ve.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(ve.STATISTICS_INFO,this.statisticsInfo)}}]),Ft}(),dn=Hr;A.install();function Nn(Ft,bt){var Oe=Ft;if(Oe==null||typeof Oe!="object")throw new t("MediaDataSource must be an javascript object!");if(!Oe.hasOwnProperty("type"))throw new t("MediaDataSource must has type field to indicate video file type!");switch(Oe.type){case"flv":return new lt(Oe,bt);default:return new dn(Oe,bt)}}function Wn(){return le.supportMSEH264Playback()}function gi(){return le.getFeatureList()}var yn={};yn.createPlayer=Nn,yn.isSupported=Wn,yn.getFeatureList=gi,yn.BaseLoader=h,yn.LoaderStatus=s,yn.LoaderErrors=u,yn.Events=ve,yn.ErrorTypes=dr,yn.ErrorDetails=qt,yn.FlvPlayer=lt,yn.NativePlayer=dn,yn.LoggingControl=_e,Object.defineProperty(yn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Mn=B.a=yn},GVMX:function(H,B,d){var _=d("JEkh"),E=_.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 _(x){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(S){return typeof S}:_=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},_(x)}Object.defineProperty(B,"__esModule",{value:!0}),B.isMac=s,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||_(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 O in x)if(Object.prototype.hasOwnProperty.call(x,O)){var I=b?Object.getOwnPropertyDescriptor(x,O):null;I&&(I.get||I.set)?Object.defineProperty(S,O,I):S[O]=x[O]}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 l=document.createElement("div");e.appendChild(l);var t=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),n=t!=0}catch(x){E.Error("Scrollbar test exception: "+x)}var a=n;B.hasScrollbarGutter=a;function s(){return navigator&&!!/mac/i.exec(navigator.platform)}function u(){return navigator&&!!/win/i.exec(navigator.platform)}function h(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function p(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function 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 _=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(O){if(g.hasValue(O)){var I,L=g.getItemLayout(O);if(T&&e(b,L))return;I=n(L,O,!0),C.initProps(I,{shape:{points:L.ends}},p,O),l(I,g,O,x),y.add(I),g.setItemGraphicEl(O,I)}}).update(function(O,I){var L=v.getItemGraphicEl(I);if(!g.hasValue(O)){y.remove(L);return}var N=g.getItemLayout(O);if(T&&e(b,N)){y.remove(L);return}L?C.updateProps(L,{shape:{points:N.ends}},p,O):L=n(N,O),l(L,g,O,x),y.add(L),g.setItemGraphicEl(O,L)}).remove(function(O){var I=v.getItemGraphicEl(O);I&&y.remove(I)}).execute(),this._data=g},_renderLarge:function(p){this._clear(),s(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),l(T,v,x,y),T.incremental=!0,this.group.add(T)}},_incrementalRenderLarge:function(p,g){s(g,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:_.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 l(p,g,v,y){var x=g.getItemModel(v),T=x.getModel(f),S=g.getItemVisual(v,"color"),b=g.getItemVisual(v,"borderColor")||S,O=T.getItemStyle(o);p.useStyle(O),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 _.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 s(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 _=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},_.inherits(w,C),_.mixin(w,A);var m=w;H.exports=m},GrNh:function(H,B,d){var _=d("bYtY"),E=d("IwbS"),C=d("6Ic6");function A(r,i,n,e){var l=i.getData(),t=this.dataIndex,a=l.getName(t),s=i.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:r,name:a,seriesId:i.id}),l.each(function(u){w(l.getItemGraphicEl(u),l.getItemLayout(u),i.isSelected(l.getName(u)),s,n)})}function w(r,i,n,e,l){var t=(i.startAngle+i.endAngle)/2,a=Math.cos(t),s=Math.sin(t),u=n?e:0,h=[a*u,s*u];l?r.animate().when(200,{position:h}).start("bounceOut"):r.attr("position",h)}function m(r,i){E.Group.call(this);var n=new E.Sector({z2:2}),e=new E.Polyline,l=new E.Text;this.add(n),this.add(e),this.add(l),this.updateData(r,i,!0)}var f=m.prototype;f.updateData=function(r,i,n){var e=this.childAt(0),l=this.childAt(1),t=this.childAt(2),a=r.hostModel,s=r.getItemModel(i),u=r.getItemLayout(i),h=_.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(_.defaults({lineJoin:"bevel",fill:v},s.getModel("itemStyle").getItemStyle())),e.hoverStyle=s.getModel("emphasis.itemStyle").getItemStyle();var y=s.getShallow("cursor");y&&e.attr("cursor",y),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()&&s.get("hoverAnimation");S==="emphasis"?(l.ignore=l.hoverIgnore,t.ignore=t.hoverIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r+a.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.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),l=this.childAt(2),t=r.hostModel,a=r.getItemModel(i),s=r.getItemLayout(i),u=s.label,h=r.getItemVisual(i,"color");if(!u||isNaN(u.x)||isNaN(u.y)){l.ignore=l.normalIgnore=l.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var p={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},g={x:u.x,y:u.y};n?(E.updateProps(e,{shape:p},t,i),E.updateProps(l,{style:g},t,i)):(e.attr({shape:p}),l.attr({style:g})),l.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(l.style,l.hoverStyle={},v,y,{labelFetcher:r.hostModel,labelDataIndex:i,defaultText:u.text,autoColor:h,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:r.getItemVisual(i,"opacity")}),l.ignore=l.normalIgnore=!v.get("show"),l.hoverIgnore=!y.get("show"),e.ignore=e.normalIgnore=!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})},_.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 l=r.getData(),t=this._data,a=this.group,s=i.get("animation"),u=!t,h=r.get("animationType"),p=r.get("animationTypeUpdate"),g=_.curry(A,this.uid,r,s,n),v=r.get("selectedMode");if(l.diff(t).add(function(b){var O=new m(l,b);u&&h!=="scale"&&O.eachChild(function(I){I.stopAnimation(!0)}),v&&O.on("click",g),l.setItemGraphicEl(b,O),a.add(O)}).update(function(b,O){var I=t.getItemGraphicEl(O);!u&&p!=="transition"&&I.eachChild(function(L){L.stopAnimation(!0)}),I.updateData(l,b),I.off("click"),v&&I.on("click",g),a.add(I),l.setItemGraphicEl(b,I)}).remove(function(b){var O=t.getItemGraphicEl(b);a.remove(O)}).execute(),s&&l.count()>0&&(u?h!=="scale":p!=="transition")){for(var y=l.getItemLayout(0),x=1;isNaN(y.startAngle)&&x<l.count();++x)y=l.getItemLayout(x);var T=Math.max(n.getWidth(),n.getHeight())/2,S=_.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=l},dispose:function(){},_createClipPath:function(r,i,n,e,l,t,a,s){var u=new E.Sector({shape:{cx:r,cy:i,r0:0,r:n,startAngle:e,endAngle:e,clockwise:l}}),h=s?E.initProps:E.updateProps;return h(u,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},a,t),u},containPoint:function(r,i){var n=i.getData(),e=n.getItemLayout(0);if(e){var l=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(l*l+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},Gytx:function(H,B){H.exports=function(_,E,C,A){var w=C?C.call(A,_,E):void 0;if(w!==void 0)return!!w;if(_===E)return!0;if(typeof _!="object"||!_||typeof E!="object"||!E)return!1;var m=Object.keys(_),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=_[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 _=d("pVnL"),E=d.n(_),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),l=d("4IlW");function t(j){var F=j.pageXOffset,U="scrollLeft";if(typeof F!="number"){var K=j.document;F=K.documentElement[U],typeof F!="number"&&(F=K.body[U])}return F}function a(j){var F,U,K=j.ownerDocument,V=K.body,z=K&&K.documentElement,Q=j.getBoundingClientRect();return F=Q.left,U=Q.top,F-=z.clientLeft||V.clientLeft||0,U-=z.clientTop||V.clientTop||0,{left:F,top:U}}function s(j){var F=a(j),U=j.ownerDocument,K=U.defaultView||U.parentWindow;return F.left+=t(K),F.left}function u(j){var F=h();return function(){var K=Object(r.a)(j),V;if(F){var z=Object(r.a)(this).constructor;V=Reflect.construct(K,arguments,z)}else V=K.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(j){return!1}}var p=function(j){Object(c.a)(U,j);var F=u(U);function U(){var K;return Object(m.a)(this,U),K=F.apply(this,arguments),K.onHover=function(V){var z=K.props,Q=z.onHover,Z=z.index;Q(V,Z)},K.onClick=function(V){var z=K.props,Q=z.onClick,Z=z.index;Q(V,Z)},K.onKeyDown=function(V){var z=K.props,Q=z.onClick,Z=z.index;V.keyCode===13&&Q(V,Z)},K}return Object(f.a)(U,[{key:"getClassName",value:function(){var V=this.props,z=V.prefixCls,Q=V.index,Z=V.value,le=V.allowHalf,ne=V.focused,ve=Q+1,xe=z;return Z===0&&Q===0&&ne?xe+=" ".concat(z,"-focused"):le&&Z+.5>=ve&&Z<ve?(xe+=" ".concat(z,"-half ").concat(z,"-active"),ne&&(xe+=" ".concat(z,"-focused"))):(xe+=ve<=Z?" ".concat(z,"-full"):" ".concat(z,"-zero"),ve===Z&&ne&&(xe+=" ".concat(z,"-focused"))),xe}},{key:"render",value:function(){var V=this.onHover,z=this.onClick,Q=this.onKeyDown,Z=this.props,le=Z.disabled,ne=Z.prefixCls,ve=Z.character,xe=Z.characterRender,_e=Z.index,Be=Z.count,me=Z.value,Fe=typeof ve=="function"?ve(this.props):ve,ie=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:le?null:z,onKeyDown:le?null:Q,onMouseMove:le?null:V,role:"radio","aria-checked":me>_e?"true":"false","aria-posinset":_e+1,"aria-setsize":Be,tabIndex:le?-1:0},A.a.createElement("div",{className:"".concat(ne,"-first")},Fe),A.a.createElement("div",{className:"".concat(ne,"-second")},Fe)));return xe&&(ie=xe(ie,this.props)),ie}}]),U}(A.a.Component);function g(j,F){var U=Object.keys(j);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(j);F&&(K=K.filter(function(V){return Object.getOwnPropertyDescriptor(j,V).enumerable})),U.push.apply(U,K)}return U}function v(j){for(var F=1;F<arguments.length;F++){var U=arguments[F]!=null?arguments[F]:{};F%2?g(Object(U),!0).forEach(function(K){Object(w.a)(j,K,U[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(U)):g(Object(U)).forEach(function(K){Object.defineProperty(j,K,Object.getOwnPropertyDescriptor(U,K))})}return j}function y(j){var F=x();return function(){var K=Object(r.a)(j),V;if(F){var z=Object(r.a)(this).constructor;V=Reflect.construct(K,arguments,z)}else V=K.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(j){return!1}}function T(){}var S=function(j){Object(c.a)(U,j);var F=y(U);function U(K){var V;Object(m.a)(this,U),V=F.call(this,K),V.onHover=function(Q,Z){var le=V.props.onHoverChange,ne=V.getStarValue(Z,Q.pageX),ve=V.state.cleanedValue;ne!==ve&&V.setState({hoverValue:ne,cleanedValue:null}),le(ne)},V.onMouseLeave=function(){var Q=V.props.onHoverChange;V.setState({hoverValue:void 0,cleanedValue:null}),Q(void 0)},V.onClick=function(Q,Z){var le=V.props.allowClear,ne=V.state.value,ve=V.getStarValue(Z,Q.pageX),xe=!1;le&&(xe=ve===ne),V.onMouseLeave(),V.changeValue(xe?0:ve),V.setState({cleanedValue:xe?ve:null})},V.onFocus=function(){var Q=V.props.onFocus;V.setState({focused:!0}),Q&&Q()},V.onBlur=function(){var Q=V.props.onBlur;V.setState({focused:!1}),Q&&Q()},V.onKeyDown=function(Q){var Z=Q.keyCode,le=V.props,ne=le.count,ve=le.allowHalf,xe=le.onKeyDown,_e=le.direction,Be=_e==="rtl",me=V.state.value;Z===l.a.RIGHT&&me<ne&&!Be?(ve?me+=.5:me+=1,V.changeValue(me),Q.preventDefault()):Z===l.a.LEFT&&me>0&&!Be||Z===l.a.RIGHT&&me>0&&Be?(ve?me-=.5:me-=1,V.changeValue(me),Q.preventDefault()):Z===l.a.LEFT&&me<ne&&Be&&(ve?me+=.5:me+=1,V.changeValue(me),Q.preventDefault()),xe&&xe(Q)},V.saveRef=function(Q){return function(Z){V.stars[Q]=Z}},V.saveRate=function(Q){V.rate=Q};var z=K.value;return z===void 0&&(z=K.defaultValue),V.stars={},V.state={value:z,focused:!1,cleanedValue:null},V}return Object(f.a)(U,[{key:"componentDidMount",value:function(){var V=this.props,z=V.autoFocus,Q=V.disabled;z&&!Q&&this.focus()}},{key:"getStarDOM",value:function(V){return Object(i.a)(this.stars[V])}},{key:"getStarValue",value:function(V,z){var Q=this.props,Z=Q.allowHalf,le=Q.direction,ne=le==="rtl",ve=V+1;if(Z){var xe=this.getStarDOM(V),_e=s(xe),Be=xe.clientWidth;(ne&&z-_e>Be/2||!ne&&z-_e<Be/2)&&(ve-=.5)}return ve}},{key:"focus",value:function(){var V=this.props.disabled;V||this.rate.focus()}},{key:"blur",value:function(){var V=this.props.disabled;V||this.rate.blur()}},{key:"changeValue",value:function(V){var z=this.props.onChange;"value"in this.props||this.setState({value:V}),z(V)}},{key:"render",value:function(){for(var V=this.props,z=V.count,Q=V.allowHalf,Z=V.style,le=V.prefixCls,ne=V.disabled,ve=V.className,xe=V.character,_e=V.characterRender,Be=V.tabIndex,me=V.direction,Fe=this.state,ie=Fe.value,te=Fe.hoverValue,Ge=Fe.focused,oe=[],Y=ne?"".concat(le,"-disabled"):"",G=0;G<z;G+=1)oe.push(A.a.createElement(p,{ref:this.saveRef(G),index:G,count:z,disabled:ne,prefixCls:"".concat(le,"-star"),allowHalf:Q,value:te===void 0?ie:te,onClick:this.onClick,onHover:this.onHover,key:G,character:xe,characterRender:_e,focused:Ge}));var X=e()(le,Y,ve,Object(w.a)({},"".concat(le,"-rtl"),me==="rtl"));return A.a.createElement("ul",{className:X,style:Z,onMouseLeave:ne?null:this.onMouseLeave,tabIndex:ne?-1:Be,onFocus:ne?null:this.onFocus,onBlur:ne?null:this.onBlur,onKeyDown:ne?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},oe)}}],[{key:"getDerivedStateFromProps",value:function(V,z){return"value"in V&&V.value!==void 0?v(v({},z),{},{value:V.value}):z}}]),U}(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,O=b,I=d("Lerx"),L=d.n(I),N=d("3S7+"),D=d("H84U"),R=function(j,F){var U={};for(var K in j)Object.prototype.hasOwnProperty.call(j,K)&&F.indexOf(K)<0&&(U[K]=j[K]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,K=Object.getOwnPropertySymbols(j);V<K.length;V++)F.indexOf(K[V])<0&&Object.prototype.propertyIsEnumerable.call(j,K[V])&&(U[K[V]]=j[K[V]]);return U},k=C.forwardRef(function(j,F){var U=j.prefixCls,K=j.tooltips,V=R(j,["prefixCls","tooltips"]),z=function(xe,_e){var Be=_e.index;return K?C.createElement(N.a,{title:K[Be]},xe):xe},Q=C.useContext(D.b),Z=Q.getPrefixCls,le=Q.direction,ne=Z("rate",U);return C.createElement(O,E()({ref:F,characterRender:z},V,{prefixCls:ne,direction:le}))});k.displayName="Rate",k.defaultProps={character:C.createElement(L.a,null)};var M=B.a=k},H6uX:function(H,B){var d=Array.prototype.slice,_=function(m){this._$handlers={},this._$eventProcessor=m};_.prototype={constructor:_,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 l=f[e];if(c&&c.filter&&l.query!=null&&!c.filter(m,l.query)){e++;continue}switch(r){case 1:l.h.call(i);break;case 2:l.h.call(i,o[1]);break;case 3:l.h.call(i,o[1],o[2]);break;default:l.h.apply(i,o);break}l.one?(f.splice(e,1),n--):e++}}return c&&c.afterTrigger&&c.afterTrigger(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},l=i[m].length-1,t=i[m][l];return t&&t.callAtLast?i[m].splice(l,0,e):i[m].push(e),w}var A=_;H.exports=A},H7XF:function(H,B,d){"use strict";B.byteLength=c,B.toByteArray=r,B.fromByteArray=e;for(var _=[],E=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,m=A.length;w<m;++w)_[w]=A[w],E[A.charCodeAt(w)]=w;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function f(l){var t=l.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=t);var s=a===t?0:4-a%4;return[a,s]}function c(l){var t=f(l),a=t[0],s=t[1];return(a+s)*3/4-s}function o(l,t,a){return(t+a)*3/4-a}function r(l){var t,a=f(l),s=a[0],u=a[1],h=new C(o(l,s,u)),p=0,g=u>0?s-4:s,v;for(v=0;v<g;v+=4)t=E[l.charCodeAt(v)]<<18|E[l.charCodeAt(v+1)]<<12|E[l.charCodeAt(v+2)]<<6|E[l.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=E[l.charCodeAt(v)]<<2|E[l.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=E[l.charCodeAt(v)]<<10|E[l.charCodeAt(v+1)]<<4|E[l.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(l){return _[l>>18&63]+_[l>>12&63]+_[l>>6&63]+_[l&63]}function n(l,t,a){for(var s,u=[],h=t;h<a;h+=3)s=(l[h]<<16&16711680)+(l[h+1]<<8&65280)+(l[h+2]&255),u.push(i(s));return u.join("")}function e(l){for(var t,a=l.length,s=a%3,u=[],h=16383,p=0,g=a-s;p<g;p+=h)u.push(n(l,p,p+h>g?g:p+h));return s===1?(t=l[a-1],u.push(_[t>>2]+_[t<<4&63]+"==")):s===2&&(t=(l[a-2]<<8)+l[a-1],u.push(_[t>>10]+_[t>>4&63]+_[t<<2&63]+"=")),u.join("")}},HBhm:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},HDXh:function(H,B,d){"use strict";(function(_){/*!
|
|
|
* 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=_.TYPED_ARRAY_SUPPORT!==void 0?_.TYPED_ARRAY_SUPPORT:w(),B.kMaxLength=m();function w(){try{var oe=new Uint8Array(1);return oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},oe.foo()===42&&typeof oe.subarray=="function"&&oe.subarray(1,1).byteLength===0}catch(Y){return!1}}function m(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(oe,Y){if(m()<Y)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(oe=new Uint8Array(Y),oe.__proto__=c.prototype):(oe===null&&(oe=new c(Y)),oe.length=Y),oe}function c(oe,Y,G){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(oe,Y,G);if(typeof oe=="number"){if(typeof Y=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,oe)}return o(this,oe,Y,G)}c.poolSize=8192,c._augment=function(oe){return oe.__proto__=c.prototype,oe};function o(oe,Y,G,X){if(typeof Y=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Y instanceof ArrayBuffer?t(oe,Y,G,X):typeof Y=="string"?e(oe,Y,G):a(oe,Y)}c.from=function(oe,Y,G){return o(null,oe,Y,G)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function r(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be a number');if(oe<0)throw new RangeError('"size" argument must not be negative')}function i(oe,Y,G,X){return r(Y),Y<=0?f(oe,Y):G!==void 0?typeof X=="string"?f(oe,Y).fill(G,X):f(oe,Y).fill(G):f(oe,Y)}c.alloc=function(oe,Y,G){return i(null,oe,Y,G)};function n(oe,Y){if(r(Y),oe=f(oe,Y<0?0:s(Y)|0),!c.TYPED_ARRAY_SUPPORT)for(var G=0;G<Y;++G)oe[G]=0;return oe}c.allocUnsafe=function(oe){return n(null,oe)},c.allocUnsafeSlow=function(oe){return n(null,oe)};function e(oe,Y,G){if((typeof G!="string"||G==="")&&(G="utf8"),!c.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var X=h(Y,G)|0;oe=f(oe,X);var fe=oe.write(Y,G);return fe!==X&&(oe=oe.slice(0,fe)),oe}function l(oe,Y){var G=Y.length<0?0:s(Y.length)|0;oe=f(oe,G);for(var X=0;X<G;X+=1)oe[X]=Y[X]&255;return oe}function t(oe,Y,G,X){if(Y.byteLength,G<0||Y.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Y.byteLength<G+(X||0))throw new RangeError("'length' is out of bounds");return G===void 0&&X===void 0?Y=new Uint8Array(Y):X===void 0?Y=new Uint8Array(Y,G):Y=new Uint8Array(Y,G,X),c.TYPED_ARRAY_SUPPORT?(oe=Y,oe.__proto__=c.prototype):oe=l(oe,Y),oe}function a(oe,Y){if(c.isBuffer(Y)){var G=s(Y.length)|0;return oe=f(oe,G),oe.length===0||Y.copy(oe,0,0,G),oe}if(Y){if(typeof ArrayBuffer!="undefined"&&Y.buffer instanceof ArrayBuffer||"length"in Y)return typeof Y.length!="number"||Ge(Y.length)?f(oe,0):l(oe,Y);if(Y.type==="Buffer"&&A(Y.data))return l(oe,Y.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(oe){if(oe>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return oe|0}function u(oe){return+oe!=oe&&(oe=0),c.alloc(+oe)}c.isBuffer=function(Y){return!!(Y!=null&&Y._isBuffer)},c.compare=function(Y,G){if(!c.isBuffer(Y)||!c.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Y===G)return 0;for(var X=Y.length,fe=G.length,de=0,Ce=Math.min(X,fe);de<Ce;++de)if(Y[de]!==G[de]){X=Y[de],fe=G[de];break}return X<fe?-1:fe<X?1:0},c.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(Y,G){if(!A(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return c.alloc(0);var X;if(G===void 0)for(G=0,X=0;X<Y.length;++X)G+=Y[X].length;var fe=c.allocUnsafe(G),de=0;for(X=0;X<Y.length;++X){var Ce=Y[X];if(!c.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(fe,de),de+=Ce.length}return fe};function h(oe,Y){if(c.isBuffer(oe))return oe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(oe)||oe instanceof ArrayBuffer))return oe.byteLength;typeof oe!="string"&&(oe=""+oe);var G=oe.length;if(G===0)return 0;for(var X=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return Be(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return ie(oe).length;default:if(X)return Be(oe).length;Y=(""+Y).toLowerCase(),X=!0}}c.byteLength=h;function p(oe,Y,G){var X=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Y>>>=0,G<=Y)return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return j(this,Y,G);case"utf8":case"utf-8":return N(this,Y,G);case"ascii":return k(this,Y,G);case"latin1":case"binary":return M(this,Y,G);case"base64":return L(this,Y,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Y,G);default:if(X)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),X=!0}}c.prototype._isBuffer=!0;function g(oe,Y,G){var X=oe[Y];oe[Y]=oe[G],oe[G]=X}c.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Y;G+=2)g(this,G,G+1);return this},c.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Y;G+=4)g(this,G,G+3),g(this,G+1,G+2);return this},c.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Y;G+=8)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 Y=this.length|0;return Y===0?"":arguments.length===0?N(this,0,Y):p.apply(this,arguments)},c.prototype.equals=function(Y){if(!c.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:c.compare(this,Y)===0},c.prototype.inspect=function(){var Y="",G=B.INSPECT_MAX_BYTES;return this.length>0&&(Y=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Y+=" ... ")),"<Buffer "+Y+">"},c.prototype.compare=function(Y,G,X,fe,de){if(!c.isBuffer(Y))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),X===void 0&&(X=Y?Y.length:0),fe===void 0&&(fe=0),de===void 0&&(de=this.length),G<0||X>Y.length||fe<0||de>this.length)throw new RangeError("out of range index");if(fe>=de&&G>=X)return 0;if(fe>=de)return-1;if(G>=X)return 1;if(G>>>=0,X>>>=0,fe>>>=0,de>>>=0,this===Y)return 0;for(var Ce=de-fe,Me=X-G,ue=Math.min(Ce,Me),Ae=this.slice(fe,de),Te=Y.slice(G,X),Je=0;Je<ue;++Je)if(Ae[Je]!==Te[Je]){Ce=Ae[Je],Me=Te[Je];break}return Ce<Me?-1:Me<Ce?1:0};function v(oe,Y,G,X,fe){if(oe.length===0)return-1;if(typeof G=="string"?(X=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=fe?0:oe.length-1),G<0&&(G=oe.length+G),G>=oe.length){if(fe)return-1;G=oe.length-1}else if(G<0)if(fe)G=0;else return-1;if(typeof Y=="string"&&(Y=c.from(Y,X)),c.isBuffer(Y))return Y.length===0?-1:y(oe,Y,G,X,fe);if(typeof Y=="number")return Y=Y&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(oe,Y,G):Uint8Array.prototype.lastIndexOf.call(oe,Y,G):y(oe,[Y],G,X,fe);throw new TypeError("val must be string, number or Buffer")}function y(oe,Y,G,X,fe){var de=1,Ce=oe.length,Me=Y.length;if(X!==void 0&&(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(oe.length<2||Y.length<2)return-1;de=2,Ce/=2,Me/=2,G/=2}function ue(qe,Re){return de===1?qe[Re]:qe.readUInt16BE(Re*de)}var Ae;if(fe){var Te=-1;for(Ae=G;Ae<Ce;Ae++)if(ue(oe,Ae)===ue(Y,Te===-1?0:Ae-Te)){if(Te===-1&&(Te=Ae),Ae-Te+1===Me)return Te*de}else Te!==-1&&(Ae-=Ae-Te),Te=-1}else for(G+Me>Ce&&(G=Ce-Me),Ae=G;Ae>=0;Ae--){for(var Je=!0,At=0;At<Me;At++)if(ue(oe,Ae+At)!==ue(Y,At)){Je=!1;break}if(Je)return Ae}return-1}c.prototype.includes=function(Y,G,X){return this.indexOf(Y,G,X)!==-1},c.prototype.indexOf=function(Y,G,X){return v(this,Y,G,X,!0)},c.prototype.lastIndexOf=function(Y,G,X){return v(this,Y,G,X,!1)};function x(oe,Y,G,X){G=Number(G)||0;var fe=oe.length-G;X?(X=Number(X),X>fe&&(X=fe)):X=fe;var de=Y.length;if(de%2!==0)throw new TypeError("Invalid hex string");X>de/2&&(X=de/2);for(var Ce=0;Ce<X;++Ce){var Me=parseInt(Y.substr(Ce*2,2),16);if(isNaN(Me))return Ce;oe[G+Ce]=Me}return Ce}function T(oe,Y,G,X){return te(Be(Y,oe.length-G),oe,G,X)}function S(oe,Y,G,X){return te(me(Y),oe,G,X)}function b(oe,Y,G,X){return S(oe,Y,G,X)}function O(oe,Y,G,X){return te(ie(Y),oe,G,X)}function I(oe,Y,G,X){return te(Fe(Y,oe.length-G),oe,G,X)}c.prototype.write=function(Y,G,X,fe){if(G===void 0)fe="utf8",X=this.length,G=0;else if(X===void 0&&typeof G=="string")fe=G,X=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(X)?(X=X|0,fe===void 0&&(fe="utf8")):(fe=X,X=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var de=this.length-G;if((X===void 0||X>de)&&(X=de),Y.length>0&&(X<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ce=!1;;)switch(fe){case"hex":return x(this,Y,G,X);case"utf8":case"utf-8":return T(this,Y,G,X);case"ascii":return S(this,Y,G,X);case"latin1":case"binary":return b(this,Y,G,X);case"base64":return O(this,Y,G,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Y,G,X);default:if(Ce)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(oe,Y,G){return Y===0&&G===oe.length?E.fromByteArray(oe):E.fromByteArray(oe.slice(Y,G))}function N(oe,Y,G){G=Math.min(oe.length,G);for(var X=[],fe=Y;fe<G;){var de=oe[fe],Ce=null,Me=de>239?4:de>223?3:de>191?2:1;if(fe+Me<=G){var ue,Ae,Te,Je;switch(Me){case 1:de<128&&(Ce=de);break;case 2:ue=oe[fe+1],(ue&192)===128&&(Je=(de&31)<<6|ue&63,Je>127&&(Ce=Je));break;case 3:ue=oe[fe+1],Ae=oe[fe+2],(ue&192)===128&&(Ae&192)===128&&(Je=(de&15)<<12|(ue&63)<<6|Ae&63,Je>2047&&(Je<55296||Je>57343)&&(Ce=Je));break;case 4:ue=oe[fe+1],Ae=oe[fe+2],Te=oe[fe+3],(ue&192)===128&&(Ae&192)===128&&(Te&192)===128&&(Je=(de&15)<<18|(ue&63)<<12|(Ae&63)<<6|Te&63,Je>65535&&Je<1114112&&(Ce=Je))}}Ce===null?(Ce=65533,Me=1):Ce>65535&&(Ce-=65536,X.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),X.push(Ce),fe+=Me}return R(X)}var D=4096;function R(oe){var Y=oe.length;if(Y<=D)return String.fromCharCode.apply(String,oe);for(var G="",X=0;X<Y;)G+=String.fromCharCode.apply(String,oe.slice(X,X+=D));return G}function k(oe,Y,G){var X="";G=Math.min(oe.length,G);for(var fe=Y;fe<G;++fe)X+=String.fromCharCode(oe[fe]&127);return X}function M(oe,Y,G){var X="";G=Math.min(oe.length,G);for(var fe=Y;fe<G;++fe)X+=String.fromCharCode(oe[fe]);return X}function j(oe,Y,G){var X=oe.length;(!Y||Y<0)&&(Y=0),(!G||G<0||G>X)&&(G=X);for(var fe="",de=Y;de<G;++de)fe+=_e(oe[de]);return fe}function F(oe,Y,G){for(var X=oe.slice(Y,G),fe="",de=0;de<X.length;de+=2)fe+=String.fromCharCode(X[de]+X[de+1]*256);return fe}c.prototype.slice=function(Y,G){var X=this.length;Y=~~Y,G=G===void 0?X:~~G,Y<0?(Y+=X,Y<0&&(Y=0)):Y>X&&(Y=X),G<0?(G+=X,G<0&&(G=0)):G>X&&(G=X),G<Y&&(G=Y);var fe;if(c.TYPED_ARRAY_SUPPORT)fe=this.subarray(Y,G),fe.__proto__=c.prototype;else{var de=G-Y;fe=new c(de,void 0);for(var Ce=0;Ce<de;++Ce)fe[Ce]=this[Ce+Y]}return fe};function U(oe,Y,G){if(oe%1!==0||oe<0)throw new RangeError("offset is not uint");if(oe+Y>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=this[Y],de=1,Ce=0;++Ce<G&&(de*=256);)fe+=this[Y+Ce]*de;return fe},c.prototype.readUIntBE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=this[Y+--G],de=1;G>0&&(de*=256);)fe+=this[Y+--G]*de;return fe},c.prototype.readUInt8=function(Y,G){return G||U(Y,1,this.length),this[Y]},c.prototype.readUInt16LE=function(Y,G){return G||U(Y,2,this.length),this[Y]|this[Y+1]<<8},c.prototype.readUInt16BE=function(Y,G){return G||U(Y,2,this.length),this[Y]<<8|this[Y+1]},c.prototype.readUInt32LE=function(Y,G){return G||U(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},c.prototype.readUInt32BE=function(Y,G){return G||U(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},c.prototype.readIntLE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=this[Y],de=1,Ce=0;++Ce<G&&(de*=256);)fe+=this[Y+Ce]*de;return de*=128,fe>=de&&(fe-=Math.pow(2,8*G)),fe},c.prototype.readIntBE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=G,de=1,Ce=this[Y+--fe];fe>0&&(de*=256);)Ce+=this[Y+--fe]*de;return de*=128,Ce>=de&&(Ce-=Math.pow(2,8*G)),Ce},c.prototype.readInt8=function(Y,G){return G||U(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},c.prototype.readInt16LE=function(Y,G){G||U(Y,2,this.length);var X=this[Y]|this[Y+1]<<8;return X&32768?X|4294901760:X},c.prototype.readInt16BE=function(Y,G){G||U(Y,2,this.length);var X=this[Y+1]|this[Y]<<8;return X&32768?X|4294901760:X},c.prototype.readInt32LE=function(Y,G){return G||U(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},c.prototype.readInt32BE=function(Y,G){return G||U(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},c.prototype.readFloatLE=function(Y,G){return G||U(Y,4,this.length),C.read(this,Y,!0,23,4)},c.prototype.readFloatBE=function(Y,G){return G||U(Y,4,this.length),C.read(this,Y,!1,23,4)},c.prototype.readDoubleLE=function(Y,G){return G||U(Y,8,this.length),C.read(this,Y,!0,52,8)},c.prototype.readDoubleBE=function(Y,G){return G||U(Y,8,this.length),C.read(this,Y,!1,52,8)};function K(oe,Y,G,X,fe,de){if(!c.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>fe||Y<de)throw new RangeError('"value" argument is out of bounds');if(G+X>oe.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(Y,G,X,fe){if(Y=+Y,G=G|0,X=X|0,!fe){var de=Math.pow(2,8*X)-1;K(this,Y,G,X,de,0)}var Ce=1,Me=0;for(this[G]=Y&255;++Me<X&&(Ce*=256);)this[G+Me]=Y/Ce&255;return G+X},c.prototype.writeUIntBE=function(Y,G,X,fe){if(Y=+Y,G=G|0,X=X|0,!fe){var de=Math.pow(2,8*X)-1;K(this,Y,G,X,de,0)}var Ce=X-1,Me=1;for(this[G+Ce]=Y&255;--Ce>=0&&(Me*=256);)this[G+Ce]=Y/Me&255;return G+X},c.prototype.writeUInt8=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,1,255,0),c.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),this[G]=Y&255,G+1};function V(oe,Y,G,X){Y<0&&(Y=65535+Y+1);for(var fe=0,de=Math.min(oe.length-G,2);fe<de;++fe)oe[G+fe]=(Y&255<<8*(X?fe:1-fe))>>>(X?fe:1-fe)*8}c.prototype.writeUInt16LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},c.prototype.writeUInt16BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2};function z(oe,Y,G,X){Y<0&&(Y=4294967295+Y+1);for(var fe=0,de=Math.min(oe.length-G,4);fe<de;++fe)oe[G+fe]=Y>>>(X?fe:3-fe)*8&255}c.prototype.writeUInt32LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G+3]=Y>>>24,this[G+2]=Y>>>16,this[G+1]=Y>>>8,this[G]=Y&255):z(this,Y,G,!0),G+4},c.prototype.writeUInt32BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4},c.prototype.writeIntLE=function(Y,G,X,fe){if(Y=+Y,G=G|0,!fe){var de=Math.pow(2,8*X-1);K(this,Y,G,X,de-1,-de)}var Ce=0,Me=1,ue=0;for(this[G]=Y&255;++Ce<X&&(Me*=256);)Y<0&&ue===0&&this[G+Ce-1]!==0&&(ue=1),this[G+Ce]=(Y/Me>>0)-ue&255;return G+X},c.prototype.writeIntBE=function(Y,G,X,fe){if(Y=+Y,G=G|0,!fe){var de=Math.pow(2,8*X-1);K(this,Y,G,X,de-1,-de)}var Ce=X-1,Me=1,ue=0;for(this[G+Ce]=Y&255;--Ce>=0&&(Me*=256);)Y<0&&ue===0&&this[G+Ce+1]!==0&&(ue=1),this[G+Ce]=(Y/Me>>0)-ue&255;return G+X},c.prototype.writeInt8=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,1,127,-128),c.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),Y<0&&(Y=255+Y+1),this[G]=Y&255,G+1},c.prototype.writeInt16LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},c.prototype.writeInt16BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2},c.prototype.writeInt32LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8,this[G+2]=Y>>>16,this[G+3]=Y>>>24):z(this,Y,G,!0),G+4},c.prototype.writeInt32BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4};function Q(oe,Y,G,X,fe,de){if(G+X>oe.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function Z(oe,Y,G,X,fe){return fe||Q(oe,Y,G,4,34028234663852886e22,-34028234663852886e22),C.write(oe,Y,G,X,23,4),G+4}c.prototype.writeFloatLE=function(Y,G,X){return Z(this,Y,G,!0,X)},c.prototype.writeFloatBE=function(Y,G,X){return Z(this,Y,G,!1,X)};function le(oe,Y,G,X,fe){return fe||Q(oe,Y,G,8,17976931348623157e292,-17976931348623157e292),C.write(oe,Y,G,X,52,8),G+8}c.prototype.writeDoubleLE=function(Y,G,X){return le(this,Y,G,!0,X)},c.prototype.writeDoubleBE=function(Y,G,X){return le(this,Y,G,!1,X)},c.prototype.copy=function(Y,G,X,fe){if(X||(X=0),!fe&&fe!==0&&(fe=this.length),G>=Y.length&&(G=Y.length),G||(G=0),fe>0&&fe<X&&(fe=X),fe===X)return 0;if(Y.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),Y.length-G<fe-X&&(fe=Y.length-G+X);var de=fe-X,Ce;if(this===Y&&X<G&&G<fe)for(Ce=de-1;Ce>=0;--Ce)Y[Ce+G]=this[Ce+X];else if(de<1e3||!c.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<de;++Ce)Y[Ce+G]=this[Ce+X];else Uint8Array.prototype.set.call(Y,this.subarray(X,X+de),G);return de},c.prototype.fill=function(Y,G,X,fe){if(typeof Y=="string"){if(typeof G=="string"?(fe=G,G=0,X=this.length):typeof X=="string"&&(fe=X,X=this.length),Y.length===1){var de=Y.charCodeAt(0);de<256&&(Y=de)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!c.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof Y=="number"&&(Y=Y&255);if(G<0||this.length<G||this.length<X)throw new RangeError("Out of range index");if(X<=G)return this;G=G>>>0,X=X===void 0?this.length:X>>>0,Y||(Y=0);var Ce;if(typeof Y=="number")for(Ce=G;Ce<X;++Ce)this[Ce]=Y;else{var Me=c.isBuffer(Y)?Y:Be(new c(Y,fe).toString()),ue=Me.length;for(Ce=0;Ce<X-G;++Ce)this[Ce+G]=Me[Ce%ue]}return this};var ne=/[^+\/0-9A-Za-z-_]/g;function ve(oe){if(oe=xe(oe).replace(ne,""),oe.length<2)return"";for(;oe.length%4!==0;)oe=oe+"=";return oe}function xe(oe){return oe.trim?oe.trim():oe.replace(/^\s+|\s+$/g,"")}function _e(oe){return oe<16?"0"+oe.toString(16):oe.toString(16)}function Be(oe,Y){Y=Y||Infinity;for(var G,X=oe.length,fe=null,de=[],Ce=0;Ce<X;++Ce){if(G=oe.charCodeAt(Ce),G>55295&&G<57344){if(!fe){if(G>56319){(Y-=3)>-1&&de.push(239,191,189);continue}else if(Ce+1===X){(Y-=3)>-1&&de.push(239,191,189);continue}fe=G;continue}if(G<56320){(Y-=3)>-1&&de.push(239,191,189),fe=G;continue}G=(fe-55296<<10|G-56320)+65536}else fe&&((Y-=3)>-1&&de.push(239,191,189));if(fe=null,G<128){if((Y-=1)<0)break;de.push(G)}else if(G<2048){if((Y-=2)<0)break;de.push(G>>6|192,G&63|128)}else if(G<65536){if((Y-=3)<0)break;de.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Y-=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 me(oe){for(var Y=[],G=0;G<oe.length;++G)Y.push(oe.charCodeAt(G)&255);return Y}function Fe(oe,Y){for(var G,X,fe,de=[],Ce=0;Ce<oe.length&&!((Y-=2)<0);++Ce)G=oe.charCodeAt(Ce),X=G>>8,fe=G%256,de.push(fe),de.push(X);return de}function ie(oe){return E.toByteArray(ve(oe))}function te(oe,Y,G,X){for(var fe=0;fe<X&&!(fe+G>=Y.length||fe>=oe.length);++fe)Y[fe+G]=oe[fe];return fe}function Ge(oe){return oe!==oe}}).call(this,d("yLpj"))},"HF/U":function(H,B,d){var _=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=_.clone(w.node1.getLayout()),c=_.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 _=d("Tghj"),E=_.__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(s,u,h){var p=u.get("center"),g=h.getWidth(),v=h.getHeight();s.cx=m(p[0],g),s.cy=m(p[1],v);var y=s.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 l(s,u){var h=this,p=h.getAngleAxis(),g=h.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),g.scale.setExtent(Infinity,-Infinity),s.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(s,u){if(s.type=u.get("type"),s.scale=c(u),s.onBand=u.get("boundaryGap")&&s.type==="category",s.inverse=u.get("inverse"),u.mainType==="angleAxis"){s.inverse^=u.get("clockwise");var h=u.get("startAngle");s.setExtent(h,h+(s.inverse?-360:360))}u.axis=s,s.model=u}var a={dimensions:A.prototype.dimensions,create:function(s,u){var h=[];return s.eachComponent("polar",function(p,g){var v=new A(g);v.update=l;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}),s.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var g=s.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 _=E(d("Sj0X"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},HjIi:function(H,B,d){var _=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 l={},t=o(_.filter(n.getSeriesByType(i),function(a){return!n.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));n.eachSeriesByType(i,function(a){if(a.coordinateSystem.type!=="polar")return;var s=a.getData(),u=a.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),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,O=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;l[g]=l[g]||[];for(var L=s.mapDimension(T.dim),N=s.mapDimension(h.dim),D=w(s,L),R=h.dim!=="radius"||!a.get("roundCap",!0),k=T.getExtent()[0],M=0,j=s.count();M<j;M++){var F=s.get(L,M),U=s.get(N,M),K=F>=0?"p":"n",V=k;D&&(l[g][U]||(l[g][U]={p:k,n:k}),V=l[g][U][K]);var z,Q,Z,le;if(T.dim==="radius"){var ne=T.dataToRadius(F)-k,ve=h.dataToAngle(U);Math.abs(ne)<O&&(ne=(ne<0?-1:1)*O),z=V,Q=V+ne,Z=ve-y,le=Z-x,D&&(l[g][U][K]=Q)}else{var xe=T.dataToAngle(F,R)-k,_e=h.dataToRadius(U);Math.abs(xe)<I&&(xe=(xe<0?-1:1)*I),z=_e+y,Q=z+x,Z=V,le=V+xe,D&&(l[g][U][K]=le)}s.setItemLayout(M,{cx:S,cy:b,r0:z,r:Q,startAngle:-Z*Math.PI/180,endAngle:-le*Math.PI/180})}},this)}function o(i,n){var e={};_.each(i,function(t,a){var s=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])/s.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),O=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),O!=null&&(y.gap=O),I!=null&&(y.categoryGap=I)});var l={};return _.each(e,function(t,a){l[a]={};var s=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),_.each(s,function(b,O){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;_.each(s,function(b,O){b.width||(b.width=y),T=b,x+=b.width*(1+p)}),T&&(x-=T.width*p);var S=-x/2;_.each(s,function(b,O){l[a][O]=l[a][O]||{offset:S,width:b.width},S+=b.width*(1+p)})}),l}var r=c;H.exports=r},HjOm:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _={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=_;B.default=E},Hw7h:function(H,B,d){var _=d("y+Vt"),E=_.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 _=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=_.reduce(o.regions||[],function(i,n){return n.name&&i.set(n.name,new A(n,r)),i},_.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}});_.mixin(f,w);var c=f;H.exports=c},"I+77":function(H,B,d){var _=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");_.registerProcessor(E),_.registerVisual(C("graph","circle",null)),_.registerVisual(A),_.registerVisual(w),_.registerLayout(m),_.registerLayout(_.PRIORITY.VISUAL.POST_CHART_LAYOUT,f),_.registerLayout(c),_.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(H,B,d){var _=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,l){this._model=n,this.dimensions=[],this._indicatorAxes=_.map(n.getIndicatorModels(),function(t,a){var s="indicator_"+a,u=new E(s,t.get("axisType")==="log"?new o:new C);return u.name=t.get("name"),u.model=t,t.axis=u,this.dimensions.push(s),u},this),this.resize(n,l),this.cx,this.cy,this.r,this.r0,this.startAngle}r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(n,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(n),e)},r.prototype.coordToPoint=function(n,e){var l=this._indicatorAxes[e],t=l.angle,a=this.cx+n*Math.cos(t),s=this.cy-n*Math.sin(t);return[a,s]},r.prototype.pointToData=function(n){var e=n[0]-this.cx,l=n[1]-this.cy,t=Math.sqrt(e*e+l*l);e/=t,l/=t;for(var a=Math.atan2(-l,e),s=Infinity,u,h=-1,p=0;p<this._indicatorAxes.length;p++){var g=this._indicatorAxes[p],v=Math.abs(a-g.angle);v<s&&(u=g,h=p,s=v)}return[h,+(u&&u.coordToData(t))]},r.prototype.resize=function(n,e){var l=n.get("center"),t=e.getWidth(),a=e.getHeight(),s=Math.min(t,a)/2;this.cx=A.parsePercent(l[0],t),this.cy=A.parsePercent(l[1],a),this.startAngle=n.get("startAngle")*Math.PI/180;var u=n.get("radius");(typeof u=="string"||typeof u=="number")&&(u=[0,u]),this.r0=A.parsePercent(u[0],s),this.r=A.parsePercent(u[1],s),_.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 l=this._indicatorAxes,t=this._model;_.each(l,function(u){u.scale.setExtent(Infinity,-Infinity)}),n.eachSeriesByType("radar",function(u,h){if(u.get("coordinateSystem")!=="radar"||n.getComponent("radar",u.get("radarIndex"))!==t)return;var p=u.getData();_.each(l,function(g){g.scale.unionExtentFromData(p,p.mapDimension(g.dim))})},this);var a=t.get("splitNumber");function s(u){var h=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),p=u/h;return p===2?p=5:p*=2,p*h}_.each(l,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=s(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=s(T);while(b>p[0]&&isFinite(b)&&isFinite(p[0]))}else{var O=v.getTicks().length-1;O>a&&(T=s(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 l=[];return n.eachComponent("radar",function(t){var a=new r(t,n,e);l.push(a),t.coordinateSystem=a}),n.eachSeriesByType("radar",function(t){t.get("coordinateSystem")==="radar"&&(t.coordinateSystem=l[t.get("radarIndex")||0])}),l},c.register("radar",r);var i=r;H.exports=i},"I3/A":function(H,B,d){var _=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 l=new C(n),t=0;t<o.length;t++)l.addNode(_.retrieve(o[t].id,o[t].name,t),t);for(var a=[],s=[],u=0,t=0;t<r.length;t++){var h=r[t],p=h.source,g=h.target;l.addEdge(p,g,u)&&(s.push(h),a.push(_.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||[]:[];_.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(s,a),e&&e(y,b),A({mainData:y,struct:l,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}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 _=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(s,u){a(s,u);function h(){this.constructor=s}s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),C=_.createContext(null),A=function(a){E(s,a);function s(){return a!==null&&a.apply(this,arguments)||this}return s.prototype.render=function(){return _.createElement(C.Provider,{value:this.props.store},this.props.children)},s}(_.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(s,u){a(s,u);function h(){this.constructor=s}s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),r=function(){return r=Object.assign||function(a){for(var s,u=1,h=arguments.length;u<h;u++){s=arguments[u];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(a[p]=s[p])}return a},r.apply(this,arguments)};function i(a){return a.displayName||a.name||"Component"}var n=function(){return{}};function e(a,s){s===void 0&&(s={});var u=!!a,h=a||n;return function(g){var v=function(x){o(T,x);function T(S,b){var O=x.call(this,S,b)||this;return O.unsubscribe=null,O.handleChange=function(){if(!O.unsubscribe)return;var I=h(O.store.getState(),O.props);O.setState({subscribed:I})},O.store=O.context,O.state={subscribed:h(O.store.getState(),S),store:O.store,props:S},O}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 _.createElement(g,r({},S,{ref:this.props.miniStoreForwardedRef}))},T.displayName="Connect("+i(g)+")",T.contextType=C,T}(_.Component);if(s.forwardRef){var y=_.forwardRef(function(x,T){return _.createElement(v,r({},x,{miniStoreForwardedRef:T}))});return c()(y,g)}return c()(v,g)}}var l=function(){return l=Object.assign||function(a){for(var s,u=1,h=arguments.length;u<h;u++){s=arguments[u];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(a[p]=s[p])}return a},l.apply(this,arguments)};function t(a){var s=a,u=[];function h(v){s=l(l({},s),v);for(var y=0;y<u.length;y++)u[y]()}function p(){return s}function 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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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"&&!_.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"&&!_.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:_.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},"ID/q":function(H,B,d){"use strict";d.d(B,"a",function(){return A});var _=d("cDf5"),E=d.n(_);function C(w,m){typeof w=="function"?w(m):E()(w)==="object"&&w&&"current"in w&&(w.current=m)}function A(){for(var w=arguments.length,m=new Array(w),f=0;f<w;f++)m[f]=arguments[f];return function(c){m.forEach(function(o){C(o,c)})}}},IDmD:function(H,B,d){var _=d("bYtY"),E={};function C(){this._coordinateSystems=[]}C.prototype={constructor:C,create:function(w,m){var f=[];_.each(E,function(c,o){var r=c.create(w,m);f=f.concat(r||[])}),this._coordinateSystems=f},update:function(w,m){_.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 _=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,l=Math.cos,t=Math.sin,a=Math.sqrt,s=Math.abs,u=typeof Float32Array!="undefined",h=function(v){this._saveData=!(v||!1),this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(v,y,x){x=x||0,this._ux=s(x/m/v)||0,this._uy=s(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=s(v-this._xi)>this._ux||s(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=l(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,O=0;O<b.length;O++)this.data[T++]=b[O];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,O=this._xi,I=this._yi,L=v-O,N=y-I,D=a(L*L+N*N),R=O,k=I,M,j=S.length,F;for(L/=D,N/=D,T<0&&(T=x+T),T%=x,R-=T*L,k-=T*N;L>0&&R<=v||L<0&&R>=v||L===0&&(N>0&&k<=y||N<0&&k>=y);){if(F=this._dashIdx,M=S[F],R+=L*M,k+=N*M,this._dashIdx=(F+1)%j,L>0&&R<O||L<0&&R>O||N>0&&k<I||N<0&&k>I)continue;b[F%2?"moveTo":"lineTo"](L>=0?n(R,v):e(R,v),N>=0?n(k,y):e(k,y))}L=R-v,N=k-y,this._dashOffset=-a(L*L+N*N)},_dashedBezierTo:function(v,y,x,T,S,b){var O=this._dashSum,I=this._dashOffset,L=this._lineDash,N=this._ctx,D=this._xi,R=this._yi,k,M,j,F=_.cubicAt,U=0,K=this._dashIdx,V=L.length,z,Q,Z=0;for(I<0&&(I=O+I),I%=O,k=0;k<1;k+=.1)M=F(D,v,x,S,k+.1)-F(D,v,x,S,k),j=F(R,y,T,b,k+.1)-F(R,y,T,b,k),U+=a(M*M+j*j);for(;K<V&&!(Z+=L[K],Z>I);K++);for(k=(Z-I)/U;k<=1;)z=F(D,v,x,S,k),Q=F(R,y,T,b,k),K%2?N.moveTo(z,Q):N.lineTo(z,Q),k+=L[K]/U,K=(K+1)%V;K%2!==0&&N.lineTo(S,b),M=S-z,j=b-Q,this._dashOffset=-a(M*M+j*j)},_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 O=v[b++];b===1&&(y=v[b],x=v[b+1],T=y,S=x);switch(O){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++],k=v[b++]+R;b+=1;var M=1-v[b++];b===1&&(T=l(R)*N+I,S=t(R)*D+L),C.fromArc(I,L,N,D,R,k,M,r,i),y=l(k)*N+I,x=t(k)*D+L;break;case f.R:T=y=v[b++],S=x=v[b++];var j=v[b++],F=v[b++];C.fromLine(T,S,T+j,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,O,I,L=this._ux,N=this._uy,D=this._len,R=0;R<D;){var k=y[R++];R===1&&(S=y[R],b=y[R+1],x=S,T=b);switch(k){case f.M:x=S=y[R++],T=b=y[R++],v.moveTo(S,b);break;case f.L:O=y[R++],I=y[R++],(s(O-S)>L||s(I-b)>N||R===D-1)&&(v.lineTo(O,I),S=O,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++],j=y[R++],F=y[R++],U=y[R++],K=y[R++],V=y[R++],z=y[R++],Q=y[R++],Z=F>U?F:U,le=F>U?1:F/U,ne=F>U?U/F:1,ve=Math.abs(F-U)>.001,xe=K+V;ve?(v.translate(M,j),v.rotate(z),v.scale(le,ne),v.arc(0,0,Z,K,xe,1-Q),v.scale(1/le,1/ne),v.rotate(-z),v.translate(-M,-j)):v.arc(M,j,Z,K,xe,1-Q),R===1&&(x=l(K)*F+M,T=t(K)*U+j),S=l(xe)*F+M,b=t(xe)*U+j;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 _(C,A){d[C]=A}function E(C){return d[C]}B.register=_,B.get=E},IWNH:function(H,B,d){var _=d("T4UG"),E=d("Bsck"),C=d("7aKB"),A=C.encodeHTML,w=d("Qxkt"),m=_.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(s,u){var h=i.getNodeByDataIndex(u);return(!h.children.length||!h.isExpand)&&(s.parentModel=r),s})}var e=0;i.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var l=f.expandAndCollapse,t=l&&f.initialTreeDepth>=0?f.initialTreeDepth:e;return i.root.eachNode("preorder",function(a){var s=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=s&&s.collapsed!=null?!s.collapsed:a.depth<=t}),i.data},getOrient:function(){var f=this.get("orient");return f==="horizontal"?f="LR":f==="vertical"&&(f="TB"),f},setZoom:function(f){this.option.zoom=f},setCenter:function(f){this.option.center=f},formatTooltip:function(f){for(var c=this.getData().tree,o=c.root.children[0],r=c.getNodeByDataIndex(f),i=r.getValue(),n=r.name;r&&r!==o;)n=r.parentNode.name+"."+n,r=r.parentNode;return A(n+(isNaN(i)||i==null?"":" : "+i))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});H.exports=m},IWp7:function(H,B,d){var _=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(s,u,h,p){for(;h<p;){var g=h+p>>>1;s[g][1]<u?h=g+1:p=g}return h},l=w.extend({type:"time",getLabel:function(s){var u=this._stepLvl,h=new Date(s);return C.formatTime(u[0],h,this.getSetting("useUTC"))},niceExtent:function(s){var u=this._extent;if(u[0]===u[1]&&(u[0]-=n,u[1]+=n),u[1]===-Infinity&&u[0]===Infinity){var h=new Date;u[1]=+new Date(h.getFullYear(),h.getMonth(),h.getDate()),u[0]=u[1]-n}this.niceTicks(s.splitNumber,s.minInterval,s.maxInterval);var p=this._interval;s.fixMin||(u[0]=E.round(c(u[0]/p)*p)),s.fixMax||(u[1]=E.round(f(u[1]/p)*p))},niceTicks:function(s,u,h){s=s||10;var p=this._extent,g=p[1]-p[0],v=g/s;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,O=E.nice(b/s,!0);S*=O}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(s){return+E.parseDate(s)}});_.each(["contain","normalize"],function(s){l.prototype[s]=function(u){return m[s].call(this,this.parse(u))}});var t=[["hh:mm:ss",o],["hh:mm:ss",o*5],["hh:mm:ss",o*10],["hh:mm:ss",o*15],["hh:mm:ss",o*30],[`hh:mm
|
|
|
MM-dd`,r],[`hh:mm
|
|
|
MM-dd`,r*5],[`hh:mm
|
|
|
MM-dd`,r*10],[`hh:mm
|
|
|
MM-dd`,r*15],[`hh:mm
|
|
|
MM-dd`,r*30],[`hh:mm
|
|
|
MM-dd`,i],[`hh:mm
|
|
|
MM-dd`,i*2],[`hh:mm
|
|
|
MM-dd`,i*6],[`hh:mm
|
|
|
MM-dd`,i*12],[`MM-dd
|
|
|
yyyy`,n],[`MM-dd
|
|
|
yyyy`,n*2],[`MM-dd
|
|
|
yyyy`,n*3],[`MM-dd
|
|
|
yyyy`,n*4],[`MM-dd
|
|
|
yyyy`,n*5],[`MM-dd
|
|
|
yyyy`,n*6],["week",n*7],[`MM-dd
|
|
|
yyyy`,n*10],["week",n*14],["week",n*21],["month",n*31],["week",n*42],["month",n*62],["week",n*70],["quarter",n*95],["month",n*31*4],["month",n*31*5],["half-year",n*380/2],["month",n*31*8],["month",n*31*10],["year",n*380]];l.create=function(s){return new l({useUTC:s.ecModel.get("useUTC")})};var a=l;H.exports=a},IXuL:function(H,B,d){var _=d("Tghj"),E=_.__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 _=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&&_.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){_.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=_.filter(this.dependentModels.parallelAxis,function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this);_.each(m,function(f){A.push("dim"+f.get("dim")),w.push(f.componentIndex)})}});H.exports=C},Ib8C:function(H,B,d){(function(_){(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 _!="undefined"&&_.crypto&&(w=_.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)}},l=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(l.stringify(p)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(p){return l.parse(unescape(encodeURIComponent(p)))}},a=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=t.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var 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 O=b*T,I=C.min(O*4,x);if(O){for(var L=0;L<O;L+=T)this._doProcessBlock(y,L);g=y.splice(0,O),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}),s=o.Hasher=a.extend({cfg:r.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){a.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var 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 _=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=_},ItS6:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=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,_.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,_.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,_.inflateReset)(this.strm)}}]),c}();B.default=f},Itpr:function(H,B,d){var _=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],s,u;s=a.pop();)if(u=s.children,s.isExpand&&u.length)for(var h=u.length,p=h-1;p>=0;p--){var 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 s=t.isExpand?t.children:[],u=t.parentNode.children,h=t.hierNode.i?u[t.hierNode.i-1]:null;if(s.length){c(t);var p=(s[0].hierNode.prelim+s[s.length-1].hierNode.prelim)/2;h?(t.hierNode.prelim=h.hierNode.prelim+a(t,h),t.hierNode.modifier=t.hierNode.prelim-p):t.hierNode.prelim=p}else h&&(t.hierNode.prelim=h.hierNode.prelim+a(t,h));t.parentNode.hierNode.defaultAncestor=o(t,h,t.parentNode.hierNode.defaultAncestor||u[0],a)}function A(t){var a=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:a},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function w(t){return arguments.length?t:l}function m(t,a){var s={};return t-=Math.PI/2,s.x=a*Math.cos(t),s.y=a*Math.sin(t),s}function f(t,a){return _.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function c(t){for(var a=t.children,s=a.length,u=0,h=0;--s>=0;){var p=a[s];p.hierNode.prelim+=u,p.hierNode.modifier+=u,h+=p.hierNode.change,u+=p.hierNode.shift+h}}function o(t,a,s,u){if(a){for(var h=t,p=t,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,s),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,s=t)}return s}function r(t){var a=t.children;return a.length&&t.isExpand?a[a.length-1]:t.hierNode.thread}function i(t){var a=t.children;return a.length&&t.isExpand?a[0]:t.hierNode.thread}function n(t,a,s){return t.hierNode.ancestor.parentNode===a.parentNode?t.hierNode.ancestor:s}function e(t,a,s){var u=s/(a.hierNode.i-t.hierNode.i);a.hierNode.change-=u,a.hierNode.shift+=s,a.hierNode.modifier+=s,a.hierNode.prelim+=s,t.hierNode.change+=u}function l(t,a){return t.parentNode===a.parentNode?1:2}B.init=E,B.firstWalk=C,B.secondWalk=A,B.separation=w,B.radialCoordinate=m,B.getViewRect=f},IwbS:function(H,B,d){var _=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 l=d("h7HQ");B.Polygon=l;var t=d("1Jh7");B.Polyline=t;var a=d("x6Kt");B.Rect=a;var s=d("yxFR");B.Line=s;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,O={},I=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},N="emphasis",D="normal",R=1,k={},M={};function j(Ht){return m.extend(Ht)}function F(Ht,lt){return E.extendFromString(Ht,lt)}function U(Ht,lt){M[Ht]=lt}function K(Ht){if(M.hasOwnProperty(Ht))return M[Ht]}function V(Ht,lt,Hr,dn){var Nn=E.createFromString(Ht,lt);return Hr&&(dn==="center"&&(Hr=Q(Hr,Nn.getBoundingRect())),le(Nn,Hr)),Nn}function z(Ht,lt,Hr){var dn=new c({style:{image:Ht,x:lt.x,y:lt.y,width:lt.width,height:lt.height},onload:function(Nn){if(Hr==="center"){var Wn={width:Nn.width,height:Nn.height};dn.setStyle(Q(lt,Wn))}}});return dn}function Q(Ht,lt){var Hr=lt.width/lt.height,dn=Ht.height*Hr,Nn;dn<=Ht.width?Nn=Ht.height:(dn=Ht.width,Nn=dn/Hr);var Wn=Ht.x+Ht.width/2,gi=Ht.y+Ht.height/2;return{x:Wn-dn/2,y:gi-Nn/2,width:dn,height:Nn}}var Z=E.mergePath;function le(Ht,lt){if(!Ht.applyTransform)return;var Hr=Ht.getBoundingRect(),dn=Hr.calculateTransform(lt);Ht.applyTransform(dn)}function ne(Ht){return T.subPixelOptimizeLine(Ht.shape,Ht.shape,Ht.style),Ht}function ve(Ht){return T.subPixelOptimizeRect(Ht.shape,Ht.shape,Ht.style),Ht}var xe=T.subPixelOptimize;function _e(Ht){return Ht!=null&&Ht!=="none"}var Be=_.createHashMap(),me=0;function Fe(Ht){if(typeof Ht!="string")return Ht;var lt=Be.get(Ht);return lt||(lt=C.lift(Ht,-.1),me<1e4&&(Be.set(Ht,lt),me++)),lt}function ie(Ht){if(!Ht.__hoverStlDirty)return;Ht.__hoverStlDirty=!1;var lt=Ht.__hoverStl;if(!lt){Ht.__cachedNormalStl=Ht.__cachedNormalZ2=null;return}var Hr=Ht.__cachedNormalStl={};Ht.__cachedNormalZ2=Ht.z2;var dn=Ht.style;for(var Nn in lt)lt[Nn]!=null&&(Hr[Nn]=dn[Nn]);Hr.fill=dn.fill,Hr.stroke=dn.stroke}function te(Ht){var lt=Ht.__hoverStl;if(!lt||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,Wn=Ht.style;dn&&(Nn=Hr.addHover(Ht),Wn=Nn.style),jt(Wn),dn||ie(Nn),Wn.extendFrom(lt),Ge(Wn,lt,"fill"),Ge(Wn,lt,"stroke"),_t(Wn),dn||(Ht.dirty(!1),Ht.z2+=I)}function Ge(Ht,lt,Hr){!_e(lt[Hr])&&_e(Ht[Hr])&&(Ht[Hr]=Fe(Ht[Hr]))}function oe(Ht){var lt=Ht.__highlighted;if(!lt)return;if(Ht.__highlighted=!1,Ht.isGroup)return;if(lt==="layer")Ht.__zr&&Ht.__zr.removeHover(Ht);else{var Hr=Ht.style,dn=Ht.__cachedNormalStl;dn&&(jt(Hr),Ht.setStyle(dn),_t(Hr));var Nn=Ht.__cachedNormalZ2;Nn!=null&&Ht.z2-Nn===I&&(Ht.z2=Nn)}}function Y(Ht,lt,Hr){var dn=D,Nn=D,Wn;Ht.__highlighted&&(dn=N,Wn=!0),lt(Ht,Hr),Ht.__highlighted&&(Nn=N,Wn=!0),Ht.isGroup&&Ht.traverse(function(gi){!gi.isGroup&<(gi,Hr)}),Wn&&Ht.__highDownOnUpdate&&Ht.__highDownOnUpdate(dn,Nn)}function G(Ht,lt){lt=Ht.__hoverStl=lt!==!1&&(Ht.hoverStyle||lt||{}),Ht.__hoverStlDirty=!0,Ht.__highlighted&&(Ht.__cachedNormalStl=null,oe(Ht),te(Ht))}function X(Ht){!Me(this,Ht)&&!this.__highByOuter&&Y(this,te)}function fe(Ht){!Me(this,Ht)&&!this.__highByOuter&&Y(this,oe)}function de(Ht){this.__highByOuter|=1<<(Ht||0),Y(this,te)}function Ce(Ht){!(this.__highByOuter&=~(1<<(Ht||0)))&&Y(this,oe)}function Me(Ht,lt){return Ht.__highDownSilentOnTouch&<.zrByTouch}function ue(Ht,lt){Ae(Ht,!0),Y(Ht,G,lt)}function Ae(Ht,lt){var Hr=lt===!1;if(Ht.__highDownSilentOnTouch=Ht.highDownSilentOnTouch,Ht.__highDownOnUpdate=Ht.highDownOnUpdate,!Hr||Ht.__highDownDispatcher){var dn=Hr?"off":"on";Ht[dn]("mouseover",X)[dn]("mouseout",fe),Ht[dn]("emphasis",de)[dn]("normal",Ce),Ht.__highByOuter=Ht.__highByOuter||0,Ht.__highDownDispatcher=!Hr}}function Te(Ht){return!!(Ht&&Ht.__highDownDispatcher)}function Je(Ht){var lt=k[Ht];return lt==null&&R<=32&&(lt=k[Ht]=R++),lt}function At(Ht,lt,Hr,dn,Nn,Wn,gi){Nn=Nn||O;var yn=Nn.labelFetcher,Mn=Nn.labelDataIndex,Ft=Nn.labelDimIndex,bt=Nn.labelProp,Oe=Hr.getShallow("show"),Ee=dn.getShallow("show"),Ie;(Oe||Ee)&&(yn&&(Ie=yn.getFormattedLabel(Mn,"normal",null,Ft,bt)),Ie==null&&(Ie=_.isFunction(Nn.defaultText)?Nn.defaultText(Mn,Nn):Nn.defaultText));var Ye=Oe?Ie:null,rt=Ee?_.retrieve2(yn?yn.getFormattedLabel(Mn,"emphasis",null,Ft,bt):null,Ie):null;(Ye!=null||rt!=null)&&(Re(Ht,Hr,Wn,Nn),Re(lt,dn,gi,Nn,!0)),Ht.text=Ye,lt.text=rt}function qe(Ht,lt,Hr){var dn=Ht.style;lt&&(jt(dn),Ht.setStyle(lt),_t(dn)),dn=Ht.__hoverStl,Hr&&dn&&(jt(dn),_.extend(dn,Hr),_t(dn))}function Re(Ht,lt,Hr,dn,Nn){return $e(Ht,lt,dn,Nn),Hr&&_.extend(Ht,Hr),Ht}function Lt(Ht,lt,Hr){var dn={isRectText:!0},Nn;Hr===!1?Nn=!0:dn.autoColor=Hr,$e(Ht,lt,dn,Nn)}function $e(Ht,lt,Hr,dn){if(Hr=Hr||O,Hr.isRectText){var Nn;Hr.getTextPosition?Nn=Hr.getTextPosition(lt,dn):(Nn=lt.getShallow("position")||(dn?null:"inside"),Nn==="outside"&&(Nn="top")),Ht.textPosition=Nn,Ht.textOffset=lt.getShallow("offset");var Wn=lt.getShallow("rotate");Wn!=null&&(Wn*=Math.PI/180),Ht.textRotation=Wn,Ht.textDistance=_.retrieve2(lt.getShallow("distance"),dn?null:5)}var gi=lt.ecModel,yn=gi&&gi.option.textStyle,Mn=Et(lt),Ft;if(Mn){Ft={};for(var bt in Mn)if(Mn.hasOwnProperty(bt)){var Oe=lt.getModel(["rich",bt]);Ut(Ft[bt]={},Oe,yn,Hr,dn)}}return Ht.rich=Ft,Ut(Ht,lt,yn,Hr,dn,!0),Hr.forceRich&&!Hr.textStyle&&(Hr.textStyle={}),Ht}function Et(Ht){for(var lt;Ht&&Ht!==Ht.ecModel;){var Hr=(Ht.option||O).rich;if(Hr){lt=lt||{};for(var dn in Hr)Hr.hasOwnProperty(dn)&&(lt[dn]=1)}Ht=Ht.parentModel}return lt}function Ut(Ht,lt,Hr,dn,Nn,Wn){Hr=!Nn&&Hr||O,Ht.textFill=Bt(lt.getShallow("color"),dn)||Hr.color,Ht.textStroke=Bt(lt.getShallow("textBorderColor"),dn)||Hr.textBorderColor,Ht.textStrokeWidth=_.retrieve2(lt.getShallow("textBorderWidth"),Hr.textBorderWidth),Nn||(Wn&&(Ht.insideRollbackOpt=dn,_t(Ht)),Ht.textFill==null&&(Ht.textFill=dn.autoColor)),Ht.fontStyle=lt.getShallow("fontStyle")||Hr.fontStyle,Ht.fontWeight=lt.getShallow("fontWeight")||Hr.fontWeight,Ht.fontSize=lt.getShallow("fontSize")||Hr.fontSize,Ht.fontFamily=lt.getShallow("fontFamily")||Hr.fontFamily,Ht.textAlign=lt.getShallow("align"),Ht.textVerticalAlign=lt.getShallow("verticalAlign")||lt.getShallow("baseline"),Ht.textLineHeight=lt.getShallow("lineHeight"),Ht.textWidth=lt.getShallow("width"),Ht.textHeight=lt.getShallow("height"),Ht.textTag=lt.getShallow("tag"),(!Wn||!dn.disableBox)&&(Ht.textBackgroundColor=Bt(lt.getShallow("backgroundColor"),dn),Ht.textPadding=lt.getShallow("padding"),Ht.textBorderColor=Bt(lt.getShallow("borderColor"),dn),Ht.textBorderWidth=lt.getShallow("borderWidth"),Ht.textBorderRadius=lt.getShallow("borderRadius"),Ht.textBoxShadowColor=lt.getShallow("shadowColor"),Ht.textBoxShadowBlur=lt.getShallow("shadowBlur"),Ht.textBoxShadowOffsetX=lt.getShallow("shadowOffsetX"),Ht.textBoxShadowOffsetY=lt.getShallow("shadowOffsetY")),Ht.textShadowColor=lt.getShallow("textShadowColor")||Hr.textShadowColor,Ht.textShadowBlur=lt.getShallow("textShadowBlur")||Hr.textShadowBlur,Ht.textShadowOffsetX=lt.getShallow("textShadowOffsetX")||Hr.textShadowOffsetX,Ht.textShadowOffsetY=lt.getShallow("textShadowOffsetY")||Hr.textShadowOffsetY}function Bt(Ht,lt){return Ht!=="auto"?Ht:lt&<.autoColor?lt.autoColor:null}function _t(Ht){var lt=Ht.textPosition,Hr=Ht.insideRollbackOpt,dn;if(Hr&&Ht.textFill==null){var Nn=Hr.autoColor,Wn=Hr.isRectText,gi=Hr.useInsideStyle,yn=gi!==!1&&(gi===!0||Wn&<&&typeof lt=="string"&<.indexOf("inside")>=0),Mn=!yn&&Nn!=null;(yn||Mn)&&(dn={textFill:Ht.textFill,textStroke:Ht.textStroke,textStrokeWidth:Ht.textStrokeWidth}),yn&&(Ht.textFill="#fff",Ht.textStroke==null&&(Ht.textStroke=Nn,Ht.textStrokeWidth==null&&(Ht.textStrokeWidth=2))),Mn&&(Ht.textFill=Nn)}Ht.insideRollback=dn}function jt(Ht){var lt=Ht.insideRollback;lt&&(Ht.textFill=lt.textFill,Ht.textStroke=lt.textStroke,Ht.textStrokeWidth=lt.textStrokeWidth,Ht.insideRollback=null)}function He(Ht,lt){var Hr=lt&<.getModel("textStyle");return _.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 se(Ht,lt,Hr,dn,Nn,Wn){typeof Nn=="function"&&(Wn=Nn,Nn=null);var gi=dn&&dn.isAnimationEnabled();if(gi){var yn=Ht?"Update":"",Mn=dn.getShallow("animationDuration"+yn),Ft=dn.getShallow("animationEasing"+yn),bt=dn.getShallow("animationDelay"+yn);typeof bt=="function"&&(bt=bt(Nn,dn.getAnimationDelayParams?dn.getAnimationDelayParams(lt,Nn):null)),typeof Mn=="function"&&(Mn=Mn(Nn)),Mn>0?lt.animateTo(Hr,Mn,bt||0,Ft,Wn,!!Wn):(lt.stopAnimation(),lt.attr(Hr),Wn&&Wn())}else lt.stopAnimation(),lt.attr(Hr),Wn&&Wn()}function J(Ht,lt,Hr,dn,Nn){se(!0,Ht,lt,Hr,dn,Nn)}function Ue(Ht,lt,Hr,dn,Nn){se(!1,Ht,lt,Hr,dn,Nn)}function Le(Ht,lt){for(var Hr=A.identity([]);Ht&&Ht!==lt;)A.mul(Hr,Ht.getLocalTransform(),Hr),Ht=Ht.parent;return Hr}function ee(Ht,lt,Hr){return lt&&!_.isArrayLike(lt)&&(lt=f.getLocalTransform(lt)),Hr&&(lt=A.invert([],lt)),w.applyTransform([],Ht,lt)}function ct(Ht,lt,Hr){var dn=lt[4]===0||lt[5]===0||lt[0]===0?1:Math.abs(2*lt[4]/lt[0]),Nn=lt[4]===0||lt[5]===0||lt[2]===0?1:Math.abs(2*lt[4]/lt[2]),Wn=[Ht==="left"?-dn:Ht==="right"?dn:0,Ht==="top"?-Nn:Ht==="bottom"?Nn:0];return Wn=ee(Wn,lt,Hr),Math.abs(Wn[0])>Math.abs(Wn[1])?Wn[0]>0?"right":"left":Wn[1]>0?"bottom":"top"}function Mt(Ht,lt,Hr,dn){if(!Ht||!lt)return;function Nn(yn){var Mn={};return yn.traverse(function(Ft){!Ft.isGroup&&Ft.anid&&(Mn[Ft.anid]=Ft)}),Mn}function Wn(yn){var Mn={position:w.clone(yn.position),rotation:yn.rotation};return yn.shape&&(Mn.shape=_.extend({},yn.shape)),Mn}var gi=Nn(Ht);lt.traverse(function(yn){if(!yn.isGroup&&yn.anid){var Mn=gi[yn.anid];if(Mn){var Ft=Wn(yn);yn.attr(Wn(Mn)),J(yn,Ft,Hr,yn.dataIndex)}}})}function ot(Ht,lt){return _.map(Ht,function(Hr){var dn=Hr[0];dn=S(dn,lt.x),dn=b(dn,lt.x+lt.width);var Nn=Hr[1];return Nn=S(Nn,lt.y),Nn=b(Nn,lt.y+lt.height),[dn,Nn]})}function Yt(Ht,lt){var Hr=S(Ht.x,lt.x),dn=b(Ht.x+Ht.width,lt.x+lt.width),Nn=S(Ht.y,lt.y),Wn=b(Ht.y+Ht.height,lt.y+lt.height);if(dn>=Hr&&Wn>=Nn)return{x:Hr,y:Nn,width:dn-Hr,height:Wn-Nn}}function or(Ht,lt,Hr){lt=_.extend({rectHover:!0},lt);var dn=lt.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),_.defaults(dn,Hr),new c(lt)):V(Ht.replace("path://",""),lt,Hr,"center")}function Zr(Ht,lt,Hr,dn,Nn){for(var Wn=0,gi=Nn[Nn.length-1];Wn<Nn.length;Wn++){var yn=Nn[Wn];if(ir(Ht,lt,Hr,dn,yn[0],yn[1],gi[0],gi[1]))return!0;gi=yn}}function ir(Ht,lt,Hr,dn,Nn,Wn,gi,yn){var Mn=Hr-Ht,Ft=dn-lt,bt=gi-Nn,Oe=yn-Wn,Ee=dr(bt,Oe,Mn,Ft);if(qt(Ee))return!1;var Ie=Ht-Nn,Ye=lt-Wn,rt=dr(Ie,Ye,Mn,Ft)/Ee;if(rt<0||rt>1)return!1;var ut=dr(Ie,Ye,bt,Oe)/Ee;return!(ut<0||ut>1)}function dr(Ht,lt,Hr,dn){return Ht*dn-Hr*lt}function qt(Ht){return Ht<=1e-6&&Ht>=-1e-6}U("circle",i),U("sector",n),U("ring",e),U("polygon",l),U("polyline",t),U("rect",a),U("line",s),U("bezierCurve",u),U("arc",h),B.Z2_EMPHASIS_LIFT=I,B.CACHED_LABEL_STYLE_PROPERTIES=L,B.extendShape=j,B.extendPath=F,B.registerShape=U,B.getShapeClass=K,B.makePath=V,B.makeImage=z,B.mergePath=Z,B.resizePath=le,B.subPixelOptimizeLine=ne,B.subPixelOptimizeRect=ve,B.subPixelOptimize=xe,B.setElementHoverStyle=G,B.setHoverStyle=ue,B.setAsHighDownDispatcher=Ae,B.isHighDownDispatcher=Te,B.getHighlightDigit=Je,B.setLabelStyle=At,B.modifyLabelStyle=qe,B.setTextStyle=Re,B.setText=Lt,B.getFont=He,B.updateProps=J,B.initProps=Ue,B.getTransform=Le,B.applyTransform=ee,B.transformDirection=ct,B.groupTransition=Mt,B.clipPointsByRect=ot,B.clipRectByRect=Yt,B.createIcon=or,B.linePolygonIntersect=Zr,B.lineLineIntersect=ir},IyUQ:function(H,B,d){var _=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=_.bind,e=_.each,l=7,t=1,a=30,s="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,O){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}(!O||O.type!=="dataZoom"||O.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(),O={width:S.getWidth(),height:S.getHeight()},I=this._orient===s?{right:O.width-b.x-b.width,top:O.height-a-l,width:b.width,height:a}:{right:l,top:b.y,width:a,height:b.height},L=f.getLayoutParams(T.option);_.each(["right","top","width","height"],function(D){L[D]==="ph"&&(L[D]=I[D])});var N=f.getLayoutRect(L,O,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,O=this.dataZoomModel.getFirstTargetAxisModel(),I=O&&O.get("inverse"),L=this._displayables.barGroup,N=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(b===s&&!I?{scale:N?[1,1]:[1,-1]}:b===s&&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:_.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var T=this._dataShadowInfo=this._prepareDataShadowInfo();if(!T)return;var S=this._size,b=T.series,O=b.getRawData(),I=b.getShadowDim?b.getShadowDim():T.otherDim;if(I==null)return;var L=O.getDataExtent(I),N=(L[1]-L[0])*.3;L=[L[0]-N,L[1]+N];var D=[0,S[1]],R=[0,S[0]],k=[[S[0],0],[0,0]],M=[],j=R[1]/(O.count()-1),F=0,U=Math.round(O.count()/S[0]),K;O.each([I],function(z,Q){if(U>0&&Q%U){F+=j;return}var Z=z==null||isNaN(z)||z==="",le=Z?0:r(z,L,D,!0);Z&&!K&&Q?(k.push([k[k.length-1][0],0]),M.push([M[M.length-1][0],0])):!Z&&K&&(k.push([F,0]),M.push([F,0])),k.push([F,le]),M.push([F,le]),F+=j,K=Z});var V=this.dataZoomModel;this._displayables.barGroup.add(new C.Polygon({shape:{points:k},style:_.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,O=this.ecModel;return T.eachTargetAxis(function(I,L){var N=T.getAxisProxy(I.name,L).getTargetSeriesModels();_.each(N,function(D){if(b)return;if(S!==!0&&_.indexOf(p,D.get("type"))<0)return;var R=O.getComponent(I.axis,L).axis,k=v(I.name),M,j=D.coordinateSystem;k!=null&&j.getOtherAxis&&(M=j.getOtherAxis(R).inverse),k=D.getData().mapDimension(k),b={thisAxis:R,series:D,thisDim:I.name,otherDim:k,otherAxisInverse:M}},this)},this),b},_renderHandle:function(){var T=this._displayables,S=T.handles=[],b=T.handleLabels=[],O=this._displayables.barGroup,I=this._size,L=this.dataZoomModel;O.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"}})),O.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 k=L.get("handleColor");k!=null&&(D.style.fill=k),O.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,O=this._handleEnds,I=this._getViewExtent(),L=b.findRepresentativeAxisProxy().getMinMaxSpan(),N=[0,100];c(S,O,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(O[0],I,N,!0),r(O[1],I,N,!0)]);return!D||D[0]!==R[0]||D[1]!==R[1]},_updateView:function(T){var S=this._displayables,b=this._handleEnds,O=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:O[0],y:0,width:O[1]-O[0],height:I[1]}),this._updateDataInfo(T)},_updateDataInfo:function(T){var S=this.dataZoomModel,b=this._displayables,O=b.handleLabels,I=this._orient,L=["",""];if(S.get("showDetail")){var N=S.findRepresentativeAxisProxy();if(N){var D=N.getAxisModel().axis,R=this._range,k=T?N.calculateDataWindow({start:R[0],end:R[1]}).valueWindow:N.getDataValueWindow();L=[this._formatLabel(k[0],D),this._formatLabel(k[1],D)]}}var M=i(this._handleEnds.slice());j.call(this,0),j.call(this,1);function j(F){var U=C.getTransform(b.handles[F].parent,this.group),K=C.transformDirection(F===0?"right":"left",U),V=this._handleWidth/2+h,z=C.applyTransform([M[F]+(F===0?-V:V),this._size[1]/2],U);O[F].setStyle({x:z[0],y:z[1],textVerticalAlign:I===s?"middle":K,textAlign:I===s?K:"center",text:L[F]})}},_formatLabel:function(T,S){var b=this.dataZoomModel,O=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 _.isFunction(O)?O(T,L):_.isString(O)?O.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,O){this._dragging=!0,E.stop(O.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 O=this._handleEnds,I=(O[0]+O[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(O){if(!T&&O.length){var I=O[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 _=d("cIOH"),E=d.n(_),C=d("lnY3"),A=d.n(C),w=d("Znn+"),m=d("14J3"),f=d("jCWc")},J66h:function(H,B,d){(function(_){var E,C;(function(A,w){H.exports=w(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof _!="undefined"?_:this,function(A){"use strict";A=A||{};var w=A.Base64,m="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(D){for(var R={},k=0,M=D.length;k<M;k++)R[D.charAt(k)]=k;return R}(f),o=String.fromCharCode,r=function(R){if(R.length<2){var k=R.charCodeAt(0);return k<128?R:k<2048?o(192|k>>>6)+o(128|k&63):o(224|k>>>12&15)+o(128|k>>>6&63)+o(128|k&63)}else{var k=65536+(R.charCodeAt(0)-55296)*1024+(R.charCodeAt(1)-56320);return o(240|k>>>18&7)+o(128|k>>>12&63)+o(128|k>>>6&63)+o(128|k&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(R){return R.replace(i,r)},e=function(R){var k=[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),j=[f.charAt(M>>>18),f.charAt(M>>>12&63),k>=2?"=":f.charAt(M>>>6&63),k>=1?"=":f.charAt(M&63)];return j.join("")},l=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 l(n(String(R)))},a=function(R){return R.replace(/[+\/]/g,function(k){return k=="+"?"-":"_"}).replace(/=/g,"")},s=function(R,k){return k?a(t(R)):t(R)},u=function(R){return s(R,!0)},h;A.Uint8Array&&(h=function(R,k){for(var M="",j=0,F=R.length;j<F;j+=3){var U=R[j],K=R[j+1],V=R[j+2],z=U<<16|K<<8|V;M+=f.charAt(z>>>18)+f.charAt(z>>>12&63)+(typeof K!="undefined"?f.charAt(z>>>6&63):"=")+(typeof V!="undefined"?f.charAt(z&63):"=")}return k?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 k=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),M=k-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 k=R.length,M=k%4,j=(k>0?c[R.charAt(0)]<<18:0)|(k>1?c[R.charAt(1)]<<12:0)|(k>2?c[R.charAt(2)]<<6:0)|(k>3?c[R.charAt(3)]:0),F=[o(j>>>16),o(j>>>8&255),o(j&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(k){return k=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},O=function(R){return S(b(R))},I;A.Uint8Array&&(I=function(R){return Uint8Array.from(T(b(R)),function(k){return k.charCodeAt(0)})});var L=function(){var R=A.Base64;return A.Base64=w,R};if(A.Base64={VERSION:m,atob:T,btoa:l,fromBase64:O,toBase64:s,utob:n,encode:s,encodeURI:u,btou:v,decode:O,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 O(this)})),Object.defineProperty(String.prototype,"toBase64",N(function(D){return s(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",N(function(){return s(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 _=d("Tghj"),E=_.__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(l){m.defaultEmphasis(l,"label",["show"])}var n=C.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,t,a){this.mergeDefaultAndTheme(l,a),this._mergeOption(l,a,!1,!0)},isAnimationEnabled:function(){if(w.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,t){this._mergeOption(l,t,!1,!1)},_mergeOption:function(l,t,a,s){var u=this.constructor,h=this.mainType+"Model";a||t.eachSeries(function(p){var g=p.get(this.mainType,!0),v=p[h];if(!g||!g.data){p[h]=null;return}v?v._mergeOption(g,t,!0):(s&&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(l){var t=this.getData(),a=this.getRawValue(l),s=A.isArray(a)?A.map(a,o).join(", "):o(a),u=t.getName(l),h=r(this.name);return(a!=null||u)&&(h+="<br />"),u&&(h+=r(u),a!=null&&(h+=" : ")),a!=null&&(h+=r(s)),h},getData:function(){return this._data},setData:function(l){this._data=l}});A.mixin(n,c);var e=n;H.exports=e},JGo8:function(H,B,d){},JLnu:function(H,B,d){var _=d("+TT/"),E=d("OELB"),C=E.parsePercent,A=E.linearMap;function w(o,r){return _.getLayoutRect(o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function m(o,r){for(var i=o.mapDimension("value"),n=o.mapArray(i,function(s){return s}),e=[],l=r==="ascending",t=0,a=o.count();t<a;t++)e[t]=t;return typeof r=="function"?e.sort(r):r!=="none"&&e.sort(function(s,u){return l?n[s]-n[u]:n[u]-n[s]}),e}function f(o){o.each(function(r){var i=o.getItemModel(r),n=i.getModel("label"),e=n.get("position"),l=i.getModel("labelLine"),t=o.getItemLayout(r),a=t.points,s=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",u,h,p,g;if(s)e==="insideLeft"?(h=(a[0][0]+a[3][0])/2+5,p=(a[0][1]+a[3][1])/2,u="left"):e==="insideRight"?(h=(a[1][0]+a[2][0])/2-5,p=(a[1][1]+a[2][1])/2,u="right"):(h=(a[0][0]+a[1][0]+a[2][0]+a[3][0])/4,p=(a[0][1]+a[1][1]+a[2][1]+a[3][1])/4,u="center"),g=[[h,p],[h,p]];else{var v,y,x,T=l.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:s}})}function c(o,r,i){o.eachSeriesByType("funnel",function(n){var e=n.getData(),l=e.mapDimension("value"),t=n.get("sort"),a=w(n,r),s=m(e,t),u=[C(n.get("minSize"),a.width),C(n.get("maxSize"),a.width)],h=e.getDataExtent(l),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(k,M){var j=e.get(l,k)||0,F=A(j,[p,g],u,!0),U;switch(v){case"left":U=a.x;break;case"center":U=a.x+(a.width-F)/2;break;case"right":U=a.x+a.width-F;break}return[[U,M],[U+F,M]]};t==="ascending"&&(x=-x,y=-y,T+=a.height,s=s.reverse());for(var b=0;b<s.length;b++){var O=s[b],I=s[b+1],L=e.getItemModel(O),N=L.get("itemStyle.height");N==null?N=x:(N=C(N,a.height),t==="ascending"&&(N=-N));var D=S(O,T),R=S(I,T+N);T+=N+y,e.setItemLayout(O,{points:D.concat(R.slice().reverse())})}f(e)})}H.exports=c},JSwD:function(H,B,d){"use strict";function _(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(u){return typeof u}:_=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},_(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||_(a)!=="object"&&typeof a!="function")return{default:a};var s=C();if(s&&s.has(a))return s.get(a);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(Object.prototype.hasOwnProperty.call(a,p)){var 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,s&&s.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],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(a,s,u,h,p,g,v,y){var x=y.bits,T=0,S=0,b=0,O=0,I=0,L=0,N=0,D=0,R=0,k=0,M,j,F,U,K,V=null,z=0,Q,Z=new E.Buf16(w+1),le=new E.Buf16(w+1),ne=null,ve=0,xe,_e,Be;for(T=0;T<=w;T++)Z[T]=0;for(S=0;S<h;S++)Z[s[u+S]]++;for(I=x,O=w;O>=1&&!(Z[O]!==0);O--);if(I>O&&(I=O),O===0)return p[g++]=1<<24|64<<16|0,p[g++]=1<<24|64<<16|0,y.bits=1,0;for(b=1;b<O&&!(Z[b]!==0);b++);for(I<b&&(I=b),D=1,T=1;T<=w;T++)if(D<<=1,D-=Z[T],D<0)return-1;if(D>0&&(a===c||O!==1))return-1;for(le[1]=0,T=1;T<w;T++)le[T+1]=le[T]+Z[T];for(S=0;S<h;S++)s[u+S]!==0&&(v[le[s[u+S]]++]=S);if(a===c?(V=ne=v,Q=19):a===o?(V=i,z-=257,ne=n,ve-=257,Q=256):(V=e,ne=l,Q=-1),k=0,S=0,T=b,K=g,L=I,N=0,F=-1,R=1<<I,U=R-1,a===o&&R>m||a===r&&R>f)return 1;for(;;){xe=T-N,v[S]<Q?(_e=0,Be=v[S]):v[S]>Q?(_e=ne[ve+v[S]],Be=V[z+v[S]]):(_e=32+64,Be=0),M=1<<T-N,j=1<<L,b=j;do j-=M,p[K+(k>>N)+j]=xe<<24|_e<<16|Be|0;while(j!==0);for(M=1<<T-1;k&M;)M>>=1;if(M!==0?(k&=M-1,k+=M):k=0,S++,--Z[T]===0){if(T===O)break;T=s[u+v[S]]}if(T>I&&(k&U)!==F){for(N===0&&(N=I),K+=b,L=T-N,D=1<<L;L+N<O&&!(D-=Z[L+N],D<=0);)L++,D<<=1;if(R+=1<<L,a===o&&R>m||a===r&&R>f)return 1;F=k&U,p[F]=I<<24|L<<16|K-g|0}}return k!==0&&(p[K+k]=T-N<<24|64<<16|0),y.bits=I,0}},JVwQ:function(H,B,d){var _=d("ProS"),E=d("1NG9"),C=E.Polygon,A=d("IwbS"),w=d("bYtY"),m=w.bind,f=w.extend,c=d("gPAo"),o=_.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(i,n,e){var l=i.getData(),t=this.group,a=i.getLayerSeries(),s=l.getLayout("layoutInfo"),u=s.rect,h=s.boundaryGap;t.attr("position",[0,u.y+h[0]]);function p(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 O=[],I=[],L,N=a[T].indices,D=0;D<N.length;D++){var R=l.getItemLayout(N[D]),k=R.x,M=R.y0,j=R.y;O.push([k,M]),I.push([k,M+j]),L=l.getItemVisual(N[D],"color")}var F,U,K=l.getItemLayout(N[0]),V=l.getItemModel(N[D-1]),z=V.getModel("label"),Q=z.get("margin");if(x==="add"){var Z=v[T]=new A.Group;F=new C({shape:{points:O,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),U=new A.Text({style:{x:K.x-Q,y:K.y0+K.y/2}}),Z.add(F),Z.add(U),t.add(Z),F.setClipPath(r(F.getBoundingRect(),i,function(){F.removeClipPath()}))}else{var Z=b[S];F=Z.childAt(0),U=Z.childAt(1),t.add(Z),v[T]=Z,A.updateProps(F,{shape:{points:O,stackedOnPoints:I}},i),A.updateProps(U,{style:{x:K.x-Q,y:K.y0+K.y/2}},i)}var le=V.getModel("emphasis.itemStyle"),ne=V.getModel("itemStyle");A.setTextStyle(U.style,z,{text:z.get("show")?i.getFormattedLabel(N[D-1],"normal")||l.getName(N[D-1]):null,textVerticalAlign:"middle"}),F.setStyle(f({fill:L},ne.getItemStyle(["color"]))),A.setHoverStyle(F,le.getItemStyle())}this._layersSeries=a,this._layers=v},dispose:function(){}});function r(i,n,e){var l=new A.Rect({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}});return A.initProps(l,{shape:{width:i.width+20,height:i.height+20}},n,e),l}H.exports=o},JgUQ:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},JsLm:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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"),l=d.n(e),t=d("q1tI"),a=d("i8i4"),s=d("TSYQ"),u=d.n(s),h=d("zT1h"),p=d("cDf5"),g=d.n(p),v=d("BGR+"),y=d("6ner"),x=d("H84U"),T=d("RIqP"),S=d.n(T),b=d("xEkU"),O=d.n(b);function I(oe){var Y,G=function(de){return function(){Y=null,oe.apply(void 0,S()(de))}},X=function(){if(Y==null){for(var de=arguments.length,Ce=new Array(de),Me=0;Me<de;Me++)Ce[Me]=arguments[Me];Y=O()(G(Ce))}};return X.cancel=function(){return O.a.cancel(Y)},X}function L(){return function(oe,Y,G){var X=G.value,fe=!1;return{configurable:!0,get:function(){if(fe||this===oe.prototype||this.hasOwnProperty(Y))return X;var Ce=I(X.bind(this));return fe=!0,Object.defineProperty(this,Y,{value:Ce,configurable:!0,writable:!0}),fe=!1,Ce}}}}function N(oe){return oe!==window?oe.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function D(oe,Y,G){return G!==void 0&&Y.top>oe.top-G?G+Y.top:void 0}function R(oe,Y,G){if(G!==void 0&&Y.bottom<oe.bottom+G){var X=window.innerHeight-Y.bottom;return G+X}return}var k=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],M=[];function j(){return M}function F(oe,Y){if(!oe)return;var G=M.find(function(X){return X.target===oe});G?G.affixList.push(Y):(G={target:oe,affixList:[Y],eventHandlers:{}},M.push(G),k.forEach(function(X){G.eventHandlers[X]=Object(h.a)(oe,X,function(){G.affixList.forEach(function(fe){fe.lazyUpdatePosition()})})}))}function U(oe){var Y=M.find(function(G){var X=G.affixList.some(function(fe){return fe===oe});return X&&(G.affixList=G.affixList.filter(function(fe){return fe!==oe})),X});Y&&Y.affixList.length===0&&(M=M.filter(function(G){return G!==Y}),k.forEach(function(G){var X=Y.eventHandlers[G];X&&X.remove&&X.remove()}))}var K=function(oe,Y,G,X){var fe=arguments.length,de=fe<3?Y:X===null?X=Object.getOwnPropertyDescriptor(Y,G):X,Ce;if((typeof Reflect=="undefined"?"undefined":g()(Reflect))==="object"&&typeof Reflect.decorate=="function")de=Reflect.decorate(oe,Y,G,X);else for(var Me=oe.length-1;Me>=0;Me--)(Ce=oe[Me])&&(de=(fe<3?Ce(de):fe>3?Ce(Y,G,de):Ce(Y,G))||de);return fe>3&&de&&Object.defineProperty(Y,G,de),de};function V(){return typeof window!="undefined"?window:null}var z;(function(oe){oe[oe.None=0]="None",oe[oe.Prepare=1]="Prepare"})(z||(z={}));var Q=function(oe){n()(G,oe);var Y=l()(G);function G(){var X;return m()(this,G),X=Y.apply(this,arguments),X.state={status:z.None,lastAffix:!1,prevTarget:null},X.getOffsetTop=function(){var fe=X.props.offsetBottom,de=X.props.offsetTop;return fe===void 0&&de===void 0&&(de=0),de},X.getOffsetBottom=function(){return X.props.offsetBottom},X.savePlaceholderNode=function(fe){X.placeholderNode=fe},X.saveFixedNode=function(fe){X.fixedNode=fe},X.measure=function(){var fe=X.state,de=fe.status,Ce=fe.lastAffix,Me=X.props.onChange,ue=X.getTargetFunc();if(de!==z.Prepare||!X.fixedNode||!X.placeholderNode||!ue)return;var Ae=X.getOffsetTop(),Te=X.getOffsetBottom(),Je=ue();if(!Je)return;var At={status:z.None},qe=N(Je),Re=N(X.placeholderNode),Lt=D(Re,qe,Ae),$e=R(Re,qe,Te);Lt!==void 0?(At.affixStyle={position:"fixed",top:Lt,width:Re.width,height:Re.height},At.placeholderStyle={width:Re.width,height:Re.height}):$e!==void 0&&(At.affixStyle={position:"fixed",bottom:$e,width:Re.width,height:Re.height},At.placeholderStyle={width:Re.width,height:Re.height}),At.lastAffix=!!At.affixStyle,Me&&Ce!==At.lastAffix&&Me(At.lastAffix),X.setState(At)},X.prepareMeasure=function(){if(X.setState({status:z.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var fe},X.render=function(){var fe=X.context.getPrefixCls,de=X.state,Ce=de.affixStyle,Me=de.placeholderStyle,ue=X.props,Ae=ue.prefixCls,Te=ue.children,Je=u()(A()({},fe("affix",Ae),Ce)),At=Object(v.default)(X.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return t.createElement(y.a,{onResize:function(){X.updatePosition()}},t.createElement("div",E()({},At,{ref:X.savePlaceholderNode}),Ce&&t.createElement("div",{style:Me,"aria-hidden":"true"}),t.createElement("div",{className:Je,ref:X.saveFixedNode,style:Ce},t.createElement(y.a,{onResize:function(){X.updatePosition()}},Te))))},X}return c()(G,[{key:"getTargetFunc",value:function(){var fe=this.context.getTargetContainer,de=this.props.target;return de!==void 0?de:fe||V}},{key:"componentDidMount",value:function(){var fe=this,de=this.getTargetFunc();de&&(this.timeout=setTimeout(function(){F(de(),fe),fe.updatePosition()}))}},{key:"componentDidUpdate",value:function(fe){var de=this.state.prevTarget,Ce=this.getTargetFunc(),Me=null;Ce&&(Me=Ce()||null),de!==Me&&(U(this),Me&&(F(Me,this),this.updatePosition()),this.setState({prevTarget:Me})),(fe.offsetTop!==this.props.offsetTop||fe.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),U(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var fe=this.getTargetFunc(),de=this.state.affixStyle;if(fe&&de){var Ce=this.getOffsetTop(),Me=this.getOffsetBottom(),ue=fe();if(ue&&this.placeholderNode){var Ae=N(ue),Te=N(this.placeholderNode),Je=D(Te,Ae,Ce),At=R(Te,Ae,Me);if(Je!==void 0&&de.top===Je||At!==void 0&&de.bottom===At)return}}this.prepareMeasure()}}]),G}(t.Component);Q.contextType=x.b,K([L()],Q.prototype,"updatePosition",null),K([L()],Q.prototype,"lazyUpdatePosition",null);var Z=Q,le=d("zAh6"),ne=d("i6bk"),ve=t.createContext(null),xe=ve;function _e(){return window}function Be(oe,Y){if(!oe.getClientRects().length)return 0;var G=oe.getBoundingClientRect();return G.width||G.height?Y===window?(Y=oe.ownerDocument.documentElement,G.top-Y.clientTop):G.top-Y.getBoundingClientRect().top:G.top}var me=/#(\S+)$/,Fe=function(oe){n()(G,oe);var Y=l()(G);function G(){var X;return m()(this,G),X=Y.apply(this,arguments),X.state={activeLink:null},X.links=[],X.registerLink=function(fe){X.links.includes(fe)||X.links.push(fe)},X.unregisterLink=function(fe){var de=X.links.indexOf(fe);de!==-1&&X.links.splice(de,1)},X.getContainer=function(){var fe=X.context.getTargetContainer,de=X.props.getContainer,Ce=de||fe||_e;return Ce()},X.handleScrollTo=function(fe){var de=X.props,Ce=de.offsetTop,Me=de.targetOffset;X.setCurrentActiveLink(fe);var ue=X.getContainer(),Ae=Object(ne.a)(ue,!0),Te=me.exec(fe);if(!Te)return;var Je=document.getElementById(Te[1]);if(!Je)return;var At=Be(Je,ue),qe=Ae+At;qe-=Me!==void 0?Me:Ce||0,X.animating=!0,Object(le.a)(qe,{callback:function(){X.animating=!1},getContainer:X.getContainer})},X.saveInkNode=function(fe){X.inkNode=fe},X.setCurrentActiveLink=function(fe){var de=X.state.activeLink,Ce=X.props.onChange;de!==fe&&(X.setState({activeLink:fe}),Ce&&Ce(fe))},X.handleScroll=function(){if(X.animating)return;var fe=X.props,de=fe.offsetTop,Ce=fe.bounds,Me=fe.targetOffset,ue=X.getCurrentAnchor(Me!==void 0?Me:de||0,Ce);X.setCurrentActiveLink(ue)},X.updateInk=function(){var fe=r()(X),de=fe.prefixCls,Ce=a.findDOMNode(r()(X)),Me=Ce.getElementsByClassName("".concat(de,"-link-title-active"))[0];Me&&(X.inkNode.style.top="".concat(Me.offsetTop+Me.clientHeight/2-4.5,"px"))},X.render=function(){var fe=X.context,de=fe.getPrefixCls,Ce=fe.direction,Me=X.props,ue=Me.prefixCls,Ae=Me.className,Te=Ae===void 0?"":Ae,Je=Me.style,At=Me.offsetTop,qe=Me.affix,Re=Me.showInkInFixed,Lt=Me.children,$e=X.state.activeLink,Et=de("anchor",ue);X.prefixCls=Et;var Ut=u()("".concat(Et,"-ink-ball"),{visible:$e}),Bt=u()(Te,"".concat(Et,"-wrapper"),A()({},"".concat(Et,"-rtl"),Ce==="rtl")),_t=u()(Et,{fixed:!qe&&!Re}),jt=E()({maxHeight:At?"calc(100vh - ".concat(At,"px)"):"100vh"},Je),He=t.createElement("div",{className:Bt,style:jt},t.createElement("div",{className:_t},t.createElement("div",{className:"".concat(Et,"-ink")},t.createElement("span",{className:Ut,ref:X.saveInkNode})),Lt));return t.createElement(xe.Provider,{value:{registerLink:X.registerLink,unregisterLink:X.unregisterLink,activeLink:X.state.activeLink,scrollTo:X.handleScrollTo,onClick:X.props.onClick}},qe?t.createElement(Z,{offsetTop:At,target:X.getContainer},He):He)},X}return c()(G,[{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 fe=this.getContainer();this.scrollContainer!==fe&&(this.scrollContainer=fe,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 fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ce=this.props.getCurrentAnchor;if(typeof Ce=="function")return Ce();var Me=[],ue=this.getContainer();if(this.links.forEach(function(Te){var Je=me.exec(Te.toString());if(!Je)return;var At=document.getElementById(Je[1]);if(At){var qe=Be(At,ue);qe<fe+de&&Me.push({link:Te,top:qe})}}),Me.length){var Ae=Me.reduce(function(Te,Je){return Je.top>Te.top?Je:Te});return Ae.link}return""}}]),G}(t.Component);Fe.defaultProps={affix:!0,showInkInFixed:!1},Fe.contextType=x.b;var ie=function(oe){n()(G,oe);var Y=l()(G);function G(){var X;return m()(this,G),X=Y.apply(this,arguments),X.handleClick=function(fe){var de=X.context,Ce=de.scrollTo,Me=de.onClick,ue=X.props,Ae=ue.href,Te=ue.title;Me&&Me(fe,{title:Te,href:Ae}),Ce(Ae)},X.renderAnchorLink=function(fe){var de=fe.getPrefixCls,Ce=X.props,Me=Ce.prefixCls,ue=Ce.href,Ae=Ce.title,Te=Ce.children,Je=Ce.className,At=Ce.target,qe=de("anchor",Me),Re=X.context.activeLink===ue,Lt=u()(Je,"".concat(qe,"-link"),A()({},"".concat(qe,"-link-active"),Re)),$e=u()("".concat(qe,"-link-title"),A()({},"".concat(qe,"-link-title-active"),Re));return t.createElement("div",{className:Lt},t.createElement("a",{className:$e,href:ue,title:typeof Ae=="string"?Ae:"",target:At,onClick:X.handleClick},Ae),Te)},X}return c()(G,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(fe){var de=fe.href,Ce=this.props.href;de!==Ce&&(this.context.unregisterLink(de),this.context.registerLink(Ce))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return t.createElement(x.a,null,this.renderAnchorLink)}}]),G}(t.Component);ie.defaultProps={href:"#"},ie.contextType=xe;var te=ie;Fe.Link=te;var Ge=B.a=Fe},JuEJ:function(H,B,d){var _=d("bYtY"),E=d("4NO4"),C=_.each,A=_.isObject,w=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function m(t){var a=t&&t.itemStyle;if(!a)return;for(var s=0,u=w.length;s<u;s++){var h=w[s],p=a.normal,g=a.emphasis;p&&p[h]&&(t[h]=t[h]||{},t[h].normal?_.merge(t[h].normal,p[h]):t[h].normal=p[h],p[h]=null),g&&g[h]&&(t[h]=t[h]||{},t[h].emphasis?_.merge(t[h].emphasis,g[h]):t[h].emphasis=g[h],g[h]=null)}}function f(t,a,s){if(t&&t[a]&&(t[a].normal||t[a].emphasis)){var u=t[a].normal,h=t[a].emphasis;u&&(s?(t[a].normal=t[a].emphasis=null,_.defaults(t[a],u)):t[a]=u),h&&(t.emphasis=t.emphasis||{},t.emphasis[a]=h)}}function c(t){f(t,"itemStyle"),f(t,"lineStyle"),f(t,"areaStyle"),f(t,"label"),f(t,"labelLine"),f(t,"upperLabel"),f(t,"edgeLabel")}function o(t,a){var s=A(t)&&t[a],u=A(s)&&s.textStyle;if(u)for(var h=0,p=E.TEXT_STYLE_OPTIONS.length;h<p;h++){var a=E.TEXT_STYLE_OPTIONS[h];u.hasOwnProperty(a)&&(s[a]=u[a])}}function r(t){t&&(c(t),o(t,"label"),t.emphasis&&o(t.emphasis,"label"))}function i(t){if(!A(t))return;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 s=t.markLine;s&&(m(s),r(s));var u=t.markArea;u&&r(u);var h=t.data;if(t.type==="graph"){h=h||t.nodes;var p=t.links||t.edges;if(p&&!_.isTypedArray(p))for(var g=0;g<p.length;g++)r(p[g]);_.each(t.categories,function(x){c(x)})}if(h&&!_.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 s=t.markLine;if(s&&s.data)for(var y=s.data,g=0;g<y.length;g++)_.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"),_.each(t.levels,function(x){c(x)})):t.type==="tree"&&c(t.leaves)}function n(t){return _.isArray(t)?t:t?[t]:[]}function e(t){return(_.isArray(t)?t[0]:t)||{}}function l(t,a){C(n(t.series),function(u){A(u)&&i(u)});var s=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&s.push("valueAxis","categoryAxis","logAxis","timeAxis"),C(s,function(u){C(n(t[u]),function(h){h&&(o(h,"axisLabel"),o(h.axisPointer,"label"))})}),C(n(t.parallel),function(u){var h=u&&u.parallelAxisDefault;o(h,"axisLabel"),o(h&&h.axisPointer,"label")}),C(n(t.calendar),function(u){f(u,"itemStyle"),o(u,"dayLabel"),o(u,"monthLabel"),o(u,"yearLabel")}),C(n(t.radar),function(u){o(u,"name")}),C(n(t.geo),function(u){A(u)&&(r(u),C(n(u.regions),function(h){r(h)}))}),C(n(t.timeline),function(u){r(u),f(u,"label"),f(u,"itemStyle"),f(u,"controlStyle",!0);var h=u.data;_.isArray(h)&&_.each(h,function(p){_.isObject(p)&&(f(p,"label"),f(p,"itemStyle"))})}),C(n(t.toolbox),function(u){f(u,"iconStyle"),C(u.feature,function(h){f(h,"iconStyle")})}),o(e(t.axisPointer),"label"),o(e(t.tooltip).axisPointer,"label")}H.exports=l},K2GJ:function(H,B,d){var _=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,l){var t=e.x==null?0:e.x,a=e.x2==null?1:e.x2,s=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(t=t*l.width+l.x,a=a*l.width+l.x,s=s*l.height+l.y,u=u*l.height+l.y),t=isNaN(t)?0:t,a=isNaN(a)?1:a,s=isNaN(s)?0:s,u=isNaN(u)?0:u;var h=n.createLinearGradient(t,s,a,u);return h}function f(n,e,l){var t=l.width,a=l.height,s=Math.min(t,a),u=e.x==null?.5:e.x,h=e.y==null?.5:e.y,p=e.r==null?.5:e.r;e.global||(u=u*t+l.x,h=h*a+l.y,p=p*s);var 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,l,t){var a=this,s=t&&t.style,u=!s||e.__attrCachedBy!==C.STYLE_BIND;e.__attrCachedBy=C.STYLE_BIND;for(var h=0;h<A.length;h++){var p=A[h],g=p[0];(u||a[g]!==s[g])&&(e[g]=_(e,g,a[g]||p[1]))}if((u||a.fill!==s.fill)&&(e.fillStyle=a.fill),(u||a.stroke!==s.stroke)&&(e.strokeStyle=a.stroke),(u||a.opacity!==s.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(u||a.blend!==s.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var v=a.lineWidth;e.lineWidth=v/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var t in e)e.hasOwnProperty(t)&&(l===!0||(l===!1?!this.hasOwnProperty(t):e[t]!=null))&&(this[t]=e[t])},set:function(e,l){typeof e=="string"?this[e]=l:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,l,t){for(var a=l.type==="radial"?f:m,s=a(e,l,t),u=l.colorStops,h=0;h<u.length;h++)s.addColorStop(u[h].offset,u[h].color);return s}};for(var c=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(_,E,C){H.exports=B=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(_){return function(){var E=_,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,l=e.hasher.create(),t=w.create(),a=t.words,s=e.keySize,u=e.iterations;a.length<s;){n&&l.update(n),n=l.update(r).finalize(i),l.reset();for(var h=1;h<u;h++)n=l.finalize(n),l.reset();t.concat(n)}return t.sigBytes=s*4,t}});E.EvpKDF=function(o,r,i){return c.create(i).compute(o,r)}}(),_.EvpKDF})},K4ya:function(H,B,d){var _=d("bYtY"),E=d("XxSj"),C=_.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(l){var t=n[l]=e();C(o[l],function(a,s){if(!E.isValidType(s))return;var u={type:s,visual:a};i&&i(u,l),t[s]=new E(u),s==="opacity"&&(u=_.clone(u),u.type="colorAlpha",t.__hidden.__alphaForOpacity=new E(u))})}),n;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var t=new l;return t}}function m(o,r,i){var n;_.each(i,function(e){r.hasOwnProperty(e)&&A(r[e])&&(n=!0)}),n&&_.each(i,function(e){r.hasOwnProperty(e)&&A(r[e])?o[e]=_.clone(r[e]):delete o[e]})}function f(o,r,i,n,e,l){var t={};_.each(o,function(p){var g=E.prepareVisualTypes(r[p]);t[p]=g});var a;function s(p){return i.getItemVisual(a,p)}function u(p,g){i.setItemVisual(a,p,g)}l==null?i.each(h):i.each([l],h);function h(p,g){a=l==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 O=T[S];x[O]&&x[O].applyVisual(p,s,u)}}}function c(o,r,i,n){var e={};_.each(o,function(t){var a=E.prepareVisualTypes(r[t]);e[t]=a});function l(t,a){n!=null&&(n=a.getDimension(n));function s(O){return a.getItemVisual(h,O)}function u(O,I){a.setItemVisual(h,O,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,s,u)}}}return{progress:l}}B.createVisualMappings=w,B.replaceVisualOption=m,B.applyVisual=f,B.incrementalApplyVisual=c},KCsZ:function(H,B,d){var _=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&&_.indexOf(m,r)>=0||f&&_.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 _={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=_},KS52:function(H,B,d){var _=d("OELB"),E=_.parsePercent,C=_.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,l){n.eachSeriesByType(i,function(t){var a=t.getData(),s=a.mapDimension("value"),u=o(t,e),h=t.get("center"),p=t.get("radius");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),O=-t.get("startAngle")*c,I=t.get("minAngle")*c,L=0;a.each(s,function(Q){!isNaN(Q)&&L++});var N=a.getSum(s),D=Math.PI/(N||L)*2,R=t.get("clockwise"),k=t.get("roseType"),M=t.get("stillShowZeroSum"),j=a.getDataExtent(s);j[0]=0;var F=f,U=0,K=O,V=R?1:-1;if(a.each(s,function(Q,Z){var le;if(isNaN(Q)){a.setItemLayout(Z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:R,cx:x,cy:T,r0:S,r:k?NaN:b,viewRect:u});return}k!=="area"?le=N===0&&M?D:Q*D:le=f/L,le<I?(le=I,F-=I):U+=Q;var ne=K+V*le;a.setItemLayout(Z,{angle:le,startAngle:K,endAngle:ne,clockwise:R,cx:x,cy:T,r0:S,r:k?C(Q,j,[S,b]):b,viewRect:u}),K=ne}),F<f&&L)if(F<=.001){var z=f/L;a.each(s,function(Q,Z){if(!isNaN(Q)){var le=a.getItemLayout(Z);le.angle=z,le.startAngle=O+V*Z*z,le.endAngle=O+V*(Z+1)*z}})}else D=F/U,K=O,a.each(s,function(Q,Z){if(!isNaN(Q)){var le=a.getItemLayout(Z),ne=le.angle===I?I:Q*D;le.startAngle=K,le.endAngle=K+V*ne,K+=V*ne}});w(t,b,u.width,u.height,u.x,u.y)})}H.exports=r},KUOm:function(H,B){function d(_){var E={};_.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 _=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),_.registerPreprocessor(E)},KmBX:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.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}}},_.pad.ZeroPadding})},"KpQ+":function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("lSNA"),E=d.n(_),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"),l=d("0n0R"),t=function(b,O){var I={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&O.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++)O.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(O){var I=Number(O);return isNaN(I)?O:I}):[]}function s(b,O){for(var I=[],L=0;L<30;L++)I.push(f.createElement("p",{key:L.toString(),className:r()(O,{current:b===L})},L%10));return I}var u=function(O){var I=O.prefixCls,L=O.count,N=O.className,D=O.style,R=O.title,k=O.component,M=k===void 0?"sup":k,j=O.displayComponent,F=O.onAnimated,U=F===void 0?function(){}:F,K=t(O,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),V=f.useState(!0),z=n()(V,2),Q=z[0],Z=z[1],le=f.useState(L),ne=n()(le,2),ve=ne[0],xe=ne[1],_e=f.useState(L),Be=n()(_e,2),me=Be[0],Fe=Be[1],ie=f.useState(L),te=n()(ie,2),Ge=te[0],oe=te[1],Y=f.useContext(e.b),G=Y.getPrefixCls,X=G("scroll-number",I);me!==L&&(Z(!0),Fe(L)),f.useEffect(function(){oe(ve);var ue;return Q&&(ue=setTimeout(function(){Z(!1),xe(L),U()})),function(){ue&&clearTimeout(ue)}},[Q,L,U]);var fe=function(Ae,Te){var Je=Math.abs(Number(ve)),At=Math.abs(Number(Ge)),qe=Math.abs(a(ve)[Te]),Re=Math.abs(a(At)[Te]);return Q?10+Ae:Je>At?qe>=Re?10+Ae:20+Ae:qe<=Re?10+Ae:Ae},de=function(Ae,Te){if(typeof Ae=="number"){var Je=fe(Ae,Te),At=Q||a(Ge)[Te]===void 0;return f.createElement("span",{className:"".concat(X,"-only"),style:{transition:At?"none":void 0,msTransform:"translateY(".concat(-Je*100,"%)"),WebkitTransform:"translateY(".concat(-Je*100,"%)"),transform:"translateY(".concat(-Je*100,"%)")},key:Te},s(Je,"".concat(X,"-only-unit")))}return f.createElement("span",{key:"symbol",className:"".concat(X,"-symbol")},Ae)},Ce=function(){return ve&&Number(ve)%1===0?a(ve).map(function(Ae,Te){return de(Ae,Te)}).reverse():ve},Me=m()(m()({},K),{style:D,className:r()(X,N),title:R});return D&&D.borderColor&&(Me.style=m()(m()({},D),{boxShadow:"0 0 0 1px ".concat(D.borderColor," inset")})),j?Object(l.a)(j,{className:r()("".concat(X,"-custom-component"),j.props&&j.props.className)}):f.createElement(M,Me,Ce())},h=u,p=d("09Wf");function g(b){return p.a.indexOf(b)!==-1}var v=function(O){var I,L=O.className,N=O.prefixCls,D=O.style,R=O.color,k=O.children,M=O.text,j=O.placement,F=j===void 0?"end":j,U=f.useContext(e.b),K=U.getPrefixCls,V=U.direction,z=K("ribbon",N),Q=g(R),Z=r()(z,L,"".concat(z,"-placement-").concat(F),(I={},E()(I,"".concat(z,"-rtl"),V==="rtl"),E()(I,"".concat(z,"-color-").concat(R),Q),I)),le={},ne={};return R&&!Q&&(le.background=R,ne.color=R),f.createElement("div",{className:"".concat(z,"-wrapper")},k,f.createElement("div",{className:Z,style:m()(m()({},le),D)},M,f.createElement("div",{className:"".concat(z,"-corner"),style:ne})))},y=v,x=function(b,O){var I={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&O.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++)O.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(b,L[N])&&(I[L[N]]=b[L[N]]);return I},T=function(O){var I,L,N=O.prefixCls,D=O.scrollNumberPrefixCls,R=O.children,k=O.status,M=O.text,j=O.color,F=O.count,U=F===void 0?null:F,K=O.overflowCount,V=K===void 0?99:K,z=O.dot,Q=z===void 0?!1:z,Z=O.size,le=Z===void 0?"default":Z,ne=O.title,ve=O.offset,xe=O.style,_e=O.className,Be=O.showZero,me=Be===void 0?!1:Be,Fe=x(O,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),ie=f.useContext(e.b),te=ie.getPrefixCls,Ge=ie.direction,oe=te("badge",N),Y=function(){var Ut=U>V?"".concat(V,"+"):U;return Ut},G=function(){return!!k||!!j},X=function(){var Ut=Y();return Ut==="0"||Ut===0},fe=function(){return Q&&!X()||G()},de=function(){return fe()?"":Y()},Ce=function(){return ne||(typeof U=="string"||typeof U=="number"?U:void 0)},Me=function(){return Ge==="rtl"?ve?m()({left:parseInt(ve[0],10),marginTop:ve[1]},xe):xe:ve?m()({right:-parseInt(ve[0],10),marginTop:ve[1]},xe):xe},ue=function(){var Ut=de(),Bt=Ut==null||Ut==="";return(Bt||X()&&!me)&&!fe()},Ae=function(){var Ut=ue();return Ut||!M?null:f.createElement("span",{className:"".concat(oe,"-status-text")},M)},Te=function(){var Ut=U;return!Ut||A()(Ut)!=="object"?void 0:Object(l.a)(Ut,{style:m()(m()({},Me()),Ut.props&&Ut.props.style)})},Je=function(){var Ut,Bt=te("scroll-number",D),_t=de(),jt=fe(),He=ue(),se=r()((Ut={},E()(Ut,"".concat(oe,"-dot"),jt),E()(Ut,"".concat(oe,"-count"),!jt),E()(Ut,"".concat(oe,"-count-sm"),le==="small"),E()(Ut,"".concat(oe,"-multiple-words"),!jt&&U&&U.toString&&U.toString().length>1),E()(Ut,"".concat(oe,"-status-").concat(k),!!k),E()(Ut,"".concat(oe,"-status-").concat(j),g(j)),Ut)),J=Me();return j&&!g(j)&&(J=J||{},J.background=j),He?null:f.createElement(h,{prefixCls:Bt,"data-show":!He,className:se,count:_t,displayComponent:Te(),title:Ce(),style:J,key:"scrollNumber"})},At=r()((I={},E()(I,"".concat(oe,"-status-dot"),G()),E()(I,"".concat(oe,"-status-").concat(k),!!k),E()(I,"".concat(oe,"-status-").concat(j),g(j)),I)),qe={};j&&!g(j)&&(qe.background=j);var Re=r()(_e,oe,(L={},E()(L,"".concat(oe,"-status"),G()),E()(L,"".concat(oe,"-not-a-wrapper"),!R),E()(L,"".concat(oe,"-rtl"),Ge==="rtl"),L));if(!R&&G()){var Lt=Me(),$e=Lt&&Lt.color;return f.createElement("span",m()({},Fe,{className:Re,style:Lt}),f.createElement("span",{className:At,style:qe}),f.createElement("span",{style:{color:$e},className:"".concat(oe,"-status-text")},M))}return f.createElement("span",m()({},Fe,{className:Re}),R,f.createElement(c.a,{component:"",showProp:"data-show",transitionName:R?"".concat(oe,"-zoom"):"",transitionAppear:!0},Je()),Ae())};T.Ribbon=y;var S=B.a=T},Kvyg:function(H,B,d){},KxBF:function(H,B){function d(_,E,C){var A=-1,w=_.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]=_[A+E];return m}H.exports=d},KxFI:function(H,B,d){},KxfA:function(H,B,d){var _=d("Tghj"),E=_.__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,l=d("7G+c"),t=d("k9D9"),a=t.SOURCE_FORMAT_TYPED_ARRAY,s=t.SOURCE_FORMAT_ARRAY_ROWS,u=t.SOURCE_FORMAT_ORIGINAL,h=t.SOURCE_FORMAT_OBJECT_ROWS;function p(R,k){l.isInstance(R)||(R=l.seriesDataToSource(R)),this._source=R;var M=this._data=R.data,j=R.sourceFormat;j===a&&(this._offset=0,this._dimSize=k,this._data=M);var F=v[j===s?j+"_"+R.seriesLayoutBy:j];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 k=[],M=this._data,j=0;j<M.length;j++){var F=M[j];k.push(F?F[R]:null)}return k},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,k=this._data[R];return k?k.length:0},getItem:function(R){for(var k=[],M=this._source.dimensionsDefine,j=0;j<M.length;j++){var F=this._data[M[j].name];k.push(F?F[R]:null)}return k},appendData:function(R){var k=this._data;f(R,function(M,j){for(var F=k[j]||(k[j]=[]),U=0;U<(M||[]).length;U++)F.push(M[U])})}},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,k){R=R-this._offset,k=k||[];for(var M=this._dimSize*R,j=0;j<this._dimSize;j++)k[j]=this._data[M+j];return k},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 k=0;k<R.length;k++)this._data.push(R[k])}var S={arrayRows:b,objectRows:function(R,k,M,j){return M!=null?R[j]:R},keyedColumns:b,original:function(R,k,M,j){var F=r(R);return M==null||!(F instanceof Array)?F:F[M]},typedArray:b};function b(R,k,M,j){return M!=null?R[M]:R}var O={arrayRows:I,objectRows:function(R,k,M,j){return L(R[k],this._dimensionInfos[k])},keyedColumns:I,original:function(R,k,M,j){var F=R&&(R.value==null?R:R.value);return!this._rawData.pure&&i(R)&&(this.hasItemOption=!0),L(F instanceof Array?F[j]:F,this._dimensionInfos[k])},typedArray:function(R,k,M,j){return R[j]}};function I(R,k,M,j){return L(R[j],this._dimensionInfos[k])}function L(R,k){var M=k&&k.type;if(M==="ordinal"){var j=k&&k.ordinalMeta;return j?j.parseAndCollect(R):R}return M==="time"&&typeof R!="number"&&R!=null&&R!=="-"&&(R=+e(R)),R==null||R===""?NaN:+R}function N(R,k,M){if(!R)return;var j=R.getRawDataItem(k);if(j==null)return;var F=R.getProvider().getSource().sourceFormat,U,K,V=R.getDimensionInfo(M);return V&&(U=V.name,K=V.index),S[F](j,k,K,U)}function D(R,k,M){if(!R)return;var j=R.getProvider().getSource().sourceFormat;if(j!==u&&j!==h)return;var F=R.getRawDataItem(k);if(j===u&&!c(F)&&(F=null),F)return F[M]}B.DefaultDataProvider=p,B.defaultDimValueGetters=O,B.retrieveRawValue=N,B.retrieveRawAttr=D},L0Ub:function(H,B,d){var _=d("bYtY"),E=_.each,C=_.createHashMap,A=_.assert,w=d("Tghj"),m=w.__DEV__,f=C(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var e={},l=e.encode={},t=C(),a=[],s=[],u=e.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};E(n.dimensions,function(y){var x=n.getDimensionInfo(y),T=x.coordDim;if(T){var S=x.coordDimIndex;o(l,T)[S]=y,x.isExtraCoord||(t.set(T,1),i(x.type)&&(a[0]=y),o(u.encode,T)[S]=x.index),x.defaultTooltip&&s.push(y)}f.each(function(b,O){var I=o(l,O),L=x.otherDims[O];L!=null&&L!==!1&&(I[L]=x.name)})});var h=[],p={};t.each(function(y,x){var T=l[x];p[x]=T[0],h=h.concat(T)}),e.dataDimsOnCoord=h,e.encodeFirstDimNotExtra=p;var g=l.label;g&&g.length&&(a=g.slice());var v=l.tooltip;return v&&v.length?s=v.slice():s.length||(s=a.slice()),l.defaultedLabel=a,l.defaultedTooltip=s,e}function o(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function r(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function i(n){return!(n==="ordinal"||n==="time")}B.OTHER_DIMENSIONS=f,B.summarizeDimensions=c,B.getDimensionTypeByAxis=r},L3Oj:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),_.registerLayout(E.curry(C,"bar")),_.extendComponentView({type:"polar"})},L41K:function(H,B,d){"use strict";d.d(B,"a",function(){return U});var _=d("pVnL"),E=d.n(_),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"),l=d.n(e),t=d("BGR+"),a=d("VTBJ"),s=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(K){return typeof K=="string"}var O=function(K){Object(g.a)(z,K);var V=Object(v.a)(z);function z(){var Q;return Object(h.a)(this,z),Q=V.apply(this,arguments),Q.onClick=function(){var Z=Q.props,le=Z.onClick,ne=Z.onStepClick,ve=Z.stepIndex;le&&le.apply(void 0,arguments),ne(ve)},Q}return Object(p.a)(z,[{key:"renderIconNode",value:function(){var Z,le=this.props,ne=le.prefixCls,ve=le.progressDot,xe=le.stepIcon,_e=le.stepNumber,Be=le.status,me=le.title,Fe=le.description,ie=le.icon,te=le.iconPrefix,Ge=le.icons,oe,Y=T()("".concat(ne,"-icon"),"".concat(te,"icon"),(Z={},Object(s.a)(Z,"".concat(te,"icon-").concat(ie),ie&&b(ie)),Object(s.a)(Z,"".concat(te,"icon-check"),!ie&&Be==="finish"&&(Ge&&!Ge.finish||!Ge)),Object(s.a)(Z,"".concat(te,"icon-cross"),!ie&&Be==="error"&&(Ge&&!Ge.error||!Ge)),Z)),G=e.createElement("span",{className:"".concat(ne,"-icon-dot")});return ve?typeof ve=="function"?oe=e.createElement("span",{className:"".concat(ne,"-icon")},ve(G,{index:_e-1,status:Be,title:me,description:Fe})):oe=e.createElement("span",{className:"".concat(ne,"-icon")},G):ie&&!b(ie)?oe=e.createElement("span",{className:"".concat(ne,"-icon")},ie):Ge&&Ge.finish&&Be==="finish"?oe=e.createElement("span",{className:"".concat(ne,"-icon")},Ge.finish):Ge&&Ge.error&&Be==="error"?oe=e.createElement("span",{className:"".concat(ne,"-icon")},Ge.error):ie||Be==="finish"||Be==="error"?oe=e.createElement("span",{className:Y}):oe=e.createElement("span",{className:"".concat(ne,"-icon")},_e),xe&&(oe=xe({index:_e-1,status:Be,title:me,description:Fe,node:oe})),oe}},{key:"render",value:function(){var Z,le=this.props,ne=le.className,ve=le.prefixCls,xe=le.style,_e=le.active,Be=le.status,me=Be===void 0?"wait":Be,Fe=le.iconPrefix,ie=le.icon,te=le.wrapperStyle,Ge=le.stepNumber,oe=le.disabled,Y=le.description,G=le.title,X=le.subTitle,fe=le.progressDot,de=le.stepIcon,Ce=le.tailContent,Me=le.icons,ue=le.stepIndex,Ae=le.onStepClick,Te=le.onClick,Je=Object(u.a)(le,S),At=T()("".concat(ve,"-item"),"".concat(ve,"-item-").concat(me),ne,(Z={},Object(s.a)(Z,"".concat(ve,"-item-custom"),ie),Object(s.a)(Z,"".concat(ve,"-item-active"),_e),Object(s.a)(Z,"".concat(ve,"-item-disabled"),oe===!0),Z)),qe=Object(a.a)({},xe),Re={};return Ae&&!oe&&(Re.role="button",Re.tabIndex=0,Re.onClick=this.onClick),e.createElement("div",Object.assign({},Je,{className:At,style:qe}),e.createElement("div",Object.assign({onClick:Te},Re,{className:"".concat(ve,"-item-container")}),e.createElement("div",{className:"".concat(ve,"-item-tail")},Ce),e.createElement("div",{className:"".concat(ve,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(ve,"-item-content")},e.createElement("div",{className:"".concat(ve,"-item-title")},G,X&&e.createElement("div",{title:typeof X=="string"?X:void 0,className:"".concat(ve,"-item-subtitle")},X)),Y&&e.createElement("div",{className:"".concat(ve,"-item-description")},Y))))}}]),z}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],L=function(K){Object(g.a)(z,K);var V=Object(v.a)(z);function z(){var Q;return Object(h.a)(this,z),Q=V.apply(this,arguments),Q.onStepClick=function(Z){var le=Q.props,ne=le.onChange,ve=le.current;ne&&ve!==Z&&ne(Z)},Q}return Object(p.a)(z,[{key:"render",value:function(){var Z,le=this,ne=this.props,ve=ne.prefixCls,xe=ne.style,_e=xe===void 0?{}:xe,Be=ne.className,me=ne.children,Fe=ne.direction,ie=ne.type,te=ne.labelPlacement,Ge=ne.iconPrefix,oe=ne.status,Y=ne.size,G=ne.current,X=ne.progressDot,fe=ne.stepIcon,de=ne.initial,Ce=ne.icons,Me=ne.onChange,ue=Object(u.a)(ne,I),Ae=ie==="navigation",Te=X?"vertical":te,Je=T()(ve,"".concat(ve,"-").concat(Fe),Be,(Z={},Object(s.a)(Z,"".concat(ve,"-").concat(Y),Y),Object(s.a)(Z,"".concat(ve,"-label-").concat(Te),Fe==="horizontal"),Object(s.a)(Z,"".concat(ve,"-dot"),!!X),Object(s.a)(Z,"".concat(ve,"-navigation"),Ae),Z));return l.a.createElement("div",Object.assign({className:Je,style:_e},ue),Object(y.a)(me).map(function(At,qe){var Re=de+qe,Lt=Object(a.a)({stepNumber:"".concat(Re+1),stepIndex:Re,key:Re,prefixCls:ve,iconPrefix:Ge,wrapperStyle:_e,progressDot:X,stepIcon:fe,icons:Ce,onStepClick:Me&&le.onStepClick},At.props);return oe==="error"&&qe===G-1&&(Lt.className="".concat(ve,"-next-error")),At.props.status||(Re===G?Lt.status=oe:Re<G?Lt.status="finish":Lt.status="wait"),Lt.active=Re===G,Object(e.cloneElement)(At,Lt)}))}}]),z}(l.a.Component);L.Step=O,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),k=d("V/uB"),M=d.n(k),j=d("H84U"),F=d("CFYs"),U=function(K){r()(z,K);var V=n()(z);function z(){var Q;return m()(this,z),Q=V.apply(this,arguments),Q.renderSteps=function(Z){var le=Z.getPrefixCls,ne=Z.direction,ve=le("steps",Q.props.prefixCls),xe=le("",Q.props.iconPrefix),_e=Q.props,Be=_e.percent,me=_e.size,Fe=T()(Q.props.className,A()({},"".concat(ve,"-rtl"),ne==="rtl")),ie={finish:e.createElement(R.a,{className:"".concat(ve,"-finish-icon")}),error:e.createElement(M.a,{className:"".concat(ve,"-error-icon")})},te=function(oe){var Y=oe.node,G=oe.status;if(G==="process"&&Be!==void 0){var X=me==="small"?32:40,fe=e.createElement("div",{className:"".concat(ve,"-progress-icon")},e.createElement(F.a,{type:"circle",percent:Be,width:X,strokeWidth:4,format:function(){return null}}),Y);return fe}return Y};return e.createElement(N,E()({icons:ie},Object(t.default)(Q.props,["progress"]),{stepIcon:te,prefixCls:ve,iconPrefix:xe,className:Fe}))},Q}return c()(z,[{key:"render",value:function(){return e.createElement(j.a,null,this.renderSteps)}}]),z}(e.Component);U.Step=N.Step,U.defaultProps={current:0}},L5E0:function(H,B){var d=["itemStyle","borderColor"];function _(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=_},LBfv:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=E.createHashMap,A=E.each;_.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 _(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,l=90,t=250,a=1e3,s=1e3,u=50,h=function(){function p(){_(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 O=this._tracked.find(function(N){return N.id!==v}),I=Math.hypot(O.firstX-O.lastX,O.firstY-O.lastY);if(I>e){var L=Math.abs(T.angle-O.angle);L=Math.abs((L+180)%360-180),L>l?this._state&=~r:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(v,y,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()},s)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=o,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var v=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return v._twoTouchTimeout()},u)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var v=this._getAverageMovement(),y=Math.abs(v.x),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 O=new CustomEvent(v,{detail:y});this._target.dispatchEvent(O)}},{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 _=0,E=d;B.debugMode=_,B.devicePixelRatio=E},LPzL:function(H,B,d){var _=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),_.extendComponentView({type:"single"})},LSTS:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _=function(){function n(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,l,t){return l&&n(e.prototype,l),t&&n(e,t),e}}(),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 l={};for(var t in n){if(e.indexOf(t)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;l[t]=n[t]}return l}function c(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function o(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function r(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var i=function(n){r(e,n);function e(l){c(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return _(e,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,a={get passive(){t=!0}};try{document.addEventListener("test",null,a),document.removeEventListener("test",null,a)}catch(s){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var a=this.props.getScrollParent&&this.props.getScrollParent();return a!=null?a:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var a=window;this.props.useWindow===!1&&(a=t),a.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),a.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,a=window,s=this.getParentElement(t),u=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,p=a.pageYOffset!==void 0?a.pageYOffset:h.scrollTop;this.props.isReverse?u=p:u=this.calculateOffset(t,p)}else this.props.isReverse?u=s.scrollTop:u=t.scrollHeight-s.scrollTop-s.clientHeight;u<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=s.scrollHeight,this.beforeScrollTop=s.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(t,a){return t?this.calculateTopPosition(t)+(t.offsetHeight-a-window.innerHeight):0}},{key:"calculateTopPosition",value:function(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function(){var t=this,a=this.filterProps(this.props),s=a.children,u=a.element,h=a.hasMore,p=a.initialLoad,g=a.isReverse,v=a.loader,y=a.loadMore,x=a.pageStart,T=a.ref,S=a.threshold,b=a.useCapture,O=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=[s];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 _=E(d("Mds0"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},LlR5:function(H,B,d){"use strict";d.d(B,"b",function(){return g});var _=d("lSNA"),E=d.n(_),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("q1tI"),n=d.n(i),e=d("TSYQ"),l=d.n(e),t=d("kbBi"),a=d.n(t),s=d("CWQg"),u=d("mh/l"),h=d("0n0R"),p=Object(s.a)("text","input");function g(y){return!!(y.prefix||y.suffix||y.allowClear)}var v=function(y){c()(T,y);var x=r()(T);function T(){var S;return A()(this,T),S=x.apply(this,arguments),S.containerRef=i.createRef(),S.onInputMouseUp=function(b){var O;if((O=S.containerRef.current)===null||O===void 0?void 0:O.contains(b.target)){var I=S.props.triggerFocus;I()}},S}return m()(T,[{key:"renderClearIcon",value:function(b){var O=this.props,I=O.allowClear,L=O.value,N=O.disabled,D=O.readOnly,R=O.inputType,k=O.handleReset;if(!I)return null;var M=!N&&!D&&L,j=R===p[0]?"".concat(b,"-textarea-clear-icon"):"".concat(b,"-clear-icon");return i.createElement(a.a,{onClick:k,className:l()(j,E()({},"".concat(j,"-hidden"),!M)),role:"button"})}},{key:"renderSuffix",value:function(b){var O=this.props,I=O.suffix,L=O.allowClear;return I||L?i.createElement("span",{className:"".concat(b,"-suffix")},this.renderClearIcon(b),I):null}},{key:"renderLabeledIcon",value:function(b,O){var I,L=this.props,N=L.focused,D=L.value,R=L.prefix,k=L.className,M=L.size,j=L.suffix,F=L.disabled,U=L.allowClear,K=L.direction,V=L.style,z=L.readOnly,Q=L.bordered,Z=this.renderSuffix(b);if(!g(this.props))return Object(h.a)(O,{value:D});var le=R?i.createElement("span",{className:"".concat(b,"-prefix")},R):null,ne=l()(k,"".concat(b,"-affix-wrapper"),(I={},E()(I,"".concat(b,"-affix-wrapper-focused"),N),E()(I,"".concat(b,"-affix-wrapper-disabled"),F),E()(I,"".concat(b,"-affix-wrapper-sm"),M==="small"),E()(I,"".concat(b,"-affix-wrapper-lg"),M==="large"),E()(I,"".concat(b,"-affix-wrapper-input-with-clear-btn"),j&&U&&D),E()(I,"".concat(b,"-affix-wrapper-rtl"),K==="rtl"),E()(I,"".concat(b,"-affix-wrapper-readonly"),z),E()(I,"".concat(b,"-affix-wrapper-borderless"),!Q),I));return i.createElement("span",{ref:this.containerRef,className:ne,style:V,onMouseUp:this.onInputMouseUp},le,Object(h.a)(O,{style:null,value:D,className:Object(u.c)(b,Q,M,F)}),Z)}},{key:"renderInputWithLabel",value:function(b,O){var I,L,N=this.props,D=N.addonBefore,R=N.addonAfter,k=N.style,M=N.size,j=N.className,F=N.direction;if(!D&&!R)return O;var U="".concat(b,"-group"),K="".concat(U,"-addon"),V=D?i.createElement("span",{className:K},D):null,z=R?i.createElement("span",{className:K},R):null,Q=l()("".concat(b,"-wrapper"),(I={},E()(I,U,D||R),E()(I,"".concat(U,"-rtl"),F==="rtl"),I)),Z=l()(j,"".concat(b,"-group-wrapper"),(L={},E()(L,"".concat(b,"-group-wrapper-sm"),M==="small"),E()(L,"".concat(b,"-group-wrapper-lg"),M==="large"),E()(L,"".concat(b,"-group-wrapper-rtl"),F==="rtl"),L));return i.createElement("span",{className:Z,style:k},i.createElement("span",{className:Q},V,Object(h.a)(O,{style:null}),z))}},{key:"renderTextAreaWithClearIcon",value:function(b,O){var I,L=this.props,N=L.value,D=L.allowClear,R=L.className,k=L.style,M=L.direction,j=L.bordered;if(!D)return Object(h.a)(O,{value:N});var F=l()(R,"".concat(b,"-affix-wrapper"),"".concat(b,"-affix-wrapper-textarea-with-clear-btn"),(I={},E()(I,"".concat(b,"-affix-wrapper-rtl"),M==="rtl"),E()(I,"".concat(b,"-affix-wrapper-borderless"),!j),I));return i.createElement("span",{className:F,style:k},Object(h.a)(O,{style:null,value:N}),this.renderClearIcon(b))}},{key:"render",value:function(){var b=this.props,O=b.prefixCls,I=b.inputType,L=b.element;return I===p[0]?this.renderTextAreaWithClearIcon(O,L):this.renderInputWithLabel(O,this.renderLabeledIcon(O,L))}}]),T}(i.Component);B.a=v},Llu2:function(H,B,d){"use strict";var _=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(_.a)(Object(_.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 _="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=_:_=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 _}m()},LtfV:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="InboxOutlined";var f=B.a=E.forwardRef(m)},Lyp1:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="QuestionCircleOutlined";var f=B.a=E.forwardRef(m)},LzGr:function(H,B,d){var _=d("ProS"),E=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),_.registerPreprocessor(E)},MBQ8:function(H,B,d){var _=d("T4UG"),E=d("MwEJ"),C=_.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 _=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"),l=d("NC18"),t=l.createFromString,a=d("bYtY"),s=a.isString,u=a.extend,h=a.defaults,p=a.trim,g=a.each,v=/[\s,]+/;function y(V){if(s(V)){var z=new DOMParser;V=z.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function x(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}x.prototype.parse=function(V,z){z=z||{};var Q=y(V);if(!Q)throw new Error("Illegal svg");var Z=new _;this._root=Z;var le=Q.getAttribute("viewBox")||"",ne=parseFloat(Q.getAttribute("width")||z.width),ve=parseFloat(Q.getAttribute("height")||z.height);isNaN(ne)&&(ne=null),isNaN(ve)&&(ve=null),N(Q,Z,null,!0);for(var xe=Q.firstChild;xe;)this._parseNode(xe,Z),xe=xe.nextSibling;var _e,Be;if(le){var me=p(le).split(v);me.length>=4&&(_e={x:parseFloat(me[0]||0),y:parseFloat(me[1]||0),width:parseFloat(me[2]),height:parseFloat(me[3])})}if(_e&&ne!=null&&ve!=null&&(Be=U(_e,ne,ve),!z.ignoreViewBox)){var Fe=Z;Z=new _,Z.add(Fe),Fe.scale=Be.scale.slice(),Fe.position=Be.position.slice()}return!z.ignoreRootClip&&ne!=null&&ve!=null&&Z.setClipPath(new w({shape:{x:0,y:0,width:ne,height:ve}})),{root:Z,width:ne,height:ve,viewBoxRect:_e,viewBoxTransform:Be}},x.prototype._parseNode=function(V,z){var Q=V.nodeName.toLowerCase();Q==="defs"?this._isDefine=!0:Q==="text"&&(this._isText=!0);var Z;if(this._isDefine){var le=S[Q];if(le){var ne=le.call(this,V),ve=V.getAttribute("id");ve&&(this._defs[ve]=ne)}}else{var le=T[Q];le&&(Z=le.call(this,V,z),z.add(Z))}for(var xe=V.firstChild;xe;)xe.nodeType===1&&this._parseNode(xe,Z),xe.nodeType===3&&this._isText&&this._parseText(xe,Z),xe=xe.nextSibling;Q==="defs"?this._isDefine=!1:Q==="text"&&(this._isText=!1)},x.prototype._parseText=function(V,z){if(V.nodeType===1){var Q=V.getAttribute("dx")||0,Z=V.getAttribute("dy")||0;this._textX+=parseFloat(Q),this._textY+=parseFloat(Z)}var le=new C({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});O(z,le),N(V,le,this._defs);var ne=le.style.fontSize;ne&&ne<9&&(le.style.fontSize=9,le.scale=le.scale||[1,1],le.scale[0]*=ne/9,le.scale[1]*=ne/9);var ve=le.getBoundingRect();return this._textX+=ve.width,z.add(le),le};var T={g:function(z,Q){var Z=new _;return O(Q,Z),N(z,Z,this._defs),Z},rect:function(z,Q){var Z=new w;return O(Q,Z),N(z,Z,this._defs),Z.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)}),Z},circle:function(z,Q){var Z=new A;return O(Q,Z),N(z,Z,this._defs),Z.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),r:parseFloat(z.getAttribute("r")||0)}),Z},line:function(z,Q){var Z=new f;return O(Q,Z),N(z,Z,this._defs),Z.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)}),Z},ellipse:function(z,Q){var Z=new m;return O(Q,Z),N(z,Z,this._defs),Z.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)}),Z},polygon:function(z,Q){var Z=z.getAttribute("points");Z&&(Z=I(Z));var le=new o({shape:{points:Z||[]}});return O(Q,le),N(z,le,this._defs),le},polyline:function(z,Q){var Z=new c;O(Q,Z),N(z,Z,this._defs);var le=z.getAttribute("points");le&&(le=I(le));var ne=new r({shape:{points:le||[]}});return ne},image:function(z,Q){var Z=new E;return O(Q,Z),N(z,Z,this._defs),Z.setStyle({image:z.getAttribute("xlink:href"),x:z.getAttribute("x"),y:z.getAttribute("y"),width:z.getAttribute("width"),height:z.getAttribute("height")}),Z},text:function(z,Q){var Z=z.getAttribute("x")||0,le=z.getAttribute("y")||0,ne=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0;this._textX=parseFloat(Z)+parseFloat(ne),this._textY=parseFloat(le)+parseFloat(ve);var xe=new _;return O(Q,xe),N(z,xe,this._defs),xe},tspan:function(z,Q){var Z=z.getAttribute("x"),le=z.getAttribute("y");Z!=null&&(this._textX=parseFloat(Z)),le!=null&&(this._textY=parseFloat(le));var ne=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0,xe=new _;return O(Q,xe),N(z,xe,this._defs),this._textX+=ne,this._textY+=ve,xe},path:function(z,Q){var Z=z.getAttribute("d")||"",le=t(Z);return O(Q,le),N(z,le,this._defs),le}},S={lineargradient:function(z){var Q=parseInt(z.getAttribute("x1")||0,10),Z=parseInt(z.getAttribute("y1")||0,10),le=parseInt(z.getAttribute("x2")||10,10),ne=parseInt(z.getAttribute("y2")||0,10),ve=new i(Q,Z,le,ne);return b(z,ve),ve},radialgradient:function(z){}};function b(V,z){for(var Q=V.firstChild;Q;){if(Q.nodeType===1){var Z=Q.getAttribute("offset");Z.indexOf("%")>0?Z=parseInt(Z,10)/100:Z?Z=parseFloat(Z):Z=0;var le=Q.getAttribute("stop-color")||"#000000";z.addColorStop(Z,le)}Q=Q.nextSibling}}function O(V,z){V&&V.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),h(z.__inheritedStyle,V.__inheritedStyle))}function I(V){for(var z=p(V).split(v),Q=[],Z=0;Z<z.length;Z+=2){var le=parseFloat(z[Z]),ne=parseFloat(z[Z+1]);Q.push([le,ne])}return Q}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,Q,Z){var le=z.__inheritedStyle||{},ne=z.type==="text";if(V.nodeType===1&&(M(V,z),u(le,F(V)),!Z)){for(var ve in L)if(L.hasOwnProperty(ve)){var xe=V.getAttribute(ve);xe!=null&&(le[L[ve]]=xe)}}var _e=ne?"textFill":"fill",Be=ne?"textStroke":"stroke";z.style=z.style||new n;var me=z.style;le.fill!=null&&me.set(_e,R(le.fill,Q)),le.stroke!=null&&me.set(Be,R(le.stroke,Q)),g(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Fe){var ie=Fe==="lineWidth"&&ne?"textStrokeWidth":Fe;le[Fe]!=null&&me.set(ie,parseFloat(le[Fe]))}),(!le.textBaseline||le.textBaseline==="auto")&&(le.textBaseline="alphabetic"),le.textBaseline==="alphabetic"&&(le.textBaseline="bottom"),le.textAlign==="start"&&(le.textAlign="left"),le.textAlign==="end"&&(le.textAlign="right"),g(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Fe){le[Fe]!=null&&me.set(Fe,le[Fe])}),le.lineDash&&(z.style.lineDash=p(le.lineDash).split(v)),me[Be]&&me[Be]!=="none"&&(z[Be]=!0),z.__inheritedStyle=le}var D=/url\(\s*#(.*?)\)/;function R(V,z){var Q=z&&V&&V.match(D);if(Q){var Z=p(Q[1]),le=z[Z];return le}return V}var k=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(V,z){var Q=V.getAttribute("transform");if(Q){Q=Q.replace(/,/g," ");var Z=null,le=[];Q.replace(k,function(_e,Be,me){le.push(Be,me)});for(var ne=le.length-1;ne>0;ne-=2){var ve=le[ne],xe=le[ne-1];Z=Z||e.create();switch(xe){case"translate":ve=p(ve).split(v),e.translate(Z,Z,[parseFloat(ve[0]),parseFloat(ve[1]||0)]);break;case"scale":ve=p(ve).split(v),e.scale(Z,Z,[parseFloat(ve[0]),parseFloat(ve[1]||ve[0])]);break;case"rotate":ve=p(ve).split(v),e.rotate(Z,Z,parseFloat(ve[0]));break;case"skew":ve=p(ve).split(v),console.warn("Skew transform is not supported yet");break;case"matrix":var ve=p(ve).split(v);Z[0]=parseFloat(ve[0]),Z[1]=parseFloat(ve[1]),Z[2]=parseFloat(ve[2]),Z[3]=parseFloat(ve[3]),Z[4]=parseFloat(ve[4]),Z[5]=parseFloat(ve[5]);break}}z.setLocalTransform(Z)}}var j=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(V){var z=V.getAttribute("style"),Q={};if(!z)return Q;var Z={};j.lastIndex=0;for(var le;(le=j.exec(z))!=null;)Z[le[1]]=le[2];for(var ne in L)L.hasOwnProperty(ne)&&Z[ne]!=null&&(Q[L[ne]]=Z[ne]);return Q}function U(V,z,Q){var Z=z/V.width,le=Q/V.height,ne=Math.min(Z,le),ve=[ne,ne],xe=[-(V.x+V.width/2)*ne+z/2,-(V.y+V.height/2)*ne+Q/2];return{scale:ve,position:xe}}function K(V,z){var Q=new x;return Q.parse(V,z)}B.parseXML=y,B.makeViewBoxTransform=U,B.parseSVG=K},MFOe:function(H,B,d){(function(_){var E=m(),C=f(),A=c(),w=typeof window!="undefined"?window:_;H.exports={assign:E,create:C,trim:A,bind:o,slice:r,each:i,map:n,pluck:e,isList:l,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 s=function(){};return function(h,p,g,v){var y=r(arguments,1);return s.prototype=h,E.apply(this,[new s].concat(y))}}function c(){return String.prototype.trim?function(u){return String.prototype.trim.call(u)}:function(u){return u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function o(s,u){return function(){return u.apply(s,Array.prototype.slice.call(arguments,0))}}function r(s,u){return Array.prototype.slice.call(s,u||0)}function i(s,u){e(s,function(h,p){return u(h,p),!1})}function n(s,u){var h=l(s)?[]:{};return e(s,function(p,g){return h[g]=u(p,g),!1}),h}function e(s,u){if(l(s)){for(var h=0;h<s.length;h++)if(u(s[h],h))return s[h]}else for(var p in s)if(s.hasOwnProperty(p)&&u(s[p],p))return s[p]}function l(s){return s!=null&&typeof s!="function"&&typeof s.length=="number"}function t(s){return s&&{}.toString.call(s)==="[object Function]"}function a(s){return s&&{}.toString.call(s)==="[object Object]"}}).call(this,d("yLpj"))},MH26:function(H,B,d){var _=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,s,u,h){var p=a.getData(),g=h.type;if(!_.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=s.getAxis(h.yAxis!=null?"y":"x"),y=_.retrieve(h.yAxis,h.xAxis);else{var x=A.getAxisInfo(h,p,s,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={};O.type=null,O.coord=[],I.coord=[],O.coord[b]=-Infinity,I.coord[b]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),O.coord[S]=I.coord[S]=y,h=[O,I,{type:g,valueIndex:h.valueIndex,value:y}]}return h=[A.dataTransform(a,h[0]),A.dataTransform(a,h[1]),_.extend({},h[2])],h[2].type=h[2].type||"",_.merge(h[2],h[0]),_.merge(h[2],h[1]),h};function r(a){return!isNaN(a)&&!isFinite(a)}function i(a,s,u,h){var p=1-a,g=h.dimensions[a];return r(s[p])&&r(u[p])&&s[a]===u[a]&&h.getAxis(g).containData(s[a])}function n(a,s){if(a.type==="cartesian2d"){var u=s[0].coord,h=s[1].coord;if(u&&h&&(i(1,u,h,a)||i(0,u,h,a)))return!0}return A.dataFilter(a,s[0])&&A.dataFilter(a,s[1])}function e(a,s,u,h,p){var g=h.coordinateSystem,v=a.getItemModel(s),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,s));else{var S=g.dimensions,b=a.get(S[0],s),O=a.get(S[1],s);y=g.dataToPoint([b,O])}if(g.type==="cartesian2d"){var I=g.getAxis("x"),L=g.getAxis("y"),S=g.dimensions;r(a.get(S[0],s))?y[0]=I.toGlobalCoord(I.getExtent()[u?0:1]):r(a.get(S[1],s))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(x)||(y[0]=x),isNaN(T)||(y[1]=T)}a.setItemLayout(s,y)}var l=m.extend({type:"markLine",updateTransform:function(a,s,u){s.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,s,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,s),S=T.from,b=T.to,O=T.line;s.__from=S,s.__to=b,s.setData(O);var I=s.get("symbol"),L=s.get("symbolSize");_.isArray(I)||(I=[I,I]),typeof L=="number"&&(L=[L,L]),T.from.each(function(D){N(S,D,!0),N(b,D,!1)}),O.each(function(D){var R=O.getItemModel(D).get("lineStyle.color");O.setItemVisual(D,{color:R||S.getItemVisual(D,"color")}),O.setItemLayout(D,[S.getItemLayout(D),b.getItemLayout(D)]),O.setItemVisual(D,{fromSymbolSize:S.getItemVisual(D,"symbolSize"),fromSymbol:S.getItemVisual(D,"symbol"),toSymbolSize:b.getItemVisual(D,"symbolSize"),toSymbol:b.getItemVisual(D,"symbol")})}),x.updateData(O),T.line.eachItemGraphicEl(function(D,R){D.traverse(function(k){k.dataModel=s})});function N(D,R,k){var M=D.getItemModel(R);e(D,R,k,a,h),D.setItemVisual(R,{symbolSize:M.get("symbolSize")||L[k?0:1],symbol:M.get("symbol",!0)||I[k?0:1],color:M.get("itemStyle.color")||v.getVisual("color")})}x.__keep=!0,x.group.silent=s.get("silent")||a.get("silent")}});function t(a,s,u){var h;a?h=_.map(a&&a.dimensions,function(T){var S=s.getData().getDimensionInfo(s.getData().mapDimension(T))||{};return _.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=_.map(u.get("data"),_.curry(o,s,a,u));a&&(y=_.filter(y,_.curry(n,a)));var x=a?A.dimValueGetter:function(T){return T.value};return p.initData(_.map(y,function(T){return T[0]}),null,x),g.initData(_.map(y,function(T){return T[1]}),null,x),v.initData(_.map(y,function(T){return T[2]})),v.hasItemOption=!0,{from:p,to:g,line:v}}H.exports=l},MHoB:function(H,B,d){var _=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):_.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),_.each(this.stateList,function(c){var o=this.option.controller[c].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(c){this.option.range=c.slice(),this._resetRange()},getSelected:function(){var c=this.getExtent(),o=C.asc((this.get("range")||[]).slice());return o[0]>c[1]&&(o[0]=c[1]),o[1]>c[1]&&(o[1]=c[1]),o[0]<c[0]&&(o[0]=c[0]),o[1]<c[0]&&(o[1]=c[0]),o},getValueState:function(c){var o=this.option.range,r=this.getExtent();return(o[0]<=r[0]||o[0]<=c)&&(o[1]>=r[1]||c<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(c){var o=[];return this.eachTargetSeries(function(r){var i=[],n=r.getData();n.each(this.getDataDimension(n),function(e,l){c[0]<=e&&e<=c[1]&&i.push(l)},this),o.push({seriesId:r.id,dataIndex:i})},this),o},getVisualMeta:function(c){var o=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,l=0,t=r.length,a=o.length;l<a&&(!r.length||o[l]<=r[0]);l++)o[l]<r[e]&&n(o[l],"outOfRange");for(var s=1;e<t;e++,s=0)s&&i.length&&n(r[e],"outOfRange"),n(r[e],"inRange");for(var s=1;l<a;l++)(!r.length||r[r.length-1]<o[l])&&(s&&(i.length&&n(i[i.length-1].value,"outOfRange"),s=0),n(o[l],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}}});function 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],l=[],t=0;t<=i&&e<r[1];t++)l.push(e),e+=n;return l.push(r[1]),l}var f=w;H.exports=f},MHtr:function(H,B,d){var _=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:_.bind(E,A)}}}H.exports=C},MJZm:function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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"),l=d("Kwbf"),t=d("TSYQ"),a=d.n(t),s=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(_t,jt){var He=_t.className,se=_t.style,J=_t.motion,Ue=_t.motionNodes,Le=_t.motionType,ee=_t.onMotionStart,ct=_t.onMotionEnd,Mt=_t.active,ot=_t.treeNodeRequiredProps,Yt=Object(g.a)(_t,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),or=w.useState(!0),Zr=Object(p.a)(or,2),ir=Zr[0],dr=Zr[1],qt=w.useContext(s.a),Ht=qt.prefixCls,lt=w.useRef(!1),Hr=function(){lt.current||ct(),lt.current=!0};return Object(w.useEffect)(function(){Ue&&Le==="hide"&&ir&&dr(!1)},[Ue]),Object(w.useEffect)(function(){return Ue&&ee(),function(){Ue&&Hr()}},[]),Ue?w.createElement(y.default,Object.assign({ref:jt,visible:ir},J,{motionAppear:Le==="show",onAppearEnd:Hr,onLeaveEnd:Hr}),function(dn,Nn){var Wn=dn.className,gi=dn.style;return w.createElement("div",{ref:Nn,className:a()("".concat(Ht,"-treenode-motion"),Wn),style:gi},Ue.map(function(yn){var Mn=yn.data,Ft=Mn.key,bt=Object(g.a)(Mn,["key"]),Oe=yn.isStart,Ee=yn.isEnd;delete bt.children;var Ie=Object(h.f)(Ft,ot);return w.createElement(x.a,Object.assign({},bt,Ie,{active:Mt,data:yn.data,key:Ft,isStart:Oe,isEnd:Ee}))}))}):w.createElement(x.a,Object.assign({domRef:jt,className:He,style:se},Yt,{active:Mt}))};T.displayName="MotionTreeNode";var S=w.forwardRef(T),b=S;function O(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=Bt.length,He=_t.length;if(Math.abs(jt-He)!==1)return{add:!1,key:null};function se(J,Ue){var Le=new Map;J.forEach(function(ct){Le.set(ct,!0)});var ee=Ue.filter(function(ct){return!Le.has(ct)});return ee.length===1?ee[0]:null}return jt<He?{add:!0,key:se(Bt,_t)}:{add:!1,key:se(_t,Bt)}}function I(Bt,_t,jt){var He=Bt.findIndex(function(Le){var ee=Le.data;return ee.key===jt}),se=Bt[He+1],J=_t.findIndex(function(Le){var ee=Le.data;return ee.key===jt});if(se){var Ue=_t.findIndex(function(Le){var ee=Le.data;return ee.key===se.data.key});return _t.slice(J+1,Ue)}return _t.slice(J+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},k={key:D,level:0,index:0,pos:"0",node:R},M={parent:null,children:[],pos:k.pos,data:R,isStart:[],isEnd:[]};function j(Bt,_t,jt,He){return _t===!1||!jt?Bt:Bt.slice(0,Math.ceil(jt/He)+1)}function F(Bt){var _t=Bt.data.key,jt=Bt.pos;return Object(h.e)(_t,jt)}function U(Bt){for(var _t=String(Bt.data.key),jt=Bt;jt.parent;)jt=jt.parent,_t="".concat(jt.data.key," > ").concat(_t);return _t}var K=function(_t,jt){var He=_t.prefixCls,se=_t.data,J=_t.selectable,Ue=_t.checkable,Le=_t.expandedKeys,ee=_t.selectedKeys,ct=_t.checkedKeys,Mt=_t.loadedKeys,ot=_t.loadingKeys,Yt=_t.halfCheckedKeys,or=_t.keyEntities,Zr=_t.disabled,ir=_t.dragging,dr=_t.dragOverNodeKey,qt=_t.dropPosition,Ht=_t.motion,lt=_t.height,Hr=_t.itemHeight,dn=_t.virtual,Nn=_t.focusable,Wn=_t.activeItem,gi=_t.focused,yn=_t.tabIndex,Mn=_t.onKeyDown,Ft=_t.onFocus,bt=_t.onBlur,Oe=_t.onActiveChange,Ee=_t.onListChangeStart,Ie=_t.onListChangeEnd,Ye=Object(g.a)(_t,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),rt=w.useRef(null);w.useImperativeHandle(jt,function(){return{scrollTo:function(Ii){rt.current.scrollTo(Ii)}}});var ut=w.useState(Le),Ot=Object(p.a)(ut,2),Ar=Ot[0],Pr=Ot[1],un=w.useState(se),It=Object(p.a)(un,2),nt=It[0],at=It[1],rr=w.useState(se),Pt=Object(p.a)(rr,2),xt=Pt[0],Kt=Pt[1],yt=w.useState([]),kt=Object(p.a)(yt,2),Sr=kt[0],hr=kt[1],gr=w.useState(null),Jr=Object(p.a)(gr,2),$r=Jr[0],kn=Jr[1];function Dn(){at(se),Kt(se),hr([]),kn(null),Ie()}w.useEffect(function(){Pr(Le);var Ai=O(Ar,Le);if(Ai.key!==null)if(Ai.add){var Ii=nt.findIndex(function(ze){var Ze=ze.data.key;return Ze===Ai.key}),Qe=j(I(nt,se,Ai.key),dn,lt,Hr),Se=nt.slice();Se.splice(Ii+1,0,M),Kt(Se),hr(Qe),kn("show")}else{var Ne=se.findIndex(function(ze){var Ze=ze.data.key;return Ze===Ai.key}),je=j(I(se,nt,Ai.key),dn,lt,Hr),Xe=se.slice();Xe.splice(Ne+1,0,M),Kt(Xe),hr(je),kn("hide")}else nt!==se&&(at(se),Kt(se))},[Le,se]),w.useEffect(function(){ir||Dn()},[ir]);var Zn=Ht?xt:se,li={expandedKeys:Le,selectedKeys:ee,loadedKeys:Mt,loadingKeys:ot,checkedKeys:ct,halfCheckedKeys:Yt,dragOverNodeKey:dr,dropPosition:qt,keyEntities:or};return w.createElement(w.Fragment,null,gi&&Wn&&w.createElement("span",{style:L,"aria-live":"assertive"},U(Wn)),w.createElement("div",{role:"tree"},w.createElement("input",{style:L,disabled:Nn===!1||Zr,tabIndex:Nn!==!1?yn:null,onKeyDown:Mn,onFocus:Ft,onBlur:bt,value:"",onChange:N})),w.createElement(v.a,Object.assign({},Ye,{data:Zn,itemKey:F,height:lt,fullHeight:!1,virtual:dn,itemHeight:Hr,prefixCls:"".concat(He,"-list"),ref:rt}),function(Ai){var Ii=Ai.pos,Qe=Ai.data,Se=Qe.key,Ne=Object(g.a)(Qe,["key"]),je=Ai.isStart,Xe=Ai.isEnd,ze=Object(h.e)(Se,Ii);delete Ne.children;var Ze=Object(h.f)(ze,li);return w.createElement(b,Object.assign({},Ne,Ze,{active:Wn&&Se===Wn.data.key,pos:Ii,data:Ai.data,isStart:je,isEnd:Xe,motion:Ht,motionNodes:Se===D?Sr:null,motionType:$r,onMotionStart:Ee,onMotionEnd:Dn,treeNodeRequiredProps:li,onMouseMove:function(){Oe(null)}}))}))},V=w.forwardRef(K);V.displayName="NodeList";var z=V,Q=d("qOx5"),Z=function(Bt){Object(i.a)(jt,Bt);var _t=Object(n.a)(jt);function jt(){var He;return Object(o.a)(this,jt),He=_t.apply(this,arguments),He.destroyed=!1,He.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},He.listRef=w.createRef(),He.onNodeDragStart=function(se,J){var Ue=He.state,Le=Ue.expandedKeys,ee=Ue.keyEntities,ct=He.props.onDragStart,Mt=J.props.eventKey;He.dragNode=J;var ot=Object(u.b)(Le,Mt);He.setState({dragging:!0,dragNodesKeys:Object(u.g)(Mt,ee)}),He.setExpandedKeys(ot),ct&&ct({event:se,node:Object(h.b)(J.props)})},He.onNodeDragEnter=function(se,J){var Ue=He.state,Le=Ue.expandedKeys,ee=Ue.keyEntities,ct=Ue.dragNodesKeys,Mt=He.props.onDragEnter,ot=J.props,Yt=ot.pos,or=ot.eventKey;if(!He.dragNode||ct.indexOf(or)!==-1)return;var Zr=Object(u.c)(se,J);if(He.dragNode.props.eventKey===or&&Zr===0){He.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){He.setState({dragOverNodeKey:or,dropPosition:Zr}),He.delayedDragEnterLogic||(He.delayedDragEnterLogic={}),Object.keys(He.delayedDragEnterLogic).forEach(function(ir){clearTimeout(He.delayedDragEnterLogic[ir])}),He.delayedDragEnterLogic[Yt]=window.setTimeout(function(){if(!He.state.dragging)return;var ir=Object(c.a)(Le),dr=ee[or];dr&&(dr.children||[]).length&&(ir=Object(u.a)(Le,or)),"expandedKeys"in He.props||He.setExpandedKeys(ir),Mt&&Mt({event:se,node:Object(h.b)(J.props),expandedKeys:ir})},400)},0)},He.onNodeDragOver=function(se,J){var Ue=He.state.dragNodesKeys,Le=He.props.onDragOver,ee=J.props.eventKey;if(Ue.indexOf(ee)!==-1)return;if(He.dragNode&&ee===He.state.dragOverNodeKey){var ct=Object(u.c)(se,J);if(ct===He.state.dropPosition)return;He.setState({dropPosition:ct})}Le&&Le({event:se,node:Object(h.b)(J.props)})},He.onNodeDragLeave=function(se,J){var Ue=He.props.onDragLeave;He.setState({dragOverNodeKey:""}),Ue&&Ue({event:se,node:Object(h.b)(J.props)})},He.onNodeDragEnd=function(se,J){var Ue=He.props.onDragEnd;He.setState({dragOverNodeKey:""}),He.cleanDragState(),Ue&&Ue({event:se,node:Object(h.b)(J.props)}),He.dragNode=null},He.onNodeDrop=function(se,J){var Ue=He.state,Le=Ue.dragNodesKeys,ee=Le===void 0?[]:Le,ct=Ue.dropPosition,Mt=He.props.onDrop,ot=J.props,Yt=ot.eventKey,or=ot.pos;if(He.setState({dragOverNodeKey:""}),He.cleanDragState(),ee.indexOf(Yt)!==-1){Object(l.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Zr=Object(u.k)(or),ir={event:se,node:Object(h.b)(J.props),dragNode:He.dragNode?Object(h.b)(He.dragNode.props):null,dragNodesKeys:ee.slice(),dropPosition:ct+Number(Zr[Zr.length-1]),dropToGap:!1};ct!==0&&(ir.dropToGap=!0),Mt&&Mt(ir),He.dragNode=null},He.cleanDragState=function(){var se=He.state.dragging;se&&He.setState({dragging:!1})},He.onNodeClick=function(se,J){var Ue=He.props.onClick;Ue&&Ue(se,J)},He.onNodeDoubleClick=function(se,J){var Ue=He.props.onDoubleClick;Ue&&Ue(se,J)},He.onNodeSelect=function(se,J){var Ue=He.state.selectedKeys,Le=He.state.keyEntities,ee=He.props,ct=ee.onSelect,Mt=ee.multiple,ot=J.selected,Yt=J.key,or=!ot;or?Mt?Ue=Object(u.a)(Ue,Yt):Ue=[Yt]:Ue=Object(u.b)(Ue,Yt);var Zr=Ue.map(function(ir){var dr=Le[ir];return dr?dr.node:null}).filter(function(ir){return ir});He.setUncontrolledState({selectedKeys:Ue}),ct&&ct(Ue,{event:"select",selected:or,node:J,selectedNodes:Zr,nativeEvent:se.nativeEvent})},He.onNodeCheck=function(se,J,Ue){var Le=He.state,ee=Le.keyEntities,ct=Le.checkedKeys,Mt=Le.halfCheckedKeys,ot=He.props,Yt=ot.checkStrictly,or=ot.onCheck,Zr=J.key,ir,dr={event:"check",node:J,checked:Ue,nativeEvent:se.nativeEvent};if(Yt){var qt=Ue?Object(u.a)(ct,Zr):Object(u.b)(ct,Zr),Ht=Object(u.b)(Mt,Zr);ir={checked:qt,halfChecked:Ht},dr.checkedNodes=qt.map(function(gi){return ee[gi]}).filter(function(gi){return gi}).map(function(gi){return gi.node}),He.setUncontrolledState({checkedKeys:qt})}else{var lt=Object(Q.a)([].concat(Object(c.a)(ct),[Zr]),!0,ee),Hr=lt.checkedKeys,dn=lt.halfCheckedKeys;if(!Ue){var Nn=new Set(Hr);Nn.delete(Zr);var Wn=Object(Q.a)(Array.from(Nn),{checked:!1,halfCheckedKeys:dn},ee);Hr=Wn.checkedKeys,dn=Wn.halfCheckedKeys}ir=Hr,dr.checkedNodes=[],dr.checkedNodesPositions=[],dr.halfCheckedKeys=dn,Hr.forEach(function(gi){var yn=ee[gi];if(!yn)return;var Mn=yn.node,Ft=yn.pos;dr.checkedNodes.push(Mn),dr.checkedNodesPositions.push({node:Mn,pos:Ft})}),He.setUncontrolledState({checkedKeys:Hr},!1,{halfCheckedKeys:dn})}or&&or(ir,dr)},He.onNodeLoad=function(se){return new Promise(function(J){He.setState(function(Ue){var Le=Ue.loadedKeys,ee=Le===void 0?[]:Le,ct=Ue.loadingKeys,Mt=ct===void 0?[]:ct,ot=He.props,Yt=ot.loadData,or=ot.onLoad,Zr=se.key;if(!Yt||ee.indexOf(Zr)!==-1||Mt.indexOf(Zr)!==-1)return{};var ir=Yt(se);return ir.then(function(){var dr=He.state,qt=dr.loadedKeys,Ht=dr.loadingKeys,lt=Object(u.a)(qt,Zr),Hr=Object(u.b)(Ht,Zr);or&&or(lt,{event:"load",node:se}),He.setUncontrolledState({loadedKeys:lt}),He.setState({loadingKeys:Hr}),J()}),{loadingKeys:Object(u.a)(Mt,Zr)}})})},He.onNodeMouseEnter=function(se,J){var Ue=He.props.onMouseEnter;Ue&&Ue({event:se,node:J})},He.onNodeMouseLeave=function(se,J){var Ue=He.props.onMouseLeave;Ue&&Ue({event:se,node:J})},He.onNodeContextMenu=function(se,J){var Ue=He.props.onRightClick;Ue&&(se.preventDefault(),Ue({event:se,node:J}))},He.onFocus=function(){var se=He.props.onFocus;He.setState({focused:!0}),se&&se.apply(void 0,arguments)},He.onBlur=function(){var se=He.props.onBlur;He.setState({focused:!1}),He.onActiveChange(null),se&&se.apply(void 0,arguments)},He.getTreeNodeRequiredProps=function(){var se=He.state,J=se.expandedKeys,Ue=se.selectedKeys,Le=se.loadedKeys,ee=se.loadingKeys,ct=se.checkedKeys,Mt=se.halfCheckedKeys,ot=se.dragOverNodeKey,Yt=se.dropPosition,or=se.keyEntities;return{expandedKeys:J||[],selectedKeys:Ue||[],loadedKeys:Le||[],loadingKeys:ee||[],checkedKeys:ct||[],halfCheckedKeys:Mt||[],dragOverNodeKey:ot,dropPosition:Yt,keyEntities:or}},He.setExpandedKeys=function(se){var J=He.state.treeData,Ue=Object(h.d)(J,se);He.setUncontrolledState({expandedKeys:se,flattenNodes:Ue},!0)},He.onNodeExpand=function(se,J){var Ue=He.state.expandedKeys,Le=He.state.listChanging,ee=He.props,ct=ee.onExpand,Mt=ee.loadData,ot=J.key,Yt=J.expanded;if(Le)return;var or=Ue.indexOf(ot),Zr=!Yt;if(Object(l.a)(Yt&&or!==-1||!Yt&&or===-1,"Expand state not sync with index check"),Zr?Ue=Object(u.a)(Ue,ot):Ue=Object(u.b)(Ue,ot),He.setExpandedKeys(Ue),ct&&ct(Ue,{node:J,expanded:Zr,nativeEvent:se.nativeEvent}),Zr&&Mt){var ir=He.onNodeLoad(J);ir&&ir.then(function(){var dr=Object(h.d)(He.state.treeData,Ue);He.setUncontrolledState({flattenNodes:dr})})}},He.onListChangeStart=function(){He.setUncontrolledState({listChanging:!0})},He.onListChangeEnd=function(){setTimeout(function(){He.setUncontrolledState({listChanging:!1})})},He.onActiveChange=function(se){var J=He.state.activeKey,Ue=He.props.onActiveChange;if(J===se)return;He.setState({activeKey:se}),se!==null&&He.scrollTo({key:se}),Ue&&Ue(se)},He.getActiveItem=function(){var se=He.state,J=se.activeKey,Ue=se.flattenNodes;return J===null?null:Ue.find(function(Le){var ee=Le.data.key;return ee===J})||null},He.offsetActiveKey=function(se){var J=He.state,Ue=J.flattenNodes,Le=J.activeKey,ee=Ue.findIndex(function(ot){var Yt=ot.data.key;return Yt===Le});ee===-1&&se<0&&(ee=Ue.length),ee=(ee+se+Ue.length)%Ue.length;var ct=Ue[ee];if(ct){var Mt=ct.data.key;He.onActiveChange(Mt)}else He.onActiveChange(null)},He.onKeyDown=function(se){var J=He.state,Ue=J.activeKey,Le=J.expandedKeys,ee=J.checkedKeys,ct=He.props,Mt=ct.onKeyDown,ot=ct.checkable,Yt=ct.selectable;switch(se.which){case e.a.UP:{He.offsetActiveKey(-1),se.preventDefault();break}case e.a.DOWN:{He.offsetActiveKey(1),se.preventDefault();break}}var or=He.getActiveItem();if(or&&or.data){var Zr=He.getTreeNodeRequiredProps(),ir=or.data.isLeaf===!1||!!(or.data.children||[]).length,dr=Object(h.b)(Object(f.a)(Object(f.a)({},Object(h.f)(Ue,Zr)),{},{data:or.data,active:!0}));switch(se.which){case e.a.LEFT:{ir&&Le.includes(Ue)?He.onNodeExpand({},dr):or.parent&&He.onActiveChange(or.parent.data.key),se.preventDefault();break}case e.a.RIGHT:{ir&&!Le.includes(Ue)?He.onNodeExpand({},dr):or.children&&or.children.length&&He.onActiveChange(or.children[0].data.key),se.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ot&&!dr.disabled&&dr.checkable!==!1&&!dr.disableCheckbox?He.onNodeCheck({},dr,!ee.includes(Ue)):!ot&&Yt&&!dr.disabled&&dr.selectable!==!1&&He.onNodeSelect({},dr);break}}}Mt&&Mt(se)},He.setUncontrolledState=function(se){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(He.destroyed)return;var Le=!1,ee=!0,ct={};Object.keys(se).forEach(function(Mt){if(Mt in He.props){ee=!1;return}Le=!0,ct[Mt]=se[Mt]}),Le&&(!J||ee)&&He.setState(Object(f.a)(Object(f.a)({},ct),Ue))},He.scrollTo=function(se){He.listRef.current.scrollTo(se)},He}return Object(r.a)(jt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var se,J=this.state,Ue=J.focused,Le=J.flattenNodes,ee=J.keyEntities,ct=J.dragging,Mt=J.activeKey,ot=this.props,Yt=ot.prefixCls,or=ot.className,Zr=ot.style,ir=ot.showLine,dr=ot.focusable,qt=ot.tabIndex,Ht=qt===void 0?0:qt,lt=ot.selectable,Hr=ot.showIcon,dn=ot.icon,Nn=ot.switcherIcon,Wn=ot.draggable,gi=ot.checkable,yn=ot.checkStrictly,Mn=ot.disabled,Ft=ot.motion,bt=ot.loadData,Oe=ot.filterTreeNode,Ee=ot.height,Ie=ot.itemHeight,Ye=ot.virtual,rt=ot.titleRender,ut=ot.onContextMenu,Ot=Object(u.f)(this.props);return w.createElement(s.a.Provider,{value:{prefixCls:Yt,selectable:lt,showIcon:Hr,icon:dn,switcherIcon:Nn,draggable:Wn,checkable:gi,checkStrictly:yn,disabled:Mn,keyEntities:ee,loadData:bt,filterTreeNode:Oe,titleRender:rt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},w.createElement("div",{className:a()(Yt,or,(se={},Object(m.a)(se,"".concat(Yt,"-show-line"),ir),Object(m.a)(se,"".concat(Yt,"-focused"),Ue),Object(m.a)(se,"".concat(Yt,"-active-focused"),Mt!==null),se))},w.createElement(z,Object.assign({ref:this.listRef,prefixCls:Yt,style:Zr,data:Le,disabled:Mn,selectable:lt,checkable:!!gi,motion:Ft,dragging:ct,height:Ee,itemHeight:Ie,virtual:Ye,focusable:dr,focused:Ue,tabIndex:Ht,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ut},this.getTreeNodeRequiredProps(),Ot))))}}],[{key:"getDerivedStateFromProps",value:function(se,J){var Ue=J.prevProps,Le={prevProps:se};function ee(dn){return!Ue&&dn in se||Ue&&Ue[dn]!==se[dn]}var ct;if(ee("treeData")?ct=se.treeData:ee("children")&&(Object(l.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ct=Object(h.c)(se.children)),ct){Le.treeData=ct;var Mt=Object(h.a)(ct);Le.keyEntities=Object(f.a)(Object(m.a)({},D,k),Mt.keyEntities)}var ot=Le.keyEntities||J.keyEntities;if(ee("expandedKeys")||Ue&&ee("autoExpandParent"))Le.expandedKeys=se.autoExpandParent||!Ue&&se.defaultExpandParent?Object(u.e)(se.expandedKeys,ot):se.expandedKeys;else if(!Ue&&se.defaultExpandAll){var Yt=Object(f.a)({},ot);delete Yt[D],Le.expandedKeys=Object.keys(Yt).map(function(dn){return Yt[dn].key})}else!Ue&&se.defaultExpandedKeys&&(Le.expandedKeys=se.autoExpandParent||se.defaultExpandParent?Object(u.e)(se.defaultExpandedKeys,ot):se.defaultExpandedKeys);if(Le.expandedKeys||delete Le.expandedKeys,ct||Le.expandedKeys){var or=Object(h.d)(ct||J.treeData,Le.expandedKeys||J.expandedKeys);Le.flattenNodes=or}if(se.selectable&&(ee("selectedKeys")?Le.selectedKeys=Object(u.d)(se.selectedKeys,se):!Ue&&se.defaultSelectedKeys&&(Le.selectedKeys=Object(u.d)(se.defaultSelectedKeys,se))),se.checkable){var Zr;if(ee("checkedKeys")?Zr=Object(u.j)(se.checkedKeys)||{}:!Ue&&se.defaultCheckedKeys?Zr=Object(u.j)(se.defaultCheckedKeys)||{}:ct&&(Zr=Object(u.j)(se.checkedKeys)||{checkedKeys:J.checkedKeys,halfCheckedKeys:J.halfCheckedKeys}),Zr){var ir=Zr,dr=ir.checkedKeys,qt=dr===void 0?[]:dr,Ht=ir.halfCheckedKeys,lt=Ht===void 0?[]:Ht;if(!se.checkStrictly){var Hr=Object(Q.a)(qt,!0,ot);qt=Hr.checkedKeys,lt=Hr.halfCheckedKeys}Le.checkedKeys=qt,Le.halfCheckedKeys=lt}}return ee("loadedKeys")&&(Le.loadedKeys=se.loadedKeys),Le}}]),jt}(w.Component);Z.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:[]},Z.TreeNode=x.a;var le=Z,ne=le,ve=d("RIqP"),xe=d.n(ve),_e=d("J4zp"),Be=d.n(_e),me=d("sEfC"),Fe=d.n(me),ie=d("vk+C"),te=d.n(ie),Ge=d("Vy0f"),oe=d.n(Ge),Y=d("kGiB"),G=d.n(Y),X=d("H84U"),fe;(function(Bt){Bt[Bt.None=0]="None",Bt[Bt.Start=1]="Start",Bt[Bt.End=2]="End"})(fe||(fe={}));function de(Bt,_t){function jt(He){var se=He.key,J=He.children;_t(se,He)!==!1&&de(J||[],_t)}Bt.forEach(jt)}function Ce(Bt){var _t=Bt.treeData,jt=Bt.expandedKeys,He=Bt.startKey,se=Bt.endKey,J=[],Ue=fe.None;if(He&&He===se)return[He];if(!He||!se)return[];function Le(ee){return ee===He||ee===se}return de(_t,function(ee){if(Ue===fe.End)return!1;if(Le(ee)){if(J.push(ee),Ue===fe.None)Ue=fe.Start;else if(Ue===fe.Start)return Ue=fe.End,!1}else Ue===fe.Start&&J.push(ee);return!(jt.indexOf(ee)===-1)}),J}function Me(Bt,_t){var jt=xe()(_t),He=[];return de(Bt,function(se,J){var Ue=jt.indexOf(se);return Ue!==-1&&(He.push(J),jt.splice(Ue,1)),!!jt.length}),He}var ue=function(Bt,_t){var jt={};for(var He in Bt)Object.prototype.hasOwnProperty.call(Bt,He)&&_t.indexOf(He)<0&&(jt[He]=Bt[He]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,He=Object.getOwnPropertySymbols(Bt);se<He.length;se++)_t.indexOf(He[se])<0&&Object.prototype.propertyIsEnumerable.call(Bt,He[se])&&(jt[He[se]]=Bt[He[se]]);return jt};function Ae(Bt){var _t=Bt.isLeaf,jt=Bt.expanded;return _t?w.createElement(te.a,null):jt?w.createElement(oe.a,null):w.createElement(G.a,null)}function Te(Bt){var _t=Bt.treeData,jt=Bt.children;return _t||Object(h.c)(jt)}var Je=function(_t,jt){var He=_t.defaultExpandAll,se=_t.defaultExpandParent,J=_t.defaultExpandedKeys,Ue=ue(_t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Le=w.useRef(),ee=w.useRef(),ct=w.createRef();w.useImperativeHandle(jt,function(){return ct.current});var Mt=function(){var ut=Object(h.a)(Te(Ue)),Ot=ut.keyEntities,Ar;return He?Ar=Object.keys(Ot):se?Ar=Object(u.e)(Ue.expandedKeys||J,Ot):Ar=Ue.expandedKeys||J,Ar},ot=w.useState(Ue.selectedKeys||Ue.defaultSelectedKeys||[]),Yt=Be()(ot,2),or=Yt[0],Zr=Yt[1],ir=w.useState(Mt()),dr=Be()(ir,2),qt=dr[0],Ht=dr[1];w.useEffect(function(){"selectedKeys"in Ue&&Zr(Ue.selectedKeys)},[Ue.selectedKeys]),w.useEffect(function(){"expandedKeys"in Ue&&Ht(Ue.expandedKeys)},[Ue.expandedKeys]);var lt=function(ut,Ot){var Ar=Ot.isLeaf;if(Ar||ut.shiftKey||ut.metaKey||ut.ctrlKey)return;ct.current.onNodeExpand(ut,Ot)},Hr=Fe()(lt,200,{leading:!0}),dn=function(ut,Ot){return"expandedKeys"in Ue||Ht(ut),Ue.onExpand?Ue.onExpand(ut,Ot):void 0},Nn=function(ut,Ot){var Ar=Ue.expandAction;Ar==="click"&&Hr(ut,Ot),Ue.onClick&&Ue.onClick(ut,Ot)},Wn=function(ut,Ot){var Ar=Ue.expandAction;Ar==="doubleClick"&&Hr(ut,Ot),Ue.onDoubleClick&&Ue.onDoubleClick(ut,Ot)},gi=function(ut,Ot){var Ar=Ue.multiple,Pr=Ot.node,un=Ot.nativeEvent,It=Pr.key,nt=It===void 0?"":It,at=Te(Ue),rr=A()(A()({},Ot),{selected:!0}),Pt=un.ctrlKey||un.metaKey,xt=un.shiftKey,Kt;Ar&&Pt?(Kt=ut,Le.current=nt,ee.current=Kt,rr.selectedNodes=Me(at,Kt)):Ar&&xt?(Kt=Array.from(new Set([].concat(xe()(ee.current||[]),xe()(Ce({treeData:at,expandedKeys:qt,startKey:nt,endKey:Le.current}))))),rr.selectedNodes=Me(at,Kt)):(Kt=[nt],Le.current=nt,ee.current=Kt,rr.selectedNodes=Me(at,Kt)),Ue.onSelect&&Ue.onSelect(Kt,rr),"selectedKeys"in Ue||Zr(Kt)},yn=w.useContext(X.b),Mn=yn.getPrefixCls,Ft=yn.direction,bt=Ue.prefixCls,Oe=Ue.className,Ee=ue(Ue,["prefixCls","className"]),Ie=Mn("tree",bt),Ye=a()("".concat(Ie,"-directory"),Oe,E()({},"".concat(Ie,"-directory-rtl"),Ft==="rtl"));return w.createElement(Et,A()({icon:Ae,ref:ct,blockNode:!0},Ee,{prefixCls:Ie,className:Ye,expandedKeys:qt,selectedKeys:or,onSelect:gi,onClick:Nn,onDoubleClick:Wn,onExpand:dn}))},At=w.forwardRef(Je);At.displayName="DirectoryTree",At.defaultProps={showIcon:!0,expandAction:"click"};var qe=At,Re=d("EXcs"),Lt=d("2jpz"),$e=w.forwardRef(function(Bt,_t){var jt,He=w.useContext(X.b),se=He.getPrefixCls,J=He.direction,Ue=He.virtual,Le=Bt.prefixCls,ee=Bt.className,ct=Bt.showIcon,Mt=Bt.showLine,ot=Bt.switcherIcon,Yt=Bt.blockNode,or=Bt.children,Zr=Bt.checkable,ir=A()(A()({},Bt),{showLine:Boolean(Mt)}),dr=se("tree",Le);return w.createElement(ne,A()({itemHeight:20,ref:_t,virtual:Ue},ir,{prefixCls:dr,className:a()(ee,(jt={},E()(jt,"".concat(dr,"-icon-hide"),!ct),E()(jt,"".concat(dr,"-block-node"),Yt),E()(jt,"".concat(dr,"-rtl"),J==="rtl"),jt)),checkable:Zr&&w.createElement("span",{className:"".concat(dr,"-checkbox-inner")}),switcherIcon:function(Ht){return Object(Lt.a)(dr,ot,Mt,Ht)}}),or)});$e.TreeNode=x.a,$e.DirectoryTree=qe,$e.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Re.a),{motionAppear:!1}),blockNode:!1};var Et=$e,Ut=B.a=Et},MKOG:function(H,B,d){var _=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=_.indexOf(this._clips,o);r>=0&&this._clips.splice(r,1)},removeAnimator:function(o){for(var r=o.getClips(),i=0;i<r.length;i++)this.removeClip(r[i]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,r=o-this._time,i=this._clips,n=i.length,e=[],l=[],t=0;t<n;t++){var a=i[t],s=a.step(o,r);s&&(e.push(s),l.push(a))}for(var t=0;t<n;)i[t]._needsRemove?(i[t]=i[n-1],i.pop(),n--):t++;n=e.length;for(var t=0;t<n;t++)l[t].fire(e[t]);this._time=o,this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function r(){o._running&&(A(r),!o._paused&&o._update())}A(r)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(o,r){r=r||{};var i=new w(o,r.loop,r.getter,r.setter);return this.addAnimator(i),i}},_.mixin(m,C);var f=m;H.exports=f},MRoa:function(H,B,d){var _=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var E=d("gawk"),C=d("Dg8C");_.registerLayout(E),_.registerVisual(C)},MT78:function(H,B,d){var _=d("ProS");(function(){for(var C in _){if(_==null||!_.hasOwnProperty(C)||C==="default"||C==="__esModule")return;B[C]=_[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 _=d("cIOH"),E=d.n(_),C=d("Kvyg"),A=d.n(C)},MZdM:function(H,B,d){"use strict";function _(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(t){return typeof t}:_=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(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||_(e)!=="object"&&typeof e!="function")return{default:e};var l=f();if(l&&l.has(e))return l.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(t,s,u):t[s]=e[s]}return t.default=e,l&&l.set(e,t),t}function o(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function r(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,l,t){return l&&r(e.prototype,l),t&&r(e,t),e}var n=function(){function e(l){if(o(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,E.Debug(">> Display.constructor"),this._target=l,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},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 s=this._viewportLoc;t=Math.floor(t),a=Math.floor(a),this._clipViewport||(t=-s.w,a=-s.h);var u=s.x+s.w-1,h=s.y+s.h-1;if(t<0&&s.x+t<0&&(t=-s.x),u+t>=this._fbWidth&&(t-=u+t-this._fbWidth+1),s.y+a<0&&(a=-s.y),h+a>=this._fbHeight&&(a-=h+a-this._fbHeight+1),t===0&&a===0)return;E.Debug("viewportChange deltaX: "+t+", deltaY: "+a),s.x+=t,s.y+=a,this._damage(s.x,s.y,s.w,s.h),this.flip()}},{key:"viewportChangeSize",value:function(t,a){(!this._clipViewport||typeof t=="undefined"||typeof a=="undefined")&&(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 s=this._viewportLoc;if(s.w!==t||s.h!==a){s.w=t,s.h=a;var u=this._target;u.width=t,u.height=a,this.viewportChangePos(0,0),this._damage(s.x,s.y,s.w,s.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,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 s=this._backbuffer;if(s.width!==t||s.height!==a){var u=null;s.width>0&&s.height>0&&(u=this._drawCtx.getImageData(0,0,s.width,s.height)),s.width!==t&&(s.width=t),s.height!==a&&(s.height=a),u&&this._drawCtx.putImageData(u,0,0)}var h=this._viewportLoc;this.viewportChangeSize(h.w,h.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,a,s,u){t<this._damageBounds.left&&(this._damageBounds.left=t),a<this._damageBounds.top&&(this._damageBounds.top=a),t+s>this._damageBounds.right&&(this._damageBounds.right=t+s),a+u>this._damageBounds.bottom&&(this._damageBounds.bottom=a+u)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var a=this._damageBounds.left,s=this._damageBounds.top,u=this._damageBounds.right-a,h=this._damageBounds.bottom-s,p=a-this._viewportLoc.x,g=s-this._viewportLoc.y;p<0&&(u+=p,a-=p,p=0),g<0&&(h+=g,s-=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,s,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,s,u,h,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:t,y:a,width:s,height:u,color:h}):(this._setFillColor(h),this._drawCtx.fillRect(t,a,s,u),this._damage(t,a,s,u))}},{key:"copyImage",value:function(t,a,s,u,h,p,g){this._renderQ.length!==0&&!g?this._renderQPush({type:"copy",oldX:t,oldY:a,x:s,y:u,width:h,height:p}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,a,h,p,s,u,h,p),this._damage(s,u,h,p))}},{key:"imageRect",value:function(t,a,s,u,h,p){if(s===0||u===0)return;var g=new Image;g.src="data: "+h+";base64,"+C.default.encode(p),this._renderQPush({type:"img",img:g,x:t,y:a,width:s,height:u})}},{key:"startTile",value:function(t,a,s,u,h){this._tileX=t,this._tileY=a,s===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(s,u);for(var p=h[2],g=h[1],v=h[0],y=this._tile.data,x=0;x<s*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,s,u,h){for(var p=h[2],g=h[1],v=h[0],y=t+s,x=a+u,T=this._tile.data,S=this._tile.width,b=a;b<x;b++)for(var O=t;O<y;O++){var I=(O+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,s,u,h,p,g){if(this._renderQ.length!==0&&!g){var v=new Uint8Array(s*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blit",data:v,x:t,y:a,width:s,height:u})}else this._bgrxImageData(t,a,s,u,h,p)}},{key:"blitRgbImage",value:function(t,a,s,u,h,p,g){if(this._renderQ.length!==0&&!g){var v=new Uint8Array(s*u*3);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgb",data:v,x:t,y:a,width:s,height:u})}else this._rgbImageData(t,a,s,u,h,p)}},{key:"blitRgbxImage",value:function(t,a,s,u,h,p,g){if(this._renderQ.length!==0&&!g){var v=new Uint8Array(s*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgbx",data:v,x:t,y:a,width:s,height:u})}else this._rgbxImageData(t,a,s,u,h,p)}},{key:"drawImage",value:function(t,a,s){this._drawCtx.drawImage(t,a,s),this._damage(a,s,t.width,t.height)}},{key:"autoscale",value:function(t,a){var s;if(t===0||a===0)s=0;else{var u=this._viewportLoc,h=t/a,p=u.w/u.h;p>=h?s=t/u.w:s=a/u.h}this._rescale(s)}},{key:"_rescale",value:function(t){this._scale=t;var a=this._viewportLoc,s=t*a.w+"px",u=t*a.h+"px";(this._target.style.width!==s||this._target.style.height!==u)&&(this._target.style.width=s,this._target.style.height=u)}},{key:"_setFillColor",value:function(t){var a="rgb("+t[2]+","+t[1]+","+t[0]+")";a!==this._prevDrawStyle&&(this._drawCtx.fillStyle=a,this._prevDrawStyle=a)}},{key:"_rgbImageData",value:function(t,a,s,u,h,p){for(var g=this._drawCtx.createImageData(s,u),v=g.data,y=0,x=p;y<s*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,s,u,h,p){for(var g=this._drawCtx.createImageData(s,u),v=g.data,y=0,x=p;y<s*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,s,u,h,p){var g;A.supportsImageMetadata?g=new ImageData(new Uint8ClampedArray(h.buffer,h.byteOffset,s*u*4),s,u):(g=this._drawCtx.createImageData(s,u),g.data.set(new Uint8ClampedArray(h.buffer,h.byteOffset,s*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 _=d("bYtY"),E=_.each,C="\0__link_datas",A="\0__link_mainData";function w(l){var t=l.mainData,a=l.datas;a||(a={main:t},l.datasAttr={main:"data"}),l.datas=l.mainData=null,i(t,a,l),E(a,function(s){E(t.TRANSFERABLE_METHODS,function(u){s.wrapMethod(u,_.curry(m,l))})}),t.wrapMethod("cloneShallow",_.curry(c,l)),E(t.CHANGABLE_METHODS,function(s){t.wrapMethod(s,_.curry(f,l))}),_.assert(a[t.dataType]===t)}function m(l,t){if(r(this)){var a=_.extend({},this[C]);a[this.dataType]=t,i(t,a,l)}else n(t,this.dataType,this[A],l);return t}function f(l,t){return l.struct&&l.struct.update(this),t}function c(l,t){return E(t[C],function(a,s){a!==t&&n(a.cloneShallow(),s,t,l)}),t}function o(l){var t=this[A];return l==null||t==null?t:t[C][l]}function r(l){return l[A]===l}function i(l,t,a){l[C]={},E(t,function(s,u){n(s,u,l,a)})}function n(l,t,a,s){a[C][t]=l,l[A]=a,l.dataType=t,s.struct&&(l[s.structAttr]=s.struct,s.struct[s.datasAttr[t]]=l),l.getLinkedData=o}var e=w;H.exports=e},Mds0:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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",_.map(A,function(r){return{type:"polygon",exterior:r}}),C))}H.exports=f},MlIO:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(E){var C=_,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=[],l=0;l<n;l++){var t=i[l];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,l=0;l<e;l++)n[l]=n[l].clone();return i}})}(),_})},Mmt2:function(H,B,d){"use strict";function _(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(e){return typeof e}:_=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(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||_(i)!=="object"&&typeof i!="function")return{default:i};var n=C();if(n&&n.has(i))return n.get(i);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=l?Object.getOwnPropertyDescriptor(i,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=i[t]}return e.default=i,n&&n.set(i,e),e}function 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 l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function f(i,n,e){return n&&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 l=0,t=e-1;t>=0;t--)l+=this._rQ[this._rQi++]<<t*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",t=0;t<e;t+=4096){var a=this.rQshiftBytes(Math.min(4096,e-t));l+=String.fromCharCode.apply(null,a)}return l}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,l){l===void 0&&(l=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,l)),this._rQi+=l}},{key:"rQslice",value:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,l-e)}},{key:"rQwait",value:function(e,l,t){if(this.rQlen<l){if(t){if(this._rQi<t)throw new Error("rQwait cannot backup "+t+" bytes");this._rQi-=t}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(l){return l.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,l){this._eventHandlers[e]=l}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,l){var t=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){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 l=(this._rQlen-this._rQi+e)*8,t=this._rQbufferSize<l;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" bytes, and the new message could not fit");if(t){var a=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(a,this._rQi,this._rQlen-this._rQi))}else c?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(e){var l=new Uint8Array(e);l.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(l.length),this._rQ.set(l,this._rQlen),this._rQlen+=l.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):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 _=d("bYtY"),E=d("fc+c"),C=d("72pK"),A=d("VXYp"),w=_.bind,m=E.extend({type:"dataZoom.inside",init:function(i,n){this._range},render:function(i,n,e,l){m.superApply(this,"render",arguments),this._range=i.getPercentRange(),_.each(this.getTargetCoordInfo(),function(t,a){var s=_.map(t,function(u){return A.generateCoordId(u.model)});_.each(t,function(u){var h=u.model,p={};_.each(["pan","zoom","scrollMove"],function(g){p[g]=w(f[g],this,u,a)},this),A.register(e,{coordId:A.generateCoordId(h),allCoordIds:s,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,l){var t=this._range,a=t.slice(),s=i.axisModels[0];if(!s)return;var u=o[n](null,[l.originX,l.originY],s,e,i),h=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(a[1]-a[0])+a[0],p=Math.max(1/l.scale,0);a[0]=(a[0]-h)*p+h,a[1]=(a[1]-h)*p+h;var 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,l,t,a){var s=o[l]([a.oldX,a.oldY],[a.newX,a.newY],n,t,e);return s.signal*(i[1]-i[0])*s.pixel/s.pixelLength}),scrollMove:c(function(i,n,e,l,t,a){var s=o[l]([0,0],[a.scrollDelta,a.scrollDelta],n,t,e);return s.signal*(i[1]-i[0])*a.scrollDelta})};function c(i){return function(n,e,l,t){var a=this._range,s=a.slice(),u=n.axisModels[0];if(!u)return;var h=i(s,u,n,e,l,t);if(C(h,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1])return s}}var o={grid:function(i,n,e,l,t){var a=e.axis,s={},u=t.model.coordinateSystem.getRect();return i=i||[0,0],a.dim==="x"?(s.pixel=n[0]-i[0],s.pixelLength=u.width,s.pixelStart=u.x,s.signal=a.inverse?1:-1):(s.pixel=n[1]-i[1],s.pixelLength=u.height,s.pixelStart=u.y,s.signal=a.inverse?-1:1),s},polar:function(i,n,e,l,t){var a=e.axis,s={},u=t.model.coordinateSystem,h=u.getRadiusAxis().getExtent(),p=u.getAngleAxis().getExtent();return i=i?u.pointToCoord(i):[0,0],n=u.pointToCoord(n),e.mainType==="radiusAxis"?(s.pixel=n[0]-i[0],s.pixelLength=h[1]-h[0],s.pixelStart=h[0],s.signal=a.inverse?1:-1):(s.pixel=n[1]-i[1],s.pixelLength=p[1]-p[0],s.pixelStart=p[0],s.signal=a.inverse?-1:1),s},singleAxis:function(i,n,e,l,t){var a=e.axis,s=t.model.coordinateSystem.getRect(),u={};return i=i||[0,0],a.orient==="horizontal"?(u.pixel=n[0]-i[0],u.pixelLength=s.width,u.pixelStart=s.x,u.signal=a.inverse?1:-1):(u.pixel=n[1]-i[1],u.pixelLength=s.height,u.pixelStart=s.y,u.signal=a.inverse?-1:1),u}},r=m;H.exports=r},MwEJ:function(H,B,d){var _=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"),l=d("7hqr"),t=l.enableDataStack,a=d("D5nY"),s=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),O;b&&(O=_.map(b.coordSysDims,function(M){var j={name:M},F=b.axisMap.get(M);if(F){var U=F.get("type");j.type=f(U)}return j})),O||(O=S&&(S.getDimensionsInfo?S.getDimensionsInfo():S.dimensions.slice())||["x","y"]);var I=C(v,{coordDimensions:O,generateCoord:x.generateCoord,encodeDefaulter:x.useEncodeDefaulter?_.curry(s,O,y):null}),L,N;b&&_.each(I,function(M,j){var F=M.coordDim,U=b.categoryAxisMap.get(F);U&&(L==null&&(L=j),M.ordinalMeta=U.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 k=L!=null&&h(v)?function(M,j,F,U){return U===L?F:this.defaultDimValueGetter(M,j,F,U)}:null;return R.hasItemOption=!1,R.initData(v,null,k),R}function h(v){if(v.sourceFormat===w){var y=p(v.data||[]);return y!=null&&!_.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 _=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,l=_.extendChartView({type:"pictorialBar",render:function(K,V,z){var Q=this.group,Z=K.getData(),le=this._data,ne=K.coordinateSystem,ve=ne.getBaseAxis(),xe=!!ve.isHorizontal(),_e=ne.grid.getRect(),Be={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:K,coordSys:ne,coordSysExtent:[[_e.x,_e.x+_e.width],[_e.y,_e.y+_e.height]],isHorizontal:xe,valueDim:n[+xe],categoryDim:n[1-xe]};return Z.diff(le).add(function(me){if(!Z.hasValue(me))return;var Fe=S(Z,me),ie=t(Z,me,Fe,Be),te=L(Z,Be,ie);Z.setItemGraphicEl(me,te),Q.add(te),j(te,Be,ie)}).update(function(me,Fe){var ie=le.getItemGraphicEl(Fe);if(!Z.hasValue(me)){Q.remove(ie);return}var te=S(Z,me),Ge=t(Z,me,te,Be),oe=R(Z,Ge);ie&&oe!==ie.__pictorialShapeStr&&(Q.remove(ie),Z.setItemGraphicEl(me,null),ie=null),ie?N(ie,Be,Ge):ie=L(Z,Be,Ge,!0),Z.setItemGraphicEl(me,ie),ie.__pictorialSymbolMeta=Ge,Q.add(ie),j(ie,Be,Ge)}).remove(function(me){var Fe=le.getItemGraphicEl(me);Fe&&D(le,me,Fe.__pictorialSymbolMeta.animationModel,Fe)}).execute(),this._data=Z,this.group},dispose:E.noop,remove:function(K,V){var z=this.group,Q=this._data;K.get("animation")?Q&&Q.eachItemGraphicEl(function(Z){D(Q,Z.dataIndex,K,Z)}):z.removeAll()}});function t(K,V,z,Q){var Z=K.getItemLayout(V),le=z.get("symbolRepeat"),ne=z.get("symbolClip"),ve=z.get("symbolPosition")||"start",xe=z.get("symbolRotate"),_e=(xe||0)*Math.PI/180||0,Be=z.get("symbolPatternSize")||2,me=z.isAnimationEnabled(),Fe={dataIndex:V,layout:Z,itemModel:z,symbolType:K.getItemVisual(V,"symbol")||"circle",color:K.getItemVisual(V,"color"),symbolClip:ne,symbolRepeat:le,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:Be,rotation:_e,animationModel:me?z:null,hoverAnimation:me&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};a(z,le,Z,Q,Fe),u(K,V,Z,le,ne,Fe.boundingLength,Fe.pxSign,Be,Q,Fe),h(z,Fe.symbolScale,_e,Q,Fe);var ie=Fe.symbolSize,te=z.get("symbolOffset");return E.isArray(te)&&(te=[f(te[0],ie[0]),f(te[1],ie[1])]),p(z,ie,Z,le,ne,te,ve,Fe.valueLineWidth,Fe.boundingLength,Fe.repeatCutLength,Q,Fe),Fe}function a(K,V,z,Q,Z){var le=Q.valueDim,ne=K.get("symbolBoundingData"),ve=Q.coordSys.getOtherAxis(Q.coordSys.getBaseAxis()),xe=ve.toGlobalCoord(ve.dataToCoord(0)),_e=1-+(z[le.wh]<=0),Be;if(E.isArray(ne)){var me=[s(ve,ne[0])-xe,s(ve,ne[1])-xe];me[1]<me[0]&&me.reverse(),Be=me[_e]}else ne!=null?Be=s(ve,ne)-xe:V?Be=Q.coordSysExtent[le.index][_e]-xe:Be=z[le.wh];Z.boundingLength=Be,V&&(Z.repeatCutLength=z[le.wh]),Z.pxSign=Be>0?1:Be<0?-1:0}function s(K,V){return K.toGlobalCoord(K.dataToCoord(K.scale.parse(V)))}function u(K,V,z,Q,Z,le,ne,ve,xe,_e){var Be=xe.valueDim,me=xe.categoryDim,Fe=Math.abs(z[me.wh]),ie=K.getItemVisual(V,"symbolSize");E.isArray(ie)?ie=ie.slice():(ie==null&&(ie="100%"),ie=[ie,ie]),ie[me.index]=f(ie[me.index],Fe),ie[Be.index]=f(ie[Be.index],Q?Fe:Math.abs(le)),_e.symbolSize=ie;var te=_e.symbolScale=[ie[0]/ve,ie[1]/ve];te[Be.index]*=(xe.isHorizontal?-1:1)*ne}function h(K,V,z,Q,Z){var le=K.get(i)||0;le&&(e.attr({scale:V.slice(),rotation:z}),e.updateTransform(),le/=e.getLineScale(),le*=V[Q.valueDim.index]),Z.valueLineWidth=le}function p(K,V,z,Q,Z,le,ne,ve,xe,_e,Be,me){var Fe=Be.categoryDim,ie=Be.valueDim,te=me.pxSign,Ge=Math.max(V[ie.index]+ve,0),oe=Ge;if(Q){var Y=Math.abs(xe),G=E.retrieve(K.get("symbolMargin"),"15%")+"",X=!1;G.lastIndexOf("!")===G.length-1&&(X=!0,G=G.slice(0,G.length-1)),G=f(G,V[ie.index]);var fe=Math.max(Ge+G*2,0),de=X?0:G*2,Ce=c(Q),Me=Ce?Q:F((Y+de)/fe),ue=Y-Me*Ge;G=ue/2/(X?Me:Me-1),fe=Ge+G*2,de=X?0:G*2,!Ce&&Q!=="fixed"&&(Me=_e?F((Math.abs(_e)+de)/fe):0),oe=Me*fe-de,me.repeatTimes=Me,me.symbolMargin=G}var Ae=te*(oe/2),Te=me.pathPosition=[];Te[Fe.index]=z[Fe.wh]/2,Te[ie.index]=ne==="start"?Ae:ne==="end"?xe-Ae:xe/2,le&&(Te[0]+=le[0],Te[1]+=le[1]);var Je=me.bundlePosition=[];Je[Fe.index]=z[Fe.xy],Je[ie.index]=z[ie.xy];var At=me.barRectShape=E.extend({},z);At[ie.wh]=te*Math.max(Math.abs(z[ie.wh]),Math.abs(Te[ie.index]+Ae)),At[Fe.wh]=z[Fe.wh];var qe=me.clipShape={};qe[Fe.xy]=-z[Fe.xy],qe[Fe.wh]=Be.ecSize[Fe.wh],qe[ie.xy]=0,qe[ie.wh]=z[ie.wh]}function g(K){var V=K.symbolPatternSize,z=w(K.symbolType,-V/2,-V/2,V,V,K.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function v(K,V,z,Q){var Z=K.__pictorialBundle,le=z.symbolSize,ne=z.valueLineWidth,ve=z.pathPosition,xe=V.valueDim,_e=z.repeatTimes||0,Be=0,me=le[V.valueDim.index]+ne+z.symbolMargin*2;for(k(K,function(Y){Y.__pictorialAnimationIndex=Be,Y.__pictorialRepeatTimes=_e,Be<_e?M(Y,null,te(Be),z,Q):M(Y,null,{scale:[0,0]},z,Q,function(){Z.remove(Y)}),I(Y,z),Be++});Be<_e;Be++){var Fe=g(z);Fe.__pictorialAnimationIndex=Be,Fe.__pictorialRepeatTimes=_e,Z.add(Fe);var ie=te(Be);M(Fe,{position:ie.position,scale:[0,0]},{scale:ie.scale,rotation:ie.rotation},z,Q),Fe.on("mouseover",Ge).on("mouseout",oe),I(Fe,z)}function te(Y){var G=ve.slice(),X=z.pxSign,fe=Y;return(z.symbolRepeatDirection==="start"?X>0:X<0)&&(fe=_e-1-Y),G[xe.index]=me*(fe-_e/2+.5)+ve[xe.index],{position:G,scale:z.symbolScale.slice(),rotation:z.rotation}}function Ge(){k(K,function(Y){Y.trigger("emphasis")})}function oe(){k(K,function(Y){Y.trigger("normal")})}}function y(K,V,z,Q){var Z=K.__pictorialBundle,le=K.__pictorialMainPath;le?M(le,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,Q):(le=K.__pictorialMainPath=g(z),Z.add(le),M(le,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,Q),le.on("mouseover",ne).on("mouseout",ve)),I(le,z);function ne(){this.trigger("emphasis")}function ve(){this.trigger("normal")}}function x(K,V,z){var Q=E.extend({},V.barRectShape),Z=K.__pictorialBarRect;Z?M(Z,null,{shape:Q},V,z):(Z=K.__pictorialBarRect=new C.Rect({z2:2,shape:Q,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),K.add(Z))}function T(K,V,z,Q){if(z.symbolClip){var Z=K.__pictorialClipPath,le=E.extend({},z.clipShape),ne=V.valueDim,ve=z.animationModel,xe=z.dataIndex;if(Z)C.updateProps(Z,{shape:le},ve,xe);else{le[ne.wh]=0,Z=new C.Rect({shape:le}),K.__pictorialBundle.setClipPath(Z),K.__pictorialClipPath=Z;var _e={};_e[ne.wh]=z.clipShape[ne.wh],C[Q?"updateProps":"initProps"](Z,{shape:_e},ve,xe)}}}function S(K,V){var z=K.getItemModel(V);return z.getAnimationDelayParams=b,z.isAnimationEnabled=O,z}function b(K){return{index:K.__pictorialAnimationIndex,count:K.__pictorialRepeatTimes}}function O(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(K,V){K.off("emphasis").off("normal");var z=V.symbolScale.slice();V.hoverAnimation&&K.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(K,V,z,Q){var Z=new C.Group,le=new C.Group;return Z.add(le),Z.__pictorialBundle=le,le.attr("position",z.bundlePosition.slice()),z.symbolRepeat?v(Z,V,z):y(Z,V,z),x(Z,z,Q),T(Z,V,z,Q),Z.__pictorialShapeStr=R(K,z),Z.__pictorialSymbolMeta=z,Z}function N(K,V,z){var Q=z.animationModel,Z=z.dataIndex,le=K.__pictorialBundle;C.updateProps(le,{position:z.bundlePosition.slice()},Q,Z),z.symbolRepeat?v(K,V,z,!0):y(K,V,z,!0),x(K,z,!0),T(K,V,z,!0)}function D(K,V,z,Q){var Z=Q.__pictorialBarRect;Z&&(Z.style.text=null);var le=[];k(Q,function(ne){le.push(ne)}),Q.__pictorialMainPath&&le.push(Q.__pictorialMainPath),Q.__pictorialClipPath&&(z=null),E.each(le,function(ne){C.updateProps(ne,{scale:[0,0]},z,V,function(){Q.parent&&Q.parent.remove(Q)})}),K.setItemGraphicEl(V,null)}function R(K,V){return[K.getItemVisual(V.dataIndex,"symbol")||"none",!!V.symbolRepeat,!!V.symbolClip].join(":")}function k(K,V,z){E.each(K.__pictorialBundle.children(),function(Q){Q!==K.__pictorialBarRect&&V.call(z,Q)})}function M(K,V,z,Q,Z,le){V&&K.attr(V),Q.symbolClip&&!Z?z&&K.attr(z):z&&C[Z?"updateProps":"initProps"](K,z,Q.animationModel,Q.dataIndex,le)}function j(K,V,z){var Q=z.color,Z=z.dataIndex,le=z.itemModel,ne=le.getModel("itemStyle").getItemStyle(["color"]),ve=le.getModel("emphasis.itemStyle").getItemStyle(),xe=le.getShallow("cursor");k(K,function(Fe){Fe.setColor(Q),Fe.setStyle(E.defaults({fill:Q,opacity:z.opacity},ne)),C.setHoverStyle(Fe,ve),xe&&(Fe.cursor=xe),Fe.z2=z.z2});var _e={},Be=V.valueDim.posDesc[+(z.boundingLength>0)],me=K.__pictorialBarRect;r(me.style,_e,le,Q,V.seriesModel,Z,Be),C.setHoverStyle(me,_e)}function F(K){var V=Math.round(K);return Math.abs(K-V)<1e-4?V:Math.ceil(K)}var U=l;H.exports=U},"N/zr":function(H,B,d){"use strict";function _(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(c){return typeof c}:_=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},_(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||_(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,l=0,t=c;t<f.length;t++){var a=this.toBinaryTable[f.charCodeAt(t)&127],s=f.charAt(t)===this.base64Pad;if(a===-1){E.Error("Illegal character code "+f.charCodeAt(t)+" at position "+t);continue}e=e<<6|a,n+=6,n>=8&&(n-=8,s||(i[l++]=e>>n&255),e&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return i}};B.default=w},N5BQ:function(H,B,d){var _=d("OlYY"),E=_.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 _=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 l=this;this.seriesModel=r,this.api=n,this.ecModel=i;var t=r.getData(),a=t.tree.root,s=r.getViewRoot(),u=this.group,h=r.get("renderLabelForZeroData"),p=[];s.eachNode(function(O){p.push(O)});var g=this._oldChildren||[];if(x(p,g),b(a,s),e&&e.highlight&&e.highlight.piece){var v=r.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(v)}else if(e&&e.unhighlight){var y=this.virtualPiece;!y&&a.children.length&&(y=a.children[0].piece),y&&y.onNormal()}this._initEvents(),this._oldChildren=p;function x(O,I){if(O.length===0&&I.length===0)return;new A(I,O,L,L).add(N).update(N).remove(_.curry(N,null)).execute();function L(D){return D.getId()}function N(D,R){var k=D==null?null:O[D],M=R==null?null:I[R];T(k,M)}}function T(O,I){if(!h&&O&&!O.getValue()&&(O=null),O!==a&&I!==a){if(I&&I.piece)O?(I.piece.updateData(!1,O,"normal",r,i),t.setItemGraphicEl(O.dataIndex,I.piece)):S(I);else if(O){var L=new C(O,r,i);u.add(L),t.setItemGraphicEl(O.dataIndex,L)}}}function S(O){if(!O)return;O.piece&&(u.remove(O.piece),O.piece=null)}function b(O,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,O,"normal",r,i):(l.virtualPiece=new C(O,r,i),u.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var L=function(N){l._rootToNode(I.parentNode)};I.piece._onclickEvent=L,l.virtualPiece.on("click",L)}else l.virtualPiece&&(u.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var r=this,i=function(n){var e=!1,l=r.seriesModel.getViewRoot();l.eachNode(function(t){if(!e&&t.piece&&t.piece.childAt(0)===n.target){var a=t.getModel().get("nodeClick");if(a==="rootToNode")r._rootToNode(t);else if(a==="link"){var s=t.getModel(),u=s.get("link");if(u){var h=s.get("target",!0)||"_blank";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 l=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(l*l+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},NAnI:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("wXyp"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;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 _={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=_;function E(C){switch(C){case _.encodingRaw:return"Raw";case _.encodingCopyRect:return"CopyRect";case _.encodingRRE:return"RRE";case _.encodingHextile:return"Hextile";case _.encodingTight:return"Tight";case _.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+C+"]"}}},NC18:function(H,B,d){var _=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,O,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 k=(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=k*T*D/S,j=k*-S*N/T,F=(h+g)/2+m(L)*M-w(L)*j,U=(p+v)/2+w(L)*M+m(L)*j,K=r([1,0],[(N-M)/T,(D-j)/S]),V=[(N-M)/T,(D-j)/S],z=[(-1*N-M)/T,(-1*D-j)/S],Q=r(V,z);o(V,z)<=-1&&(Q=f),o(V,z)>=1&&(Q=0),x===0&&Q>0&&(Q=Q-2*f),x===1&&Q<0&&(Q=Q+2*f),I.addData(O,F,U,T,S,K,Q,L,x)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(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),O=0;O<b.length;O++){for(var I=b[O],L=I.charAt(0),N,D=I.match(e)||[],R=D.length,k=0;k<R;k++)D[k]=parseFloat(D[k]);for(var M=0;M<R;){var j,F,U,K,V,z,Q,Z=p,le=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":j=p,F=g;var ne=T.len(),ve=T.data;x===S.C&&(j+=p-ve[ne-4],F+=g-ve[ne-3]),N=S.C,Z=D[M++],le=D[M++],p=D[M++],g=D[M++],T.addData(N,j,F,Z,le,p,g);break;case"s":j=p,F=g;var ne=T.len(),ve=T.data;x===S.C&&(j+=p-ve[ne-4],F+=g-ve[ne-3]),N=S.C,Z=p+D[M++],le=g+D[M++],p+=D[M++],g+=D[M++],T.addData(N,j,F,Z,le,p,g);break;case"Q":Z=D[M++],le=D[M++],p=D[M++],g=D[M++],N=S.Q,T.addData(N,Z,le,p,g);break;case"q":Z=D[M++]+p,le=D[M++]+g,p+=D[M++],g+=D[M++],N=S.Q,T.addData(N,Z,le,p,g);break;case"T":j=p,F=g;var ne=T.len(),ve=T.data;x===S.Q&&(j+=p-ve[ne-4],F+=g-ve[ne-3]),p=D[M++],g=D[M++],N=S.Q,T.addData(N,j,F,p,g);break;case"t":j=p,F=g;var ne=T.len(),ve=T.data;x===S.Q&&(j+=p-ve[ne-4],F+=g-ve[ne-3]),p+=D[M++],g+=D[M++],N=S.Q,T.addData(N,j,F,p,g);break;case"A":U=D[M++],K=D[M++],V=D[M++],z=D[M++],Q=D[M++],Z=p,le=g,p=D[M++],g=D[M++],N=S.A,i(Z,le,p,g,z,Q,U,K,V,N,T);break;case"a":U=D[M++],K=D[M++],V=D[M++],z=D[M++],Q=D[M++],Z=p,le=g,p+=D[M++],g+=D[M++],N=S.A,i(Z,le,p,g,z,Q,U,K,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=l(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 _(t(h,p))}function s(h,p){return _.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 _(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=s,B.mergePath=u},NFKh:function(H,B,d){(function(_,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(_){return _})},NH9N:function(H,B,d){var _=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,l=_.bind,t=_.each,a=Math.PI,s=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"),O=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,O,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"},O={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,k=D?N.get("itemGap"):0,M=R+k,j=v.get("label.rotate")||0;j=j*a/180;var F,U,K,V,z=N.get("position",!0),Q=D&&N.get("showPlayBtn",!0),Z=D&&N.get("showPrevBtn",!0),le=D&&N.get("showNextBtn",!0),ne=0,ve=L;return z==="left"||z==="bottom"?(Q&&(F=[0,0],ne+=M),Z&&(U=[ne,0],ne+=M),le&&(K=[ve-R,0],ve-=M)):(Q&&(F=[ve-R,0],ve-=M),Z&&(U=[0,0],ne+=M),le&&(K=[ve-R,0],ve-=M)),V=[ne,ve],v.get("inverse")&&V.reverse(),{viewRect:S,mainLength:L,orient:T,rotation:I[T],labelRotation:j,labelPosOpt:x,labelAlign:v.get("label.align")||b[T],labelBaseline:v.get("label.verticalAlign")||v.get("label.baseline")||O[T],playPosition:F,prevBtnPosition:U,nextBtnPosition:K,axisExtent:V,controlSize:R,controlGap:k}},_position:function(v,y){var x=this._mainGroup,T=this._labelGroup,S=v.viewRect;if(v.orient==="vertical"){var b=C.create(),O=S.x,I=S.y+S.height;C.translate(b,b,[-O,-I]),C.rotate(b,b,-a/2),C.translate(b,b,[O,I]),S=S.clone(),S.applyTransform(b)}var L=U(S),N=U(x.getBoundingRect()),D=U(T.getBoundingRect()),R=x.position,k=T.position;k[0]=R[0]=L[0][0];var M=v.labelPosOpt;if(isNaN(M)){var j=M==="+"?0:1;K(R,N,L,1,j),K(k,D,L,1,1-j)}else{var j=M>=0?0:1;K(R,N,L,1,j),k[1]=R[1]+M}x.attr("position",R),T.attr("position",k),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 U(V){return[[V.x,V.x+V.width],[V.y,V.y+V.height]]}function K(V,z,Q,Z,le){V[Z]+=Q[Z][le]-z[Z][le]}},_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 O=new f("value",S,v.axisExtent,T);return O.model=y,O},_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:_.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(O){var I=x.dataToCoord(O),L=S.getItemModel(O),N=L.getModel("itemStyle"),D=L.getModel("emphasis.itemStyle"),R={position:[I,0],onclick:l(this._changeTimeline,this,O)},k=p(L,N,y,R);A.setHoverStyle(k,D.getItemStyle()),L.get("tooltip")?(k.dataIndex=O,k.dataModel=T):k.dataIndex=k.dataModel=null},this)},_renderAxisLabel:function(v,y,x,T){var S=x.getLabelModel();if(!S.get("show"))return;var b=T.getData(),O=x.getViewLabels();t(O,function(I){var L=I.tickValue,N=b.getItemModel(L),D=N.getModel("label"),R=N.getModel("emphasis.label"),k=x.dataToCoord(I.tickValue),M=new A.Text({position:[k,0],rotation:v.labelRotation-v.rotation,onclick:l(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,O=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",l(this._changeTimeline,this,D?"-":"+")),R(v.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,D?"+":"-")),R(v.playPosition,"controlStyle."+(N?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!N),!0);function R(k,M,j,F){if(!k)return;var U={position:k,origin:[S/2,0],rotation:F?-b:0,rectHover:!0,style:O,onclick:j},K=h(T,M,L,U);y.add(K),A.setHoverStyle(K,I)}},_renderCurrentPointer:function(v,y,x,T){var S=T.getData(),b=T.getCurrentIndex(),O=S.getItemModel(b).getModel("checkpointStyle"),I=this,L={onCreate:function(N){N.draggable=!0,N.drift=l(I._handlePointerDrag,I),N.ondragend=l(I._handlePointerDragend,I),g(N,b,x,T,!0)},onUpdate:function(N){g(N,b,x,T)}};this._currentPointer=p(O,O,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),O=this.model;(y||b!==O.getCurrentIndex()&&O.get("realtime"))&&this._changeTimeline(b)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(v,this),this.model.get("playInterval")));function v(){var y=this.model;this._changeTimeline(y.getCurrentIndex()+(y.get("rewind",!0)?-1:1))}},_toAxisCoord:function(v){var y=this._mainGroup.getLocalTransform();return A.applyTransform(v,y,!0)},_findNearestTick:function(v){var y=this.model.getData(),x=Infinity,T,S=this._axis;return y.each(["value"],function(b,O){var I=S.dataToCoord(b),L=Math.abs(I-v);L<x&&(x=L,T=O)}),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:\/\//,""),_.clone(T||{}),new E(x[0],x[1],x[2],x[3]),"center");return S}function p(v,y,x,T,S,b){var O=y.get("color");if(S)S.setColor(O),x.add(S),b&&b.onUpdate(S);else{var I=v.get("symbol");S=o(I,-1,-1,2,2,O),S.setStyle("strokeNoScale",!0),x.add(S),b&&b.onCreate(S)}var L=y.getItemStyle(["color","symbol","symbolSize"]);S.setStyle(L),T=_.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 k=v.get("symbolRotate");return T.rotation=(k||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"),O=x.dataToCoord(T.getData().get(["value"],y));S||!b.get("animation",!0)?v.attr({position:[O,0]}):(v.stopAnimation(!0),v.animateTo({position:[O,0]},b.get("animationDuration",!0),b.get("animationEasing",!0)))}H.exports=s},NJEC:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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"),l=d("zvFY"),t=d("YMnH"),a=d("ZvpZ"),s=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],O=S[1];w.useEffect(function(){"visible"in y&&O(y.visible)},[y.visible]),w.useEffect(function(){"defaultVisible"in y&&O(y.defaultVisible)},[y.defaultVisible]);var I=function(xe,_e){"visible"in y||O(xe),y.onVisibleChange&&y.onVisibleChange(xe,_e)},L=function(xe){I(!1,xe),y.onConfirm&&y.onConfirm.call(p,xe)},N=function(xe){I(!1,xe),y.onCancel&&y.onCancel.call(p,xe)},D=function(xe){xe.keyCode===i.a.ESC&&b&&I(!1,xe)},R=function(xe){var _e=y.disabled;if(_e)return;I(xe)},k=function(xe,_e){var Be=y.okButtonProps,me=y.cancelButtonProps,Fe=y.title,ie=y.cancelText,te=y.okText,Ge=y.okType,oe=y.icon;return w.createElement("div",{className:"".concat(xe,"-inner-content")},w.createElement("div",{className:"".concat(xe,"-message")},oe,w.createElement("div",{className:"".concat(xe,"-message-title")},Object(u.a)(Fe))),w.createElement("div",{className:"".concat(xe,"-buttons")},w.createElement(e.a,E()({onClick:N,size:"small"},me),ie||_e.cancelText),w.createElement(e.a,E()({onClick:L},Object(l.a)(Ge),{size:"small"},Be),te||_e.okText)))},M=w.useContext(s.b),j=M.getPrefixCls,F=y.prefixCls,U=y.placement,K=y.children,V=y.overlayClassName,z=g(y,["prefixCls","placement","children","overlayClassName"]),Q=j("popover",F),Z=j("popconfirm",F),le=c()(Z,V),ne=w.createElement(t.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(ve){return k(Q,ve)});return w.createElement(n.a,E()({},z,{prefixCls:Q,placement:U,onVisibleChange:R,visible:b,overlay:ne,overlayClassName:le,ref:x}),Object(h.a)(K,{onKeyDown:function(xe){var _e,Be;(Be=K==null?void 0:(_e=K.props).onKeyDown)===null||Be===void 0||Be.call(_e,xe),D(xe)}}))});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 _=d("lSNA"),E=d.n(_),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"),l=d("TSYQ"),t=d.n(l),a=function(_e){var Be,me="".concat(_e.rootPrefixCls,"-item"),Fe=t()(me,"".concat(me,"-").concat(_e.page),(Be={},Object(c.a)(Be,"".concat(me,"-active"),_e.active),Object(c.a)(Be,_e.className,!!_e.className),Object(c.a)(Be,"".concat(me,"-disabled"),!_e.page),Be)),ie=function(){_e.onClick(_e.page)},te=function(oe){_e.onKeyPress(oe,_e.onClick,_e.page)};return m.a.createElement("li",{title:_e.showTitle?_e.page:null,className:Fe,onClick:ie,onKeyPress:te,tabIndex:"0"},_e.itemRender(_e.page,"page",m.a.createElement("a",{rel:"nofollow"},_e.page)))},s=a,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(xe){Object(n.a)(Be,xe);var _e=Object(e.a)(Be);function Be(){var me;Object(r.a)(this,Be);for(var Fe=arguments.length,ie=new Array(Fe),te=0;te<Fe;te++)ie[te]=arguments[te];return me=_e.call.apply(_e,[this].concat(ie)),me.state={goInputText:""},me.buildOptionText=function(Ge){return"".concat(Ge," ").concat(me.props.locale.items_per_page)},me.changeSize=function(Ge){me.props.changeSize(Number(Ge))},me.handleChange=function(Ge){me.setState({goInputText:Ge.target.value})},me.handleBlur=function(Ge){var oe=me.props,Y=oe.goButton,G=oe.quickGo,X=oe.rootPrefixCls,fe=me.state.goInputText;if(Y||fe==="")return;if(Ge.relatedTarget&&(Ge.relatedTarget.className.indexOf("".concat(X,"-prev"))>=0||Ge.relatedTarget.className.indexOf("".concat(X,"-next"))>=0))return;me.setState({goInputText:""}),G(me.getValidValue())},me.go=function(Ge){var oe=me.state.goInputText;if(oe==="")return;(Ge.keyCode===u.ENTER||Ge.type==="click")&&(me.setState({goInputText:""}),me.props.quickGo(me.getValidValue()))},me}return Object(i.a)(Be,[{key:"getValidValue",value:function(){var Fe=this.state,ie=Fe.goInputText,te=Fe.current;return!ie||isNaN(ie)?te:Number(ie)}},{key:"getPageSizeOptions",value:function(){var Fe=this.props,ie=Fe.pageSize,te=Fe.pageSizeOptions;return te.some(function(Ge){return Ge.toString()===ie.toString()})?te:te.concat([ie.toString()]).sort(function(Ge,oe){var Y=isNaN(Number(Ge))?0:Number(Ge),G=isNaN(Number(oe))?0:Number(oe);return Y-G})}},{key:"render",value:function(){var Fe=this,ie=this.props,te=ie.pageSize,Ge=ie.locale,oe=ie.rootPrefixCls,Y=ie.changeSize,G=ie.quickGo,X=ie.goButton,fe=ie.selectComponentClass,de=ie.buildOptionText,Ce=ie.selectPrefixCls,Me=ie.disabled,ue=this.state.goInputText,Ae="".concat(oe,"-options"),Te=fe,Je=null,At=null,qe=null;if(!Y&&!G)return null;var Re=this.getPageSizeOptions();if(Y&&Te){var Lt=Re.map(function($e,Et){return m.a.createElement(Te.Option,{key:Et,value:$e.toString()},(de||Fe.buildOptionText)($e))});Je=m.a.createElement(Te,{disabled:Me,prefixCls:Ce,showSearch:!1,className:"".concat(Ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(te||Re[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Et){return Et.parentNode}},Lt)}return G&&(X&&(qe=typeof X=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Me,className:"".concat(Ae,"-quick-jumper-button")},Ge.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},X)),At=m.a.createElement("div",{className:"".concat(Ae,"-quick-jumper")},Ge.jump_to,m.a.createElement("input",{disabled:Me,type:"text",value:ue,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Ge.page,qe)),m.a.createElement("li",{className:"".concat(Ae)},Je,At)}}]),Be}(m.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=h,g=d("N2Kk");function v(){}function y(xe){return typeof xe=="number"&&isFinite(xe)&&Math.floor(xe)===xe}function x(xe,_e,Be){return Be}function T(xe,_e,Be){var me=typeof xe=="undefined"?_e.pageSize:xe;return Math.floor((Be.total-1)/me)+1}var S=function(xe){Object(n.a)(Be,xe);var _e=Object(e.a)(Be);function Be(me){var Fe;Object(r.a)(this,Be),Fe=_e.call(this,me),Fe.getJumpPrevPage=function(){return Math.max(1,Fe.state.current-(Fe.props.showLessItems?3:5))},Fe.getJumpNextPage=function(){return Math.min(T(void 0,Fe.state,Fe.props),Fe.state.current+(Fe.props.showLessItems?3:5))},Fe.getItemIcon=function(Y,G){var X=Fe.props.prefixCls,fe=Y||m.a.createElement("button",{type:"button","aria-label":G,className:"".concat(X,"-item-link")});return typeof Y=="function"&&(fe=m.a.createElement(Y,Object(o.a)({},Fe.props))),fe},Fe.savePaginationNode=function(Y){Fe.paginationNode=Y},Fe.isValid=function(Y){return y(Y)&&Y!==Fe.state.current},Fe.shouldDisplayQuickJumper=function(){var Y=Fe.props,G=Y.showQuickJumper,X=Y.pageSize,fe=Y.total;return fe<=X?!1:G},Fe.handleKeyDown=function(Y){(Y.keyCode===u.ARROW_UP||Y.keyCode===u.ARROW_DOWN)&&Y.preventDefault()},Fe.handleKeyUp=function(Y){var G=Fe.getValidValue(Y),X=Fe.state.currentInputValue;G!==X&&Fe.setState({currentInputValue:G}),Y.keyCode===u.ENTER?Fe.handleChange(G):Y.keyCode===u.ARROW_UP?Fe.handleChange(G-1):Y.keyCode===u.ARROW_DOWN&&Fe.handleChange(G+1)},Fe.changePageSize=function(Y){var G=Fe.state.current,X=T(Y,Fe.state,Fe.props);G=G>X?X:G,X===0&&(G=Fe.state.current),typeof Y=="number"&&("pageSize"in Fe.props||Fe.setState({pageSize:Y}),"current"in Fe.props||Fe.setState({current:G,currentInputValue:G})),Fe.props.onShowSizeChange(G,Y),"onChange"in Fe.props&&Fe.props.onChange&&Fe.props.onChange(G,Y)},Fe.handleChange=function(Y){var G=Fe.props.disabled,X=Y;if(Fe.isValid(X)&&!G){var fe=T(void 0,Fe.state,Fe.props);X>fe?X=fe:X<1&&(X=1),"current"in Fe.props||Fe.setState({current:X,currentInputValue:X});var de=Fe.state.pageSize;return Fe.props.onChange(X,de),X}return Fe.state.current},Fe.prev=function(){Fe.hasPrev()&&Fe.handleChange(Fe.state.current-1)},Fe.next=function(){Fe.hasNext()&&Fe.handleChange(Fe.state.current+1)},Fe.jumpPrev=function(){Fe.handleChange(Fe.getJumpPrevPage())},Fe.jumpNext=function(){Fe.handleChange(Fe.getJumpNextPage())},Fe.hasPrev=function(){return Fe.state.current>1},Fe.hasNext=function(){return Fe.state.current<T(void 0,Fe.state,Fe.props)},Fe.runIfEnter=function(Y,G){if(Y.key==="Enter"||Y.charCode===13){for(var X=arguments.length,fe=new Array(X>2?X-2:0),de=2;de<X;de++)fe[de-2]=arguments[de];G.apply(void 0,fe)}},Fe.runIfEnterPrev=function(Y){Fe.runIfEnter(Y,Fe.prev)},Fe.runIfEnterNext=function(Y){Fe.runIfEnter(Y,Fe.next)},Fe.runIfEnterJumpPrev=function(Y){Fe.runIfEnter(Y,Fe.jumpPrev)},Fe.runIfEnterJumpNext=function(Y){Fe.runIfEnter(Y,Fe.jumpNext)},Fe.handleGoTO=function(Y){(Y.keyCode===u.ENTER||Y.type==="click")&&Fe.handleChange(Fe.state.currentInputValue)};var ie=me.onChange!==v,te="current"in me;te&&!ie&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ge=me.defaultCurrent;"current"in me&&(Ge=me.current);var oe=me.defaultPageSize;return"pageSize"in me&&(oe=me.pageSize),Ge=Math.min(Ge,T(oe,void 0,me)),Fe.state={current:Ge,currentInputValue:Ge,pageSize:oe},Fe}return Object(i.a)(Be,[{key:"componentDidUpdate",value:function(Fe,ie){var te=this.props.prefixCls;if(ie.current!==this.state.current&&this.paginationNode){var Ge=this.paginationNode.querySelector(".".concat(te,"-item-").concat(ie.current));Ge&&document.activeElement===Ge&&Ge.blur()}}},{key:"getValidValue",value:function(Fe){var ie=Fe.target.value,te=T(void 0,this.state,this.props),Ge=this.state.currentInputValue,oe;return ie===""?oe=ie:isNaN(Number(ie))?oe=Ge:ie>=te?oe=te:oe=Number(ie),oe}},{key:"getShowSizeChanger",value:function(){var Fe=this.props,ie=Fe.showSizeChanger,te=Fe.total,Ge=Fe.totalBoundaryShowSizeChanger;return typeof ie!="undefined"?ie:te>Ge}},{key:"renderPrev",value:function(Fe){var ie=this.props,te=ie.prevIcon,Ge=ie.itemRender,oe=Ge(Fe,"prev",this.getItemIcon(te,"prev page")),Y=!this.hasPrev();return Object(w.isValidElement)(oe)?Object(w.cloneElement)(oe,{disabled:Y}):oe}},{key:"renderNext",value:function(Fe){var ie=this.props,te=ie.nextIcon,Ge=ie.itemRender,oe=Ge(Fe,"next",this.getItemIcon(te,"next page")),Y=!this.hasNext();return Object(w.isValidElement)(oe)?Object(w.cloneElement)(oe,{disabled:Y}):oe}},{key:"render",value:function(){var Fe=this,ie=this.props,te=ie.prefixCls,Ge=ie.className,oe=ie.style,Y=ie.disabled,G=ie.hideOnSinglePage,X=ie.total,fe=ie.locale,de=ie.showQuickJumper,Ce=ie.showLessItems,Me=ie.showTitle,ue=ie.showTotal,Ae=ie.simple,Te=ie.itemRender,Je=ie.showPrevNextJumpers,At=ie.jumpPrevIcon,qe=ie.jumpNextIcon,Re=ie.selectComponentClass,Lt=ie.selectPrefixCls,$e=ie.pageSizeOptions,Et=this.state,Ut=Et.current,Bt=Et.pageSize,_t=Et.currentInputValue;if(G===!0&&X<=Bt)return null;var jt=T(void 0,this.state,this.props),He=[],se=null,J=null,Ue=null,Le=null,ee=null,ct=de&&de.goButton,Mt=Ce?1:2,ot=Ut-1>0?Ut-1:0,Yt=Ut+1<jt?Ut+1:jt,or=Object.keys(this.props).reduce(function(Mn,Ft){return(Ft.substr(0,5)==="data-"||Ft.substr(0,5)==="aria-"||Ft==="role")&&(Mn[Ft]=Fe.props[Ft]),Mn},{});if(Ae)return ct&&(typeof ct=="boolean"?ee=m.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},fe.jump_to_confirm):ee=m.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ct),ee=m.a.createElement("li",{title:Me?"".concat(fe.jump_to).concat(Ut,"/").concat(jt):null,className:"".concat(te,"-simple-pager")},ee)),m.a.createElement("ul",Object(f.a)({className:t()(te,"".concat(te,"-simple"),Object(c.a)({},"".concat(te,"-disabled"),Y),Ge),style:oe,ref:this.savePaginationNode},or),m.a.createElement("li",{title:Me?fe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:t()("".concat(te,"-prev"),Object(c.a)({},"".concat(te,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ot)),m.a.createElement("li",{title:Me?"".concat(Ut,"/").concat(jt):null,className:"".concat(te,"-simple-pager")},m.a.createElement("input",{type:"text",value:_t,disabled:Y,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),m.a.createElement("span",{className:"".concat(te,"-slash")},"/"),jt),m.a.createElement("li",{title:Me?fe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:t()("".concat(te,"-next"),Object(c.a)({},"".concat(te,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Yt)),ee);if(jt<=3+Mt*2){var Zr={locale:fe,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Me,itemRender:Te};jt||He.push(m.a.createElement(s,Object(f.a)({},Zr,{key:"noPager",page:jt,className:"".concat(te,"-disabled")})));for(var ir=1;ir<=jt;ir+=1){var dr=Ut===ir;He.push(m.a.createElement(s,Object(f.a)({},Zr,{key:ir,page:ir,active:dr})))}}else{var qt=Ce?fe.prev_3:fe.prev_5,Ht=Ce?fe.next_3:fe.next_5;Je&&(se=m.a.createElement("li",{title:Me?qt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:t()("".concat(te,"-jump-prev"),Object(c.a)({},"".concat(te,"-jump-prev-custom-icon"),!!At))},Te(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(At,"prev page"))),J=m.a.createElement("li",{title:Me?Ht:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:t()("".concat(te,"-jump-next"),Object(c.a)({},"".concat(te,"-jump-next-custom-icon"),!!qe))},Te(this.getJumpNextPage(),"jump-next",this.getItemIcon(qe,"next page")))),Le=m.a.createElement(s,{locale:fe,last:!0,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jt,page:jt,active:!1,showTitle:Me,itemRender:Te}),Ue=m.a.createElement(s,{locale:fe,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Me,itemRender:Te});var lt=Math.max(1,Ut-Mt),Hr=Math.min(Ut+Mt,jt);Ut-1<=Mt&&(Hr=1+Mt*2),jt-Ut<=Mt&&(lt=jt-Mt*2);for(var dn=lt;dn<=Hr;dn+=1){var Nn=Ut===dn;He.push(m.a.createElement(s,{locale:fe,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:dn,page:dn,active:Nn,showTitle:Me,itemRender:Te}))}Ut-1>=Mt*2&&Ut!==1+2&&(He[0]=Object(w.cloneElement)(He[0],{className:"".concat(te,"-item-after-jump-prev")}),He.unshift(se)),jt-Ut>=Mt*2&&Ut!==jt-2&&(He[He.length-1]=Object(w.cloneElement)(He[He.length-1],{className:"".concat(te,"-item-before-jump-next")}),He.push(J)),lt!==1&&He.unshift(Ue),Hr!==jt&&He.push(Le)}var Wn=null;ue&&(Wn=m.a.createElement("li",{className:"".concat(te,"-total-text")},ue(X,[X===0?0:(Ut-1)*Bt+1,Ut*Bt>X?X:Ut*Bt])));var gi=!this.hasPrev()||!jt,yn=!this.hasNext()||!jt;return m.a.createElement("ul",Object(f.a)({className:t()(te,Ge,Object(c.a)({},"".concat(te,"-disabled"),Y)),style:oe,unselectable:"unselectable",ref:this.savePaginationNode},or),Wn,m.a.createElement("li",{title:Me?fe.prev_page:null,onClick:this.prev,tabIndex:gi?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(te,"-prev"),Object(c.a)({},"".concat(te,"-disabled"),gi)),"aria-disabled":gi},this.renderPrev(ot)),He,m.a.createElement("li",{title:Me?fe.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(te,"-next"),Object(c.a)({},"".concat(te,"-disabled"),yn)),"aria-disabled":yn},this.renderNext(Yt)),m.a.createElement(p,{disabled:Y,locale:fe,rootPrefixCls:te,selectComponentClass:Re,selectPrefixCls:Lt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ut,pageSize:Bt,pageSizeOptions:$e,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ct}))}}],[{key:"getDerivedStateFromProps",value:function(Fe,ie){var te={};if("current"in Fe&&(te.current=Fe.current,Fe.current!==ie.current&&(te.currentInputValue=te.current)),"pageSize"in Fe&&Fe.pageSize!==ie.pageSize){var Ge=ie.current,oe=T(Fe.pageSize,ie,Fe);Ge=Ge>oe?oe:Ge,"current"in Fe||(te.current=Ge,te.currentInputValue=Ge),te.pageSize=Fe.pageSize}return te}}]),Be}(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,O=d("H4fg"),I=d("DFhj"),L=d.n(I),N=d("fEPi"),D=d.n(N),R=d("u9fO"),k=d.n(R),M=d("mO/d"),j=d.n(M),F=d("2fM7"),U=function(_e){return w.createElement(F.a,A()({size:"small"},_e))};U.Option=F.a.Option;var K=U,V=d("YMnH"),z=d("H84U"),Q=d("5OYt"),Z=function(xe,_e){var Be={};for(var me in xe)Object.prototype.hasOwnProperty.call(xe,me)&&_e.indexOf(me)<0&&(Be[me]=xe[me]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(xe);Fe<me.length;Fe++)_e.indexOf(me[Fe])<0&&Object.prototype.propertyIsEnumerable.call(xe,me[Fe])&&(Be[me[Fe]]=xe[me[Fe]]);return Be},le=function(_e){var Be=_e.prefixCls,me=_e.selectPrefixCls,Fe=_e.className,ie=_e.size,te=_e.locale,Ge=Z(_e,["prefixCls","selectPrefixCls","className","size","locale"]),oe=Object(Q.a)(),Y=oe.xs,G=w.useContext(z.b),X=G.getPrefixCls,fe=G.direction,de=X("pagination",Be),Ce=function(){var Ae=w.createElement("span",{className:"".concat(de,"-item-ellipsis")},"\u2022\u2022\u2022"),Te=w.createElement("button",{className:"".concat(de,"-item-link"),type:"button",tabIndex:-1},w.createElement(L.a,null)),Je=w.createElement("button",{className:"".concat(de,"-item-link"),type:"button",tabIndex:-1},w.createElement(D.a,null)),At=w.createElement("a",{className:"".concat(de,"-item-link")},w.createElement("div",{className:"".concat(de,"-item-container")},w.createElement(k.a,{className:"".concat(de,"-item-link-icon")}),Ae)),qe=w.createElement("a",{className:"".concat(de,"-item-link")},w.createElement("div",{className:"".concat(de,"-item-container")},w.createElement(j.a,{className:"".concat(de,"-item-link-icon")}),Ae));if(fe==="rtl"){var Re=[Je,Te];Te=Re[0],Je=Re[1];var Lt=[qe,At];At=Lt[0],qe=Lt[1]}return{prevIcon:Te,nextIcon:Je,jumpPrevIcon:At,jumpNextIcon:qe}},Me=function(Ae){var Te=A()(A()({},Ae),te),Je=ie==="small"||!!(Y&&!ie&&Ge.responsive),At=X("select",me),qe=t()(Fe,E()({mini:Je},"".concat(de,"-rtl"),fe==="rtl"));return w.createElement(b,A()({},Ge,{prefixCls:de,selectPrefixCls:At},Ce(),{className:qe,selectComponentClass:Je?K:F.a,locale:Te}))};return w.createElement(V.a,{componentName:"Pagination",defaultLocale:O.a},Me)},ne=le,ve=B.a=ne},NohK:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=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=_},Nu4q:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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/iA":function(H,B,d){},O3gP:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("O/iA"),A=d.n(C),w=d("OaEy")},OELB:function(H,B,d){var _=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],O=T[1]-T[0];if(b===0)return O===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*O+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),O=Math.round(T(Math.abs(x[1]-x[0]))/S),I=Math.min(Math.max(-b+O,0),20);return isFinite(I)?I:20}function i(y,x,T){if(!y[x])return 0;var S=_.reduce(y,function(F,U){return F+(isNaN(U)?0:U)},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=_.map(O,function(F){return Math.floor(F)}),N=_.reduce(L,function(F,U){return F+U},0),D=_.map(O,function(F,U){return F-L[U]});N<I;){for(var R=Number.NEGATIVE_INFINITY,k=null,M=0,j=D.length;M<j;++M)D[M]>R&&(R=D[M],k=M);++L[k],D[k]=0,++N}return L[x]/b}var n=9007199254740991;function e(y){var x=Math.PI*2;return(y%x+x)%x}function l(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 s(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,O;return x?b<1.5?O=1:b<2.5?O=2:b<4?O=3:b<7?O=5:O=10:b<1?O=1:b<2?O=2:b<3?O=3:b<5?O=5:O=10,y=O*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],O=T-S;return O?b+O*(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,O=y[S].close,I=0;I<2;I++)b[I]<=x&&(b[I]=x,O[I]=I?1:1-T),x=b[I],T=O[I];b[0]===b[1]&&O[0]*O[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=l,B.parseDate=a,B.quantity=s,B.quantityExponent=u,B.nice=h,B.quantile=p,B.reformIntervals=g,B.isNumeric=v},OKJ2:function(H,B,d){var _=d("KxfA"),E=_.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),l=n.getRawIndex(r),t=n.getName(r),a=n.getRawDataItem(r),s=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),h=this.ecModel.getComponent("tooltip"),p=h&&h.get("renderMode"),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:l,data:a,dataType:i,value:e,color:s,borderColor:u,dimensionNames:x?x.dimensionNames:null,encode:x?x.encode:null,marker:A({color:s,renderMode:g}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,i,n,e,l){i=i||"normal";var t=this.getData(n),a=t.getItemModel(r),s=this.getDataParams(r,n);e!=null&&s.value instanceof Array&&(s.value=s.value[e]);var u=a.get(i==="normal"?[l||"label","formatter"]:[i,l||"label","formatter"]);if(typeof u=="function")return s.status=i,s.dimensionIndex=e,u(s);if(typeof u=="string"){var h=w(u,s);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(_,E,C){H.exports=B=E(d("Ib8C"),d("K3mO"))})(this,function(_){_.lib.Cipher||function(E){var C=_,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 O(I){return typeof I=="string"?b:x}return function(I){return{encrypt:function(N,D,R){return O(D).encrypt(I,N,D,R)},decrypt:function(N,D,R){return O(D).decrypt(I,N,D,R)}}}}()}),l=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}}),s=t.CBC=function(){var O=a.extend();O.Encryptor=O.extend({processBlock:function(N,D){var R=this._cipher,k=R.blockSize;I.call(this,N,D,k),R.encryptBlock(N,D),this._prevBlock=N.slice(D,D+k)}}),O.Decryptor=O.extend({processBlock:function(N,D){var R=this._cipher,k=R.blockSize,M=N.slice(D,D+k);R.decryptBlock(N,D),I.call(this,N,D,k),this._prevBlock=M}});function I(L,N,D){var R,k=this._iv;k?(R=k,this._iv=E):R=this._prevBlock;for(var M=0;M<D;M++)L[N+M]^=R[M]}return O}(),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,k=[],M=0;M<D;M+=4)k.push(R);var j=m.create(k,D);I.concat(j)},unpad:function(I){var L=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=L}},p=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:s,padding:h}),reset:function(){var I;e.reset.call(this);var L=this.cfg,N=L.iv,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),k=R.finalize(L),M=R.cfg;return g.create({ciphertext:k,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),k=m.create(R.words.slice(L),N*4);return R.sigBytes=L*4,g.create({key:R,iv:k,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 k=x.encrypt.call(this,I,L,R.key,D);return k.mixIn(R),k},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 k=x.decrypt.call(this,I,L,R.key,D);return k}})}()})},OPEp:function(H,B,d){},OQFs:function(H,B,d){var _=d("KCsZ"),E=_([["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 _=d("bYtY"),E=_.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 _=d("ProS"),E=d("bYtY");_.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)}),_.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 _=d("T4UG"),E=d("MwEJ"),C=d("IDmD"),A=_.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 _=d("cIOH"),E=d.n(_),C=d("bKJz"),A=d.n(C),w=d("R9oj")},Ol7k:function(H,B,d){"use strict";var _=d("PKem"),E=d("ZX9x");_.b.Sider=E.b,B.a=_.b},OlYY:function(H,B,d){var _=d("Tghj"),E=_.__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,s){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var u=n(t);this.settledOption=u,this.mergeDefaultAndTheme(t,s),this.doInit(u)},mergeOption:function(t){var a=n(t);A.merge(this.option,t,!0),A.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(t){var a=this.option;w.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(t),e(this,t);var s=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u,h){this._rangePropMode[h]==="value"&&(a[u[0]]=s[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(a,s,u,h){var p=this.dependentModels[a.axis][s],g=p.__dzAxisProxy||(p.__dzAxisProxy=new c(a.name,s,this,h));t[a.name+"_"+s]=g},this)},_resetTarget:function(){var t=this.option,a=this._judgeAutoMode();r(function(s){var u=s.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 s=t.orient;if(s==null&&a)return"orient";if(!a)return s==null&&(t.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var t=!0,a=this.get("orient",!0),s=this.option,u=this.dependentModels;if(t){var h=a==="vertical"?"y":"x";u[h+"Axis"].length?(s[h+"AxisIndex"]=[0],t=!1):o(u.singleAxis,function(p){t&&p.get("orient",!0)===a&&(s.singleAxisIndex=[p.componentIndex],t=!1)})}t&&r(function(p){if(!t)return;var 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);s[p.axisIndex]=g,g.length&&(t=!1)},this),t&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(g){var v=s[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 s=!0;return r(function(u){var h=t.get(u.axisIndex),p=this.dependentModels[u.axis][h];(!p||p.get("type")!==a)&&(s=!1)},this),s},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return r(function(a){if(t==null){var s=this.get(a.axisIndex);s.length&&(t=this.dependentModels[a.axis][s[0]])}},this),t},eachTargetAxis:function(t,a){var s=this.ecModel;r(function(u){o(this.get(u.axisIndex),function(h){t.call(a,u,h,this,s)},this)},this)},getAxisProxy:function(t,a){return this._axisProxies[t+"_"+a]},getAxisModel:function(t,a){var s=this.getAxisProxy(t,a);return s&&s.getAxisModel()},setRawRange:function(t){var a=this.option,s=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u){(t[u[0]]!=null||t[u[1]]!=null)&&(a[u[0]]=s[u[0]]=t[u[0]],a[u[1]]=s[u[1]]=t[u[1]])},this),e(this,t)},setCalculatedRange:function(t){var a=this.option;o(["start","startValue","end","endValue"],function(s){a[s]=t[s]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,a){if(t==null&&a==null){var s=this.findRepresentativeAxisProxy();if(s)return s.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var a=this._axisProxies;for(var s in a)if(a.hasOwnProperty(s)&&a[s].hostedBy(this))return a[s];for(var s in a)if(a.hasOwnProperty(s)&&!a[s].hostedBy(this))return a[s]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(t){var a={};return o(["start","end","startValue","endValue","throttle"],function(s){t.hasOwnProperty(s)&&(a[s]=t[s])}),a}function e(t,a){var s=t._rangePropMode,u=t.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(h,p){var g=a[h[0]]!=null,v=a[h[1]]!=null;g&&!v?s[p]="percent":!g&&v?s[p]="value":u?s[p]=u[p]:g&&(s[p]="percent")})}var l=i;H.exports=l},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(_){var E={};function C(A){if(E[A])return E[A].exports;var w=E[A]={i:A,l:!1,exports:{}};return _[A].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=_,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(_,E,C){},function(_,E,C){"use strict";C.r(E);var A=C(0),w=function(){function pt(ae,pe,be){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ae,this.start=pe,this.end=be}return pt.range=function(pe,be){return be?!pe||!pe.loc||!be.loc||pe.loc.lexer!==be.loc.lexer?null:new pt(pe.loc.lexer,pe.loc.start,be.loc.end):pe&&pe.loc},pt}(),m=function(){function pt(pe,be){this.text=void 0,this.loc=void 0,this.text=pe,this.loc=be}var ae=pt.prototype;return ae.range=function(be,Ke){return new pt(Ke,w.range(this,be))},pt}(),f=function pt(ae,pe){this.position=void 0;var be="KaTeX parse error: "+ae,Ke,mt=pe&&pe.loc;if(mt&&mt.start<=mt.end){var Gt=mt.lexer.input;Ke=mt.start;var Dr=mt.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__=pt.prototype,qn.position=Ke,qn};f.prototype.__proto__=Error.prototype;var c=f,o=function(ae,pe){return ae.indexOf(pe)!==-1},r=function(ae,pe){return ae===void 0?pe:ae},i=/([A-Z])/g,n=function(ae){return ae.replace(i,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;function t(pt){return String(pt).replace(l,function(ae){return e[ae]})}var a=function pt(ae){return ae.type==="ordgroup"||ae.type==="color"?ae.body.length===1?pt(ae.body[0]):ae:ae.type==="font"?pt(ae.body):ae},s=function(ae){var pe=a(ae);return pe.type==="mathord"||pe.type==="textord"||pe.type==="atom"},u=function(ae){if(!ae)throw new Error("Expected non-null, but got "+String(ae));return ae},h=function(ae){var pe=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ae);return pe!=null?pe[1]:"_relative"},p={contains:o,deflt:r,escape:t,hyphenate:n,getBaseElem:a,isCharacterBox:s,protocolFromUrl:h},g=function(){function pt(pe){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,pe=pe||{},this.displayMode=p.deflt(pe.displayMode,!1),this.output=p.deflt(pe.output,"htmlAndMathml"),this.leqno=p.deflt(pe.leqno,!1),this.fleqn=p.deflt(pe.fleqn,!1),this.throwOnError=p.deflt(pe.throwOnError,!0),this.errorColor=p.deflt(pe.errorColor,"#cc0000"),this.macros=pe.macros||{},this.minRuleThickness=Math.max(0,p.deflt(pe.minRuleThickness,0)),this.colorIsTextColor=p.deflt(pe.colorIsTextColor,!1),this.strict=p.deflt(pe.strict,"warn"),this.trust=p.deflt(pe.trust,!1),this.maxSize=Math.max(0,p.deflt(pe.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(pe.maxExpand,1e3))}var ae=pt.prototype;return ae.reportNonstrict=function(be,Ke,mt){var Gt=this.strict;if(typeof Gt=="function"&&(Gt=Gt(be,Ke,mt)),!Gt||Gt==="ignore")return;if(Gt===!0||Gt==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(Ke+" ["+be+"]"),mt);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,mt){var Gt=this.strict;if(typeof Gt=="function")try{Gt=Gt(be,Ke,mt)}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)},pt}(),v=function(){function pt(pe,be,Ke){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=pe,this.size=be,this.cramped=Ke}var ae=pt.prototype;return ae.sup=function(){return N[D[this.id]]},ae.sub=function(){return N[R[this.id]]},ae.fracNum=function(){return N[k[this.id]]},ae.fracDen=function(){return N[M[this.id]]},ae.cramp=function(){return N[j[this.id]]},ae.text=function(){return N[F[this.id]]},ae.isTight=function(){return this.size>=2},pt}(),y=0,x=1,T=2,S=3,b=4,O=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(O,2,!0),new v(I,3,!1),new v(L,3,!0)],D=[b,O,b,O,I,L,I,L],R=[O,O,O,O,L,L,L,L],k=[T,S,b,O,I,L,I,L],M=[S,S,O,O,L,L,L,L],j=[x,x,S,S,O,O,L,L],F=[y,x,T,S,T,S,T,S],U={DISPLAY:N[y],TEXT:N[T],SCRIPT:N[b],SCRIPTSCRIPT:N[I]},K=[{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(pt){for(var ae=0;ae<K.length;ae++)for(var pe=K[ae],be=0;be<pe.blocks.length;be++){var Ke=pe.blocks[be];if(pt>=Ke[0]&&pt<=Ke[1])return pe.name}return null}var z=[];K.forEach(function(pt){return pt.blocks.forEach(function(ae){return z.push.apply(z,ae)})});function Q(pt){for(var ae=0;ae<z.length;ae+=2)if(pt>=z[ae]&&pt<=z[ae+1])return!0;return!1}var Z=80,le=function(ae,pe){return"M95,"+(622+ae+pe)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+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)+" "+pe+"h400000v"+(40+ae)+"h-400000z"},ne=function(ae,pe){return"M263,"+(601+ae+pe)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+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)+" "+pe+"h400000v"+(40+ae)+"h-400000z"},ve=function(ae,pe){return"M983 "+(10+ae+pe)+`
|
|
|
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)+" "+pe+"h400000v"+(40+ae)+"h-400000z"},xe=function(ae,pe){return"M424,"+(2398+ae+pe)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+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)+" "+pe+`
|
|
|
h400000v`+(40+ae)+"h-400000z"},_e=function(ae,pe){return"M473,"+(2713+ae+pe)+`
|
|
|
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)+" "+pe+"h400000v"+(40+ae)+"H1017.7z"},Be=function(ae,pe,be){var Ke=be-54-pe-ae;return"M702 "+(ae+pe)+"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 `+pe+"H400000v"+(40+ae)+"H742z"},me=function(ae,pe,be){pe=1e3*pe;var Ke="";switch(ae){case"sqrtMain":Ke=le(pe,Z);break;case"sqrtSize1":Ke=ne(pe,Z);break;case"sqrtSize2":Ke=ve(pe,Z);break;case"sqrtSize3":Ke=xe(pe,Z);break;case"sqrtSize4":Ke=_e(pe,Z);break;case"sqrtTall":Ke=Be(pe,Z,be)}return Ke},Fe={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ie=function(){function pt(pe){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=pe,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ae=pt.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(mt){return mt.toText()};return this.children.map(be).join("")},pt}(),te=function(ae){return ae.filter(function(pe){return pe}).join(" ")},Ge=function(ae,pe,be){if(this.classes=ae||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=be||{},pe){pe.style.isTight()&&this.classes.push("mtight");var Ke=pe.getColor();Ke&&(this.style.color=Ke)}},oe=function(ae){var pe=document.createElement(ae);pe.className=te(this.classes);for(var be in this.style)this.style.hasOwnProperty(be)&&(pe.style[be]=this.style[be]);for(var Ke in this.attributes)this.attributes.hasOwnProperty(Ke)&&pe.setAttribute(Ke,this.attributes[Ke]);for(var mt=0;mt<this.children.length;mt++)pe.appendChild(this.children[mt].toNode());return pe},Y=function(ae){var pe="<"+ae;this.classes.length&&(pe+=' class="'+p.escape(te(this.classes))+'"');var be="";for(var Ke in this.style)this.style.hasOwnProperty(Ke)&&(be+=p.hyphenate(Ke)+":"+this.style[Ke]+";");be&&(pe+=' style="'+p.escape(be)+'"');for(var mt in this.attributes)this.attributes.hasOwnProperty(mt)&&(pe+=" "+mt+'="'+p.escape(this.attributes[mt])+'"');pe+=">";for(var Gt=0;Gt<this.children.length;Gt++)pe+=this.children[Gt].toMarkup();return pe+="</"+ae+">",pe},G=function(){function pt(pe,be,Ke,mt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Ge.call(this,pe,Ke,mt),this.children=be||[]}var ae=pt.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 oe.call(this,"span")},ae.toMarkup=function(){return Y.call(this,"span")},pt}(),X=function(){function pt(pe,be,Ke,mt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Ge.call(this,be,mt),this.children=Ke||[],this.setAttribute("href",pe)}var ae=pt.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 oe.call(this,"a")},ae.toMarkup=function(){return Y.call(this,"a")},pt}(),fe=function(){function pt(pe,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=pe,this.classes=["mord"],this.style=Ke}var ae=pt.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 mt in this.style)this.style.hasOwnProperty(mt)&&(Ke+=p.hyphenate(mt)+":"+this.style[mt]+";");return Ke&&(be+=' style="'+p.escape(Ke)+'"'),be+="'/>",be},pt}(),de={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function pt(pe,be,Ke,mt,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=pe,this.height=be||0,this.depth=Ke||0,this.italic=mt||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=pt.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=te(this.classes));for(var mt in this.style)this.style.hasOwnProperty(mt)&&(Ke=Ke||document.createElement("span"),Ke.style[mt]=this.style[mt]);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(te(this.classes)),Ke+='"');var mt="";this.italic>0&&(mt+="margin-right:"+this.italic+"em;");for(var Gt in this.style)this.style.hasOwnProperty(Gt)&&(mt+=p.hyphenate(Gt)+":"+this.style[Gt]+";");mt&&(be=!0,Ke+=' style="'+p.escape(mt)+'"');var Dr=p.escape(this.text);return be?(Ke+=">",Ke+=Dr,Ke+="</span>",Ke):Dr},pt}(),Me=function(){function pt(pe,be){this.children=void 0,this.attributes=void 0,this.children=pe||[],this.attributes=be||{}}var ae=pt.prototype;return ae.toNode=function(){var be="http://www.w3.org/2000/svg",Ke=document.createElementNS(be,"svg");for(var mt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,mt)&&Ke.setAttribute(mt,this.attributes[mt]);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 mt=0;mt<this.children.length;mt++)be+=this.children[mt].toMarkup();return be+="</svg>",be},pt}(),ue=function(){function pt(pe,be){this.pathName=void 0,this.alternate=void 0,this.pathName=pe,this.alternate=be}var ae=pt.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",Fe[this.pathName]),Ke},ae.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Fe[this.pathName]+"'/>"},pt}(),Ae=function(){function pt(pe){this.attributes=void 0,this.attributes=pe||{}}var ae=pt.prototype;return ae.toNode=function(){var be="http://www.w3.org/2000/svg",Ke=document.createElementNS(be,"line");for(var mt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,mt)&&Ke.setAttribute(mt,this.attributes[mt]);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},pt}();function Te(pt){if(pt instanceof Ce)return pt;throw new Error("Expected symbolNode but got "+String(pt)+".")}function Je(pt){if(pt instanceof G)return pt;throw new Error("Expected span<HtmlDomNode> but got "+String(pt)+".")}var At={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},qe={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]},Re={\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 Lt(pt,ae){At[pt]=ae}function $e(pt,ae,pe){if(!At[ae])throw new Error("Font metrics not found for font: "+ae+".");var be=pt.charCodeAt(0),Ke=At[ae][be];if(!Ke&&pt[0]in Re&&(be=Re[pt[0]].charCodeAt(0),Ke=At[ae][be]),!Ke&&pe==="text"&&(Q(be)&&(Ke=At[ae][77])),Ke)return{depth:Ke[0],height:Ke[1],italic:Ke[2],skew:Ke[3],width:Ke[4]}}var Et={};function Ut(pt){var ae;if(pt>=5?ae=0:pt>=3?ae=1:ae=2,!Et[ae]){var pe=Et[ae]={cssEmPerMu:qe.quad[ae]/18};for(var be in qe)qe.hasOwnProperty(be)&&(pe[be]=qe[be][ae])}return Et[ae]}var Bt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_t={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},jt={math:{},text:{}},He=jt;function se(pt,ae,pe,be,Ke,mt){jt[pt][Ke]={font:ae,group:pe,replace:be},mt&&be&&(jt[pt][be]=jt[pt][Ke])}var J="math",Ue="text",Le="main",ee="ams",ct="accent-token",Mt="bin",ot="close",Yt="inner",or="mathord",Zr="op-token",ir="open",dr="punct",qt="rel",Ht="spacing",lt="textord";se(J,Le,qt,"\u2261","\\equiv",!0),se(J,Le,qt,"\u227A","\\prec",!0),se(J,Le,qt,"\u227B","\\succ",!0),se(J,Le,qt,"\u223C","\\sim",!0),se(J,Le,qt,"\u22A5","\\perp"),se(J,Le,qt,"\u2AAF","\\preceq",!0),se(J,Le,qt,"\u2AB0","\\succeq",!0),se(J,Le,qt,"\u2243","\\simeq",!0),se(J,Le,qt,"\u2223","\\mid",!0),se(J,Le,qt,"\u226A","\\ll",!0),se(J,Le,qt,"\u226B","\\gg",!0),se(J,Le,qt,"\u224D","\\asymp",!0),se(J,Le,qt,"\u2225","\\parallel"),se(J,Le,qt,"\u22C8","\\bowtie",!0),se(J,Le,qt,"\u2323","\\smile",!0),se(J,Le,qt,"\u2291","\\sqsubseteq",!0),se(J,Le,qt,"\u2292","\\sqsupseteq",!0),se(J,Le,qt,"\u2250","\\doteq",!0),se(J,Le,qt,"\u2322","\\frown",!0),se(J,Le,qt,"\u220B","\\ni",!0),se(J,Le,qt,"\u221D","\\propto",!0),se(J,Le,qt,"\u22A2","\\vdash",!0),se(J,Le,qt,"\u22A3","\\dashv",!0),se(J,Le,qt,"\u220B","\\owns"),se(J,Le,dr,".","\\ldotp"),se(J,Le,dr,"\u22C5","\\cdotp"),se(J,Le,lt,"#","\\#"),se(Ue,Le,lt,"#","\\#"),se(J,Le,lt,"&","\\&"),se(Ue,Le,lt,"&","\\&"),se(J,Le,lt,"\u2135","\\aleph",!0),se(J,Le,lt,"\u2200","\\forall",!0),se(J,Le,lt,"\u210F","\\hbar",!0),se(J,Le,lt,"\u2203","\\exists",!0),se(J,Le,lt,"\u2207","\\nabla",!0),se(J,Le,lt,"\u266D","\\flat",!0),se(J,Le,lt,"\u2113","\\ell",!0),se(J,Le,lt,"\u266E","\\natural",!0),se(J,Le,lt,"\u2663","\\clubsuit",!0),se(J,Le,lt,"\u2118","\\wp",!0),se(J,Le,lt,"\u266F","\\sharp",!0),se(J,Le,lt,"\u2662","\\diamondsuit",!0),se(J,Le,lt,"\u211C","\\Re",!0),se(J,Le,lt,"\u2661","\\heartsuit",!0),se(J,Le,lt,"\u2111","\\Im",!0),se(J,Le,lt,"\u2660","\\spadesuit",!0),se(Ue,Le,lt,"\xA7","\\S",!0),se(Ue,Le,lt,"\xB6","\\P",!0),se(J,Le,lt,"\u2020","\\dag"),se(Ue,Le,lt,"\u2020","\\dag"),se(Ue,Le,lt,"\u2020","\\textdagger"),se(J,Le,lt,"\u2021","\\ddag"),se(Ue,Le,lt,"\u2021","\\ddag"),se(Ue,Le,lt,"\u2021","\\textdaggerdbl"),se(J,Le,ot,"\u23B1","\\rmoustache",!0),se(J,Le,ir,"\u23B0","\\lmoustache",!0),se(J,Le,ot,"\u27EF","\\rgroup",!0),se(J,Le,ir,"\u27EE","\\lgroup",!0),se(J,Le,Mt,"\u2213","\\mp",!0),se(J,Le,Mt,"\u2296","\\ominus",!0),se(J,Le,Mt,"\u228E","\\uplus",!0),se(J,Le,Mt,"\u2293","\\sqcap",!0),se(J,Le,Mt,"\u2217","\\ast"),se(J,Le,Mt,"\u2294","\\sqcup",!0),se(J,Le,Mt,"\u25EF","\\bigcirc"),se(J,Le,Mt,"\u2219","\\bullet"),se(J,Le,Mt,"\u2021","\\ddagger"),se(J,Le,Mt,"\u2240","\\wr",!0),se(J,Le,Mt,"\u2A3F","\\amalg"),se(J,Le,Mt,"&","\\And"),se(J,Le,qt,"\u27F5","\\longleftarrow",!0),se(J,Le,qt,"\u21D0","\\Leftarrow",!0),se(J,Le,qt,"\u27F8","\\Longleftarrow",!0),se(J,Le,qt,"\u27F6","\\longrightarrow",!0),se(J,Le,qt,"\u21D2","\\Rightarrow",!0),se(J,Le,qt,"\u27F9","\\Longrightarrow",!0),se(J,Le,qt,"\u2194","\\leftrightarrow",!0),se(J,Le,qt,"\u27F7","\\longleftrightarrow",!0),se(J,Le,qt,"\u21D4","\\Leftrightarrow",!0),se(J,Le,qt,"\u27FA","\\Longleftrightarrow",!0),se(J,Le,qt,"\u21A6","\\mapsto",!0),se(J,Le,qt,"\u27FC","\\longmapsto",!0),se(J,Le,qt,"\u2197","\\nearrow",!0),se(J,Le,qt,"\u21A9","\\hookleftarrow",!0),se(J,Le,qt,"\u21AA","\\hookrightarrow",!0),se(J,Le,qt,"\u2198","\\searrow",!0),se(J,Le,qt,"\u21BC","\\leftharpoonup",!0),se(J,Le,qt,"\u21C0","\\rightharpoonup",!0),se(J,Le,qt,"\u2199","\\swarrow",!0),se(J,Le,qt,"\u21BD","\\leftharpoondown",!0),se(J,Le,qt,"\u21C1","\\rightharpoondown",!0),se(J,Le,qt,"\u2196","\\nwarrow",!0),se(J,Le,qt,"\u21CC","\\rightleftharpoons",!0),se(J,ee,qt,"\u226E","\\nless",!0),se(J,ee,qt,"\uE010","\\@nleqslant"),se(J,ee,qt,"\uE011","\\@nleqq"),se(J,ee,qt,"\u2A87","\\lneq",!0),se(J,ee,qt,"\u2268","\\lneqq",!0),se(J,ee,qt,"\uE00C","\\@lvertneqq"),se(J,ee,qt,"\u22E6","\\lnsim",!0),se(J,ee,qt,"\u2A89","\\lnapprox",!0),se(J,ee,qt,"\u2280","\\nprec",!0),se(J,ee,qt,"\u22E0","\\npreceq",!0),se(J,ee,qt,"\u22E8","\\precnsim",!0),se(J,ee,qt,"\u2AB9","\\precnapprox",!0),se(J,ee,qt,"\u2241","\\nsim",!0),se(J,ee,qt,"\uE006","\\@nshortmid"),se(J,ee,qt,"\u2224","\\nmid",!0),se(J,ee,qt,"\u22AC","\\nvdash",!0),se(J,ee,qt,"\u22AD","\\nvDash",!0),se(J,ee,qt,"\u22EA","\\ntriangleleft"),se(J,ee,qt,"\u22EC","\\ntrianglelefteq",!0),se(J,ee,qt,"\u228A","\\subsetneq",!0),se(J,ee,qt,"\uE01A","\\@varsubsetneq"),se(J,ee,qt,"\u2ACB","\\subsetneqq",!0),se(J,ee,qt,"\uE017","\\@varsubsetneqq"),se(J,ee,qt,"\u226F","\\ngtr",!0),se(J,ee,qt,"\uE00F","\\@ngeqslant"),se(J,ee,qt,"\uE00E","\\@ngeqq"),se(J,ee,qt,"\u2A88","\\gneq",!0),se(J,ee,qt,"\u2269","\\gneqq",!0),se(J,ee,qt,"\uE00D","\\@gvertneqq"),se(J,ee,qt,"\u22E7","\\gnsim",!0),se(J,ee,qt,"\u2A8A","\\gnapprox",!0),se(J,ee,qt,"\u2281","\\nsucc",!0),se(J,ee,qt,"\u22E1","\\nsucceq",!0),se(J,ee,qt,"\u22E9","\\succnsim",!0),se(J,ee,qt,"\u2ABA","\\succnapprox",!0),se(J,ee,qt,"\u2246","\\ncong",!0),se(J,ee,qt,"\uE007","\\@nshortparallel"),se(J,ee,qt,"\u2226","\\nparallel",!0),se(J,ee,qt,"\u22AF","\\nVDash",!0),se(J,ee,qt,"\u22EB","\\ntriangleright"),se(J,ee,qt,"\u22ED","\\ntrianglerighteq",!0),se(J,ee,qt,"\uE018","\\@nsupseteqq"),se(J,ee,qt,"\u228B","\\supsetneq",!0),se(J,ee,qt,"\uE01B","\\@varsupsetneq"),se(J,ee,qt,"\u2ACC","\\supsetneqq",!0),se(J,ee,qt,"\uE019","\\@varsupsetneqq"),se(J,ee,qt,"\u22AE","\\nVdash",!0),se(J,ee,qt,"\u2AB5","\\precneqq",!0),se(J,ee,qt,"\u2AB6","\\succneqq",!0),se(J,ee,qt,"\uE016","\\@nsubseteqq"),se(J,ee,Mt,"\u22B4","\\unlhd"),se(J,ee,Mt,"\u22B5","\\unrhd"),se(J,ee,qt,"\u219A","\\nleftarrow",!0),se(J,ee,qt,"\u219B","\\nrightarrow",!0),se(J,ee,qt,"\u21CD","\\nLeftarrow",!0),se(J,ee,qt,"\u21CF","\\nRightarrow",!0),se(J,ee,qt,"\u21AE","\\nleftrightarrow",!0),se(J,ee,qt,"\u21CE","\\nLeftrightarrow",!0),se(J,ee,qt,"\u25B3","\\vartriangle"),se(J,ee,lt,"\u210F","\\hslash"),se(J,ee,lt,"\u25BD","\\triangledown"),se(J,ee,lt,"\u25CA","\\lozenge"),se(J,ee,lt,"\u24C8","\\circledS"),se(J,ee,lt,"\xAE","\\circledR"),se(Ue,ee,lt,"\xAE","\\circledR"),se(J,ee,lt,"\u2221","\\measuredangle",!0),se(J,ee,lt,"\u2204","\\nexists"),se(J,ee,lt,"\u2127","\\mho"),se(J,ee,lt,"\u2132","\\Finv",!0),se(J,ee,lt,"\u2141","\\Game",!0),se(J,ee,lt,"\u2035","\\backprime"),se(J,ee,lt,"\u25B2","\\blacktriangle"),se(J,ee,lt,"\u25BC","\\blacktriangledown"),se(J,ee,lt,"\u25A0","\\blacksquare"),se(J,ee,lt,"\u29EB","\\blacklozenge"),se(J,ee,lt,"\u2605","\\bigstar"),se(J,ee,lt,"\u2222","\\sphericalangle",!0),se(J,ee,lt,"\u2201","\\complement",!0),se(J,ee,lt,"\xF0","\\eth",!0),se(J,ee,lt,"\u2571","\\diagup"),se(J,ee,lt,"\u2572","\\diagdown"),se(J,ee,lt,"\u25A1","\\square"),se(J,ee,lt,"\u25A1","\\Box"),se(J,ee,lt,"\u25CA","\\Diamond"),se(J,ee,lt,"\xA5","\\yen",!0),se(Ue,ee,lt,"\xA5","\\yen",!0),se(J,ee,lt,"\u2713","\\checkmark",!0),se(Ue,ee,lt,"\u2713","\\checkmark"),se(J,ee,lt,"\u2136","\\beth",!0),se(J,ee,lt,"\u2138","\\daleth",!0),se(J,ee,lt,"\u2137","\\gimel",!0),se(J,ee,lt,"\u03DD","\\digamma",!0),se(J,ee,lt,"\u03F0","\\varkappa"),se(J,ee,ir,"\u250C","\\ulcorner",!0),se(J,ee,ot,"\u2510","\\urcorner",!0),se(J,ee,ir,"\u2514","\\llcorner",!0),se(J,ee,ot,"\u2518","\\lrcorner",!0),se(J,ee,qt,"\u2266","\\leqq",!0),se(J,ee,qt,"\u2A7D","\\leqslant",!0),se(J,ee,qt,"\u2A95","\\eqslantless",!0),se(J,ee,qt,"\u2272","\\lesssim",!0),se(J,ee,qt,"\u2A85","\\lessapprox",!0),se(J,ee,qt,"\u224A","\\approxeq",!0),se(J,ee,Mt,"\u22D6","\\lessdot"),se(J,ee,qt,"\u22D8","\\lll",!0),se(J,ee,qt,"\u2276","\\lessgtr",!0),se(J,ee,qt,"\u22DA","\\lesseqgtr",!0),se(J,ee,qt,"\u2A8B","\\lesseqqgtr",!0),se(J,ee,qt,"\u2251","\\doteqdot"),se(J,ee,qt,"\u2253","\\risingdotseq",!0),se(J,ee,qt,"\u2252","\\fallingdotseq",!0),se(J,ee,qt,"\u223D","\\backsim",!0),se(J,ee,qt,"\u22CD","\\backsimeq",!0),se(J,ee,qt,"\u2AC5","\\subseteqq",!0),se(J,ee,qt,"\u22D0","\\Subset",!0),se(J,ee,qt,"\u228F","\\sqsubset",!0),se(J,ee,qt,"\u227C","\\preccurlyeq",!0),se(J,ee,qt,"\u22DE","\\curlyeqprec",!0),se(J,ee,qt,"\u227E","\\precsim",!0),se(J,ee,qt,"\u2AB7","\\precapprox",!0),se(J,ee,qt,"\u22B2","\\vartriangleleft"),se(J,ee,qt,"\u22B4","\\trianglelefteq"),se(J,ee,qt,"\u22A8","\\vDash",!0),se(J,ee,qt,"\u22AA","\\Vvdash",!0),se(J,ee,qt,"\u2323","\\smallsmile"),se(J,ee,qt,"\u2322","\\smallfrown"),se(J,ee,qt,"\u224F","\\bumpeq",!0),se(J,ee,qt,"\u224E","\\Bumpeq",!0),se(J,ee,qt,"\u2267","\\geqq",!0),se(J,ee,qt,"\u2A7E","\\geqslant",!0),se(J,ee,qt,"\u2A96","\\eqslantgtr",!0),se(J,ee,qt,"\u2273","\\gtrsim",!0),se(J,ee,qt,"\u2A86","\\gtrapprox",!0),se(J,ee,Mt,"\u22D7","\\gtrdot"),se(J,ee,qt,"\u22D9","\\ggg",!0),se(J,ee,qt,"\u2277","\\gtrless",!0),se(J,ee,qt,"\u22DB","\\gtreqless",!0),se(J,ee,qt,"\u2A8C","\\gtreqqless",!0),se(J,ee,qt,"\u2256","\\eqcirc",!0),se(J,ee,qt,"\u2257","\\circeq",!0),se(J,ee,qt,"\u225C","\\triangleq",!0),se(J,ee,qt,"\u223C","\\thicksim"),se(J,ee,qt,"\u2248","\\thickapprox"),se(J,ee,qt,"\u2AC6","\\supseteqq",!0),se(J,ee,qt,"\u22D1","\\Supset",!0),se(J,ee,qt,"\u2290","\\sqsupset",!0),se(J,ee,qt,"\u227D","\\succcurlyeq",!0),se(J,ee,qt,"\u22DF","\\curlyeqsucc",!0),se(J,ee,qt,"\u227F","\\succsim",!0),se(J,ee,qt,"\u2AB8","\\succapprox",!0),se(J,ee,qt,"\u22B3","\\vartriangleright"),se(J,ee,qt,"\u22B5","\\trianglerighteq"),se(J,ee,qt,"\u22A9","\\Vdash",!0),se(J,ee,qt,"\u2223","\\shortmid"),se(J,ee,qt,"\u2225","\\shortparallel"),se(J,ee,qt,"\u226C","\\between",!0),se(J,ee,qt,"\u22D4","\\pitchfork",!0),se(J,ee,qt,"\u221D","\\varpropto"),se(J,ee,qt,"\u25C0","\\blacktriangleleft"),se(J,ee,qt,"\u2234","\\therefore",!0),se(J,ee,qt,"\u220D","\\backepsilon"),se(J,ee,qt,"\u25B6","\\blacktriangleright"),se(J,ee,qt,"\u2235","\\because",!0),se(J,ee,qt,"\u22D8","\\llless"),se(J,ee,qt,"\u22D9","\\gggtr"),se(J,ee,Mt,"\u22B2","\\lhd"),se(J,ee,Mt,"\u22B3","\\rhd"),se(J,ee,qt,"\u2242","\\eqsim",!0),se(J,Le,qt,"\u22C8","\\Join"),se(J,ee,qt,"\u2251","\\Doteq",!0),se(J,ee,Mt,"\u2214","\\dotplus",!0),se(J,ee,Mt,"\u2216","\\smallsetminus"),se(J,ee,Mt,"\u22D2","\\Cap",!0),se(J,ee,Mt,"\u22D3","\\Cup",!0),se(J,ee,Mt,"\u2A5E","\\doublebarwedge",!0),se(J,ee,Mt,"\u229F","\\boxminus",!0),se(J,ee,Mt,"\u229E","\\boxplus",!0),se(J,ee,Mt,"\u22C7","\\divideontimes",!0),se(J,ee,Mt,"\u22C9","\\ltimes",!0),se(J,ee,Mt,"\u22CA","\\rtimes",!0),se(J,ee,Mt,"\u22CB","\\leftthreetimes",!0),se(J,ee,Mt,"\u22CC","\\rightthreetimes",!0),se(J,ee,Mt,"\u22CF","\\curlywedge",!0),se(J,ee,Mt,"\u22CE","\\curlyvee",!0),se(J,ee,Mt,"\u229D","\\circleddash",!0),se(J,ee,Mt,"\u229B","\\circledast",!0),se(J,ee,Mt,"\u22C5","\\centerdot"),se(J,ee,Mt,"\u22BA","\\intercal",!0),se(J,ee,Mt,"\u22D2","\\doublecap"),se(J,ee,Mt,"\u22D3","\\doublecup"),se(J,ee,Mt,"\u22A0","\\boxtimes",!0),se(J,ee,qt,"\u21E2","\\dashrightarrow",!0),se(J,ee,qt,"\u21E0","\\dashleftarrow",!0),se(J,ee,qt,"\u21C7","\\leftleftarrows",!0),se(J,ee,qt,"\u21C6","\\leftrightarrows",!0),se(J,ee,qt,"\u21DA","\\Lleftarrow",!0),se(J,ee,qt,"\u219E","\\twoheadleftarrow",!0),se(J,ee,qt,"\u21A2","\\leftarrowtail",!0),se(J,ee,qt,"\u21AB","\\looparrowleft",!0),se(J,ee,qt,"\u21CB","\\leftrightharpoons",!0),se(J,ee,qt,"\u21B6","\\curvearrowleft",!0),se(J,ee,qt,"\u21BA","\\circlearrowleft",!0),se(J,ee,qt,"\u21B0","\\Lsh",!0),se(J,ee,qt,"\u21C8","\\upuparrows",!0),se(J,ee,qt,"\u21BF","\\upharpoonleft",!0),se(J,ee,qt,"\u21C3","\\downharpoonleft",!0),se(J,ee,qt,"\u22B8","\\multimap",!0),se(J,ee,qt,"\u21AD","\\leftrightsquigarrow",!0),se(J,ee,qt,"\u21C9","\\rightrightarrows",!0),se(J,ee,qt,"\u21C4","\\rightleftarrows",!0),se(J,ee,qt,"\u21A0","\\twoheadrightarrow",!0),se(J,ee,qt,"\u21A3","\\rightarrowtail",!0),se(J,ee,qt,"\u21AC","\\looparrowright",!0),se(J,ee,qt,"\u21B7","\\curvearrowright",!0),se(J,ee,qt,"\u21BB","\\circlearrowright",!0),se(J,ee,qt,"\u21B1","\\Rsh",!0),se(J,ee,qt,"\u21CA","\\downdownarrows",!0),se(J,ee,qt,"\u21BE","\\upharpoonright",!0),se(J,ee,qt,"\u21C2","\\downharpoonright",!0),se(J,ee,qt,"\u21DD","\\rightsquigarrow",!0),se(J,ee,qt,"\u21DD","\\leadsto"),se(J,ee,qt,"\u21DB","\\Rrightarrow",!0),se(J,ee,qt,"\u21BE","\\restriction"),se(J,Le,lt,"\u2018","`"),se(J,Le,lt,"$","\\$"),se(Ue,Le,lt,"$","\\$"),se(Ue,Le,lt,"$","\\textdollar"),se(J,Le,lt,"%","\\%"),se(Ue,Le,lt,"%","\\%"),se(J,Le,lt,"_","\\_"),se(Ue,Le,lt,"_","\\_"),se(Ue,Le,lt,"_","\\textunderscore"),se(J,Le,lt,"\u2220","\\angle",!0),se(J,Le,lt,"\u221E","\\infty",!0),se(J,Le,lt,"\u2032","\\prime"),se(J,Le,lt,"\u25B3","\\triangle"),se(J,Le,lt,"\u0393","\\Gamma",!0),se(J,Le,lt,"\u0394","\\Delta",!0),se(J,Le,lt,"\u0398","\\Theta",!0),se(J,Le,lt,"\u039B","\\Lambda",!0),se(J,Le,lt,"\u039E","\\Xi",!0),se(J,Le,lt,"\u03A0","\\Pi",!0),se(J,Le,lt,"\u03A3","\\Sigma",!0),se(J,Le,lt,"\u03A5","\\Upsilon",!0),se(J,Le,lt,"\u03A6","\\Phi",!0),se(J,Le,lt,"\u03A8","\\Psi",!0),se(J,Le,lt,"\u03A9","\\Omega",!0),se(J,Le,lt,"A","\u0391"),se(J,Le,lt,"B","\u0392"),se(J,Le,lt,"E","\u0395"),se(J,Le,lt,"Z","\u0396"),se(J,Le,lt,"H","\u0397"),se(J,Le,lt,"I","\u0399"),se(J,Le,lt,"K","\u039A"),se(J,Le,lt,"M","\u039C"),se(J,Le,lt,"N","\u039D"),se(J,Le,lt,"O","\u039F"),se(J,Le,lt,"P","\u03A1"),se(J,Le,lt,"T","\u03A4"),se(J,Le,lt,"X","\u03A7"),se(J,Le,lt,"\xAC","\\neg",!0),se(J,Le,lt,"\xAC","\\lnot"),se(J,Le,lt,"\u22A4","\\top"),se(J,Le,lt,"\u22A5","\\bot"),se(J,Le,lt,"\u2205","\\emptyset"),se(J,ee,lt,"\u2205","\\varnothing"),se(J,Le,or,"\u03B1","\\alpha",!0),se(J,Le,or,"\u03B2","\\beta",!0),se(J,Le,or,"\u03B3","\\gamma",!0),se(J,Le,or,"\u03B4","\\delta",!0),se(J,Le,or,"\u03F5","\\epsilon",!0),se(J,Le,or,"\u03B6","\\zeta",!0),se(J,Le,or,"\u03B7","\\eta",!0),se(J,Le,or,"\u03B8","\\theta",!0),se(J,Le,or,"\u03B9","\\iota",!0),se(J,Le,or,"\u03BA","\\kappa",!0),se(J,Le,or,"\u03BB","\\lambda",!0),se(J,Le,or,"\u03BC","\\mu",!0),se(J,Le,or,"\u03BD","\\nu",!0),se(J,Le,or,"\u03BE","\\xi",!0),se(J,Le,or,"\u03BF","\\omicron",!0),se(J,Le,or,"\u03C0","\\pi",!0),se(J,Le,or,"\u03C1","\\rho",!0),se(J,Le,or,"\u03C3","\\sigma",!0),se(J,Le,or,"\u03C4","\\tau",!0),se(J,Le,or,"\u03C5","\\upsilon",!0),se(J,Le,or,"\u03D5","\\phi",!0),se(J,Le,or,"\u03C7","\\chi",!0),se(J,Le,or,"\u03C8","\\psi",!0),se(J,Le,or,"\u03C9","\\omega",!0),se(J,Le,or,"\u03B5","\\varepsilon",!0),se(J,Le,or,"\u03D1","\\vartheta",!0),se(J,Le,or,"\u03D6","\\varpi",!0),se(J,Le,or,"\u03F1","\\varrho",!0),se(J,Le,or,"\u03C2","\\varsigma",!0),se(J,Le,or,"\u03C6","\\varphi",!0),se(J,Le,Mt,"\u2217","*"),se(J,Le,Mt,"+","+"),se(J,Le,Mt,"\u2212","-"),se(J,Le,Mt,"\u22C5","\\cdot",!0),se(J,Le,Mt,"\u2218","\\circ"),se(J,Le,Mt,"\xF7","\\div",!0),se(J,Le,Mt,"\xB1","\\pm",!0),se(J,Le,Mt,"\xD7","\\times",!0),se(J,Le,Mt,"\u2229","\\cap",!0),se(J,Le,Mt,"\u222A","\\cup",!0),se(J,Le,Mt,"\u2216","\\setminus"),se(J,Le,Mt,"\u2227","\\land"),se(J,Le,Mt,"\u2228","\\lor"),se(J,Le,Mt,"\u2227","\\wedge",!0),se(J,Le,Mt,"\u2228","\\vee",!0),se(J,Le,lt,"\u221A","\\surd"),se(J,Le,ir,"(","("),se(J,Le,ir,"[","["),se(J,Le,ir,"\u27E8","\\langle",!0),se(J,Le,ir,"\u2223","\\lvert"),se(J,Le,ir,"\u2225","\\lVert"),se(J,Le,ot,")",")"),se(J,Le,ot,"]","]"),se(J,Le,ot,"?","?"),se(J,Le,ot,"!","!"),se(J,Le,ot,"\u27E9","\\rangle",!0),se(J,Le,ot,"\u2223","\\rvert"),se(J,Le,ot,"\u2225","\\rVert"),se(J,Le,qt,"=","="),se(J,Le,qt,"<","<"),se(J,Le,qt,">",">"),se(J,Le,qt,":",":"),se(J,Le,qt,"\u2248","\\approx",!0),se(J,Le,qt,"\u2245","\\cong",!0),se(J,Le,qt,"\u2265","\\ge"),se(J,Le,qt,"\u2265","\\geq",!0),se(J,Le,qt,"\u2190","\\gets"),se(J,Le,qt,">","\\gt"),se(J,Le,qt,"\u2208","\\in",!0),se(J,Le,qt,"\uE020","\\@not"),se(J,Le,qt,"\u2282","\\subset",!0),se(J,Le,qt,"\u2283","\\supset",!0),se(J,Le,qt,"\u2286","\\subseteq",!0),se(J,Le,qt,"\u2287","\\supseteq",!0),se(J,ee,qt,"\u2288","\\nsubseteq",!0),se(J,ee,qt,"\u2289","\\nsupseteq",!0),se(J,Le,qt,"\u22A8","\\models"),se(J,Le,qt,"\u2190","\\leftarrow",!0),se(J,Le,qt,"\u2264","\\le"),se(J,Le,qt,"\u2264","\\leq",!0),se(J,Le,qt,"<","\\lt"),se(J,Le,qt,"\u2192","\\rightarrow",!0),se(J,Le,qt,"\u2192","\\to"),se(J,ee,qt,"\u2271","\\ngeq",!0),se(J,ee,qt,"\u2270","\\nleq",!0),se(J,Le,Ht,"\xA0","\\ "),se(J,Le,Ht,"\xA0","~"),se(J,Le,Ht,"\xA0","\\space"),se(J,Le,Ht,"\xA0","\\nobreakspace"),se(Ue,Le,Ht,"\xA0","\\ "),se(Ue,Le,Ht,"\xA0","~"),se(Ue,Le,Ht,"\xA0","\\space"),se(Ue,Le,Ht,"\xA0","\\nobreakspace"),se(J,Le,Ht,null,"\\nobreak"),se(J,Le,Ht,null,"\\allowbreak"),se(J,Le,dr,",",","),se(J,Le,dr,";",";"),se(J,ee,Mt,"\u22BC","\\barwedge",!0),se(J,ee,Mt,"\u22BB","\\veebar",!0),se(J,Le,Mt,"\u2299","\\odot",!0),se(J,Le,Mt,"\u2295","\\oplus",!0),se(J,Le,Mt,"\u2297","\\otimes",!0),se(J,Le,lt,"\u2202","\\partial",!0),se(J,Le,Mt,"\u2298","\\oslash",!0),se(J,ee,Mt,"\u229A","\\circledcirc",!0),se(J,ee,Mt,"\u22A1","\\boxdot",!0),se(J,Le,Mt,"\u25B3","\\bigtriangleup"),se(J,Le,Mt,"\u25BD","\\bigtriangledown"),se(J,Le,Mt,"\u2020","\\dagger"),se(J,Le,Mt,"\u22C4","\\diamond"),se(J,Le,Mt,"\u22C6","\\star"),se(J,Le,Mt,"\u25C3","\\triangleleft"),se(J,Le,Mt,"\u25B9","\\triangleright"),se(J,Le,ir,"{","\\{"),se(Ue,Le,lt,"{","\\{"),se(Ue,Le,lt,"{","\\textbraceleft"),se(J,Le,ot,"}","\\}"),se(Ue,Le,lt,"}","\\}"),se(Ue,Le,lt,"}","\\textbraceright"),se(J,Le,ir,"{","\\lbrace"),se(J,Le,ot,"}","\\rbrace"),se(J,Le,ir,"[","\\lbrack"),se(Ue,Le,lt,"[","\\lbrack"),se(J,Le,ot,"]","\\rbrack"),se(Ue,Le,lt,"]","\\rbrack"),se(J,Le,ir,"(","\\lparen"),se(J,Le,ot,")","\\rparen"),se(Ue,Le,lt,"<","\\textless"),se(Ue,Le,lt,">","\\textgreater"),se(J,Le,ir,"\u230A","\\lfloor",!0),se(J,Le,ot,"\u230B","\\rfloor",!0),se(J,Le,ir,"\u2308","\\lceil",!0),se(J,Le,ot,"\u2309","\\rceil",!0),se(J,Le,lt,"\\","\\backslash"),se(J,Le,lt,"\u2223","|"),se(J,Le,lt,"\u2223","\\vert"),se(Ue,Le,lt,"|","\\textbar"),se(J,Le,lt,"\u2225","\\|"),se(J,Le,lt,"\u2225","\\Vert"),se(Ue,Le,lt,"\u2225","\\textbardbl"),se(Ue,Le,lt,"~","\\textasciitilde"),se(Ue,Le,lt,"\\","\\textbackslash"),se(Ue,Le,lt,"^","\\textasciicircum"),se(J,Le,qt,"\u2191","\\uparrow",!0),se(J,Le,qt,"\u21D1","\\Uparrow",!0),se(J,Le,qt,"\u2193","\\downarrow",!0),se(J,Le,qt,"\u21D3","\\Downarrow",!0),se(J,Le,qt,"\u2195","\\updownarrow",!0),se(J,Le,qt,"\u21D5","\\Updownarrow",!0),se(J,Le,Zr,"\u2210","\\coprod"),se(J,Le,Zr,"\u22C1","\\bigvee"),se(J,Le,Zr,"\u22C0","\\bigwedge"),se(J,Le,Zr,"\u2A04","\\biguplus"),se(J,Le,Zr,"\u22C2","\\bigcap"),se(J,Le,Zr,"\u22C3","\\bigcup"),se(J,Le,Zr,"\u222B","\\int"),se(J,Le,Zr,"\u222B","\\intop"),se(J,Le,Zr,"\u222C","\\iint"),se(J,Le,Zr,"\u222D","\\iiint"),se(J,Le,Zr,"\u220F","\\prod"),se(J,Le,Zr,"\u2211","\\sum"),se(J,Le,Zr,"\u2A02","\\bigotimes"),se(J,Le,Zr,"\u2A01","\\bigoplus"),se(J,Le,Zr,"\u2A00","\\bigodot"),se(J,Le,Zr,"\u222E","\\oint"),se(J,Le,Zr,"\u222F","\\oiint"),se(J,Le,Zr,"\u2230","\\oiiint"),se(J,Le,Zr,"\u2A06","\\bigsqcup"),se(J,Le,Zr,"\u222B","\\smallint"),se(Ue,Le,Yt,"\u2026","\\textellipsis"),se(J,Le,Yt,"\u2026","\\mathellipsis"),se(Ue,Le,Yt,"\u2026","\\ldots",!0),se(J,Le,Yt,"\u2026","\\ldots",!0),se(J,Le,Yt,"\u22EF","\\@cdots",!0),se(J,Le,Yt,"\u22F1","\\ddots",!0),se(J,Le,lt,"\u22EE","\\varvdots"),se(J,Le,ct,"\u02CA","\\acute"),se(J,Le,ct,"\u02CB","\\grave"),se(J,Le,ct,"\xA8","\\ddot"),se(J,Le,ct,"~","\\tilde"),se(J,Le,ct,"\u02C9","\\bar"),se(J,Le,ct,"\u02D8","\\breve"),se(J,Le,ct,"\u02C7","\\check"),se(J,Le,ct,"^","\\hat"),se(J,Le,ct,"\u20D7","\\vec"),se(J,Le,ct,"\u02D9","\\dot"),se(J,Le,ct,"\u02DA","\\mathring"),se(J,Le,or,"\u0131","\\imath",!0),se(J,Le,or,"\u0237","\\jmath",!0),se(Ue,Le,lt,"\u0131","\\i",!0),se(Ue,Le,lt,"\u0237","\\j",!0),se(Ue,Le,lt,"\xDF","\\ss",!0),se(Ue,Le,lt,"\xE6","\\ae",!0),se(Ue,Le,lt,"\xE6","\\ae",!0),se(Ue,Le,lt,"\u0153","\\oe",!0),se(Ue,Le,lt,"\xF8","\\o",!0),se(Ue,Le,lt,"\xC6","\\AE",!0),se(Ue,Le,lt,"\u0152","\\OE",!0),se(Ue,Le,lt,"\xD8","\\O",!0),se(Ue,Le,ct,"\u02CA","\\'"),se(Ue,Le,ct,"\u02CB","\\`"),se(Ue,Le,ct,"\u02C6","\\^"),se(Ue,Le,ct,"\u02DC","\\~"),se(Ue,Le,ct,"\u02C9","\\="),se(Ue,Le,ct,"\u02D8","\\u"),se(Ue,Le,ct,"\u02D9","\\."),se(Ue,Le,ct,"\u02DA","\\r"),se(Ue,Le,ct,"\u02C7","\\v"),se(Ue,Le,ct,"\xA8",'\\"'),se(Ue,Le,ct,"\u02DD","\\H"),se(Ue,Le,ct,"\u25EF","\\textcircled");var Hr={"--":!0,"---":!0,"``":!0,"''":!0};se(Ue,Le,lt,"\u2013","--"),se(Ue,Le,lt,"\u2013","\\textendash"),se(Ue,Le,lt,"\u2014","---"),se(Ue,Le,lt,"\u2014","\\textemdash"),se(Ue,Le,lt,"\u2018","`"),se(Ue,Le,lt,"\u2018","\\textquoteleft"),se(Ue,Le,lt,"\u2019","'"),se(Ue,Le,lt,"\u2019","\\textquoteright"),se(Ue,Le,lt,"\u201C","``"),se(Ue,Le,lt,"\u201C","\\textquotedblleft"),se(Ue,Le,lt,"\u201D","''"),se(Ue,Le,lt,"\u201D","\\textquotedblright"),se(J,Le,lt,"\xB0","\\degree",!0),se(Ue,Le,lt,"\xB0","\\degree"),se(Ue,Le,lt,"\xB0","\\textdegree",!0),se(J,Le,or,"\xA3","\\pounds"),se(J,Le,or,"\xA3","\\mathsterling",!0),se(Ue,Le,or,"\xA3","\\pounds"),se(Ue,Le,or,"\xA3","\\textsterling",!0),se(J,ee,lt,"\u2720","\\maltese"),se(Ue,ee,lt,"\u2720","\\maltese"),se(Ue,Le,Ht,"\xA0","\\ "),se(Ue,Le,Ht,"\xA0"," "),se(Ue,Le,Ht,"\xA0","~");for(var dn='0123456789/@."',Nn=0;Nn<dn.length;Nn++){var Wn=dn.charAt(Nn);se(J,Le,lt,Wn,Wn)}for(var gi='0123456789!@*()-=+[]<>|";:?/.,',yn=0;yn<gi.length;yn++){var Mn=gi.charAt(yn);se(Ue,Le,lt,Mn,Mn)}for(var Ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",bt=0;bt<Ft.length;bt++){var Oe=Ft.charAt(bt);se(J,Le,or,Oe,Oe),se(Ue,Le,lt,Oe,Oe)}se(J,ee,lt,"C","\u2102"),se(Ue,ee,lt,"C","\u2102"),se(J,ee,lt,"H","\u210D"),se(Ue,ee,lt,"H","\u210D"),se(J,ee,lt,"N","\u2115"),se(Ue,ee,lt,"N","\u2115"),se(J,ee,lt,"P","\u2119"),se(Ue,ee,lt,"P","\u2119"),se(J,ee,lt,"Q","\u211A"),se(Ue,ee,lt,"Q","\u211A"),se(J,ee,lt,"R","\u211D"),se(Ue,ee,lt,"R","\u211D"),se(J,ee,lt,"Z","\u2124"),se(Ue,ee,lt,"Z","\u2124"),se(J,Le,or,"h","\u210E"),se(Ue,Le,or,"h","\u210E");for(var Ee="",Ie=0;Ie<Ft.length;Ie++){var Ye=Ft.charAt(Ie);Ee=String.fromCharCode(55349,56320+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56372+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56424+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56580+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56736+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56788+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56840+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56944+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ie<26&&(Ee=String.fromCharCode(55349,56632+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee),Ee=String.fromCharCode(55349,56476+Ie),se(J,Le,or,Ye,Ee),se(Ue,Le,lt,Ye,Ee))}Ee=String.fromCharCode(55349,56668),se(J,Le,or,"k",Ee),se(Ue,Le,lt,"k",Ee);for(var rt=0;rt<10;rt++){var ut=rt.toString();Ee=String.fromCharCode(55349,57294+rt),se(J,Le,or,ut,Ee),se(Ue,Le,lt,ut,Ee),Ee=String.fromCharCode(55349,57314+rt),se(J,Le,or,ut,Ee),se(Ue,Le,lt,ut,Ee),Ee=String.fromCharCode(55349,57324+rt),se(J,Le,or,ut,Ee),se(Ue,Le,lt,ut,Ee),Ee=String.fromCharCode(55349,57334+rt),se(J,Le,or,ut,Ee),se(Ue,Le,lt,ut,Ee)}for(var Ot="\xC7\xD0\xDE\xE7\xFE",Ar=0;Ar<Ot.length;Ar++){var Pr=Ot.charAt(Ar);se(J,Le,or,Pr,Pr),se(Ue,Le,lt,Pr,Pr)}se(Ue,Le,lt,"\xF0","\xF0"),se(Ue,Le,lt,"\u2013","\u2013"),se(Ue,Le,lt,"\u2014","\u2014"),se(Ue,Le,lt,"\u2018","\u2018"),se(Ue,Le,lt,"\u2019","\u2019"),se(Ue,Le,lt,"\u201C","\u201C"),se(Ue,Le,lt,"\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"]],It=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],nt=function(ae,pe){var be=ae.charCodeAt(0),Ke=ae.charCodeAt(1),mt=(be-55296)*1024+(Ke-56320)+65536,Gt=pe==="math"?0:1;if(119808<=mt&&mt<120484){var Dr=Math.floor((mt-119808)/26);return[un[Dr][2],un[Dr][Gt]]}else if(120782<=mt&&mt<=120831){var Gr=Math.floor((mt-120782)/10);return[It[Gr][2],It[Gr][Gt]]}else{if(mt===120485||mt===120486)return[un[0][2],un[0][Gt]];if(120486<mt&&mt<120782)return["",""];throw new c("Unsupported character: "+ae)}},at=[[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],Pt=function(ae,pe){return pe.size<2?ae:at[ae-1][pe.size-1]},xt=function(){function pt(pe){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=pe.style,this.color=pe.color,this.size=pe.size||pt.BASESIZE,this.textSize=pe.textSize||this.size,this.phantom=!!pe.phantom,this.font=pe.font||"",this.fontFamily=pe.fontFamily||"",this.fontWeight=pe.fontWeight||"",this.fontShape=pe.fontShape||"",this.sizeMultiplier=rr[this.size-1],this.maxSize=pe.maxSize,this.minRuleThickness=pe.minRuleThickness,this._fontMetrics=void 0}var ae=pt.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 mt in be)be.hasOwnProperty(mt)&&(Ke[mt]=be[mt]);return new pt(Ke)},ae.havingStyle=function(be){return this.style===be?this:this.extend({style:be,size:Pt(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=Pt(pt.BASESIZE,be);return this.size===Ke&&this.textSize===pt.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!==pt.BASESIZE?["sizing","reset-size"+this.size,"size"+pt.BASESIZE]:[]},ae.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ut(this.size)),this._fontMetrics},ae.getColor=function(){return this.phantom?"transparent":this.color},pt}();xt.BASESIZE=6;var Kt=xt,yt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},kt={ex:!0,em:!0,mu:!0},Sr=function(ae){return typeof ae!="string"&&(ae=ae.unit),ae in yt||ae in kt||ae==="ex"},hr=function(ae,pe){var be;if(ae.unit in yt)be=yt[ae.unit]/pe.fontMetrics().ptPerEm/pe.sizeMultiplier;else if(ae.unit==="mu")be=pe.fontMetrics().cssEmPerMu;else{var Ke;if(pe.style.isTight()?Ke=pe.havingStyle(pe.style.text()):Ke=pe,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!==pe&&(be*=Ke.sizeMultiplier/pe.sizeMultiplier)}return Math.min(ae.number*be,pe.maxSize)},gr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Jr=function(ae,pe,be){return He[be][ae]&&He[be][ae].replace&&(ae=He[be][ae].replace),{value:ae,metrics:$e(ae,pe,be)}},$r=function(ae,pe,be,Ke,mt){var Gt=Jr(ae,pe,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,mt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ae+"' in style '"+pe+"' and mode '"+be+"'")),Gr=new Ce(ae,0,0,0,0,0,mt);if(Ke){Gr.maxFontSize=Ke.sizeMultiplier,Ke.style.isTight()&&Gr.classes.push("mtight");var Kn=Ke.getColor();Kn&&(Gr.style.color=Kn)}return Gr},kn=function(ae,pe,be,Ke){return Ke===void 0&&(Ke=[]),be.font==="boldsymbol"&&Jr(ae,"Main-Bold",pe).metrics?$r(ae,"Main-Bold",pe,be,Ke.concat(["mathbf"])):ae==="\\"||He[pe][ae].font==="main"?$r(ae,"Main-Regular",pe,be,Ke):$r(ae,"AMS-Regular",pe,be,Ke.concat(["amsrm"]))},Dn=function(ae,pe,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,pe,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,pe,be,Ke){return Jr(ae,"Math-BoldItalic",pe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ai=function(ae,pe,be){var Ke=ae.mode,mt=ae.text,Gt=["mord"],Dr=Ke==="math"||Ke==="text"&&pe.font,Gr=Dr?pe.font:pe.fontFamily;if(mt.charCodeAt(0)===55349){var fn=nt(mt,Ke),Kn=fn[0],qn=fn[1];return $r(mt,Kn,Ke,pe,Gt.concat(qn))}else if(Gr){var Qn,Ei;if(Gr==="boldsymbol"||Gr==="mathnormal"){var Fi=Gr==="boldsymbol"?li(mt,Ke,pe,Gt):Zn(mt,Ke,pe,Gt);Qn=Fi.fontName,Ei=[Fi.fontClass]}else p.contains(gr,mt)?(Qn="Main-Italic",Ei=["mathit"]):Dr?(Qn=Xr[Gr].fontName,Ei=[Gr]):(Qn=Ir(Gr,pe.fontWeight,pe.fontShape),Ei=[Gr,pe.fontWeight,pe.fontShape]);if(Jr(mt,Qn,Ke).metrics)return $r(mt,Qn,Ke,pe,Gt.concat(Ei));if(Hr.hasOwnProperty(mt)&&Qn.substr(0,10)==="Typewriter"){for(var va=[],Oa=0;Oa<mt.length;Oa++)va.push($r(mt[Oa],Qn,Ke,pe,Gt.concat(Ei)));return Ze(va)}}if(be==="mathord"){var fo=Dn(mt,Ke,pe,Gt);return $r(mt,fo.fontName,Ke,pe,Gt.concat([fo.fontClass]))}else if(be==="textord"){var wo=He[Ke][mt]&&He[Ke][mt].font;if(wo==="ams"){var lo=Ir("amsrm",pe.fontWeight,pe.fontShape);return $r(mt,lo,Ke,pe,Gt.concat("amsrm",pe.fontWeight,pe.fontShape))}else if(wo==="main"||!wo){var Yo=Ir("textrm",pe.fontWeight,pe.fontShape);return $r(mt,Yo,Ke,pe,Gt.concat(pe.fontWeight,pe.fontShape))}else{var Vo=Ir(wo,pe.fontWeight,pe.fontShape);return $r(mt,Vo,Ke,pe,Gt.concat(Vo,pe.fontWeight,pe.fontShape))}}else throw new Error("unexpected type: "+be+" in makeOrd")},Ii=function(ae,pe){if(te(ae.classes)!==te(pe.classes)||ae.skew!==pe.skew||ae.maxFontSize!==pe.maxFontSize)return!1;for(var be in ae.style)if(ae.style.hasOwnProperty(be)&&ae.style[be]!==pe.style[be])return!1;for(var Ke in pe.style)if(pe.style.hasOwnProperty(Ke)&&ae.style[Ke]!==pe.style[Ke])return!1;return!0},Qe=function(ae){for(var pe=0;pe<ae.length-1;pe++){var be=ae[pe],Ke=ae[pe+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(pe+1,1),pe--)}return ae},Se=function(ae){for(var pe=0,be=0,Ke=0,mt=0;mt<ae.children.length;mt++){var Gt=ae.children[mt];Gt.height>pe&&(pe=Gt.height),Gt.depth>be&&(be=Gt.depth),Gt.maxFontSize>Ke&&(Ke=Gt.maxFontSize)}ae.height=pe,ae.depth=be,ae.maxFontSize=Ke},Ne=function(ae,pe,be,Ke){var mt=new G(ae,pe,be,Ke);return Se(mt),mt},je=function(ae,pe,be,Ke){return new G(ae,pe,be,Ke)},Xe=function(ae,pe,be){var Ke=Ne([ae],[],pe);return Ke.height=Math.max(be||pe.fontMetrics().defaultRuleThickness,pe.minRuleThickness),Ke.style.borderBottomWidth=Ke.height+"em",Ke.maxFontSize=1,Ke},ze=function(ae,pe,be,Ke){var mt=new X(ae,pe,be,Ke);return Se(mt),mt},Ze=function(ae){var pe=new ie(ae);return Se(pe),pe},wt=function(ae,pe){return ae instanceof ie?Ne([],[ae],pe):ae},st=function(ae){if(ae.positionType==="individualShift"){for(var pe=ae.children,be=[pe[0]],Ke=-pe[0].shift-pe[0].elem.depth,mt=Ke,Gt=1;Gt<pe.length;Gt++){var Dr=-pe[Gt].shift-mt-pe[Gt].elem.depth,Gr=Dr-(pe[Gt-1].elem.height+pe[Gt-1].elem.depth);mt=mt+Dr,be.push({type:"kern",size:Gr}),be.push(pe[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,pe){for(var be=st(ae),Ke=be.children,mt=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=Ne(["pstrut"],[]);Kn.style.height=Gt+"em";for(var qn=[],Qn=mt,Ei=mt,Fi=mt,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=Ne(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=Ne(["vlist"],qn);Vo.style.height=Ei+"em";var No;if(Qn<0){var ao=Ne([],[]),Ka=Ne(["vlist"],[ao]);Ka.style.height=-Qn+"em";var is=Ne(["vlist-s"],[new Ce("\u200B")]);No=[Ne(["vlist-r"],[Vo,is]),Ne(["vlist-r"],[Ka])]}else No=[Ne(["vlist-r"],[Vo])];var Is=Ne(["vlist-t"],No);return No.length===2&&Is.classes.push("vlist-t2"),Is.height=Ei,Is.depth=-Qn,Is},Rr=function(ae,pe){var be=Ne(["mspace"],[],pe),Ke=hr(ae,pe);return be.style.marginRight=Ke+"em",be},Ir=function(ae,pe,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 mt;return pe==="textbf"&&be==="textit"?mt="BoldItalic":pe==="textbf"?mt="Bold":pe==="textit"?mt="Italic":mt="Regular",Ke+"-"+mt},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"}},er={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,pe){var be=er[ae],Ke=be[0],mt=be[1],Gt=be[2],Dr=new ue(Ke),Gr=new Me([Dr],{width:mt+"em",height:Gt+"em",style:"width:"+mt+"em",viewBox:"0 0 "+1e3*mt+" "+1e3*Gt,preserveAspectRatio:"xMinYMin"}),fn=je(["overlay"],[Gr],pe);return fn.height=Gt,fn.style.height=Gt+"em",fn.style.width=mt+"em",fn},fr={fontMap:Xr,makeSymbol:$r,mathsym:kn,makeSpan:Ne,makeSvgSpan:je,makeLineSpan:Xe,makeAnchor:ze,makeFragment:Ze,wrapFragment:wt,makeVList:Jt,makeOrd:Ai,makeGlue:Rr,staticSvg:pn,svgData:er,tryCombineChars:Qe};function mn(pt,ae){var pe=en(pt,ae);if(!pe)throw new Error("Expected node of type "+ae+", but got "+(pt?"node of type "+pt.type:String(pt)));return pe}function en(pt,ae){return pt&&pt.type===ae?pt:null}function Mr(pt,ae){var pe=Gn(pt,ae);if(!pe)throw new Error('Expected node of type "atom" and family "'+ae+'", but got '+(pt?pt.type==="atom"?"atom of family "+pt.family:"node of type "+pt.type:String(pt)));return pe}function Gn(pt,ae){return pt&&pt.type==="atom"&&pt.family===ae?pt:null}function di(pt){var ae=_i(pt);if(!ae)throw new Error("Expected node of symbol group type, but got "+(pt?"node of type "+pt.type:String(pt)));return ae}function _i(pt){return pt&&(pt.type==="atom"||_t.hasOwnProperty(pt.type))?pt:null}var Br={number:3,unit:"mu"},sn={number:4,unit:"mu"},Sn={number:5,unit:"mu"},Dt={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}},ft={mord:{mop:Br},mop:{mord:Br,mop:Br},mbin:{},mrel:{},mopen:{},mclose:{mop:Br},mpunct:{},minner:{mop:Br}},St={},Ct={},Nt={};function gt(pt){for(var ae=pt.type,pe=pt.names,be=pt.props,Ke=pt.handler,mt=pt.htmlBuilder,Gt=pt.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<pe.length;++Gr)St[pe[Gr]]=Dr;ae&&(mt&&(Ct[ae]=mt),Gt&&(Nt[ae]=Gt))}function Qt(pt){var ae=pt.type,pe=pt.htmlBuilder,be=pt.mathmlBuilder;gt({type:ae,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:pe,mathmlBuilder:be})}var tr=function(ae){var pe=en(ae,"ordgroup");return pe?pe.body:[ae]},ar=fr.makeSpan,yr=["leftmost","mbin","mopen","mrel","mop","mpunct"],xn=["rightmost","mrel","mclose","mpunct"],vn={display:U.DISPLAY,text:U.TEXT,script:U.SCRIPT,scriptscript:U.SCRIPTSCRIPT},zn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Yr=function(ae,pe,be,Ke){Ke===void 0&&(Ke=[null,null]);for(var mt=[],Gt=0;Gt<ae.length;Gt++){var Dr=ti(ae[Gt],pe);if(Dr instanceof ie){var Gr=Dr.children;mt.push.apply(mt,Gr)}else mt.push(Dr)}if(!be)return mt;var fn=pe;if(ae.length===1){var Kn=en(ae[0],"sizing")||en(ae[0],"styling");Kn&&(Kn.type==="sizing"?fn=pe.havingSize(Kn.size):Kn.type==="styling"&&(fn=pe.havingStyle(vn[Kn.style])))}var qn=ar([Ke[0]||"leftmost"],[],pe),Qn=ar([Ke[1]||"rightmost"],[],pe);return xr(mt,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(mt,function(Ei,Fi){var va=In(Fi),Oa=In(Ei),fo=va&&Oa?Ei.hasClass("mtight")?ft[va][Oa]:Dt[va][Oa]:null;if(fo)return fr.makeGlue(fo,fn)},{node:qn},Qn),mt},xr=function pt(ae,pe,be,Ke){Ke&&ae.push(Ke);for(var mt=0;mt<ae.length;mt++){var Gt=ae[mt],Dr=ln(Gt);if(Dr){pt(Dr.children,pe,be);continue}if(Gt.classes[0]==="mspace")continue;var Gr=pe(Gt,be.node);Gr&&(be.insertAfter?be.insertAfter(Gr):(ae.unshift(Gr),mt++)),be.node=Gt,be.insertAfter=function(fn){return function(Kn){ae.splice(fn+1,0,Kn),mt++}}(mt)}Ke&&ae.pop()},ln=function(ae){return ae instanceof ie||ae instanceof X?ae:null},On=function pt(ae,pe){var be=ln(ae);if(be){var Ke=be.children;if(Ke.length){if(pe==="right")return pt(Ke[Ke.length-1],"right");if(pe==="left")return pt(Ke[0],"left")}}return ae},In=function(ae,pe){return ae?(pe&&(ae=On(ae,pe)),zn[ae.classes[0]]||null):null},Un=function(ae,pe){var be=["nulldelimiter"].concat(ae.baseSizingClasses());return ar(pe.concat(be))},ti=function(ae,pe,be){if(!ae)return ar();if(Ct[ae.type]){var Ke=Ct[ae.type](ae,pe);if(be&&pe.size!==be.size){Ke=ar(pe.sizingClasses(be),[Ke],pe);var mt=pe.sizeMultiplier/be.sizeMultiplier;Ke.height*=mt,Ke.depth*=mt}return Ke}else throw new c("Got group of unknown type: '"+ae.type+"'")};function ui(pt,ae){var pe=ar(["base"],pt,ae),be=ar(["strut"]);return be.style.height=pe.height+pe.depth+"em",be.style.verticalAlign=-pe.depth+"em",pe.children.unshift(be),pe}function si(pt,ae){var pe=null;pt.length===1&&pt[0].type==="tag"&&(pe=pt[0].tag,pt=pt[0].body);for(var be=Yr(pt,ae,!0),Ke=[],mt=[],Gt=0;Gt<be.length;Gt++)if(mt.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++,mt.push(be[Gt]),be[Gt].hasClass("nobreak")&&(Dr=!0);Dr||(Ke.push(ui(mt,ae)),mt=[])}else be[Gt].hasClass("newline")&&(mt.pop(),mt.length>0&&(Ke.push(ui(mt,ae)),mt=[]),Ke.push(be[Gt]));mt.length>0&&Ke.push(ui(mt,ae));var Gr;pe&&(Gr=ui(Yr(pe,ae,!0)),Gr.classes=["tag"],Ke.push(Gr));var fn=ar(["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 ki(pt){return new ie(pt)}var zi=function(){function pt(pe,be){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=pe,this.attributes={},this.children=be||[]}var ae=pt.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 mt=0;mt<this.children.length;mt++)be.appendChild(this.children[mt].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 mt=0;mt<this.children.length;mt++)be+=this.children[mt].toMarkup();return be+="</"+this.type+">",be},ae.toText=function(){return this.children.map(function(be){return be.toText()}).join("")},pt}(),Ri=function(){function pt(pe){this.text=void 0,this.text=pe}var ae=pt.prototype;return ae.toNode=function(){return document.createTextNode(this.text)},ae.toMarkup=function(){return p.escape(this.toText())},ae.toText=function(){return this.text},pt}(),Yi=function(){function pt(pe){this.width=void 0,this.character=void 0,this.width=pe,pe>=.05555&&pe<=.05556?this.character="\u200A":pe>=.1666&&pe<=.1667?this.character="\u2009":pe>=.2222&&pe<=.2223?this.character="\u2005":pe>=.2777&&pe<=.2778?this.character="\u2005\u200A":pe>=-.05556&&pe<=-.05555?this.character="\u200A\u2063":pe>=-.1667&&pe<=-.1666?this.character="\u2009\u2063":pe>=-.2223&&pe<=-.2222?this.character="\u205F\u2063":pe>=-.2778&&pe<=-.2777?this.character="\u2005\u2063":this.character=null}var ae=pt.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:" "},pt}(),$n={MathNode:zi,TextNode:Ri,SpaceNode:Yi,newDocumentFragment:ki},gn=function(ae,pe,be){return He[pe][ae]&&He[pe][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=He[pe][ae].replace),new $n.TextNode(ae)},mi=function(ae){return ae.length===1?ae[0]:new $n.MathNode("mrow",ae)},Hi=function(ae,pe){if(pe.fontFamily==="texttt")return"monospace";if(pe.fontFamily==="textsf")return pe.fontShape==="textit"&&pe.fontWeight==="textbf"?"sans-serif-bold-italic":pe.fontShape==="textit"?"sans-serif-italic":pe.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(pe.fontShape==="textit"&&pe.fontWeight==="textbf")return"bold-italic";if(pe.fontShape==="textit")return"italic";if(pe.fontWeight==="textbf")return"bold";var be=pe.font;if(!be||be==="mathnormal")return null;var 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 mt=ae.text;if(p.contains(["\\imath","\\jmath"],mt))return null;He[Ke][mt]&&He[Ke][mt].replace&&(mt=He[Ke][mt].replace);var Gt=fr.fontMap[be].fontName;return $e(mt,Gt,Ke)?fr.fontMap[be].variant:null},Li=function(ae,pe,be){if(ae.length===1){var Ke=wr(ae[0],pe);return be&&Ke instanceof zi&&Ke.type==="mo"&&(Ke.setAttribute("lspace","0em"),Ke.setAttribute("rspace","0em")),[Ke]}for(var mt=[],Gt,Dr=0;Dr<ae.length;Dr++){var Gr=wr(ae[Dr],pe);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),mt.pop())}}}mt.push(Gr),Gt=Gr}return mt},Bi=function(ae,pe,be){return mi(Li(ae,pe,be))},wr=function(ae,pe){if(!ae)return new $n.MathNode("mrow");if(Nt[ae.type]){var be=Nt[ae.type](ae,pe);return be}else throw new c("Got group of unknown type: '"+ae.type+"'")};function lr(pt,ae,pe,be){var Ke=Li(pt,pe),mt;Ke.length===1&&Ke[0]instanceof zi&&p.contains(["mrow","mtable"],Ke[0].type)?mt=Ke[0]:mt=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",[mt,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?U.DISPLAY:U.TEXT,maxSize:ae.maxSize,minRuleThickness:ae.minRuleThickness})},Zt=function(ae,pe){if(pe.displayMode){var be=["katex-display"];pe.leqno&&be.push("leqno"),pe.fleqn&&be.push("fleqn"),ae=fr.makeSpan(be,[ae])}return ae},br=function(ae,pe,be){var Ke=on(be),mt;if(be.output==="mathml")return lr(ae,pe,Ke,!0);if(be.output==="html"){var Gt=si(ae,Ke);mt=fr.makeSpan(["katex"],[Gt])}else{var Dr=lr(ae,pe,Ke,!1),Gr=si(ae,Ke);mt=fr.makeSpan(["katex"],[Dr,Gr])}return Zt(mt,be)},Or=function(ae,pe,be){var Ke=on(be),mt=si(ae,Ke),Gt=fr.makeSpan(["katex"],[mt]);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"},vt=function(ae){var pe=new $n.MathNode("mo",[new $n.TextNode(An[ae.substr(1)])]);return pe.setAttribute("stretchy","true"),pe},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,pe){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 ue(Ei),fo=new Me([Oa],{width:"100%",height:Fi+"em",viewBox:"0 0 "+Gr+" "+Qn,preserveAspectRatio:"none"});return{span:fr.makeSvgSpan([],[fo],pe),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 ue(Yo[la]),Hs=new Me([Vs],{width:"400em",height:ao+"em",viewBox:"0 0 "+Gr+" "+No,preserveAspectRatio:Is[la]+" slice"}),fs=fr.makeSvgSpan([is[la]],[Hs],pe);if(Ka===1)return{span:fs,minWidth:Vo,height:ao};fs.style.height=ao+"em",wo.push(fs)}return{span:fr.makeSpan(["stretchy"],wo,pe),minWidth:Vo,height:ao}}}var Ke=be(),mt=Ke.span,Gt=Ke.minWidth,Dr=Ke.height;return mt.height=Dr,mt.style.height=Dr+"em",Gt>0&&(mt.style.minWidth=Gt+"em"),mt},nn=function(ae,pe,be,Ke){var mt,Gt=ae.height+ae.depth+2*be;if(/fbox|color/.test(pe)){if(mt=fr.makeSpan(["stretchy",pe],[],Ke),pe==="fbox"){var Dr=Ke.color&&Ke.getColor();Dr&&(mt.style.borderColor=Dr)}}else{var Gr=[];/^[bx]cancel$/.test(pe)&&Gr.push(new Ae({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(pe)&&Gr.push(new Ae({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var fn=new Me(Gr,{width:"100%",height:Gt+"em"});mt=fr.makeSvgSpan([],[fn],Ke)}return mt.height=Gt,mt.style.height=Gt+"em",mt},cn={encloseSpan:nn,mathMLnode:vt,svgSpan:Fr},tn=function(ae,pe){var be,Ke,mt=en(ae,"supsub"),Gt;mt?(Ke=mn(mt.base,"accent"),be=Ke.base,mt.base=be,Gt=Je(ti(mt,pe)),mt.base=Ke):(Ke=mn(ae,"accent"),be=Ke.base);var Dr=ti(be,pe.havingCrampedStyle()),Gr=Ke.isShifty&&p.isCharacterBox(be),fn=0;if(Gr){var Kn=p.getBaseElem(be),qn=ti(Kn,pe.havingCrampedStyle());fn=Te(qn).skew}var Qn=Math.min(Dr.height,pe.fontMetrics().xHeight),Ei;if(Ke.isStretchy)Ei=cn.svgSpan(Ke,pe),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}]},pe);else{var Fi,va;Ke.label==="\\vec"?(Fi=fr.staticSvg("vec",pe),va=fr.svgData.vec[1]):(Fi=fr.makeOrd({mode:Ke.mode,text:Ke.label},pe,"textord"),Fi=Te(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}]},pe)}var wo=fr.makeSpan(["mord","accent"],[Ei],pe);return Gt?(Gt.children[0]=wo,Gt.height=Math.max(wo.height,Gt.height),Gt.classes[0]="mord",Gt):wo},Ln=function(ae,pe){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,pe),be]);return Ke.setAttribute("accent","true"),Ke},Tn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(pt){return"\\"+pt}).join("|"));gt({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,pe){var be=pe[0],Ke=!Tn.test(ae.funcName),mt=!Ke||ae.funcName==="\\widehat"||ae.funcName==="\\widetilde"||ae.funcName==="\\widecheck";return{type:"accent",mode:ae.parser.mode,label:ae.funcName,isStretchy:Ke,isShifty:mt,base:be}},htmlBuilder:tn,mathmlBuilder:Ln}),gt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ae,pe){var be=pe[0];return{type:"accent",mode:ae.parser.mode,label:ae.funcName,isStretchy:!1,isShifty:!0,base:be}},htmlBuilder:tn,mathmlBuilder:Ln}),gt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0];return{type:"accentUnder",mode:be.mode,label:Ke,base:mt}},htmlBuilder:function(ae,pe){var be=ti(ae.base,pe),Ke=cn.svgSpan(ae,pe),mt=ae.label==="\\utilde"?.12:0,Gt=fr.makeVList({positionType:"bottom",positionData:Ke.height+mt,children:[{type:"elem",elem:Ke,wrapperClasses:["svg-align"]},{type:"kern",size:mt},{type:"elem",elem:be}]},pe);return fr.makeSpan(["mord","accentunder"],[Gt],pe)},mathmlBuilder:function(ae,pe){var be=cn.mathMLnode(ae.label),Ke=new $n.MathNode("munder",[wr(ae.base,pe),be]);return Ke.setAttribute("accentunder","true"),Ke}});var Xn=function(ae){var pe=new $n.MathNode("mpadded",ae?[ae]:[]);return pe.setAttribute("width","+0.6em"),pe.setAttribute("lspace","0.3em"),pe};gt({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,pe,be){var Ke=ae.parser,mt=ae.funcName;return{type:"xArrow",mode:Ke.mode,label:mt,body:pe[0],below:be[0]}},htmlBuilder:function(ae,pe){var be=pe.style,Ke=pe.havingStyle(be.sup()),mt=fr.wrapFragment(ti(ae.body,Ke,pe),pe);mt.classes.push("x-arrow-pad");var Gt;ae.below&&(Ke=pe.havingStyle(be.sub()),Gt=fr.wrapFragment(ti(ae.below,Ke,pe),pe),Gt.classes.push("x-arrow-pad"));var Dr=cn.svgSpan(ae,pe),Gr=-pe.fontMetrics().axisHeight+.5*Dr.height,fn=-pe.fontMetrics().axisHeight-.5*Dr.height-.111;(mt.depth>.25||ae.label==="\\xleftequilibrium")&&(fn-=mt.depth);var Kn;if(Gt){var qn=-pe.fontMetrics().axisHeight+Gt.height+.5*Dr.height+.111;Kn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:mt,shift:fn},{type:"elem",elem:Dr,shift:Gr},{type:"elem",elem:Gt,shift:qn}]},pe)}else Kn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:mt,shift:fn},{type:"elem",elem:Dr,shift:Gr}]},pe);return Kn.children[0].children[0].children[1].classes.push("svg-align"),fr.makeSpan(["mrel","x-arrow"],[Kn],pe)},mathmlBuilder:function(ae,pe){var be=cn.mathMLnode(ae.label),Ke;if(ae.body){var mt=Xn(wr(ae.body,pe));if(ae.below){var Gt=Xn(wr(ae.below,pe));Ke=new $n.MathNode("munderover",[be,Gt,mt])}else Ke=new $n.MathNode("mover",[be,mt])}else if(ae.below){var Dr=Xn(wr(ae.below,pe));Ke=new $n.MathNode("munder",[be,Dr])}else Ke=Xn(),Ke=new $n.MathNode("mover",[be,Ke]);return Ke}}),gt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ae,pe){for(var be=ae.parser,Ke=mn(pe[0],"ordgroup"),mt=Ke.body,Gt="",Dr=0;Dr<mt.length;Dr++){var Gr=mn(mt[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,pe){var be=Yr(ae.body,pe.withColor(ae.color),!1);return fr.makeFragment(be)},Jn=function(ae,pe){var be=Li(ae.body,pe.withColor(ae.color)),Ke=new $n.MathNode("mstyle",be);return Ke.setAttribute("mathcolor",ae.color),Ke};gt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ae,pe){var be=ae.parser,Ke=mn(pe[0],"color-token").color,mt=pe[1];return{type:"color",mode:be.mode,color:Ke,body:tr(mt)}},htmlBuilder:ci,mathmlBuilder:Jn}),gt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ae,pe){var be=ae.parser,Ke=ae.breakOnTokenText,mt=mn(pe[0],"color-token").color;be.gullet.macros.set("\\current@color",mt);var Gt=be.parseExpression(!0,Ke);return{type:"color",mode:be.mode,color:mt,body:Gt}},htmlBuilder:ci,mathmlBuilder:Jn}),gt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ae,pe,be){var Ke=ae.parser,mt=ae.funcName,Gt=be[0],Dr=mt==="\\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,pe){if(ae.newRow)throw new c("\\cr valid only within a tabular/array environment");var be=fr.makeSpan(["mspace"],[],pe);return ae.newLine&&(be.classes.push("newline"),ae.size&&(be.style.marginTop=hr(ae.size,pe)+"em")),be},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mspace");return ae.newLine&&(be.setAttribute("linebreak","newline"),ae.size&&be.setAttribute("height",hr(ae.size,pe)+"em")),be}});var pi=function(ae,pe,be){var Ke=He.math[ae]&&He.math[ae].replace,mt=$e(Ke||ae,pe,be);if(!mt)throw new Error("Unsupported symbol "+ae+" and font size "+pe+".");return mt},Si=function(ae,pe,be,Ke){var mt=be.havingBaseStyle(pe),Gt=fr.makeSpan(Ke.concat(mt.sizingClasses(be)),[ae],be),Dr=mt.sizeMultiplier/be.sizeMultiplier;return Gt.height*=Dr,Gt.depth*=Dr,Gt.maxFontSize=mt.sizeMultiplier,Gt},Ni=function(ae,pe,be){var Ke=pe.havingBaseStyle(be),mt=(1-pe.sizeMultiplier/Ke.sizeMultiplier)*pe.fontMetrics().axisHeight;ae.classes.push("delimcenter"),ae.style.top=mt+"em",ae.height-=mt,ae.depth+=mt},xi=function(ae,pe,be,Ke,mt,Gt){var Dr=fr.makeSymbol(ae,"Main-Regular",mt,Ke),Gr=Si(Dr,pe,Ke,Gt);return be&&Ni(Gr,Ke,pe),Gr},yi=function(ae,pe,be,Ke){return fr.makeSymbol(ae,"Size"+pe+"-Regular",be,Ke)},vi=function(ae,pe,be,Ke,mt,Gt){var Dr=yi(ae,pe,mt,Ke),Gr=Si(fr.makeSpan(["delimsizing","size"+pe],[Dr],Ke),U.TEXT,Ke,Gt);return be&&Ni(Gr,Ke,U.TEXT),Gr},Ti=function(ae,pe,be){var Ke;pe==="Size1-Regular"?Ke="delim-size1":Ke="delim-size4";var mt=fr.makeSpan(["delimsizinginner",Ke],[fr.makeSpan([],[fr.makeSymbol(ae,pe,be)])]);return{type:"elem",elem:mt}},Ui={type:"kern",size:-.005},$i=function(ae,pe,be,Ke,mt,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,mt),Ei=Qn.height+Qn.depth,Fi=pi(fn,qn,mt),va=Fi.height+Fi.depth,Oa=pi(Kn,qn,mt),fo=Oa.height+Oa.depth,wo=0,lo=1;if(Gr!==null){var Yo=pi(Gr,qn,mt);wo=Yo.height+Yo.depth,lo=2}var Vo=Ei+fo+wo,No=Math.max(0,Math.ceil((pe-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,mt)),Gr===null)for(var la=0;la<No;la++)Go.push(Ui),Go.push(Ti(fn,qn,mt));else{for(var Vs=0;Vs<No;Vs++)Go.push(Ui),Go.push(Ti(fn,qn,mt));Go.push({type:"kern",size:Is}),Go.push(Ti(fn,qn,mt)),Go.push(Ui),Go.push(Ti(Gr,qn,mt));for(var Hs=0;Hs<No;Hs++)Go.push(Ui),Go.push(Ti(fn,qn,mt))}Go.push({type:"kern",size:Is}),Go.push(Ti(fn,qn,mt)),Go.push(Ui),Go.push(Ti(Dr,qn,mt));var fs=Ke.havingBaseStyle(U.TEXT),as=fr.makeVList({positionType:"bottom",positionData:is,children:Go},fs);return Si(fr.makeSpan(["delimsizing","mult"],[as],fs),U.TEXT,Ke,Gt)},Di=80,ua=.08,aa=function(ae,pe,be,Ke,mt){var Gt=me(ae,Ke,be),Dr=new ue(ae,Gt),Gr=new Me([Dr],{width:"400em",height:pe+"em",viewBox:"0 0 400000 "+be,preserveAspectRatio:"xMinYMin slice"});return fr.makeSvgSpan(["hide-tail"],[Gr],mt)},Gi=function(ae,pe){var be=pe.havingBaseSizing(),Ke=Ao("\\surd",ae*be.sizeMultiplier,Da,be),mt=be.sizeMultiplier,Gt=Math.max(0,pe.minRuleThickness-pe.fontMetrics().sqrtRuleThickness),Dr,Gr=0,fn=0,Kn=0,qn;return Ke.type==="small"?(Kn=1e3+1e3*Gt+Di,ae<1?mt=1:ae<1.4&&(mt=.7),Gr=(1+Gt+ua)/mt,fn=(1+Gt)/mt,Dr=aa("sqrtMain",Gr,Kn,Gt,pe),Dr.style.minWidth="0.853em",qn=.833/mt):Ke.type==="large"?(Kn=(1e3+Di)*ga[Ke.size],fn=(ga[Ke.size]+Gt)/mt,Gr=(ga[Ke.size]+Gt+ua)/mt,Dr=aa("sqrtSize"+Ke.size,Gr,Kn,Gt,pe),Dr.style.minWidth="1.02em",qn=1/mt):(Gr=ae+Gt+ua,fn=ae+Gt,Kn=Math.floor(1e3*ae+Gt)+Di,Dr=aa("sqrtTall",Gr,Kn,Gt,pe),Dr.style.minWidth="0.742em",qn=1.056),Dr.height=fn,Dr.style.height=Gr+"em",{span:Dr,advanceWidth:qn,ruleWidth:(pe.fontMetrics().sqrtRuleThickness+Gt)*mt}},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,pe,be,Ke,mt){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,pe,!1,be,Ke,mt);if(p.contains(ta,ae))return $i(ae,ga[pe],!1,be,Ke,mt);throw new c("Illegal delimiter: '"+ae+"'")},pa=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],_a=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"stack"}],Da=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.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,pe,be,Ke){for(var mt=Math.min(2,3-Ke.style.size),Gt=mt;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>pe)return be[Gt]}return be[be.length-1]},ja=function(ae,pe,be,Ke,mt,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,pe,Dr,Ke);return Gr.type==="small"?xi(ae,Gr.style,be,Ke,mt,Gt):Gr.type==="large"?vi(ae,Gr.size,be,Ke,mt,Gt):$i(ae,pe,be,Ke,mt,Gt)},Ya=function(ae,pe,be,Ke,mt,Gt){var Dr=Ke.fontMetrics().axisHeight*Ke.sizeMultiplier,Gr=901,fn=5/Ke.fontMetrics().ptPerEm,Kn=Math.max(pe-Dr,be+Dr),qn=Math.max(Kn/500*Gr,2*Kn-fn);return ja(ae,qn,!0,Ke,mt,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(pt,ae){var pe=_i(pt);if(pe&&p.contains(co,pe.text))return pe;throw new c("Invalid delimiter: '"+(pe?pe.text:JSON.stringify(pt))+"' after '"+ae.funcName+"'",pt)}gt({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,pe){var be=Ca(pe[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,pe){return ae.delim==="."?fr.makeSpan([ae.mclass]):Ia.sizedDelim(ae.delim,ae.size,pe,ae.mode,[ae.mclass])},mathmlBuilder:function(ae){var pe=[];ae.delim!=="."&&pe.push(gn(ae.delim,ae.mode));var be=new $n.MathNode("mo",pe);return ae.mclass==="mopen"||ae.mclass==="mclose"?be.setAttribute("fence","true"):be.setAttribute("fence","false"),be}});function yo(pt){if(!pt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}gt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ae,pe){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(pe[0],ae).text,color:be}}}),gt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ae,pe){var be=Ca(pe[0],ae),Ke=ae.parser;++Ke.leftrightDepth;var mt=Ke.parseExpression(!1);--Ke.leftrightDepth,Ke.expect("\\right",!1);var Gt=mn(Ke.parseFunction(),"leftright-right");return{type:"leftright",mode:Ke.mode,body:mt,left:be.text,right:Gt.delim,rightColor:Gt.color}},htmlBuilder:function(ae,pe){yo(ae);for(var be=Yr(ae.body,pe,!0,["mopen","mclose"]),Ke=0,mt=0,Gt=!1,Dr=0;Dr<be.length;Dr++)be[Dr].isMiddle?Gt=!0:(Ke=Math.max(be[Dr].height,Ke),mt=Math.max(be[Dr].depth,mt));Ke*=pe.sizeMultiplier,mt*=pe.sizeMultiplier;var Gr;if(ae.left==="."?Gr=Un(pe,["mopen"]):Gr=Ia.leftRightDelim(ae.left,Ke,mt,pe,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,mt,qn.options,ae.mode,[]))}var Qn;if(ae.right===".")Qn=Un(pe,["mclose"]);else{var Ei=ae.rightColor?pe.withColor(ae.rightColor):pe;Qn=Ia.leftRightDelim(ae.right,Ke,mt,Ei,ae.mode,["mclose"])}return be.push(Qn),fr.makeSpan(["minner"],be,pe)},mathmlBuilder:function(ae,pe){yo(ae);var be=Li(ae.body,pe);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 mt=new $n.MathNode("mo",[gn(ae.right,ae.mode)]);mt.setAttribute("fence","true"),ae.rightColor&&mt.setAttribute("mathcolor",ae.rightColor),be.push(mt)}return mi(be)}}),gt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ae,pe){var be=Ca(pe[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,pe){var be;if(ae.delim===".")be=Un(pe,[]);else{be=Ia.sizedDelim(ae.delim,1,pe,ae.mode,[]);var Ke={delim:ae.delim,options:pe};be.isMiddle=Ke}return be},mathmlBuilder:function(ae,pe){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,pe){var be=fr.wrapFragment(ti(ae.body,pe),pe),Ke=ae.label.substr(1),mt=pe.sizeMultiplier,Gt,Dr=0,Gr=p.isCharacterBox(ae.body);if(Ke==="sout")Gt=fr.makeSpan(["stretchy","sout"]),Gt.height=pe.fontMetrics().defaultRuleThickness/mt,Dr=-.5*pe.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(pe.fontMetrics().fboxrule,pe.minRuleThickness),fn=pe.fontMetrics().fboxsep+(Ke==="colorbox"?0:Kn)):fn=Gr?.2:0,Gt=cn.encloseSpan(be,Ke,fn,pe),/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}]},pe):qn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:0},{type:"elem",elem:Gt,shift:Dr,wrapperClasses:/cancel/.test(Ke)?["svg-align"]:[]}]},pe),/cancel/.test(Ke)&&(qn.height=be.height,qn.depth=be.depth),/cancel/.test(Ke)&&!Gr?fr.makeSpan(["mord","cancel-lap"],[qn],pe):fr.makeSpan(["mord"],[qn],pe)},Ga=function(ae,pe){var be=0,Ke=new $n.MathNode(ae.label.indexOf("colorbox")>-1?"mpadded":"menclose",[wr(ae.body,pe)]);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=pe.fontMetrics().fboxsep*pe.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 mt=Math.max(pe.fontMetrics().fboxrule,pe.minRuleThickness);Ke.setAttribute("style","border: "+mt+"em solid "+String(ae.borderColor))}break;case"\\xcancel":Ke.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ae.backgroundColor&&Ke.setAttribute("mathbackground",ae.backgroundColor),Ke};gt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ae,pe,be){var Ke=ae.parser,mt=ae.funcName,Gt=mn(pe[0],"color-token").color,Dr=pe[1];return{type:"enclose",mode:Ke.mode,label:mt,backgroundColor:Gt,body:Dr}},htmlBuilder:uo,mathmlBuilder:Ga}),gt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ae,pe,be){var Ke=ae.parser,mt=ae.funcName,Gt=mn(pe[0],"color-token").color,Dr=mn(pe[1],"color-token").color,Gr=pe[2];return{type:"enclose",mode:Ke.mode,label:mt,backgroundColor:Dr,borderColor:Gt,body:Gr}},htmlBuilder:uo,mathmlBuilder:Ga}),gt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ae,pe){var be=ae.parser;return{type:"enclose",mode:be.mode,label:"\\fbox",body:pe[0]}}}),gt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ae,pe,be){var Ke=ae.parser,mt=ae.funcName,Gt=pe[0];return{type:"enclose",mode:Ke.mode,label:mt,body:Gt}},htmlBuilder:uo,mathmlBuilder:Ga});var Oo={};function oa(pt){for(var ae=pt.type,pe=pt.names,be=pt.props,Ke=pt.handler,mt=pt.htmlBuilder,Gt=pt.mathmlBuilder,Dr={type:ae,numArgs:be.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Ke},Gr=0;Gr<pe.length;++Gr)Oo[pe[Gr]]=Dr;mt&&(Ct[ae]=mt),Gt&&(Nt[ae]=Gt)}function qa(pt){var ae=[];pt.consumeSpaces();for(var pe=pt.fetch().text;pe==="\\hline"||pe==="\\hdashline";)pt.consume(),ae.push(pe==="\\hdashline"),pt.consumeSpaces(),pe=pt.fetch().text;return ae}function oo(pt,ae,pe){var be=ae.hskipBeforeAndAfter,Ke=ae.addJot,mt=ae.cols,Gt=ae.arraystretch,Dr=ae.colSeparationType;if(pt.gullet.beginGroup(),pt.gullet.macros.set("\\\\","\\cr"),!Gt){var Gr=pt.gullet.expandMacroAsText("\\arraystretch");if(Gr==null)Gt=1;else if(Gt=parseFloat(Gr),!Gt||Gt<0)throw new c("Invalid \\arraystretch: "+Gr)}pt.gullet.beginGroup();var fn=[],Kn=[fn],qn=[],Qn=[];for(Qn.push(qa(pt));;){var Ei=pt.parseExpression(!1,"\\cr");pt.gullet.endGroup(),pt.gullet.beginGroup(),Ei={type:"ordgroup",mode:pt.mode,body:Ei},pe&&(Ei={type:"styling",mode:pt.mode,style:pe,body:[Ei]}),fn.push(Ei);var Fi=pt.fetch().text;if(Fi==="&")pt.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(pt.parseFunction(),"cr");qn.push(va.size),Qn.push(qa(pt)),fn=[],Kn.push(fn)}else throw new c("Expected & or \\\\ or \\cr or \\end",pt.nextToken)}return pt.gullet.endGroup(),pt.gullet.endGroup(),{type:"array",mode:pt.mode,addJot:Ke,arraystretch:Gt,body:Kn,cols:mt,rowGaps:qn,hskipBeforeAndAfter:be,hLinesBeforeRow:Qn,colSeparationType:Dr}}function Ro(pt){return pt.substr(0,1)==="d"?"display":"text"}var Xa=function(ae,pe){var be,Ke,mt=ae.body.length,Gt=ae.hLinesBeforeRow,Dr=0,Gr=new Array(mt),fn=[],Kn=Math.max(pe.fontMetrics().arrayRuleWidth,pe.minRuleThickness),qn=1/pe.fontMetrics().ptPerEm,Qn=5*qn;if(ae.colSeparationType&&ae.colSeparationType==="small"){var Ei=pe.havingStyle(U.SCRIPT).sizeMultiplier;Qn=.2778*(Ei/pe.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],pe);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,pe),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+pe.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=pe.fontMetrics().doubleRuleSep+"em",Hs.push(fs)),Ss.separator==="|"||Ss.separator===":"){var vl=Ss.separator==="|"?"solid":"dashed",zs=fr.makeSpan(["vertical-separator"],[],pe);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<mt;++be){var nl=Gr[be],ks=nl[Ke];if(!ks)continue;var po=nl.pos-la;ks.depth=nl.depth,ks.height=nl.height,As.push({type:"elem",elem:ks,shift:po})}As=fr.makeVList({positionType:"individualShift",children:As},pe),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",pe,Kn),Eo=fr.makeLineSpan("hdashline",pe,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},pe)}return fr.makeSpan(["mord"],[Gr],pe)},_o={c:"center ",l:"left ",r:"right "},go=function(ae,pe){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,pe)])}))})),Ke=ae.arraystretch===.5?.1:.16+ae.arraystretch-1+(ae.addJot?.09:0);be.setAttribute("rowspacing",Ke+"em");var mt="",Gt="";if(ae.cols){var Dr=ae.cols,Gr="",fn=!1,Kn=0,qn=Dr.length;Dr[0].type==="separator"&&(mt+="top ",Kn=1),Dr[Dr.length-1].type==="separator"&&(mt+="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;mt+=fo[0].length>0?"left ":"",mt+=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()),mt!==""&&(be=new $n.MathNode("menclose",[be]),be.setAttribute("notation",mt.trim())),ae.arraystretch&&ae.arraystretch<1&&(be=new $n.MathNode("mstyle",[be]),be.setAttribute("scriptlevel","1")),be},Ja=function(ae,pe){var be=[],Ke=oo(ae.parser,{cols:be,addJot:!0},"display"),mt,Gt=0,Dr={type:"ordgroup",mode:ae.mode,body:[]},Gr=en(pe[0],"ordgroup");if(Gr){for(var fn="",Kn=0;Kn<Gr.body.length;Kn++){var qn=mn(Gr.body[Kn],"textord");fn+=qn.text}mt=Number(fn),Gt=mt*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(mt<Yo)throw new c("Too many math in a row: "+("expected "+mt+", 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,pe){var be=_i(pe[0]),Ke=be?[pe[0]]:mn(pe[0],"ordgroup").body,mt=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:mt,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 pe={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ae.envName],be={hskipBeforeAndAfter:!1},Ke=oo(ae.parser,be,Ro(ae.envName));return pe?{type:"leftright",mode:ae.mode,body:[Ke],left:pe[0],right:pe[1],rightColor:void 0}:Ke},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ae){var pe={arraystretch:.5},be=oo(ae.parser,pe,"script");return be.colSeparationType="small",be},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ae,pe){var be=_i(pe[0]),Ke=be?[pe[0]]:mn(pe[0],"ordgroup").body,mt=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(mt.length>1)throw new c("{subarray} can contain only one column");var Gt={cols:mt,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 pe={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},be=oo(ae.parser,pe,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 pe={cols:[{type:"align",align:"c"}],addJot:!0};return oo(ae.parser,pe,"display")},htmlBuilder:Xa,mathmlBuilder:go}),oa({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ja,htmlBuilder:Xa,mathmlBuilder:go}),gt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ae,pe){throw new c(ae.funcName+" valid only within array environment")}});var Fa=Oo,ha=Fa;gt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0];if(mt.type!=="ordgroup")throw new c("Invalid environment name",mt);for(var Gt="",Dr=0;Dr<mt.body.length;++Dr)Gt+=mn(mt.body[Dr],"textord").text;if(Ke==="\\begin"){if(!ha.hasOwnProperty(Gt))throw new c("No such environment: "+Gt,mt);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:mt}}});var tt=fr.makeSpan;function cr(pt,ae){var pe=Yr(pt.body,ae,!0);return tt([pt.mclass],pe,ae)}function kr(pt,ae){var pe,be=Li(pt.body,ae);return pt.mclass==="minner"?$n.newDocumentFragment(be):(pt.mclass==="mord"?pt.isCharacterBox?(pe=be[0],pe.type="mi"):pe=new $n.MathNode("mi",be):(pt.isCharacterBox?(pe=be[0],pe.type="mo"):pe=new $n.MathNode("mo",be),pt.mclass==="mbin"?(pe.attributes.lspace="0.22em",pe.attributes.rspace="0.22em"):pt.mclass==="mpunct"?(pe.attributes.lspace="0em",pe.attributes.rspace="0.17em"):(pt.mclass==="mopen"||pt.mclass==="mclose")&&(pe.attributes.lspace="0em",pe.attributes.rspace="0em")),pe)}gt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0];return{type:"mclass",mode:be.mode,mclass:"m"+Ke.substr(5),body:tr(mt),isCharacterBox:p.isCharacterBox(mt)}},htmlBuilder:cr,mathmlBuilder:kr});var Lr=function(ae){var pe=ae.type==="ordgroup"&&ae.body.length?ae.body[0]:ae;return pe.type==="atom"&&(pe.family==="bin"||pe.family==="rel")?"m"+pe.family:"mord"};gt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ae,pe){var be=ae.parser;return{type:"mclass",mode:be.mode,mclass:Lr(pe[0]),body:[pe[1]],isCharacterBox:p.isCharacterBox(pe[1])}}}),gt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[1],Gt=pe[0],Dr;Ke!=="\\stackrel"?Dr=Lr(mt):Dr="mrel";var Gr={type:"op",mode:mt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Ke!=="\\stackrel",body:tr(mt)},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:kr});var _n=function(ae,pe){var be=ae.font,Ke=pe.withFont(be);return ti(ae.body,Ke)},Vr=function(ae,pe){var be=ae.font,Ke=pe.withFont(be);return wr(ae.body,Ke)},_r={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};gt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0],Gt=Ke;return Gt in _r&&(Gt=_r[Gt]),{type:"font",mode:be.mode,font:Gt.slice(1),body:mt}},htmlBuilder:_n,mathmlBuilder:Vr}),gt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ae,pe){var be=ae.parser,Ke=pe[0],mt=p.isCharacterBox(Ke);return{type:"mclass",mode:be.mode,mclass:Lr(Ke),body:[{type:"font",mode:be.mode,font:"boldsymbol",body:Ke}],isCharacterBox:mt}}}),gt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=ae.breakOnTokenText,Gt=be.mode,Dr=be.parseExpression(!0,mt),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 Pn=function(ae,pe){var be=pe;return ae==="display"?be=be.id>=U.SCRIPT.id?be.text():U.DISPLAY:ae==="text"&&be.size===U.DISPLAY.size?be=U.TEXT:ae==="script"?be=U.SCRIPT:ae==="scriptscript"&&(be=U.SCRIPTSCRIPT),be},Ur=function(ae,pe){var be=Pn(ae.size,pe.style),Ke=be.fracNum(),mt=be.fracDen(),Gt;Gt=pe.havingStyle(Ke);var Dr=ti(ae.numer,Gt,pe);if(ae.continued){var Gr=8.5/pe.fontMetrics().ptPerEm,fn=3.5/pe.fontMetrics().ptPerEm;Dr.height=Dr.height<Gr?Gr:Dr.height,Dr.depth=Dr.depth<fn?fn:Dr.depth}Gt=pe.havingStyle(mt);var Kn=ti(ae.denom,Gt,pe),qn,Qn,Ei;ae.hasBarLine?(ae.barSize?(Qn=hr(ae.barSize,pe),qn=fr.makeLineSpan("frac-line",pe,Qn)):qn=fr.makeLineSpan("frac-line",pe),Qn=qn.height,Ei=qn.height):(qn=null,Qn=0,Ei=pe.fontMetrics().defaultRuleThickness);var Fi,va,Oa;be.size===U.DISPLAY.size||ae.size==="display"?(Fi=pe.fontMetrics().num1,Qn>0?va=3*Ei:va=7*Ei,Oa=pe.fontMetrics().denom1):(Qn>0?(Fi=pe.fontMetrics().num2,va=Ei):(Fi=pe.fontMetrics().num3,va=3*Ei),Oa=pe.fontMetrics().denom2);var fo;if(qn){var lo=pe.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}]},pe)}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}]},pe)}Gt=pe.havingStyle(be),fo.height*=Gt.sizeMultiplier/pe.sizeMultiplier,fo.depth*=Gt.sizeMultiplier/pe.sizeMultiplier;var Vo;be.size===U.DISPLAY.size?Vo=pe.fontMetrics().delim1:Vo=pe.fontMetrics().delim2;var No,ao;return ae.leftDelim==null?No=Un(pe,["mopen"]):No=Ia.customSizedDelim(ae.leftDelim,Vo,!0,pe.havingStyle(be),ae.mode,["mopen"]),ae.continued?ao=fr.makeSpan([]):ae.rightDelim==null?ao=Un(pe,["mclose"]):ao=Ia.customSizedDelim(ae.rightDelim,Vo,!0,pe.havingStyle(be),ae.mode,["mclose"]),fr.makeSpan(["mord"].concat(Gt.sizingClasses(pe)),[No,fr.makeSpan(["mfrac"],[fo]),ao],pe)},En=function(ae,pe){var be=new $n.MathNode("mfrac",[wr(ae.numer,pe),wr(ae.denom,pe)]);if(!ae.hasBarLine)be.setAttribute("linethickness","0px");else if(ae.barSize){var Ke=hr(ae.barSize,pe);be.setAttribute("linethickness",Ke+"em")}var mt=Pn(ae.size,pe.style);if(mt.size!==pe.style.size){be=new $n.MathNode("mstyle",[be]);var Gt=mt.size===U.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};gt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0],Gt=pe[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:mt,denom:Gt,hasBarLine:Dr,leftDelim:Gr,rightDelim:fn,size:Kn,barSize:null}},htmlBuilder:Ur,mathmlBuilder:En}),gt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ae){var pe=ae.parser,be=ae.funcName,Ke=ae.token,mt;switch(be){case"\\over":mt="\\frac";break;case"\\choose":mt="\\binom";break;case"\\atop":mt="\\\\atopfrac";break;case"\\brace":mt="\\\\bracefrac";break;case"\\brack":mt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:pe.mode,replaceWith:mt,token:Ke}}});var jn=["display","text","script","scriptscript"],Hn=function(ae){var pe=null;return ae.length>0&&(pe=ae,pe=pe==="."?null:pe),pe};gt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ae,pe){var be=ae.parser,Ke=pe[4],mt=pe[5],Gt=en(pe[0],"atom");Gt&&(Gt=Mr(pe[0],"open"));var Dr=Gt?Hn(Gt.text):null,Gr=en(pe[1],"atom");Gr&&(Gr=Mr(pe[1],"close"));var fn=Gr?Hn(Gr.text):null,Kn=mn(pe[2],"size"),qn,Qn=null;Kn.isBlank?qn=!0:(Qn=Kn.value,qn=Qn.number>0);var Ei="auto",Fi=en(pe[3],"ordgroup");if(Fi){if(Fi.body.length>0){var va=mn(Fi.body[0],"textord");Ei=jn[Number(va.text)]}}else Fi=mn(pe[3],"textord"),Ei=jn[Number(Fi.text)];return{type:"genfrac",mode:be.mode,numer:Ke,denom:mt,continued:!1,hasBarLine:qn,barSize:Qn,leftDelim:Dr,rightDelim:fn,size:Ei}},htmlBuilder:Ur,mathmlBuilder:En}),gt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=ae.token;return{type:"infix",mode:be.mode,replaceWith:"\\\\abovefrac",size:mn(pe[0],"size").value,token:mt}}}),gt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0],Gt=u(mn(pe[1],"infix").size),Dr=pe[2],Gr=Gt.number>0;return{type:"genfrac",mode:be.mode,numer:mt,denom:Dr,continued:!1,hasBarLine:Gr,barSize:Gt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ur,mathmlBuilder:En});var Bn=function(ae,pe){var be=pe.style,Ke,mt,Gt=en(ae,"supsub");Gt?(Ke=Gt.sup?ti(Gt.sup,pe.havingStyle(be.sup()),pe):ti(Gt.sub,pe.havingStyle(be.sub()),pe),mt=mn(Gt.base,"horizBrace")):mt=mn(ae,"horizBrace");var Dr=ti(mt.base,pe.havingBaseStyle(U.DISPLAY)),Gr=cn.svgSpan(mt,pe),fn;if(mt.isOver?(fn=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Dr},{type:"kern",size:.1},{type:"elem",elem:Gr}]},pe),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}]},pe),fn.children[0].children[0].children[0].classes.push("svg-align")),Ke){var Kn=fr.makeSpan(["mord",mt.isOver?"mover":"munder"],[fn],pe);mt.isOver?fn=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Kn},{type:"kern",size:.2},{type:"elem",elem:Ke}]},pe):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}]},pe)}return fr.makeSpan(["mord",mt.isOver?"mover":"munder"],[fn],pe)},ri=function(ae,pe){var be=cn.mathMLnode(ae.label);return new $n.MathNode(ae.isOver?"mover":"munder",[wr(ae.base,pe),be])};gt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName;return{type:"horizBrace",mode:be.mode,label:Ke,isOver:/^\\over/.test(Ke),base:pe[0]}},htmlBuilder:Bn,mathmlBuilder:ri}),gt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=pe[1],mt=mn(pe[0],"url").url;return be.settings.isTrusted({command:"\\href",url:mt})?{type:"href",mode:be.mode,href:mt,body:tr(Ke)}:be.formatUnsupportedCmd("\\href")},htmlBuilder:function(ae,pe){var be=Yr(ae.body,pe,!1);return fr.makeAnchor(ae.href,[],be,pe)},mathmlBuilder:function(ae,pe){var be=Bi(ae.body,pe);return be instanceof zi||(be=new zi("mrow",[be])),be.setAttribute("href",ae.href),be}}),gt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=mn(pe[0],"url").url;if(!be.settings.isTrusted({command:"\\url",url:Ke}))return be.formatUnsupportedCmd("\\url");for(var mt=[],Gt=0;Gt<Ke.length;Gt++){var Dr=Ke[Gt];Dr==="~"&&(Dr="\\textasciitilde"),mt.push({type:"textord",mode:"text",text:Dr})}var Gr={type:"text",mode:be.mode,font:"\\texttt",body:mt};return{type:"href",mode:be.mode,href:Ke,body:tr(Gr)}}}),gt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ae,pe){var be=ae.parser;return{type:"htmlmathml",mode:be.mode,html:tr(pe[0]),mathml:tr(pe[1])}},htmlBuilder:function(ae,pe){var be=Yr(ae.html,pe,!1);return fr.makeFragment(be)},mathmlBuilder:function(ae,pe){return Bi(ae.mathml,pe)}});var Yn=function(ae){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ae))return{number:+ae,unit:"bp"};var pe=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ae);if(!pe)throw new c("Invalid size: '"+ae+"' in \\includegraphics");var be={number:+(pe[1]+pe[2]),unit:pe[3]};if(!Sr(be))throw new c("Invalid unit: '"+be.unit+"' in \\includegraphics.");return be};gt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ae,pe,be){var Ke=ae.parser,mt={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":mt=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(pe[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:mt,height:Gt,totalheight:Dr,src:Fi}:Ke.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ae,pe){var be=hr(ae.height,pe),Ke=0;ae.totalheight.number>0&&(Ke=hr(ae.totalheight,pe)-be,Ke=Number(Ke.toFixed(2)));var mt=0;ae.width.number>0&&(mt=hr(ae.width,pe));var Gt={height:be+Ke+"em"};mt>0&&(Gt.width=mt+"em"),Ke>0&&(Gt.verticalAlign=-Ke+"em");var Dr=new fe(ae.src,ae.alt,Gt);return Dr.height=be,Dr.depth=Ke,Dr},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mglyph",[]);be.setAttribute("alt",ae.alt);var Ke=hr(ae.height,pe),mt=0;if(ae.totalheight.number>0&&(mt=hr(ae.totalheight,pe)-Ke,mt=mt.toFixed(2),be.setAttribute("valign","-"+mt+"em")),be.setAttribute("height",Ke+mt+"em"),ae.width.number>0){var Gt=hr(ae.width,pe);be.setAttribute("width",Gt+"em")}return be.setAttribute("src",ae.src),be}}),gt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=mn(pe[0],"size");if(be.settings.strict){var Gt=Ke[1]==="m",Dr=mt.value.unit==="mu";Gt?(Dr||be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ke+" supports only mu units, "+("not "+mt.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:mt.value}},htmlBuilder:function(ae,pe){return fr.makeGlue(ae.dimension,pe)},mathmlBuilder:function(ae,pe){var be=hr(ae.dimension,pe);return new $n.SpaceNode(be)}}),gt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0];return{type:"lap",mode:be.mode,alignment:Ke.slice(5),body:mt}},htmlBuilder:function(ae,pe){var be;ae.alignment==="clap"?(be=fr.makeSpan([],[ti(ae.body,pe)]),be=fr.makeSpan(["inner"],[be],pe)):be=fr.makeSpan(["inner"],[ti(ae.body,pe)]);var Ke=fr.makeSpan(["fix"],[]),mt=fr.makeSpan([ae.alignment],[be,Ke],pe),Gt=fr.makeSpan(["strut"]);return Gt.style.height=mt.height+mt.depth+"em",Gt.style.verticalAlign=-mt.depth+"em",mt.children.unshift(Gt),mt=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:mt}]},pe),fr.makeSpan(["mord"],[mt],pe)},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mpadded",[wr(ae.body,pe)]);if(ae.alignment!=="rlap"){var Ke=ae.alignment==="llap"?"-1":"-0.5";be.setAttribute("lspace",Ke+"width")}return be.setAttribute("width","0px"),be}}),gt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ae,pe){var be=ae.funcName,Ke=ae.parser,mt=Ke.mode;Ke.switchMode("math");var Gt=be==="\\("?"\\)":"$",Dr=Ke.parseExpression(!1,Gt);return Ke.expect(Gt),Ke.switchMode(mt),{type:"styling",mode:Ke.mode,style:"text",body:Dr}}}),gt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ae,pe){throw new c("Mismatched "+ae.funcName)}});var ii=function(ae,pe){switch(pe.style.size){case U.DISPLAY.size:return ae.display;case U.TEXT.size:return ae.text;case U.SCRIPT.size:return ae.script;case U.SCRIPTSCRIPT.size:return ae.scriptscript;default:return ae.text}};gt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ae,pe){var be=ae.parser;return{type:"mathchoice",mode:be.mode,display:tr(pe[0]),text:tr(pe[1]),script:tr(pe[2]),scriptscript:tr(pe[3])}},htmlBuilder:function(ae,pe){var be=ii(ae,pe),Ke=Yr(be,pe,!1);return fr.makeFragment(Ke)},mathmlBuilder:function(ae,pe){var be=ii(ae,pe);return Bi(be,pe)}});var ai=function(ae,pe,be,Ke,mt,Gt,Dr){ae=fr.makeSpan([],[ae]);var Gr,fn;if(pe){var Kn=ti(pe,Ke.havingStyle(mt.sup()),Ke);fn={elem:Kn,kern:Math.max(Ke.fontMetrics().bigOpSpacing1,Ke.fontMetrics().bigOpSpacing3-Kn.depth)}}if(be){var qn=ti(be,Ke.havingStyle(mt.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)},Pi=["\\smallint"],bi=function(ae,pe){var be,Ke,mt=!1,Gt,Dr=en(ae,"supsub");Dr?(be=Dr.sup,Ke=Dr.sub,Gt=mn(Dr.base,"op"),mt=!0):Gt=mn(ae,"op");var Gr=pe.style,fn=!1;Gr.size===U.DISPLAY.size&&Gt.symbol&&!p.contains(Pi,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",pe,["mop","op-symbol",fn?"large-op":"small-op"]),Qn.length>0){var Ei=Kn.italic,Fi=fr.staticSvg(Qn+"Size"+(fn?"2":"1"),pe);Kn=fr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Kn,shift:0},{type:"elem",elem:Fi,shift:fn?.08:0}]},pe),Gt.name="\\"+Qn,Kn.classes.unshift("mop"),Kn.italic=Ei}}else if(Gt.body){var va=Yr(Gt.body,pe,!0);va.length===1&&va[0]instanceof Ce?(Kn=va[0],Kn.classes[0]="mop"):Kn=fr.makeSpan(["mop"],fr.tryCombineChars(va),pe)}else{for(var Oa=[],fo=1;fo<Gt.name.length;fo++)Oa.push(fr.mathsym(Gt.name[fo],Gt.mode,pe));Kn=fr.makeSpan(["mop"],Oa,pe)}var wo=0,lo=0;return(Kn instanceof Ce||Gt.name==="\\oiint"||Gt.name==="\\oiiint")&&!Gt.suppressBaseShift&&(wo=(Kn.height-Kn.depth)/2-pe.fontMetrics().axisHeight,lo=Kn.italic),mt?ai(Kn,be,Ke,pe,Gr,lo,wo):(wo&&(Kn.style.position="relative",Kn.style.top=wo+"em"),Kn)},Ki=function(ae,pe){var be;if(ae.symbol)be=new zi("mo",[gn(ae.name,ae.mode)]),p.contains(Pi,ae.name)&&be.setAttribute("largeop","false");else if(ae.body)be=new zi("mo",Li(ae.body,pe));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=ki([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"};gt({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,pe){var be=ae.parser,Ke=ae.funcName,mt=Ke;return mt.length===1&&(mt=Aa[mt]),{type:"op",mode:be.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:mt}},htmlBuilder:bi,mathmlBuilder:Ki}),gt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ae,pe){var be=ae.parser,Ke=pe[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"};gt({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 pe=ae.parser,be=ae.funcName;return{type:"op",mode:pe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:bi,mathmlBuilder:Ki}),gt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ae){var pe=ae.parser,be=ae.funcName;return{type:"op",mode:pe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:bi,mathmlBuilder:Ki}),gt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ae){var pe=ae.parser,be=ae.funcName,Ke=be;return Ke.length===1&&(Ke=ea[Ke]),{type:"op",mode:pe.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Ke}},htmlBuilder:bi,mathmlBuilder:Ki});var Ji=function(ae,pe){var be,Ke,mt=!1,Gt,Dr=en(ae,"supsub");Dr?(be=Dr.sup,Ke=Dr.sub,Gt=mn(Dr.base,"operatorname"),mt=!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,pe.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,pe)}else Gr=fr.makeSpan(["mop"],[],pe);return mt?ai(Gr,be,Ke,pe,pe.style,0,0):Gr},sa=function(ae,pe){for(var be=Li(ae.body,pe.withFont("mathrm")),Ke=!0,mt=0;mt<be.length;mt++){var Gt=be[mt];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])};gt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0];return{type:"operatorname",mode:be.mode,body:tr(mt),alwaysHandleSupSub:Ke==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ji,mathmlBuilder:sa}),Qt({type:"ordgroup",htmlBuilder:function(ae,pe){return ae.semisimple?fr.makeFragment(Yr(ae.body,pe,!1)):fr.makeSpan(["mord"],Yr(ae.body,pe,!0),pe)},mathmlBuilder:function(ae,pe){return Bi(ae.body,pe,!0)}}),gt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ae,pe){var be=ae.parser,Ke=pe[0];return{type:"overline",mode:be.mode,body:Ke}},htmlBuilder:function(ae,pe){var be=ti(ae.body,pe.havingCrampedStyle()),Ke=fr.makeLineSpan("overline-line",pe),mt=pe.fontMetrics().defaultRuleThickness,Gt=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:3*mt},{type:"elem",elem:Ke},{type:"kern",size:mt}]},pe);return fr.makeSpan(["mord","overline"],[Gt],pe)},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mo",[new $n.TextNode("\u203E")]);be.setAttribute("stretchy","true");var Ke=new $n.MathNode("mover",[wr(ae.body,pe),be]);return Ke.setAttribute("accent","true"),Ke}}),gt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=pe[0];return{type:"phantom",mode:be.mode,body:tr(Ke)}},htmlBuilder:function(ae,pe){var be=Yr(ae.body,pe.withPhantom(),!1);return fr.makeFragment(be)},mathmlBuilder:function(ae,pe){var be=Li(ae.body,pe);return new $n.MathNode("mphantom",be)}}),gt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=pe[0];return{type:"hphantom",mode:be.mode,body:Ke}},htmlBuilder:function(ae,pe){var be=fr.makeSpan([],[ti(ae.body,pe.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}]},pe),fr.makeSpan(["mord"],[be],pe)},mathmlBuilder:function(ae,pe){var be=Li(tr(ae.body),pe),Ke=new $n.MathNode("mphantom",be),mt=new $n.MathNode("mpadded",[Ke]);return mt.setAttribute("height","0px"),mt.setAttribute("depth","0px"),mt}}),gt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=pe[0];return{type:"vphantom",mode:be.mode,body:Ke}},htmlBuilder:function(ae,pe){var be=fr.makeSpan(["inner"],[ti(ae.body,pe.withPhantom())]),Ke=fr.makeSpan(["fix"],[]);return fr.makeSpan(["mord","rlap"],[be,Ke],pe)},mathmlBuilder:function(ae,pe){var be=Li(tr(ae.body),pe),Ke=new $n.MathNode("mphantom",be),mt=new $n.MathNode("mpadded",[Ke]);return mt.setAttribute("width","0px"),mt}}),gt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=mn(pe[0],"size").value,mt=pe[1];return{type:"raisebox",mode:be.mode,dy:Ke,body:mt}},htmlBuilder:function(ae,pe){var be=ti(ae.body,pe),Ke=hr(ae.dy,pe);return fr.makeVList({positionType:"shift",positionData:-Ke,children:[{type:"elem",elem:be}]},pe)},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mpadded",[wr(ae.body,pe)]),Ke=ae.dy.number+ae.dy.unit;return be.setAttribute("voffset",Ke),be}}),gt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ae,pe,be){var Ke=ae.parser,mt=be[0],Gt=mn(pe[0],"size"),Dr=mn(pe[1],"size");return{type:"rule",mode:Ke.mode,shift:mt&&mn(mt,"size").value,width:Gt.value,height:Dr.value}},htmlBuilder:function(ae,pe){var be=fr.makeSpan(["mord","rule"],[],pe),Ke=hr(ae.width,pe),mt=hr(ae.height,pe),Gt=ae.shift?hr(ae.shift,pe):0;return be.style.borderRightWidth=Ke+"em",be.style.borderTopWidth=mt+"em",be.style.bottom=Gt+"em",be.width=Ke,be.height=mt+Gt,be.depth=-Gt,be.maxFontSize=mt*1.125*pe.sizeMultiplier,be},mathmlBuilder:function(ae,pe){var be=hr(ae.width,pe),Ke=hr(ae.height,pe),mt=ae.shift?hr(ae.shift,pe):0,Gt=pe.color&&pe.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 mt>=0?Gr.setAttribute("height","+"+mt+"em"):(Gr.setAttribute("height",mt+"em"),Gr.setAttribute("depth","+"+-mt+"em")),Gr.setAttribute("voffset",mt+"em"),Gr}});function fa(pt,ae,pe){for(var be=Yr(pt,ae,!1),Ke=ae.sizeMultiplier/pe.sizeMultiplier,mt=0;mt<be.length;mt++){var Gt=be[mt].classes.indexOf("sizing");Gt<0?Array.prototype.push.apply(be[mt].classes,ae.sizingClasses(pe)):be[mt].classes[Gt+1]==="reset-size"+ae.size&&(be[mt].classes[Gt+1]="reset-size"+pe.size),be[mt].height*=Ke,be[mt].depth*=Ke}return fr.makeFragment(be)}var xo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Qa=function(ae,pe){var be=pe.havingSize(ae.size);return fa(ae.body,be,pe)};gt({type:"sizing",names:xo,props:{numArgs:0,allowedInText:!0},handler:function(ae,pe){var be=ae.breakOnTokenText,Ke=ae.funcName,mt=ae.parser,Gt=mt.parseExpression(!1,be);return{type:"sizing",mode:mt.mode,size:xo.indexOf(Ke)+1,body:Gt}},htmlBuilder:Qa,mathmlBuilder:function(ae,pe){var be=pe.havingSize(ae.size),Ke=Li(ae.body,be),mt=new $n.MathNode("mstyle",Ke);return mt.setAttribute("mathsize",be.sizeMultiplier+"em"),mt}}),gt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ae,pe,be){var Ke=ae.parser,mt=!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")mt=!0;else if(Gr==="b")Gt=!0;else{mt=!1,Gt=!1;break}}else mt=!0,Gt=!0;var qn=pe[0];return{type:"smash",mode:Ke.mode,body:qn,smashHeight:mt,smashDepth:Gt}},htmlBuilder:function(ae,pe){var be=fr.makeSpan([],[ti(ae.body,pe)]);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 mt=0;mt<be.children.length;mt++)be.children[mt].depth=0;var Gt=fr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},pe);return fr.makeSpan(["mord"],[Gt],pe)},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mpadded",[wr(ae.body,pe)]);return ae.smashHeight&&be.setAttribute("height","0px"),ae.smashDepth&&be.setAttribute("depth","0px"),be}}),gt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ae,pe,be){var Ke=ae.parser,mt=be[0],Gt=pe[0];return{type:"sqrt",mode:Ke.mode,body:Gt,index:mt}},htmlBuilder:function(ae,pe){var be=ti(ae.body,pe.havingCrampedStyle());be.height===0&&(be.height=pe.fontMetrics().xHeight),be=fr.wrapFragment(be,pe);var Ke=pe.fontMetrics(),mt=Ke.defaultRuleThickness,Gt=mt;pe.style.id<U.TEXT.id&&(Gt=pe.fontMetrics().xHeight);var Dr=mt+Gt/4,Gr=be.height+be.depth+Dr+mt,fn=Ia.sqrtImage(Gr,pe),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}]},pe);if(ae.index){var Oa=pe.havingStyle(U.SCRIPTSCRIPT),fo=ti(ae.index,Oa,pe),wo=.6*(va.height-va.depth),lo=fr.makeVList({positionType:"shift",positionData:-wo,children:[{type:"elem",elem:fo}]},pe),Yo=fr.makeSpan(["root"],[lo]);return fr.makeSpan(["mord","sqrt"],[Yo,va],pe)}else return fr.makeSpan(["mord","sqrt"],[va],pe)},mathmlBuilder:function(ae,pe){var be=ae.body,Ke=ae.index;return Ke?new $n.MathNode("mroot",[wr(be,pe),wr(Ke,pe)]):new $n.MathNode("msqrt",[wr(be,pe)])}});var Wi={display:U.DISPLAY,text:U.TEXT,script:U.SCRIPT,scriptscript:U.SCRIPTSCRIPT};gt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ae,pe){var be=ae.breakOnTokenText,Ke=ae.funcName,mt=ae.parser,Gt=mt.parseExpression(!0,be),Dr=Ke.slice(1,Ke.length-5);return{type:"styling",mode:mt.mode,style:Dr,body:Gt}},htmlBuilder:function(ae,pe){var be=Wi[ae.style],Ke=pe.havingStyle(be).withFont("");return fa(ae.body,Ke,pe)},mathmlBuilder:function(ae,pe){var be=Wi[ae.style],Ke=pe.havingStyle(be),mt=Li(ae.body,Ke),Gt=new $n.MathNode("mstyle",mt),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,pe){var be=ae.base;if(be)if(be.type==="op"){var Ke=be.limits&&(pe.style.size===U.DISPLAY.size||be.alwaysHandleSupSub);return Ke?bi:null}else if(be.type==="operatorname"){var mt=be.alwaysHandleSupSub&&(pe.style.size===U.DISPLAY.size||be.limits);return mt?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,pe){var be=qi(ae,pe);if(be)return be(ae,pe);var Ke=ae.base,mt=ae.sup,Gt=ae.sub,Dr=ti(Ke,pe),Gr,fn,Kn=pe.fontMetrics(),qn=0,Qn=0,Ei=Ke&&p.isCharacterBox(Ke);if(mt){var Fi=pe.havingStyle(pe.style.sup());Gr=ti(mt,Fi,pe),Ei||(qn=Dr.height-Fi.fontMetrics().supDrop*Fi.sizeMultiplier/pe.sizeMultiplier)}if(Gt){var va=pe.havingStyle(pe.style.sub());fn=ti(Gt,va,pe),Ei||(Qn=Dr.depth+va.fontMetrics().subDrop*va.sizeMultiplier/pe.sizeMultiplier)}var Oa;pe.style===U.DISPLAY?Oa=Kn.sup1:pe.style.cramped?Oa=Kn.sup3:Oa=Kn.sup2;var fo=pe.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},pe)}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},pe)}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}]},pe);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])],pe)},mathmlBuilder:function(ae,pe){var be=!1,Ke,mt,Gt=en(ae.base,"horizBrace");Gt&&(mt=!!ae.sup,mt===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,pe)];ae.sub&&Dr.push(wr(ae.sub,pe)),ae.sup&&Dr.push(wr(ae.sup,pe));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&&pe.style===U.DISPLAY||qn&&qn.type==="operatorname"&&qn.alwaysHandleSupSub&&(pe.style===U.DISPLAY||qn.limits)?Gr="munderover":Gr="msubsup"}else{var Kn=ae.base;Kn&&Kn.type==="op"&&Kn.limits&&(pe.style===U.DISPLAY||Kn.alwaysHandleSupSub)||Kn&&Kn.type==="operatorname"&&Kn.alwaysHandleSupSub&&(Kn.limits||pe.style===U.DISPLAY)?Gr="munder":Gr="msub"}else{var fn=ae.base;fn&&fn.type==="op"&&fn.limits&&(pe.style===U.DISPLAY||fn.alwaysHandleSupSub)||fn&&fn.type==="operatorname"&&fn.alwaysHandleSupSub&&(fn.limits||pe.style===U.DISPLAY)?Gr="mover":Gr="msup"}var Qn=new $n.MathNode(Gr,Dr);return Qn}}),Qt({type:"atom",htmlBuilder:function(ae,pe){return fr.mathsym(ae.text,ae.mode,pe,["m"+ae.family])},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mo",[gn(ae.text,ae.mode)]);if(ae.family==="bin"){var Ke=Hi(ae,pe);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,pe){return fr.makeOrd(ae,pe,"mathord")},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mi",[gn(ae.text,ae.mode,pe)]),Ke=Hi(ae,pe)||"italic";return Ke!==ca[be.type]&&be.setAttribute("mathvariant",Ke),be}}),Qt({type:"textord",htmlBuilder:function(ae,pe){return fr.makeOrd(ae,pe,"textord")},mathmlBuilder:function(ae,pe){var be=gn(ae.text,ae.mode,pe),Ke=Hi(ae,pe)||"normal",mt;return ae.mode==="text"?mt=new $n.MathNode("mtext",[be]):/[0-9]/.test(ae.text)?mt=new $n.MathNode("mn",[be]):ae.text==="\\prime"?mt=new $n.MathNode("mo",[be]):mt=new $n.MathNode("mi",[be]),Ke!==ca[mt.type]&&mt.setAttribute("mathvariant",Ke),mt}});var ma={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Pa={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Qt({type:"spacing",htmlBuilder:function(ae,pe){if(Pa.hasOwnProperty(ae.text)){var be=Pa[ae.text].className||"";if(ae.mode==="text"){var Ke=fr.makeOrd(ae,pe,"textord");return Ke.classes.push(be),Ke}else return fr.makeSpan(["mspace",be],[fr.mathsym(ae.text,ae.mode,pe)],pe)}else{if(ma.hasOwnProperty(ae.text))return fr.makeSpan(["mspace",ma[ae.text]],[],pe);throw new c('Unknown type of space "'+ae.text+'"')}},mathmlBuilder:function(ae,pe){var be;if(Pa.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,pe){var be=new $n.MathNode("mtable",[new $n.MathNode("mtr",[La(),new $n.MathNode("mtd",[Bi(ae.body,pe)]),La(),new $n.MathNode("mtd",[Bi(ae.tag,pe)])])]);return be.setAttribute("width","100%"),be}});var Za={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},eo={"\\textbf":"textbf","\\textmd":"textmd"},ko={"\\textit":"textit","\\textup":"textup"},jo=function(ae,pe){var be=ae.font;return be?Za[be]?pe.withTextFontFamily(Za[be]):eo[be]?pe.withTextFontWeight(eo[be]):pe.withTextFontShape(ko[be]):pe};gt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ae,pe){var be=ae.parser,Ke=ae.funcName,mt=pe[0];return{type:"text",mode:be.mode,body:tr(mt),font:Ke}},htmlBuilder:function(ae,pe){var be=jo(ae,pe),Ke=Yr(ae.body,be,!0);return fr.makeSpan(["mord","text"],fr.tryCombineChars(Ke),be)},mathmlBuilder:function(ae,pe){var be=jo(ae,pe);return Bi(ae.body,be)}}),gt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ae,pe){var be=ae.parser;return{type:"underline",mode:be.mode,body:pe[0]}},htmlBuilder:function(ae,pe){var be=ti(ae.body,pe),Ke=fr.makeLineSpan("underline-line",pe),mt=pe.fontMetrics().defaultRuleThickness,Gt=fr.makeVList({positionType:"top",positionData:be.height,children:[{type:"kern",size:mt},{type:"elem",elem:Ke},{type:"kern",size:3*mt},{type:"elem",elem:be}]},pe);return fr.makeSpan(["mord","underline"],[Gt],pe)},mathmlBuilder:function(ae,pe){var be=new $n.MathNode("mo",[new $n.TextNode("\u203E")]);be.setAttribute("stretchy","true");var Ke=new $n.MathNode("munder",[wr(ae.body,pe),be]);return Ke.setAttribute("accentunder","true"),Ke}}),gt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ae,pe,be){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ae,pe){for(var be=cs(ae),Ke=[],mt=pe.havingStyle(pe.style.text()),Gt=0;Gt<be.length;Gt++){var Dr=be[Gt];Dr==="~"&&(Dr="\\textasciitilde"),Ke.push(fr.makeSymbol(Dr,"Typewriter-Regular",ae.mode,mt,["mord","texttt"]))}return fr.makeSpan(["mord","text"].concat(mt.sizingClasses(pe)),fr.tryCombineChars(Ke),mt)},mathmlBuilder:function(ae,pe){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=St,Lo=Mo,Ba=`[ \r
|
|
|
]`,za="\\\\[a-zA-Z@]+",Ta="\\\\[^\uD800-\uDFFF]",Po=""+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\\*"+("|"+Po)+("|"+Ta+")"),bo=function(){function pt(pe,be){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=pe,this.settings=be,this.tokenRegex=new RegExp(ho,"g"),this.catcodes={"%":14}}var ae=pt.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 mt=this.tokenRegex.exec(be);if(mt===null||mt.index!==Ke)throw new c("Unexpected character: '"+be[Ke]+"'",new m(be[Ke],new w(this,Ke,Ke+1)));var Gt=mt[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))},pt}(),ds=function(){function pt(pe,be){pe===void 0&&(pe={}),be===void 0&&(be={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=be,this.builtins=pe,this.undefStack=[]}var ae=pt.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,mt){if(mt===void 0&&(mt=!1),mt){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},pt}(),Ho={},zo=Ho;function rn(pt,ae){Ho[pt]=ae}rn("\\@firstoftwo",function(pt){var ae=pt.consumeArgs(2);return{tokens:ae[0],numArgs:0}}),rn("\\@secondoftwo",function(pt){var ae=pt.consumeArgs(2);return{tokens:ae[1],numArgs:0}}),rn("\\@ifnextchar",function(pt){var ae=pt.consumeArgs(3),pe=pt.future();return ae[0].length===1&&ae[0][0].text===pe.text?{tokens:ae[1],numArgs:0}:{tokens:ae[2],numArgs:0}}),rn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),rn("\\TextOrMath",function(pt){var ae=pt.consumeArgs(2);return pt.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(pt){var ae=pt.popToken(),pe,be="";if(ae.text==="'")pe=8,ae=pt.popToken();else if(ae.text==='"')pe=16,ae=pt.popToken();else if(ae.text==="`")if(ae=pt.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 pe=10;if(pe){if(be=es[ae.text],be==null||be>=pe)throw new c("Invalid base-"+pe+" digit "+ae.text);for(var Ke;(Ke=es[pt.future().text])!=null&&Ke<pe;)be*=pe,be+=Ke,pt.popToken()}return"\\@char{"+be+"}"});var Js=function(ae,pe){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,mt=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(mt++,parseInt(be[0].text)!==mt)throw new c('Argument number "'+be[0].text+'" out of order');be=ae.consumeArgs(1)[0]}return ae.macros.set(Ke,{tokens:be,numArgs:mt},pe),""};rn("\\gdef",function(pt){return Js(pt,!0)}),rn("\\def",function(pt){return Js(pt,!1)}),rn("\\global",function(pt){var ae=pt.consumeArgs(1)[0];if(ae.length!==1)throw new c("Invalid command after \\global");var pe=ae[0].text;if(pe==="\\def")return Js(pt,!0);throw new c("Invalid command '"+pe+"' after \\global")});var Es=function(ae,pe,be){var Ke=ae.consumeArgs(1)[0];if(Ke.length!==1)throw new c("\\newcommand's first argument must be a macro name");var mt=Ke[0].text,Gt=ae.isDefined(mt);if(Gt&&!pe)throw new c("\\newcommand{"+mt+"} attempting to redefine "+(mt+"; use \\renewcommand"));if(!Gt&&!be)throw new c("\\renewcommand{"+mt+"} when command "+mt+" 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(mt,{tokens:Ke,numArgs:Dr}),""};rn("\\newcommand",function(pt){return Es(pt,!1,!0)}),rn("\\renewcommand",function(pt){return Es(pt,!0,!1)}),rn("\\providecommand",function(pt){return Es(pt,!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(pt){var ae="\\dotso",pe=pt.expandAfterFuture().text;return pe in gs?ae=gs[pe]:pe.substr(0,4)==="\\not"?ae="\\dotsb":pe in He.math&&(p.contains(["bin","rel"],He.math[pe].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(pt){var ae=pt.future().text;return ae in Ko?"\\ldots\\,":"\\ldots"}),rn("\\dotsc",function(pt){var ae=pt.future().text;return ae in Ko&&ae!==","?"\\ldots\\,":"\\ldots"}),rn("\\cdots",function(pt){var ae=pt.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(pt){if(pt.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=At["Main-Regular"]["T".charCodeAt(0)][1]-.7*At["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 pt(pe,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(pe),this.macros=new ds(zo,be.macros),this.mode=Ke,this.stack=[]}var ae=pt.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=[],mt=0;mt<be;++mt){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[mt]=Dr}else{if(Gt.text==="EOF")throw new c("End of input expecting macro argument");Ke[mt]=[Gt]}}return Ke},ae.expandOnce=function(){var be=this.popToken(),Ke=be.text,mt=this._getExpansion(Ke);if(mt==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=mt.tokens;if(mt.numArgs){var Dr=this.consumeArgs(mt.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=[],mt=this.stack.length;for(this.pushToken(new m(be));this.stack.length>mt;){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(mt){return mt.text}).join("")},ae._getExpansion=function(be){var Ke=this.macros.get(be);if(Ke==null)return Ke;var mt=typeof Ke=="function"?Ke(this):Ke;if(typeof mt=="string"){var Gt=0;if(mt.indexOf("#")!==-1)for(var Dr=mt.replace(/##/g,"");Dr.indexOf("#"+(Gt+1))!==-1;)++Gt;for(var Gr=new bo(mt,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 mt},ae.isDefined=function(be){return this.macros.has(be)||Lo.hasOwnProperty(be)||He.math.hasOwnProperty(be)||He.text.hasOwnProperty(be)||bs.hasOwnProperty(be)},pt}(),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 pt(pe,be){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ws(pe,be,this.mode),this.settings=be,this.leftrightDepth=0}var ae=pt.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 mt=[];;){this.mode==="math"&&this.consumeSpaces();var Gt=this.fetch();if(pt.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;mt.push(Dr)}return this.mode==="text"&&this.formLigatures(mt),this.handleInfixNodes(mt)},ae.handleInfixNodes=function(be){for(var Ke=-1,mt,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,mt=Dr.replaceWith}}if(Ke!==-1&&mt){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 mt==="\\\\abovefrac"?Qn=this.callFunction(mt,[Gr,be[Ke],fn],[]):Qn=this.callFunction(mt,[Gr,fn],[]),[Qn]}else return be},ae.handleSupSubscript=function(be){var Ke=this.fetch(),mt=Ke.text;this.consume();var Gt=this.parseGroup(be,!1,pt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Gt)throw new c("Expected group after '"+mt+"'",Ke);return Gt},ae.formatUnsupportedCmd=function(be){for(var Ke=[],mt=0;mt<be.length;mt++)Ke.push({type:"textord",mode:"text",text:be[mt]});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 mt,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(mt)throw new c("Double superscript",Dr);mt=this.handleSupSubscript("superscript")}else if(Dr.text==="_"){if(Gt)throw new c("Double subscript",Dr);Gt=this.handleSupSubscript("subscript")}else if(Dr.text==="'"){if(mt)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")),mt={type:"ordgroup",mode:this.mode,body:Qn}}else break}return mt||Gt?{type:"supsub",mode:this.mode,base:Ke,sup:mt,sub:Gt}:Ke},ae.parseFunction=function(be,Ke,mt){var Gt=this.fetch(),Dr=Gt.text,Gr=Lo[Dr];if(!Gr)return null;if(this.consume(),mt!=null&&Gr.greediness<=mt)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,mt,Gt,Dr){var Gr={funcName:be,parser:this,token:Gt,breakOnTokenText:Dr},fn=Lo[be];if(fn&&fn.handler)return fn.handler(Gr,Ke,mt);throw new c("No function handler for "+be)},ae.parseArguments=function(be,Ke){var mt=Ke.numArgs+Ke.numOptionalArgs;if(mt===0)return{args:[],optArgs:[]};for(var Gt=Ke.greediness,Dr=[],Gr=[],fn=0;fn<mt;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,mt,Gt,Dr){switch(Ke){case"color":return Dr&&this.consumeSpaces(),this.parseColorGroup(mt);case"size":return Dr&&this.consumeSpaces(),this.parseSizeGroup(mt);case"url":return this.parseUrlGroup(mt,Dr);case"math":case"text":return this.parseGroup(be,mt,Gt,void 0,Ke,Dr);case"hbox":{var Gr=this.parseGroup(be,mt,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(),mt&&this.fetch().text==="{")return null;var Kn=this.parseStringGroup("raw",mt,!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,mt,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,mt){var Gt=Ke?"[":"{",Dr=Ke?"]":"}",Gr=this.fetch();if(Gr.text!==Gt){if(Ke)return null;if(mt&&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||mt&&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 mt=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=mt,Gt.range(Dr,Gr)},ae.parseColorGroup=function(be){var Ke=this.parseStringGroup("color",be);if(!Ke)return null;var mt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Ke.text);if(!mt)throw new c("Invalid color: '"+Ke.text+"'",Ke);var Gt=mt[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,mt=!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",mt=!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:mt}},ae.parseUrlGroup=function(be,Ke){this.gullet.lexer.setCatcode("%",13);var mt=this.parseStringGroup("url",be,!0);if(this.gullet.lexer.setCatcode("%",14),!mt)return null;var Gt=mt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Gt}},ae.parseGroup=function(be,Ke,mt,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=pt.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,mt)||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,mt=0;mt<Ke;++mt){var Gt=be[mt],Dr=Gt.text;Dr==="-"&&be[mt+1].text==="-"&&(mt+1<Ke&&be[mt+2].text==="-"?(be.splice(mt,3,{type:"textord",mode:"text",loc:w.range(Gt,be[mt+2]),text:"---"}),Ke-=2):(be.splice(mt,2,{type:"textord",mode:"text",loc:w.range(Gt,be[mt+1]),text:"--"}),Ke-=1)),(Dr==="'"||Dr==="`")&&be[mt+1].text===Dr&&(be.splice(mt,2,{type:"textord",mode:"text",loc:w.range(Gt,be[mt+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 mt=Ke.slice(5),Gt=mt.charAt(0)==="*";if(Gt&&(mt=mt.slice(1)),mt.length<2||mt.charAt(0)!==mt.slice(-1))throw new c(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return mt=mt.slice(1,-1),{type:"verb",mode:"text",body:mt,star:Gt}}us.hasOwnProperty(Ke[0])&&!He[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(He[this.mode][Ke]){this.settings.strict&&this.mode==="math"&&Ot.indexOf(Ke)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ke[0]+'" used in math mode',be);var fn=He[this.mode][Ke].group,Kn=w.range(be),qn;if(Bt.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&&(Q(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},pt}();_s.endOfExpression=["}","\\endgroup","\\end","\\right","&"],_s.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},_s.SUPSUB_GREEDINESS=1;var vs=function(ae,pe){if(!(typeof ae=="string"||ae instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var be=new _s(ae,pe);delete be.gullet.macros.current["\\df@tag"];var Ke=be.parse();if(be.gullet.macros.get("\\df@tag")){if(!pe.displayMode)throw new c("\\tag works only in display equations");be.gullet.feed("\\df@tag"),Ke=[{type:"tag",mode:"text",body:Ke,tag:be.parse()}]}return Ke},vo=vs,to=function(ae,pe,be){pe.textContent="";var Ke=Tt(ae,be).toNode();pe.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,pe){var be=Tt(ae,pe).toMarkup();return be},ts=function(ae,pe){var be=new g(pe);return vo(ae,be)},Ha=function(ae,pe,be){if(be.throwOnError||!(ae instanceof c))throw ae;var Ke=fr.makeSpan(["katex-error"],[new Ce(pe)]);return Ke.setAttribute("title",ae.toString()),Ke.setAttribute("style","color:"+be.errorColor),Ke},Tt=function(ae,pe){var be=new g(pe);try{var Ke=vo(ae,be);return br(Ke,ae,be)}catch(mt){return Ha(mt,ae,be)}},Vt=function(ae,pe){var be=new g(pe);try{var Ke=vo(ae,be);return Or(Ke,ae,be)}catch(mt){return Ha(mt,ae,be)}},hn={version:"0.11.1",render:to,renderToString:Jo,ParseError:c,__parse:ts,__renderToDomTree:Tt,__renderToHTMLTree:Vt,__setFontMetrics:Lt,__defineSymbol:se,__defineMacro:rn,__domTree:{Span:G,Anchor:X,SymbolNode:Ce,SvgNode:Me,PathNode:ue,LineNode:Ae}},Vn=E.default=hn}]).default})},P2fV:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),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 _={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=_},P47w:function(H,B,d){var _=d("hydK"),E=_.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,l=Math.cos,t=Math.PI,a=Math.PI*2,s=180/t,u=1e-4;function h(V){return n(V*1e4)/1e4}function p(V){return V<u&&V>-u}function g(V,z){var Q=z?V.textFill:V.fill;return Q!=null&&Q!==i}function v(V,z){var Q=z?V.textStroke:V.stroke;return Q!=null&&Q!==i}function y(V,z){z&&x(V,"transform","matrix("+r.call(z,",")+")")}function x(V,z,Q){(!Q||Q.type!=="linear"&&Q.type!=="radial")&&V.setAttribute(z,Q)}function T(V,z,Q){V.setAttributeNS("http://www.w3.org/1999/xlink",z,Q)}function S(V,z,Q,Z){if(g(z,Q)){var le=Q?z.textFill:z.fill;le=le==="transparent"?i:le,x(V,"fill",le),x(V,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else x(V,"fill",i);if(v(z,Q)){var ne=Q?z.textStroke:z.stroke;ne=ne==="transparent"?i:ne,x(V,"stroke",ne);var ve=Q?z.textStrokeWidth:z.lineWidth,xe=!Q&&z.strokeNoScale?Z.getLineScale():1;x(V,"stroke-width",ve/xe),x(V,"paint-order",Q?"stroke":"fill"),x(V,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var _e=z.lineDash;_e?(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=[],Q=V.data,Z=V.len(),le=0;le<Z;){var ne=Q[le++],ve="",xe=0;switch(ne){case o.M:ve="M",xe=2;break;case o.L:ve="L",xe=2;break;case o.Q:ve="Q",xe=4;break;case o.C:ve="C",xe=6;break;case o.A:var _e=Q[le++],Be=Q[le++],me=Q[le++],Fe=Q[le++],ie=Q[le++],te=Q[le++],Ge=Q[le++],oe=Q[le++],Y=Math.abs(te),G=p(Y-a)||(oe?te>=a:-te>=a),X=te>0?te%a:te%a+a,fe=!1;G?fe=!0:p(Y)?fe=!1:fe=X>=t===!!oe;var de=h(_e+me*l(ie)),Ce=h(Be+Fe*e(ie));G&&(oe?te=a-1e-4:te=-a+1e-4,fe=!0,le===9&&z.push("M",de,Ce));var Me=h(_e+me*l(ie+te)),ue=h(Be+Fe*e(ie+te));z.push("A",h(me),h(Fe),n(Ge*s),+fe,+oe,Me,ue);break;case o.Z:ve="Z";break;case o.R:var Me=h(Q[le++]),ue=h(Q[le++]),Ae=h(Q[le++]),Te=h(Q[le++]);z.push("M",Me,ue,"L",Me+Ae,ue,"L",Me+Ae,ue+Te,"L",Me,ue+Te,"L",Me,ue);break}ve&&z.push(ve);for(var Je=0;Je<xe;Je++)z.push(h(Q[le++]))}return z.join(" ")}var O={};O.brush=function(V){var z=V.style,Q=V.__svgEl;Q||(Q=E("path"),V.__svgEl=Q),V.path||V.createPathProxy();var Z=V.path;if(V.__dirtyPath){Z.beginPath(),Z.subPixelOptimize=!1,V.buildPath(Z,V.shape),V.__dirtyPath=!1;var le=b(Z);le.indexOf("NaN")<0&&x(Q,"d",le)}S(Q,z,!1,V),y(Q,V.transform),z.text!=null?M(V,V.getBoundingRect()):K(V)};var I={};I.brush=function(V){var z=V.style,Q=z.image;if(Q instanceof HTMLImageElement){var Z=Q.src;Q=Z}if(!Q)return;var le=z.x||0,ne=z.y||0,ve=z.width,xe=z.height,_e=V.__svgEl;_e||(_e=E("image"),V.__svgEl=_e),Q!==V.__imageSrc&&(T(_e,"href",Q),V.__imageSrc=Q),x(_e,"width",ve),x(_e,"height",xe),x(_e,"x",le),x(_e,"y",ne),y(_e,V.transform),z.text!=null?M(V,V.getBoundingRect()):K(V)};var L={},N=new A,D={},R=[],k={left:"start",right:"end",center:"middle",middle:"middle"},M=function(z,Q){var Z=z.style,le=z.transform,ne=z instanceof c||Z.transformText;z.__dirty&&f.normalizeTextStyle(Z,!0);var ve=Z.text;if(ve!=null&&(ve+=""),!f.needDrawText(ve,Z))return;ve==null&&(ve=""),!ne&&le&&(N.copy(Q),N.applyTransform(le),Q=N);var xe=z.__textSvgEl;xe||(xe=E("text"),z.__textSvgEl=xe);var _e=xe.style,Be=Z.font||m.DEFAULT_FONT,me=xe.__computedFont;Be!==xe.__styleFont&&(_e.font=xe.__styleFont=Be,me=xe.__computedFont=_e.font);var Fe=Z.textPadding,ie=Z.textLineHeight,te=z.__textCotentBlock;(!te||z.__dirtyText)&&(te=z.__textCotentBlock=m.parsePlainText(ve,me,Fe,ie,Z.truncate));var Ge=te.outerHeight,oe=te.lineHeight;f.getBoxPosition(D,z,Z,Q);var Y=D.baseX,G=D.baseY,X=D.textAlign||"left",fe=D.textVerticalAlign;j(xe,ne,le,Z,Q,Y,G);var de=m.adjustTextY(G,Ge,fe),Ce=Y,Me=de;Fe&&(Ce=F(Y,X,Fe),Me+=Fe[0]),Me+=oe/2,S(xe,Z,!0,z);var ue=te.canCacheByTextString,Ae=z.__tspanList||(z.__tspanList=[]),Te=Ae.length;if(ue&&z.__canCacheByTextString&&z.__text===ve){if(z.__dirtyText&&Te)for(var Je=0;Je<Te;++Je)U(Ae[Je],X,Ce,Me+Je*oe)}else{z.__text=ve,z.__canCacheByTextString=ue;for(var At=te.lines,qe=At.length,Je=0;Je<qe;Je++){var Re=Ae[Je],Lt=At[Je];Re?Re.__zrText!==Lt&&(Re.innerHTML="",Re.appendChild(document.createTextNode(Lt))):(Re=Ae[Je]=E("tspan"),xe.appendChild(Re),Re.appendChild(document.createTextNode(Lt))),U(Re,X,Ce,Me+Je*oe)}if(Te>qe){for(;Je<Te;Je++)xe.removeChild(Ae[Je]);Ae.length=qe}}};function j(V,z,Q,Z,le,ne,ve){w.identity(R),z&&Q&&w.copy(R,Q);var xe=Z.textRotation;if(le&&xe){var _e=Z.textOrigin;_e==="center"?(ne=le.width/2+le.x,ve=le.height/2+le.y):_e&&(ne=_e[0]+le.x,ve=_e[1]+le.y),R[4]-=ne,R[5]-=ve,w.rotate(R,R,xe),R[4]+=ne,R[5]+=ve}y(V,R)}function F(V,z,Q){return z==="right"?V-Q[1]:z==="center"?V+Q[3]/2-Q[1]/2:V+Q[3]}function U(V,z,Q,Z){x(V,"dominant-baseline","middle"),x(V,"text-anchor",k[z]),x(V,"x",Q),x(V,"y",Z)}function K(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):K(V)},B.path=O,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 _=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,_.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 _=d("rHrb"),E=_.CopyToClipboard;E.CopyToClipboard=E,H.exports=E},PArb:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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 l={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(l[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(l[t[a]]=n[t[a]]);return l},i=function(e){return w.createElement(o.a,null,function(l){var t,a=l.getPrefixCls,s=l.direction,u=e.prefixCls,h=e.type,p=h===void 0?"horizontal":h,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"]),O=a("divider",u),I=v.length>0?"-".concat(v):v,L=!!x,N=c()(y,O,"".concat(O,"-").concat(p),(t={},A()(t,"".concat(O,"-with-text"),L),A()(t,"".concat(O,"-with-text").concat(I),L),A()(t,"".concat(O,"-dashed"),!!T),A()(t,"".concat(O,"-plain"),!!S),A()(t,"".concat(O,"-rtl"),s==="rtl"),t));return w.createElement("div",E()({className:N},b,{role:"separator"}),x&&w.createElement("span",{className:"".concat(O,"-inner-text")},x))})};B.a=i},PD8m:function(H,B){H.exports={name:"memoryStorage",read:_,write:E,each:C,remove:A,clearAll:w};var d={};function _(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 _=d("RIqP"),E=d.n(_),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"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("TSYQ"),u=d.n(s),h=d("H84U"),p=function(I,L){var N={};for(var 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 k;return k=function(M){n()(F,M);var j=l()(F);function F(){var U;return c()(this,F),U=j.apply(this,arguments),U.renderComponent=function(K){var V=K.getPrefixCls,z=U.props.prefixCls,Q=V(L,z);return t.createElement(R,m()({prefixCls:Q,tagName:N},U.props))},U}return r()(F,[{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),F}(t.Component),k.displayName=D,k}}var y=function(L){var N=L.prefixCls,D=L.className,R=L.children,k=L.tagName,M=p(L,["prefixCls","className","children","tagName"]),j=u()(N,D);return t.createElement(k,m()({className:j},M),R)},x=function(I){n()(N,I);var L=l()(N);function N(){var D;return c()(this,N),D=L.apply(this,arguments),D.state={siders:[]},D.renderComponent=function(R){var k,M=R.direction,j=D.props,F=j.prefixCls,U=j.className,K=j.children,V=j.hasSider,z=j.tagName,Q=p(j,["prefixCls","className","children","hasSider","tagName"]),Z=u()(F,(k={},A()(k,"".concat(F,"-has-sider"),typeof V=="boolean"?V:D.state.siders.length>0),A()(k,"".concat(F,"-rtl"),M==="rtl"),k),U);return t.createElement(g.Provider,{value:{siderHook:D.getSiderHook()}},t.createElement(z,m()({className:Z},Q),K))},D}return r()(N,[{key:"getSiderHook",value:function(){var R=this;return{addSider:function(M){R.setState(function(j){return{siders:[].concat(E()(j.siders),[M])}})},removeSider:function(M){R.setState(function(j){return{siders:j.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),O=v({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(y);T.Header=S,T.Footer=b,T.Content=O,B.b=T},PNag:function(H,B,d){var _=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=_.each,n=Math.min,e=Math.max,l=12,t=6,a=A.extend({type:"visualMap.continuous",init:function(){a.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(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 O=this.visualMapModel,I=O.get("textGap"),L=O.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),k=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new w.Text({style:{x:D[0],y:D[1],textVerticalAlign:k==="horizontal"?"middle":R,textAlign:k==="horizontal"?R:"center",text:b,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(x){var T=this.visualMapModel,S=this._shapes,b=T.itemSize,O=this._orient,I=this._useHandle,L=c.getItemAlign(T,this.api,b),N=S.barGroup=this._createBarGroup(L);N.add(S.outOfRange=s()),N.add(S.inRange=s(null,I?v(this._orient):null,_.bind(this._dragHandle,this,"all",!1),_.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,O,L),this._createHandle(N,1,b,R,O,L)),this._createIndicator(N,b,R,O),x.add(N)},_createHandle:function(x,T,S,b,O){var I=_.bind(this._dragHandle,this,T,!1),L=_.bind(this._dragHandle,this,T,!0),N=s(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(j){C.stop(j.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:D.getFont(),textFill:D.getTextColor()}});this.group.add(R);var k=[O==="horizontal"?b/2:b*1.5,O==="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]=k,M.handleLabels[T]=R},_createIndicator:function(x,T,S,b){var O=s([[0,0]],"move");O.position[0]=T[0],O.attr({invisible:!0,silent:!0}),x.add(O);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=O,D.indicatorLabel=L,D.indicatorLabelPoint=N},_dragHandle:function(x,T,S,b){if(!this._useHandle)return;if(this._dragging=!T,!T){var O=this._applyTransform([S,b],this._shapes.barGroup,!0);this._updateInterval(x,O[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,O=[0,S.itemSize[1]];f(T,b,O,x,0);var I=S.getExtent();this._dataInterval=[r(b[0],O,I,!0),r(b[1],O,I,!0)]},_updateView:function(x){var T=this.visualMapModel,S=T.getExtent(),b=this._shapes,O=[0,T.itemSize[1]],I=x?O:this._handleEnds,L=this._createBarVisual(this._dataInterval,S,I,"inRange"),N=this._createBarVisual(S,S,O,"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 O={forceState:b,convertOpacityToAlpha:!0},I=this._makeColorGradient(x,O),L=[this.getControllerVisual(x[0],"symbolSize",O),this.getControllerVisual(x[1],"symbolSize",O)],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=[],O=(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]+O*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,O=S.handleThumbs,I=S.handleLabels;i([0,1],function(L){var N=O[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 O=this.visualMapModel,I=O.getExtent(),L=O.itemSize,N=[0,L[1]],D=r(x,I,N,!0),R=this._shapes,k=R.indicator;if(!k)return;k.position[1]=D,k.attr("invisible",!1),k.setShape("points",h(!!S,b,D,L[1]));var M={convertOpacityToAlpha:!0},j=this.getControllerVisual(x,"color",M);k.setStyle("fill",j);var F=w.applyTransform(R.indicatorLabelPoint,w.getTransform(k,this.group)),U=R.indicatorLabel;U.attr("invisible",!1);var K=this._applyTransform("left",R.barGroup),V=this._orient;U.setStyle({text:(S||"")+O.formatValueText(T),textVerticalAlign:V==="horizontal"?K:"middle",textAlign:V==="horizontal"?"center":K,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 O=[0,b[1]],I=S.getExtent();x=n(e(O[0],x),O[1]);var L=p(S,I,O),N=[x-L,x+L],D=r(x,O,I,!0),R=[r(N[0],O,I,!0),r(N[1],O,I,!0)];N[0]<O[0]&&(R[0]=-Infinity),N[1]>O[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 k=this._hoverLinkDataIndices,M=[];(T||g(S))&&(M=this._hoverLinkDataIndices=S.findTargetDataIndices(R));var j=o.compressBatches(k,M);this._dispatchHighDown("downplay",c.makeHighDownBatch(j[0],S)),this._dispatchHighDown("highlight",c.makeHighDownBatch(j[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 O=b.getData(T.dataType),I=O.get(S.getDataDimension(O),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 O=w.getTransform(T,b?null:this.group);return w[_.isArray(x)?"applyTransform":"transformDirection"](x,O,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 s(x,T,S,b){return new w.Polygon({shape:{points:x},draggable:!!S,cursor:T,drift:S,onmousemove:function(O){C.stop(O.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=l/2,O=x.get("hoverLinkDataSize");return O&&(b=r(O,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 _={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=_},PVpz:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(_){return function(){var E=_,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,l=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],t=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var a=0;a<4;a++)r.call(this);for(var a=0;a<8;a++)t[a]^=l[a+4&7];if(e){var s=e.words,u=s[0],h=s[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,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 l=this._X;r.call(this),m[0]=l[0]^l[5]>>>16^l[3]<<16,m[1]=l[2]^l[7]>>>16^l[5]<<16,m[2]=l[4]^l[1]>>>16^l[7]<<16,m[3]=l[6]^l[3]>>>16^l[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 l=i[e]+n[e],t=l&65535,a=l>>>16,s=((t*t>>>17)+t*a>>>15)+a*a,u=((l&4294901760)*l|0)+((l&65535)*l|0);c[e]=s^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}E.RabbitLegacy=A._createHelper(o)}(),_.RabbitLegacy})},ProS:function(H,B,d){var _=d("Tghj"),E=_.__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"),l=d("0V0F"),t=d("bLfw"),a=d("T4UG"),s=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"),O=d("8hn6");d("A1Ka");var I=d("7DRL"),L=A.assert,N=A.each,D=A.isFunction,R=A.isObject,k=t.parseClassType,M="4.8.0",j={zrender:"4.3.1"},F=1,U=1e3,K=800,V=900,z=5e3,Q=1e3,Z=1100,le=2e3,ne=3e3,ve=3500,xe=4e3,_e=5e3,Be={PROCESSOR:{FILTER:U,SERIES_FILTER:K,STATISTIC:z},VISUAL:{LAYOUT:Q,PROGRESSIVE_LAYOUT:Z,GLOBAL:le,CHART:ne,POST_CHART_LAYOUT:ve,COMPONENT:xe,BRUSH:_e}},me="__flagInMainProcess",Fe="__optionUpdated",ie=/^[a-zA-Z0-9_]+$/;function te(yt,kt){return function(Sr,hr,gr){if(!kt&&this._disposed){Ut(this.id);return}Sr=Sr&&Sr.toLowerCase(),c.prototype[yt].call(this,Sr,hr,gr)}}function Ge(){c.call(this)}Ge.prototype.on=te("on",!0),Ge.prototype.off=te("off",!0),Ge.prototype.one=te("one",!0),A.mixin(Ge,c);function oe(yt,kt,Sr){Sr=Sr||{},typeof kt=="string"&&(kt=ot[kt]),this.id,this.group,this._dom=yt;var hr="canvas",gr=this._zr=C.init(yt,{renderer:Sr.renderer||hr,devicePixelRatio:Sr.devicePixelRatio,width:Sr.width,height:Sr.height});this._throttledZrFlush=v(A.bind(gr.flush,gr),17);var kt=A.clone(kt);kt&&e(kt,!0),this._theme=kt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new i;var Jr=this._api=He(this);function $r(kn,Dn){return kn.__prio-Dn.__prio}f(Mt,$r),f(Le,$r),this._scheduler=new S(this,Jr,Le,Mt),c.call(this,this._ecEventProcessor=new se),this._messageCenter=new Ge,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],gr.animation.on("frame",this._onframe,this),Te(gr,this),A.setAsPrimitive(this)}var Y=oe.prototype;Y._onframe=function(){if(this._disposed)return;var yt=this._scheduler;if(this[Fe]){var kt=this[Fe].silent;this[me]=!0,fe(this),X.update.call(this),this[me]=!1,this[Fe]=!1,ue.call(this,kt),Ae.call(this,kt)}else if(yt.unfinished){var Sr=F,hr=this._model,gr=this._api;yt.unfinished=!1;do{var Jr=+new Date;yt.performSeriesTasks(hr),yt.performDataProcessorTasks(hr),Ce(this,hr),yt.performVisualTasks(hr),Lt(this,this._model,gr,"remain"),Sr-=+new Date-Jr}while(Sr>0&&yt.unfinished);yt.unfinished||this._zr.flush()}},Y.getDom=function(){return this._dom},Y.getZr=function(){return this._zr},Y.setOption=function(yt,kt,Sr){if(this._disposed){Ut(this.id);return}var hr;if(R(kt)&&(Sr=kt.lazyUpdate,hr=kt.silent,kt=kt.notMerge),this[me]=!0,!this._model||kt){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(yt,ee),Sr?(this[Fe]={silent:hr},this[me]=!1):(fe(this),X.update.call(this),this._zr.flush(),this[Fe]=!1,this[me]=!1,ue.call(this,hr),Ae.call(this,hr))},Y.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Y.getModel=function(){return this._model},Y.getOption=function(){return this._model&&this._model.getOption()},Y.getWidth=function(){return this._zr.getWidth()},Y.getHeight=function(){return this._zr.getHeight()},Y.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Y.getRenderedCanvas=function(yt){if(!m.canvasSupported)return;yt=yt||{},yt.pixelRatio=yt.pixelRatio||1,yt.backgroundColor=yt.backgroundColor||this._model.get("backgroundColor");var kt=this._zr;return kt.painter.getRenderedCanvas(yt)},Y.getSvgDataURL=function(){if(!m.svgSupported)return;var yt=this._zr,kt=yt.storage.getDisplayList();return A.each(kt,function(Sr){Sr.stopAnimation(!0)}),yt.painter.toDataURL()},Y.getDataURL=function(yt){if(this._disposed){Ut(this.id);return}yt=yt||{};var kt=yt.excludeComponents,Sr=this._model,hr=[],gr=this;N(kt,function($r){Sr.eachComponent({mainType:$r},function(kn){var Dn=gr._componentsMap[kn.__viewId];Dn.group.ignore||(hr.push(Dn),Dn.group.ignore=!0)})});var Jr=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(yt).toDataURL("image/"+(yt&&yt.type||"png"));return N(hr,function($r){$r.group.ignore=!1}),Jr},Y.getConnectedDataURL=function(yt){if(this._disposed){Ut(this.id);return}if(!m.canvasSupported)return;var kt=yt.type==="svg",Sr=this.group,hr=Math.min,gr=Math.max,Jr=Infinity;if(Zr[Sr]){var $r=Jr,kn=Jr,Dn=-Jr,Zn=-Jr,li=[],Ai=yt&&yt.pixelRatio||1;A.each(or,function(Xe,ze){if(Xe.group===Sr){var Ze=kt?Xe.getZr().painter.getSvgDom().innerHTML:Xe.getRenderedCanvas(A.clone(yt)),wt=Xe.getDom().getBoundingClientRect();$r=hr(wt.left,$r),kn=hr(wt.top,kn),Dn=gr(wt.right,Dn),Zn=gr(wt.bottom,Zn),li.push({dom:Ze,left:wt.left,top:wt.top})}}),$r*=Ai,kn*=Ai,Dn*=Ai,Zn*=Ai;var Ii=Dn-$r,Qe=Zn-kn,Se=A.createCanvas(),Ne=C.init(Se,{renderer:kt?"svg":"canvas"});if(Ne.resize({width:Ii,height:Qe}),kt){var je="";return N(li,function(Xe){var ze=Xe.left-$r,Ze=Xe.top-kn;je+='<g transform="translate('+ze+","+Ze+')">'+Xe.dom+"</g>"}),Ne.painter.getSvgRoot().innerHTML=je,yt.connectedBackgroundColor&&Ne.painter.setBackgroundColor(yt.connectedBackgroundColor),Ne.refreshImmediately(),Ne.painter.toDataURL()}else return yt.connectedBackgroundColor&&Ne.add(new h.Rect({shape:{x:0,y:0,width:Ii,height:Qe},style:{fill:yt.connectedBackgroundColor}})),N(li,function(Xe){var ze=new h.Image({style:{x:Xe.left*Ai-$r,y:Xe.top*Ai-kn,image:Xe.dom}});Ne.add(ze)}),Ne.refreshImmediately(),Se.toDataURL("image/"+(yt&&yt.type||"png"))}else return this.getDataURL(yt)},Y.convertToPixel=A.curry(G,"convertToPixel"),Y.convertFromPixel=A.curry(G,"convertFromPixel");function G(yt,kt,Sr){if(this._disposed){Ut(this.id);return}var hr=this._model,gr=this._coordSysMgr.getCoordinateSystems(),Jr;kt=p.parseFinder(hr,kt);for(var $r=0;$r<gr.length;$r++){var kn=gr[$r];if(kn[yt]&&(Jr=kn[yt](hr,kt,Sr))!=null)return Jr}}Y.containPixel=function(yt,kt){if(this._disposed){Ut(this.id);return}var Sr=this._model,hr;return yt=p.parseFinder(Sr,yt),A.each(yt,function(gr,Jr){Jr.indexOf("Models")>=0&&A.each(gr,function($r){var kn=$r.coordinateSystem;if(kn&&kn.containPoint)hr|=!!kn.containPoint(kt);else if(Jr==="seriesModels"){var Dn=this._chartsMap[$r.__viewId];Dn&&Dn.containPoint&&(hr|=Dn.containPoint(kt,$r))}},this)},this),!!hr},Y.getVisual=function(yt,kt){var Sr=this._model;yt=p.parseFinder(Sr,yt,{defaultMainType:"series"});var hr=yt.seriesModel,gr=hr.getData(),Jr=yt.hasOwnProperty("dataIndexInside")?yt.dataIndexInside:yt.hasOwnProperty("dataIndex")?gr.indexOfRawIndex(yt.dataIndex):null;return Jr!=null?gr.getItemVisual(Jr,kt):gr.getVisual(kt)},Y.getViewOfComponentModel=function(yt){return this._componentsMap[yt.__viewId]},Y.getViewOfSeriesModel=function(yt){return this._chartsMap[yt.__viewId]};var X={prepareAndUpdate:function(yt){fe(this),X.update.call(this,yt)},update:function(yt){var kt=this._model,Sr=this._api,hr=this._zr,gr=this._coordSysMgr,Jr=this._scheduler;if(!kt)return;Jr.restoreData(kt,yt),Jr.performSeriesTasks(kt),gr.create(kt,Sr),Jr.performDataProcessorTasks(kt,yt),Ce(this,kt),gr.update(kt,Sr),At(kt),Jr.performVisualTasks(kt,yt),qe(this,kt,Sr,yt);var $r=kt.get("backgroundColor")||"transparent";if(m.canvasSupported)hr.setBackgroundColor($r);else{var kn=w.parse($r);$r=w.stringify(kn,"rgb"),kn[3]===0&&($r="transparent")}$e(kt,Sr)},updateTransform:function(yt){var kt=this._model,Sr=this,hr=this._api;if(!kt)return;var gr=[];kt.eachComponent(function($r,kn){var Dn=Sr.getViewOfComponentModel(kn);if(Dn&&Dn.__alive)if(Dn.updateTransform){var Zn=Dn.updateTransform(kn,kt,hr,yt);Zn&&Zn.update&&gr.push(Dn)}else gr.push(Dn)});var Jr=A.createHashMap();kt.eachSeries(function($r){var kn=Sr._chartsMap[$r.__viewId];if(kn.updateTransform){var Dn=kn.updateTransform($r,kt,hr,yt);Dn&&Dn.update&&Jr.set($r.uid,1)}else Jr.set($r.uid,1)}),At(kt),this._scheduler.performVisualTasks(kt,yt,{setDirty:!0,dirtyMap:Jr}),Lt(Sr,kt,hr,yt,Jr),$e(kt,this._api)},updateView:function(yt){var kt=this._model;if(!kt)return;u.markUpdateMethod(yt,"updateView"),At(kt),this._scheduler.performVisualTasks(kt,yt,{setDirty:!0}),qe(this,this._model,this._api,yt),$e(kt,this._api)},updateVisual:function(yt){X.update.call(this,yt)},updateLayout:function(yt){X.update.call(this,yt)}};function fe(yt){var kt=yt._model,Sr=yt._scheduler;Sr.restorePipelines(kt),Sr.prepareStageTasks(),Je(yt,"component",kt,Sr),Je(yt,"chart",kt,Sr),Sr.plan()}function de(yt,kt,Sr,hr,gr){var Jr=yt._model;if(!hr){N(yt._componentsViews.concat(yt._chartsViews),Zn);return}var $r={};$r[hr+"Id"]=Sr[hr+"Id"],$r[hr+"Index"]=Sr[hr+"Index"],$r[hr+"Name"]=Sr[hr+"Name"];var kn={mainType:hr,query:$r};gr&&(kn.subType=gr);var Dn=Sr.excludeSeriesId;Dn!=null&&(Dn=A.createHashMap(p.normalizeToArray(Dn))),Jr&&Jr.eachComponent(kn,function(li){(!Dn||Dn.get(li.id)==null)&&Zn(yt[hr==="series"?"_chartsMap":"_componentsMap"][li.__viewId])},yt);function Zn(li){li&&li.__alive&&li[kt]&&li[kt](li.__model,Jr,yt._api,Sr)}}Y.resize=function(yt){if(this._disposed){Ut(this.id);return}this._zr.resize(yt);var kt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!kt)return;var Sr=kt.resetOption("media"),hr=yt&&yt.silent;this[me]=!0,Sr&&fe(this),X.update.call(this),this[me]=!1,ue.call(this,hr),Ae.call(this,hr)};function Ce(yt,kt){var Sr=yt._chartsMap,hr=yt._scheduler;kt.eachSeries(function(gr){hr.updateStreamModes(gr,Sr[gr.__viewId])})}Y.showLoading=function(yt,kt){if(this._disposed){Ut(this.id);return}if(R(yt)&&(kt=yt,yt=""),yt=yt||"default",this.hideLoading(),!Yt[yt])return;var Sr=Yt[yt](this._api,kt),hr=this._zr;this._loadingFX=Sr,hr.add(Sr)},Y.hideLoading=function(){if(this._disposed){Ut(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Y.makeActionFromEvent=function(yt){var kt=A.extend({},yt);return kt.type=Ue[yt.type],kt},Y.dispatchAction=function(yt,kt){if(this._disposed){Ut(this.id);return}if(R(kt)||(kt={silent:!!kt}),!J[yt.type])return;if(!this._model)return;if(this[me]){this._pendingActions.push(yt);return}Me.call(this,yt,kt.silent),kt.flush?this._zr.flush(!0):kt.flush!==!1&&m.browser.weChat&&this._throttledZrFlush(),ue.call(this,kt.silent),Ae.call(this,kt.silent)};function Me(yt,kt){var Sr=yt.type,hr=yt.escapeConnect,gr=J[Sr],Jr=gr.actionInfo,$r=(Jr.update||"update").split(":"),kn=$r.pop();$r=$r[0]!=null&&k($r[0]),this[me]=!0;var Dn=[yt],Zn=!1;yt.batch&&(Zn=!0,Dn=A.map(yt.batch,function(Qe){return Qe=A.defaults(A.extend({},Qe),yt),Qe.batch=null,Qe}));var li=[],Ai,Ii=Sr==="highlight"||Sr==="downplay";N(Dn,function(Qe){Ai=gr.action(Qe,this._model,this._api),Ai=Ai||A.extend({},Qe),Ai.type=Jr.event||Ai.type,li.push(Ai),Ii?de(this,kn,Qe,"series"):$r&&de(this,kn,Qe,$r.main,$r.sub)},this),kn!=="none"&&!Ii&&!$r&&(this[Fe]?(fe(this),X.update.call(this,yt),this[Fe]=!1):X[kn].call(this,yt)),Zn?Ai={type:Jr.event||Sr,escapeConnect:hr,batch:li}:Ai=li[0],this[me]=!1,!kt&&this._messageCenter.trigger(Ai.type,Ai)}function ue(yt){for(var kt=this._pendingActions;kt.length;){var Sr=kt.shift();Me.call(this,Sr,yt)}}function Ae(yt){!yt&&this.trigger("updated")}function Te(yt,kt){yt.on("rendered",function(){kt.trigger("rendered"),yt.animation.isFinished()&&!kt[Fe]&&!kt._scheduler.unfinished&&!kt._pendingActions.length&&kt.trigger("finished")})}Y.appendData=function(yt){if(this._disposed){Ut(this.id);return}var kt=yt.seriesIndex,Sr=this.getModel(),hr=Sr.getSeriesByIndex(kt);hr.appendData(yt),this._scheduler.unfinished=!0},Y.on=te("on",!1),Y.off=te("off",!1),Y.one=te("one",!1);function Je(yt,kt,Sr,hr){for(var gr=kt==="component",Jr=gr?yt._componentsViews:yt._chartsViews,$r=gr?yt._componentsMap:yt._chartsMap,kn=yt._zr,Dn=yt._api,Zn=0;Zn<Jr.length;Zn++)Jr[Zn].__alive=!1;gr?Sr.eachComponent(function(Ii,Qe){Ii!=="series"&&li(Qe)}):Sr.eachSeries(li);function li(Ii){var Qe="_ec_"+Ii.id+"_"+Ii.type,Se=$r[Qe];if(!Se){var Ne=k(Ii.type),je=gr?s.getClass(Ne.main,Ne.sub):u.getClass(Ne.sub);Se=new je,Se.init(Sr,Dn),$r[Qe]=Se,Jr.push(Se),kn.add(Se.group)}Ii.__viewId=Se.__id=Qe,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(),kn.remove(Ai.group),Ai.dispose(Sr,Dn),Jr.splice(Zn,1),delete $r[Ai.__id],Ai.__id=Ai.group.__ecComponentInfo=null)}}function At(yt){yt.clearColorPalette(),yt.eachSeries(function(kt){kt.clearColorPalette()})}function qe(yt,kt,Sr,hr){Re(yt,kt,Sr,hr),N(yt._chartsViews,function(gr){gr.__alive=!1}),Lt(yt,kt,Sr,hr),N(yt._chartsViews,function(gr){gr.__alive||gr.remove(kt,Sr)})}function Re(yt,kt,Sr,hr,gr){N(gr||yt._componentsViews,function(Jr){var $r=Jr.__model;Jr.render($r,kt,Sr,hr),jt($r,Jr)})}function Lt(yt,kt,Sr,hr,gr){var Jr=yt._scheduler,$r;kt.eachSeries(function(kn){var Dn=yt._chartsMap[kn.__viewId];Dn.__alive=!0;var Zn=Dn.renderTask;Jr.updatePayload(Zn,hr),gr&&gr.get(kn.uid)&&Zn.dirty(),$r|=Zn.perform(Jr.getPerformArgs(Zn)),Dn.group.silent=!!kn.get("silent"),jt(kn,Dn),_t(kn,Dn)}),Jr.unfinished|=$r,Bt(yt,kt),x(yt._zr.dom,kt)}function $e(yt,kt){N(ct,function(Sr){Sr(yt,kt)})}var Et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Y._initEvents=function(){N(Et,function(yt){var kt=function(Sr){var hr=this.getModel(),gr=Sr.target,Jr,$r=yt==="globalout";if($r)Jr={};else if(gr&&gr.dataIndex!=null){var kn=gr.dataModel||hr.getSeriesByIndex(gr.seriesIndex);Jr=kn&&kn.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=yt,this._ecEventProcessor.eventInfo={targetEl:gr,packedEvent:Jr,model:li,view:Ai},this.trigger(yt,Jr)}};kt.zrEventfulCallAtLast=!0,this._zr.on(yt,kt,this)},this),N(Ue,function(yt,kt){this._messageCenter.on(kt,function(Sr){this.trigger(kt,Sr)},this)},this)},Y.isDisposed=function(){return this._disposed},Y.clear=function(){if(this._disposed){Ut(this.id);return}this.setOption({series:[]},!0)},Y.dispose=function(){if(this._disposed){Ut(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),qt,"");var yt=this._api,kt=this._model;N(this._componentsViews,function(Sr){Sr.dispose(kt,yt)}),N(this._chartsViews,function(Sr){Sr.dispose(kt,yt)}),this._zr.dispose(),delete or[this.id]},A.mixin(oe,c);function Ut(yt){}function Bt(yt,kt){var Sr=yt._zr,hr=Sr.storage,gr=0;hr.traverse(function(Jr){gr++}),gr>kt.get("hoverLayerThreshold")&&!m.node&&kt.eachSeries(function(Jr){if(Jr.preventUsingHoverLayer)return;var $r=yt._chartsMap[Jr.__viewId];$r.__alive&&$r.group.traverse(function(kn){kn.useHoverLayer=!0})})}function _t(yt,kt){var Sr=yt.get("blendMode")||null;kt.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 jt(yt,kt){var Sr=yt.get("z"),hr=yt.get("zlevel");kt.group.traverse(function(gr){gr.type!=="group"&&(Sr!=null&&(gr.z=Sr),hr!=null&&(gr.zlevel=hr))})}function He(yt){var kt=yt._coordSysMgr;return A.extend(new r(yt),{getCoordinateSystems:A.bind(kt.getCoordinateSystems,kt),getComponentByElement:function(Sr){for(;Sr;){var hr=Sr.__ecComponentInfo;if(hr!=null)return yt._model.getComponent(hr.mainType,hr.index);Sr=Sr.parent}}})}function se(){this.eventInfo}se.prototype={constructor:se,normalizeQuery:function(yt){var kt={},Sr={},hr={};if(A.isString(yt)){var gr=k(yt);kt.mainType=gr.main||null,kt.subType=gr.sub||null}else{var Jr=["Index","Name","Id"],$r={name:1,dataIndex:1,dataType:1};A.each(yt,function(kn,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 Qe=Dn.slice(0,Ii);Qe!=="data"&&(kt.mainType=Qe,kt[Ai.toLowerCase()]=kn,Zn=!0)}}$r.hasOwnProperty(Dn)&&(Sr[Dn]=kn,Zn=!0),Zn||(hr[Dn]=kn)})}return{cptQuery:kt,dataQuery:Sr,otherQuery:hr}},filter:function(yt,kt,Sr){var hr=this.eventInfo;if(!hr)return!0;var gr=hr.targetEl,Jr=hr.packedEvent,$r=hr.model,kn=hr.view;if(!$r||!kn)return!0;var Dn=kt.cptQuery,Zn=kt.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")&&(!kn.filterForExposedEvent||kn.filterForExposedEvent(yt,kt.otherQuery,gr,Jr));function li(Ai,Ii,Qe,Se){return Ai[Qe]==null||Ii[Se||Qe]===Ai[Qe]}},afterTrigger:function(){this.eventInfo=null}};var J={},Ue={},Le=[],ee=[],ct=[],Mt=[],ot={},Yt={},or={},Zr={},ir=new Date-0,dr=new Date-0,qt="_echarts_instance_";function Ht(yt){var kt=0,Sr=1,hr=2,gr="__connectUpdateStatus";function Jr($r,kn){for(var Dn=0;Dn<$r.length;Dn++){var Zn=$r[Dn];Zn[gr]=kn}}N(Ue,function($r,kn){yt._messageCenter.on(kn,function(Dn){if(Zr[yt.group]&&yt[gr]!==kt){if(Dn&&Dn.escapeConnect)return;var Zn=yt.makeActionFromEvent(Dn),li=[];N(or,function(Ai){Ai!==yt&&Ai.group===yt.group&&li.push(Ai)}),Jr(li,kt),N(li,function(Ai){Ai[gr]!==Sr&&Ai.dispatchAction(Zn)}),Jr(li,hr)}})})}function lt(yt,kt,Sr){var hr=gi(yt);if(hr)return hr;var gr=new oe(yt,kt,Sr);return gr.id="ec_"+ir++,or[gr.id]=gr,p.setAttribute(yt,qt,gr.id),Ht(gr),gr}function Hr(yt){if(A.isArray(yt)){var kt=yt;yt=null,N(kt,function(Sr){Sr.group!=null&&(yt=Sr.group)}),yt=yt||"g_"+dr++,N(kt,function(Sr){Sr.group=yt})}return Zr[yt]=!0,yt}function dn(yt){Zr[yt]=!1}var Nn=dn;function Wn(yt){typeof yt=="string"?yt=or[yt]:yt instanceof oe||(yt=gi(yt)),yt instanceof oe&&!yt.isDisposed()&&yt.dispose()}function gi(yt){return or[p.getAttribute(yt,qt)]}function yn(yt){return or[yt]}function Mn(yt,kt){ot[yt]=kt}function Ft(yt){ee.push(yt)}function bt(yt,kt){Ot(Le,yt,kt,U)}function Oe(yt){ct.push(yt)}function Ee(yt,kt,Sr){typeof kt=="function"&&(Sr=kt,kt="");var hr=R(yt)?yt.type:[yt,yt={event:kt}][0];yt.event=(yt.event||hr).toLowerCase(),kt=yt.event,L(ie.test(hr)&&ie.test(kt)),J[hr]||(J[hr]={action:Sr,actionInfo:yt}),Ue[kt]=hr}function Ie(yt,kt){i.register(yt,kt)}function Ye(yt){var kt=i.get(yt);if(kt)return kt.getDimensionsInfo?kt.getDimensionsInfo():kt.dimensions.slice()}function rt(yt,kt){Ot(Mt,yt,kt,Q,"layout")}function ut(yt,kt){Ot(Mt,yt,kt,ne,"visual")}function Ot(yt,kt,Sr,hr,gr){(D(kt)||R(kt))&&(Sr=kt,kt=hr);var Jr=S.wrapStageHandler(Sr,gr);return Jr.__prio=kt,Jr.__raw=Sr,yt.push(Jr),Jr}function Ar(yt,kt){Yt[yt]=kt}function Pr(yt){return t.extend(yt)}function un(yt){return s.extend(yt)}function It(yt){return a.extend(yt)}function nt(yt){return u.extend(yt)}function at(yt){A.$override("createCanvas",yt)}function rr(yt,kt,Sr){I.registerMap(yt,kt,Sr)}function Pt(yt){var kt=I.retrieveMap(yt);return kt&&kt[0]&&{geoJson:kt[0].geoJSON,specialAreas:kt[0].specialAreas}}ut(le,y),Ft(e),bt(V,l),Ar("default",T),Ee({type:"highlight",event:"highlight",update:"highlight"},A.noop),Ee({type:"downplay",event:"downplay",update:"downplay"},A.noop),Mn("light",b),Mn("dark",O);var xt={};B.version=M,B.dependencies=j,B.PRIORITY=Be,B.init=lt,B.connect=Hr,B.disConnect=dn,B.disconnect=Nn,B.dispose=Wn,B.getInstanceByDom=gi,B.getInstanceById=yn,B.registerTheme=Mn,B.registerPreprocessor=Ft,B.registerProcessor=bt,B.registerPostUpdate=Oe,B.registerAction=Ee,B.registerCoordinateSystem=Ie,B.getCoordinateSystemDimensions=Ye,B.registerLayout=rt,B.registerVisual=ut,B.registerLoading=Ar,B.extendComponentModel=Pr,B.extendComponentView=un,B.extendSeriesModel=It,B.extendChartView=nt,B.setCanvasCreator=at,B.registerMap=rr,B.getMap=Pt,B.dataTool=xt;var Kt=d("txkQ");(function(){for(var yt in Kt)Kt.hasOwnProperty(yt)&&(B[yt]=Kt[yt])})()},Pw59:function(H,B,d){"use strict";var _=d("q1tI"),E=d.n(_),C=Object(_.createContext)({});B.a=C},Q7if:function(H,B,d){var _=d("JEkh"),E=_.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 _=d("cIOH"),E=d.n(_),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 _=E(d("Ywus"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},QBsz:function(H,B){var d=typeof Float32Array=="undefined"?Array:Float32Array;function _(S,b){var O=new d(2);return S==null&&(S=0),b==null&&(b=0),O[0]=S,O[1]=b,O}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,O){return S[0]=b,S[1]=O,S}function w(S,b,O){return S[0]=b[0]+O[0],S[1]=b[1]+O[1],S}function m(S,b,O,I){return S[0]=b[0]+O[0]*I,S[1]=b[1]+O[1]*I,S}function f(S,b,O){return S[0]=b[0]-O[0],S[1]=b[1]-O[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,O){return S[0]=b[0]*O[0],S[1]=b[1]*O[1],S}function e(S,b,O){return S[0]=b[0]/O[0],S[1]=b[1]/O[1],S}function l(S,b){return S[0]*b[0]+S[1]*b[1]}function t(S,b,O){return S[0]=b[0]*O,S[1]=b[1]*O,S}function a(S,b){var O=c(b);return O===0?(S[0]=0,S[1]=0):(S[0]=b[0]/O,S[1]=b[1]/O),S}function s(S,b){return Math.sqrt((S[0]-b[0])*(S[0]-b[0])+(S[1]-b[1])*(S[1]-b[1]))}var u=s;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,O,I){return S[0]=b[0]+I*(O[0]-b[0]),S[1]=b[1]+I*(O[1]-b[1]),S}function y(S,b,O){var I=b[0],L=b[1];return S[0]=O[0]*I+O[2]*L+O[4],S[1]=O[1]*I+O[3]*L+O[5],S}function x(S,b,O){return S[0]=Math.min(b[0],O[0]),S[1]=Math.min(b[1],O[1]),S}function T(S,b,O){return S[0]=Math.max(b[0],O[0]),S[1]=Math.max(b[1],O[1]),S}B.create=_,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=l,B.scale=t,B.normalize=a,B.distance=s,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 _=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,_.default)(function(){c.forEach(function(l){l(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 _=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?_(f-o,c)+m:m}H.exports=w},QUw5:function(H,B,d){var _=d("OlYY"),E=_.extend({type:"dataZoom.select"});H.exports=E},QV2g:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=_;function _(){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=_();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 _=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,O,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?b+(O-b)*I*6:I*2<1?O:I*3<2?b+(O-b)*(2/3-I)*6:b}function o(b,O,I){return b+(O-b)*I}function r(b,O,I,L,N){return b[0]=O,b[1]=I,b[2]=L,b[3]=N,b}function i(b,O){return b[0]=O[0],b[1]=O[1],b[2]=O[2],b[3]=O[3],b}var n=new _(20),e=null;function l(b,O){e&&i(e,O),e=n.put(b,e||O.slice())}function t(b,O){if(!b)return;O=O||[];var I=n.get(b);if(I)return i(O,I);b=b+"";var L=b.replace(/ /g,"").toLowerCase();if(L in E)return i(O,E[L]),l(b,O),O;if(L.charAt(0)==="#"){if(L.length===4){var N=parseInt(L.substr(1),16);if(!(N>=0&&N<=4095)){r(O,0,0,0,1);return}return r(O,(N&3840)>>4|(N&3840)>>8,N&240|(N&240)>>4,N&15|(N&15)<<4,1),l(b,O),O}else if(L.length===7){var N=parseInt(L.substr(1),16);if(!(N>=0&&N<=16777215)){r(O,0,0,0,1);return}return r(O,(N&16711680)>>16,(N&65280)>>8,N&255,1),l(b,O),O}return}var D=L.indexOf("("),R=L.indexOf(")");if(D!==-1&&R+1===L.length){var k=L.substr(0,D),M=L.substr(D+1,R-(D+1)).split(","),j=1;switch(k){case"rgba":if(M.length!==4){r(O,0,0,0,1);return}j=f(M.pop());case"rgb":if(M.length!==3){r(O,0,0,0,1);return}return r(O,m(M[0]),m(M[1]),m(M[2]),j),l(b,O),O;case"hsla":if(M.length!==4){r(O,0,0,0,1);return}return M[3]=f(M[3]),a(M,O),l(b,O),O;case"hsl":if(M.length!==3){r(O,0,0,0,1);return}return a(M,O),l(b,O),O;default:return}}r(O,0,0,0,1);return}function a(b,O){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 O=O||[],r(O,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&&(O[3]=b[3]),O}function s(b){if(!b)return;var O=b[0]/255,I=b[1]/255,L=b[2]/255,N=Math.min(O,I,L),D=Math.max(O,I,L),R=D-N,k=(D+N)/2,M,j;if(R===0)M=0,j=0;else{k<.5?j=R/(D+N):j=R/(2-D-N);var F=((D-O)/6+R/2)/R,U=((D-I)/6+R/2)/R,K=((D-L)/6+R/2)/R;O===D?M=K-U:I===D?M=1/3+F-K:L===D&&(M=2/3+U-F),M<0&&(M+=1),M>1&&(M-=1)}var V=[M*360,j,k];return b[3]!=null&&V.push(b[3]),V}function u(b,O){var I=t(b);if(I){for(var L=0;L<3;L++)O<0?I[L]=I[L]*(1-O)|0:I[L]=(255-I[L])*O+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 O=t(b);if(O)return((1<<24)+(O[0]<<16)+(O[1]<<8)+ +O[2]).toString(16).slice(1)}function p(b,O,I){if(!(O&&O.length)||!(b>=0&&b<=1))return;I=I||[];var L=b*(O.length-1),N=Math.floor(L),D=Math.ceil(L),R=O[N],k=O[D],M=L-N;return I[0]=C(o(R[0],k[0],M)),I[1]=C(o(R[1],k[1],M)),I[2]=C(o(R[2],k[2],M)),I[3]=w(o(R[3],k[3],M)),I}var g=p;function v(b,O,I){if(!(O&&O.length)||!(b>=0&&b<=1))return;var L=b*(O.length-1),N=Math.floor(L),D=Math.ceil(L),R=t(O[N]),k=t(O[D]),M=L-N,j=S([C(o(R[0],k[0],M)),C(o(R[1],k[1],M)),C(o(R[2],k[2],M)),w(o(R[3],k[3],M))],"rgba");return I?{color:j,leftIndex:N,rightIndex:D,value:L}:j}var y=v;function x(b,O,I,L){if(b=t(b),b)return b=s(b),O!=null&&(b[0]=A(O)),I!=null&&(b[1]=f(I)),L!=null&&(b[2]=f(L)),S(a(b),"rgba")}function T(b,O){if(b=t(b),b&&O!=null)return b[3]=w(O),S(b,"rgba")}function S(b,O){if(!b||!b.length)return;var I=b[0]+","+b[1]+","+b[2];return(O==="rgba"||O==="hsva"||O==="hsla")&&(I+=","+b[3]),O+"("+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 v}),d.d(B,"c",function(){return y}),d.d(B,"a",function(){return T}),d.d(B,"b",function(){return S}),d.d(B,"d",function(){return b}),d.d(B,"e",function(){return O}),d.d(B,"f",function(){return L});var _=d("VTBJ"),E=d("U8pU"),C=d("AJpP"),A=d("q1tI"),w=d.n(A),m=d("Kwbf"),f=d("MNnm"),c=d("l4aY"),o="data-rc-order",r="rc-util-key",i=new Map;function n(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=N.mark;return D?D.startsWith("data-")?D:"data-".concat(D):r}function e(N){if(N.attachTo)return N.attachTo;var D=document.querySelector("head");return D||document.body}function l(N){return N==="queue"?"prependQueue":N?"prepend":"append"}function t(N){return Array.from((i.get(N)||N).children).filter(function(D){return D.tagName==="STYLE"})}function a(N){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(f.a)())return null;var R=D.csp,k=D.prepend,M=document.createElement("style");M.setAttribute(o,l(k)),(R==null?void 0:R.nonce)&&(M.nonce=R==null?void 0:R.nonce),M.innerHTML=N;var j=e(D),F=j.firstChild;if(k){if(k==="queue"){var U=t(j).filter(function(K){return["prepend","prependQueue"].includes(K.getAttribute(o))});if(U.length)return j.insertBefore(M,U[U.length-1].nextSibling),M}j.insertBefore(M,F)}else j.appendChild(M);return M}function s(N){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=e(D);return t(R).find(function(k){return k.getAttribute(n(D))===N})}function u(N){var D,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=s(N,R);k==null||((D=k.parentNode)===null||D===void 0)||D.removeChild(k)}function h(N,D){var R=i.get(N);if(!R||!Object(c.a)(document,R)){var k=a("",D),M=k.parentNode;i.set(N,M),M.removeChild(k)}}function p(N,D){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=e(R);h(k,R);var M=s(D,R);if(M){var j,F;if(((j=R.csp)===null||j===void 0?void 0:j.nonce)&&M.nonce!==((F=R.csp)===null||F===void 0?void 0:F.nonce)){var U;M.nonce=(U=R.csp)===null||U===void 0?void 0:U.nonce}return M.innerHTML!==N&&(M.innerHTML=N),M}var K=a(N,R);return K.setAttribute(n(R),D),K}var g=d("Pw59");function v(N,D){Object(m.a)(N,"[@ant-design/icons] ".concat(D))}function y(N){return Object(E.a)(N)==="object"&&typeof N.name=="string"&&typeof N.theme=="string"&&(Object(E.a)(N.icon)==="object"||typeof N.icon=="function")}function x(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(N).reduce(function(D,R){var k=N[R];switch(R){case"class":D.className=k,delete D.class;break;default:D[R]=k}return D},{})}function T(N,D,R){return R?w.a.createElement(N.tag,Object(_.a)(Object(_.a)({key:D},x(N.attrs)),R),(N.children||[]).map(function(k,M){return T(k,"".concat(D,"-").concat(N.tag,"-").concat(M))})):w.a.createElement(N.tag,Object(_.a)({key:D},x(N.attrs)),(N.children||[]).map(function(k,M){return T(k,"".concat(D,"-").concat(N.tag,"-").concat(M))}))}function S(N){return Object(C.generate)(N)[0]}function b(N){return N?Array.isArray(N)?N:[N]:[]}var O={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},I=`
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
`,L=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I,R=Object(A.useContext)(g.a),k=R.csp;Object(A.useEffect)(function(){p(D,"@ant-design-icons",{prepend:!0,csp:k})},[])}},Qs3X:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("X+im"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},Qs9O:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},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 _=d;H.exports=_},Qvb6:function(H,B,d){var _=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"),l=d("/y7N"),t=d("4NO4"),a=t.getTooltipRenderMode,s=E.bind,u=E.each,h=f.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),g=_.extendComponentView({type:"tooltip",init:function(O,I){if(C.node)return;var L=O.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(O,I,L){if(C.node)return;this.group.removeAll(),this._tooltipModel=O,this._ecModel=I,this._api=L,this._lastDataByCoordSys=null,this._alwaysShowContent=O.get("alwaysShowContent");var N=this._tooltipContent;N.update(),N.setEnterable(O.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var O=this._tooltipModel,I=O.get("triggerOn");n.register("itemTooltip",this._api,s(function(L,N,D){I!=="none"&&(I.indexOf(L)>=0?this._tryShow(N,D):L==="leave"&&this._hide(D))},this))},_keepShow:function(){var O=this._tooltipModel,I=this._ecModel,L=this._api;if(this._lastX!=null&&this._lastY!=null&&O.get("triggerOn")!=="none"){var N=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!L.isDisposed()&&N.manuallyShowTip(O,I,L,{x:N._lastX,y:N._lastY})})}},manuallyShowTip:function(O,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 k=p;k.position=[N.x,N.y],k.update(),k.tooltip=N.tooltip,this._tryShow({offsetX:N.x,offsetY:N.y,target:k},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(O,I,L,N))return;var M=o(N,I),j=M.point[0],F=M.point[1];j!=null&&F!=null&&this._tryShow({offsetX:j,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(O,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(O,I,L,N){var D=N.seriesIndex,R=N.dataIndex,k=I.getComponent("axisPointer").coordSysAxesInfo;if(D==null||R==null||k==null)return;var M=I.getSeriesByIndex(D);if(!M)return;var j=M.getData(),O=v([j.getItemModel(R),M,(M.coordinateSystem||{}).model,O]);return O.get("trigger")!=="axis"?void 0:(L.dispatchAction({type:"updateAxisPointer",seriesIndex:D,dataIndex:R,position:N.position}),!0)},_tryShow:function(O,I){var L=O.target,N=this._tooltipModel;if(!N)return;this._lastX=O.offsetX,this._lastY=O.offsetY;var D=O.dataByCoordSys;D&&D.length?this._showAxisTooltip(D,O):L&&L.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(O,L,I)):L&&L.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(O,L,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(O,I){var L=O.get("showDelay");I=E.bind(I,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(I,L):I()},_showAxisTooltip:function(O,I){var L=this._ecModel,N=this._tooltipModel,D=[I.offsetX,I.offsetY],R=[],k=[],M=v([I.tooltipOption,N]),j=this._renderMode,F=this._newLine,U={};u(O,function(V){u(V.dataByAxis,function(z){var Q=L.getComponent(z.axisDim+"Axis",z.axisIndex),Z=z.value,le=[];if(!Q||Z==null)return;var ne=l.getValueLabel(Z,Q.axis,L,z.seriesDataIndices,z.valueLabelOpt);E.each(z.seriesDataIndices,function(xe){var _e=L.getSeriesByIndex(xe.seriesIndex),Be=xe.dataIndexInside,me=_e&&_e.getDataParams(Be);if(me.axisDim=z.axisDim,me.axisIndex=z.axisIndex,me.axisType=z.axisType,me.axisId=z.axisId,me.axisValue=e.getAxisRawValue(Q.axis,Z),me.axisValueLabel=ne,me){k.push(me);var Fe=_e.formatTooltip(Be,!0,null,j),ie;if(E.isObject(Fe)){ie=Fe.html;var te=Fe.markers;E.merge(U,te)}else ie=Fe;le.push(ie)}});var ve=ne;j!=="html"?R.push(le.join(F)):R.push((ve?m.encodeHTML(ve)+F:"")+le.join(F))})},this),R.reverse(),R=R.join(this._newLine+this._newLine);var K=I.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(O)?this._updatePosition(M,K,D[0],D[1],this._tooltipContent,k):this._showTooltipContent(M,R,k,Math.random(),D[0],D[1],K,void 0,U)})},_showSeriesItemTooltip:function(O,I,L){var N=this._ecModel,D=I.seriesIndex,R=N.getSeriesByIndex(D),k=I.dataModel||R,M=I.dataIndex,j=I.dataType,F=k.getData(j),U=v([F.getItemModel(M),k,R&&(R.coordinateSystem||{}).model,this._tooltipModel]),K=U.get("trigger");if(K!=null&&K!=="item")return;var V=k.getDataParams(M,j),z=k.formatTooltip(M,!1,j,this._renderMode),Q,Z;E.isObject(z)?(Q=z.html,Z=z.markers):(Q=z,Z=null);var le="item_"+k.name+"_"+M;this._showOrMove(U,function(){this._showTooltipContent(U,Q,V,le,O.offsetX,O.offsetY,O.position,O.target,Z)}),L({type:"showTip",dataIndexInside:M,dataIndex:F.getRawIndex(M),seriesIndex:D,from:this.uid})},_showComponentItemTooltip:function(O,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),k=R.get("content"),M=Math.random();this._showOrMove(R,function(){this._showTooltipContent(R,k,R.get("formatterParams")||{},M,O.offsetX,O.offsetY,O.position,I)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(O,I,L,N,D,R,k,M,j){if(this._ticket="",!O.get("showContent")||!O.get("show"))return;var F=this._tooltipContent,U=O.get("formatter");k=k||O.get("position");var K=I;if(U&&typeof U=="string")K=m.formatTpl(U,L,!0);else if(typeof U=="function"){var V=s(function(z,Q){z===this._ticket&&(F.setContent(Q,j,O),this._updatePosition(O,k,D,R,F,L,M))},this);this._ticket=N,K=U(L,N,V)}F.setContent(K,j,O),F.show(O),this._updatePosition(O,k,D,R,F,L,M)},_updatePosition:function(O,I,L,N,D,R,k){var M=this._api.getWidth(),j=this._api.getHeight();I=I||O.get("position");var F=D.getSize(),U=O.get("align"),K=O.get("verticalAlign"),V=k&&k.getBoundingRect().clone();if(k&&V.applyTransform(k.transform),typeof I=="function"&&(I=I([L,N],R,D.el,V,{viewSize:[M,j],contentSize:F.slice()})),E.isArray(I))L=h(I[0],M),N=h(I[1],j);else if(E.isObject(I)){I.width=F[0],I.height=F[1];var z=r.getLayoutRect(I,{width:M,height:j});L=z.x,N=z.y,U=null,K=null}else if(typeof I=="string"&&k){var Q=S(I,V,F);L=Q[0],N=Q[1]}else{var Q=x(L,N,D,M,j,U?null:20,K?null:20);L=Q[0],N=Q[1]}if(U&&(L-=b(U)?F[0]/2:U==="right"?F[0]:0),K&&(N-=b(K)?F[1]/2:K==="bottom"?F[1]:0),O.get("confine")){var Q=T(L,N,D,M,j);L=Q[0],N=Q[1]}D.moveTo(L,N)},_updateContentNotChangedOnAxis:function(O){var I=this._lastDataByCoordSys,L=!!I&&I.length===O.length;return L&&u(I,function(N,D){var R=N.dataByAxis||{},k=O[D]||{},M=k.dataByAxis||[];L&=R.length===M.length,L&&u(R,function(j,F){var U=M[F]||{},K=j.seriesDataIndices||[],V=U.seriesDataIndices||[];L&=j.value===U.value&&j.axisType===U.axisType&&j.axisId===U.axisId&&K.length===V.length,L&&u(K,function(z,Q){var Z=V[Q];L&=z.seriesIndex===Z.seriesIndex&&z.dataIndex===Z.dataIndex})})}),this._lastDataByCoordSys=O,!!L},_hide:function(O){this._lastDataByCoordSys=null,O({type:"hideTip",from:this.uid})},dispose:function(O,I){if(C.node)return;this._tooltipContent.dispose(),n.unregister("itemTooltip",I)}});function v(O){for(var I=O.pop();O.length;){var L=O.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(O,I){return O.dispatchAction||E.bind(I.dispatchAction,I)}function x(O,I,L,N,D,R,k){var M=L.getOuterSize(),j=M.width,F=M.height;return R!=null&&(O+j+R>N?O-=j+R:O+=R),k!=null&&(I+F+k>D?I-=F+k:I+=k),[O,I]}function T(O,I,L,N,D){var R=L.getOuterSize(),k=R.width,M=R.height;return O=Math.min(O+k,N)-k,I=Math.min(I+M,D)-M,O=Math.max(O,0),I=Math.max(I,0),[O,I]}function S(O,I,L){var N=L[0],D=L[1],R=5,k=0,M=0,j=I.width,F=I.height;switch(O){case"inside":k=I.x+j/2-N/2,M=I.y+F/2-D/2;break;case"top":k=I.x+j/2-N/2,M=I.y-D-R;break;case"bottom":k=I.x+j/2-N/2,M=I.y+F+R;break;case"left":k=I.x-N-R,M=I.y+F/2-D/2;break;case"right":k=I.x+j+R,M=I.y+F/2-D/2}return[k,M]}function b(O){return O==="center"||O==="middle"}H.exports=g},Qxkt:function(H,B,d){var _=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=_.mixin,e=A();function l(u,h,p){this.parentModel=h,this.ecModel=p,this.option=u}l.prototype={constructor:l,init:null,mergeOption:function(u){_.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 l(p,h,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var u=this.constructor;return new u(_.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(l),f(l),n(l,c),n(l,o),n(l,r),n(l,i);var s=l;H.exports=s},QyFq:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},QzjZ:function(H,B,d){var _=d("S/Yl"),E=d("IDmD");function C(A,w){var m=[];return A.eachComponent("singleAxis",function(f,c){var o=new _(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:_.prototype.dimensions})},R4Th:function(H,B,d){var _=d("ProS"),E=d("9wZj"),C=d("yO87"),A=d("Fofx"),w=d("h8O9"),m=_.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 _=d("cIOH"),E=d.n(_),C=d("pwpV"),A=d.n(C)},RBEP:function(H,B,d){for(var _=d("ProS"),E=d("VaxA"),C=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],w=0;w<A.length;w++)_.registerAction({type:A[w],update:"updateView"},C);_.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 _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="ExclamationCircleOutlined";var f=B.a=E.forwardRef(m)},RDYZ:function(H,B,d){var _=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"?_[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 _=d("MFOe"),E=_.Global;H.exports={name:"oldIE-userDataStorage",write:f,read:c,each:o,remove:r,clearAll:i};var C="storejs",A=E.document,w=l(),m=(E.navigator?E.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(t,a){if(m)return;var s=e(t);w(function(u){u.setAttribute(s,a),u.save(C)})}function c(t){if(m)return;var a=e(t),s=null;return w(function(u){s=u.getAttribute(a)}),s}function o(t){w(function(a){for(var s=a.XMLDocument.documentElement.attributes,u=s.length-1;u>=0;u--){var h=s[u];t(a.getAttribute(h.name),h.name)}})}function r(t){var a=e(t);w(function(s){s.removeAttribute(a),s.save(C)})}function i(){w(function(t){var a=t.XMLDocument.documentElement.attributes;t.load(C);for(var s=a.length-1;s>=0;s--)t.removeAttribute(a[s].name);t.save(C)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(t){return t.replace(/^\d/,"___$&").replace(n,"___")}function l(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var t="script",a,s,u;try{s=new ActiveXObject("htmlfile"),s.open(),s.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),s.close(),a=s.w.frames[0].document,u=a.createElement("div")}catch(h){u=A.createElement("div"),a=A.body}return function(h){var p=[].slice.call(arguments,0);p.unshift(u),a.appendChild(u),u.addBehavior("#default#userData"),u.load(C),h.apply(this,p),a.removeChild(u);return}}},RPvy:function(H,B,d){var _=d("ProS"),E=d("VaxA"),C="sunburstRootToNode";_.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";_.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";_.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 _=d("IwbS"),E=d("bYtY");function C(m,f,c){_.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 _.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)}};_.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,_.setHoverStyle(this)},A.updateLayout=function(m,f){var c=this.childAt(0);c.setShape("points",m.getItemLayout(f))},E.inherits(C,_.Group);var w=C;H.exports=w},RXMa:function(H,B,d){var _=d("y+Vt"),E=_.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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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 l=r.isSelected(e);f.hasOwnProperty(e)?f[e]=f[e]&&l:f[e]=l})}),A==="allSelect"||A==="inverseSelect"?{selected:f}:{name:w.name,selected:f}}_.registerAction("legendToggleSelect","legendselectchanged",E.curry(C,"toggleSelected")),_.registerAction("legendAllSelect","legendselectall",E.curry(C,"allSelect")),_.registerAction("legendInverseSelect","legendinverseselect",E.curry(C,"inverseSelect")),_.registerAction("legendSelect","legendselected",E.curry(C,"select")),_.registerAction("legendUnSelect","legendunselected",E.curry(C,"unSelect"))},RotF:function(H,B,d){H.exports=d("LSTS")},Rx6q:function(H,B){function d(_){var E=_.getRect(),C=_.getRangeInfo();return{coordSys:{type:"calendar",x:E.x,y:E.y,width:E.width,height:E.height,cellWidth:_.getCellWidth(),cellHeight:_.getCellHeight(),rangeInfo:{start:C.start,end:C.end,weeks:C.weeks,dayCount:C.allDay}},api:{coord:function(A,w){return _.dataToPoint(A,w)}}}}H.exports=d},"S/Yl":function(H,B,d){var _=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 _(n,E.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),l=e.type==="category";e.onBand=l&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,r){o.eachSeries(function(i){if(i.coordinateSystem===this){var n=i.getData();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(l){return l+r}:function(l){return n-l+r},o.toLocalCoord=e?function(l){return l-r}:function(l){return n-l+r}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(o){var r=this.getRect(),i=this.getAxis(),n=i.orient;return n==="horizontal"?i.contain(i.toLocalCoord(o[0]))&&o[1]>=r.y&&o[1]<=r.y+r.height:i.contain(i.toLocalCoord(o[1]))&&o[0]>=r.y&&o[0]<=r.y+r.height},pointToData:function(o){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(o[r.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var r=this.getAxis(),i=this.getRect(),n=[],e=r.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),n[e]=r.toGlobalCoord(r.dataToCoord(+o)),n[1-e]=e===0?i.y+i.height/2:i.x+i.width/2,n}};var c=f;H.exports=c},S6kV:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.mode.OFB=function(){var E=_.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}(),_.mode.OFB})},"SA+Z":function(H,B,d){var _=d("wTVA"),E=d("EbDI"),C=d("ZhPi"),A=d("wkBT");function w(m){return _(m)||E(m)||C(m)||A()}H.exports=w,H.exports.__esModule=!0,H.exports.default=H.exports},"SA4+":function(H,B,d){var _=d("Tghj"),E=_.__DEV__,C=d("ProS"),A=d("IwbS"),w=d("zYTA"),m=d("bYtY");function f(i,n,e){var l=i[1]-i[0];n=m.map(n,function(s){return{interval:[(s.interval[0]-i[0])/l,(s.interval[1]-i[0])/l]}});var t=n.length,a=0;return function(s){for(var u=a;u<t;u++){var h=n[u].interval;if(h[0]<=s&&s<=h[1]){a=u;break}}if(u===t)for(var u=a-1;u>=0;u--){var h=n[u].interval;if(h[0]<=s&&s<=h[1]){a=u;break}}return u>=0&&u<t&&e[u]}}function c(i,n){var e=i[1]-i[0];return n=[(n[0]-i[0])/e,(n[1]-i[0])/e],function(l){return l>=n[0]&&l<=n[1]}}function o(i){var n=i.dimensions;return n[0]==="lng"&&n[1]==="lat"}var r=C.extendChartView({type:"heatmap",render:function(i,n,e){var l;n.eachComponent("visualMap",function(a){a.eachTargetSeries(function(s){s===i&&(l=a)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=i.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(i,e,0,i.getData().count()):o(t)&&this._renderOnGeo(t,i,l,e)},incrementalPrepareRender:function(i,n,e){this.group.removeAll()},incrementalRender:function(i,n,e,l){var t=n.coordinateSystem;t&&this._renderOnCartesianAndCalendar(n,l,i.start,i.end,!0)},_renderOnCartesianAndCalendar:function(i,n,e,l,t){var a=i.coordinateSystem,s,u;if(a.type==="cartesian2d"){var h=a.getAxis("x"),p=a.getAxis("y");s=h.getBandWidth(),u=p.getBandWidth()}for(var g=this.group,v=i.getData(),y="itemStyle",x="emphasis.itemStyle",T="label",S="emphasis.label",b=i.getModel(y).getItemStyle(["color"]),O=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<l;R++){var k;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)]);k=new A.Rect({shape:{x:Math.floor(Math.round(M[0])-s/2),y:Math.floor(Math.round(M[1])-u/2),width:Math.ceil(s),height:Math.ceil(u)},style:{fill:v.getItemVisual(R,"color"),opacity:v.getItemVisual(R,"opacity")}})}else{if(isNaN(v.get(D[1],R)))continue;k=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 j=v.getItemModel(R);v.hasItemOption&&(b=j.getModel(y).getItemStyle(["color"]),O=j.getModel(x).getItemStyle(),I=j.getModel(T),L=j.getModel(S));var F=i.getRawValue(R),U="-";F&&F[2]!=null&&(U=F[2]),A.setLabelStyle(b,O,I,L,{labelFetcher:i,labelDataIndex:R,defaultText:U,isRectText:!0}),k.setStyle(b),A.setHoverStyle(k,v.hasItemOption?O:m.extend({},O)),k.incremental=t,t&&(k.useHoverLayer=!0),g.add(k),v.setItemGraphicEl(R,k)}},_renderOnGeo:function(i,n,e,l){var t=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,s=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,l.getWidth()),x=Math.min(h.height+h.y,l.getHeight()),T=y-g,S=x-v,b=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],O=s.mapArray(b,function(D,R,k){var M=i.dataToPoint([D,R]);return M[0]-=g,M[1]-=v,M.push(k),M}),I=e.getExtent(),L=e.type==="visualMap.continuous"?c(I,e.option.range):f(I,e.getPieceList(),e.option.selected);u.update(O,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 _=d("Sj9i"),E=d("QBsz"),C=d("U/Mo"),A=C.getSymbolSize,w=[],m=[],f=[],c=_.quadraticAt,o=E.distSquare,r=Math.abs;function i(e,l,t){for(var a=e[0],s=e[1],u=e[2],h=Infinity,p,g=t*t,v=.1,y=.1;y<=.9;y+=.1){w[0]=c(a[0],s[0],u[0],y),w[1]=c(a[1],s[1],u[1],y);var x=r(o(w,l)-g);x<h&&(h=x,p=y)}for(var T=0;T<32;T++){var S=p+v;m[0]=c(a[0],s[0],u[0],p),m[1]=c(a[1],s[1],u[1],p),f[0]=c(a[0],s[0],u[0],S),f[1]=c(a[1],s[1],u[1],S);var x=o(m,l)-g;if(r(x)<.01)break;var b=o(f,l)-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,l){var t=[],a=_.quadraticSubdivide,s=[[],[],[]],u=[[],[]],h=[];l/=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(s[0],T[0]),E.copy(s[1],T[2]),E.copy(s[2],T[1]),y&&y!=="none"){var S=A(p.node1),b=i(s,T[0],S*l);a(s[0][0],s[1][0],s[2][0],b,t),s[0][0]=t[3],s[1][0]=t[4],a(s[0][1],s[1][1],s[2][1],b,t),s[0][1]=t[3],s[1][1]=t[4]}if(x&&x!=="none"){var S=A(p.node2),b=i(s,T[1],S*l);a(s[0][0],s[1][0],s[2][0],b,t),s[1][0]=t[1],s[2][0]=t[2],a(s[0][1],s[1][1],s[2][1],b,t),s[1][1]=t[1],s[2][1]=t[2]}E.copy(v[0],s[0]),E.copy(v[1],s[2]),E.copy(v[2],s[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*l)}if(x&&x!=="none"){var S=A(p.node2);E.scaleAndAdd(u[1],u[1],h,-S*l)}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,_,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"],l=[i,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],t="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",a=[i,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",u=[o,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],h=[o,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],p=[o,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],g=[n,l,e,a,s,u,h,p],v=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,y="str",x="kwd",T="com",S="typ",b="lit",O="pun",I="pln",L="tag",N="dec",D="src",R="atn",k="atv",M="nocode",j="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(oe){for(var Y=0,G=!1,X=!1,fe=0,de=oe.length;fe<de;++fe){var Ce=oe[fe];if(Ce.ignoreCase)X=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){G=!0,X=!1;break}}var Me={b:8,t:9,n:10,v:11,f:12,r:13};function ue(qe){var Re=qe.charCodeAt(0);if(Re!==92)return Re;var Lt=qe.charAt(1);return Re=Me[Lt],Re||("0"<=Lt&&Lt<="7"?parseInt(qe.substring(1),8):Lt==="u"||Lt==="x"?parseInt(qe.substring(2),16):qe.charCodeAt(1))}function Ae(qe){if(qe<32)return(qe<16?"\\x0":"\\x")+qe.toString(16);var Re=String.fromCharCode(qe);return Re==="\\"||Re==="-"||Re==="]"||Re==="^"?"\\"+Re:Re}function Te(qe){var Re=qe.substring(1,qe.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")),Lt=[],$e=Re[0]==="^",Et=["["];$e&&Et.push("^");for(var Ut=$e?1:0,Bt=Re.length;Ut<Bt;++Ut){var _t=Re[Ut];if(/\\[bdsw]/i.test(_t))Et.push(_t);else{var jt=ue(_t),He;Ut+2<Bt&&Re[Ut+1]==="-"?(He=ue(Re[Ut+2]),Ut+=2):He=jt,Lt.push([jt,He]),He<65||jt>122||(He<65||jt>90||Lt.push([Math.max(65,jt)|32,Math.min(He,90)|32]),He<97||jt>122||Lt.push([Math.max(97,jt)&~32,Math.min(He,122)&~32]))}}Lt.sort(function(Le,ee){return Le[0]-ee[0]||ee[1]-Le[1]});for(var se=[],J=[],Ut=0;Ut<Lt.length;++Ut){var Ue=Lt[Ut];Ue[0]<=J[1]+1?J[1]=Math.max(J[1],Ue[1]):se.push(J=Ue)}for(var Ut=0;Ut<se.length;++Ut){var Ue=se[Ut];Et.push(Ae(Ue[0])),Ue[1]>Ue[0]&&(Ue[1]+1>Ue[0]&&Et.push("-"),Et.push(Ae(Ue[1])))}return Et.push("]"),Et.join("")}function Je(qe){for(var Re=qe.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")),Lt=Re.length,$e=[],Et=0,Ut=0;Et<Lt;++Et){var Bt=Re[Et];if(Bt==="(")++Ut;else if(Bt.charAt(0)==="\\"){var _t=+Bt.substring(1);_t&&(_t<=Ut?$e[_t]=-1:Re[Et]=Ae(_t))}}for(var Et=1;Et<$e.length;++Et)$e[Et]===-1&&($e[Et]=++Y);for(var Et=0,Ut=0;Et<Lt;++Et){var Bt=Re[Et];if(Bt==="(")++Ut,$e[Ut]||(Re[Et]="(?:");else if(Bt.charAt(0)==="\\"){var _t=+Bt.substring(1);_t&&_t<=Ut&&(Re[Et]="\\"+$e[_t])}}for(var Et=0;Et<Lt;++Et)Re[Et]==="^"&&Re[Et+1]!=="^"&&(Re[Et]="");if(qe.ignoreCase&&G)for(var Et=0;Et<Lt;++Et){var Bt=Re[Et],jt=Bt.charAt(0);Bt.length>=2&&jt==="["?Re[Et]=Te(Bt):jt!=="\\"&&(Re[Et]=Bt.replace(/[a-zA-Z]/g,function(J){var Ue=J.charCodeAt(0);return"["+String.fromCharCode(Ue&~32,Ue|32)+"]"}))}return Re.join("")}for(var At=[],fe=0,de=oe.length;fe<de;++fe){var Ce=oe[fe];if(Ce.global||Ce.multiline)throw new Error(""+Ce);At.push("(?:"+Je(Ce)+")")}return new RegExp(At.join("|"),X?"gi":"g")}function U(oe,Y){var G=/(?:^|\s)nocode(?:\s|$)/,X=[],fe=0,de=[],Ce=0;function Me(ue){var Ae=ue.nodeType;if(Ae==1){if(G.test(ue.className))return;for(var Te=ue.firstChild;Te;Te=Te.nextSibling)Me(Te);var Je=ue.nodeName.toLowerCase();(Je==="br"||Je==="li")&&(X[Ce]=`
|
|
|
`,de[Ce<<1]=fe++,de[Ce++<<1|1]=ue)}else if(Ae==3||Ae==4){var At=ue.nodeValue;At.length&&(Y?At=At.replace(/\r\n?/g,`
|
|
|
`):At=At.replace(/[ \t\r\n]+/g," "),X[Ce]=At,de[Ce<<1]=fe,fe+=At.length,de[Ce++<<1|1]=ue)}}return Me(oe),{sourceCode:X.join("").replace(/\n$/,""),spans:de}}function K(oe,Y,G,X,fe){if(!G)return;var de={sourceNode:oe,pre:1,langExtension:null,numberLines:null,sourceCode:G,spans:null,basePos:Y,decorations:null};X(de),fe.push.apply(fe,de.decorations)}var V=/\S/;function z(oe){for(var Y=void 0,G=oe.firstChild;G;G=G.nextSibling){var X=G.nodeType;Y=X===1?Y?oe:G:X===3&&V.test(G.nodeValue)?oe:Y}return Y===oe?void 0:Y}function Q(oe,Y){var G={},X;(function(){for(var Ce=oe.concat(Y),Me=[],ue={},Ae=0,Te=Ce.length;Ae<Te;++Ae){var Je=Ce[Ae],At=Je[3];if(At)for(var qe=At.length;--qe>=0;)G[At.charAt(qe)]=Je;var Re=Je[1],Lt=""+Re;ue.hasOwnProperty(Lt)||(Me.push(Re),ue[Lt]=null)}Me.push(/[\0-\uffff]/),X=F(Me)})();var fe=Y.length,de=function Ce(Me){for(var ue=Me.sourceCode,Ae=Me.basePos,Te=Me.sourceNode,Je=[Ae,I],At=0,qe=ue.match(X)||[],Re={},Lt=0,$e=qe.length;Lt<$e;++Lt){var Et=qe[Lt],Ut=Re[Et],Bt=void 0,_t;if(typeof Ut=="string")_t=!1;else{var jt=G[Et.charAt(0)];if(jt)Bt=Et.match(jt[1]),Ut=jt[0];else{for(var He=0;He<fe;++He)if(jt=Y[He],Bt=Et.match(jt[1]),Bt){Ut=jt[0];break}Bt||(Ut=I)}_t=Ut.length>=5&&Ut.substring(0,5)==="lang-",_t&&!(Bt&&typeof Bt[1]=="string")&&(_t=!1,Ut=D),_t||(Re[Et]=Ut)}var se=At;if(At+=Et.length,!_t)Je.push(Ae+se,Ut);else{var J=Bt[1],Ue=Et.indexOf(J),Le=Ue+J.length;Bt[2]&&(Le=Et.length-Bt[2].length,Ue=Le-J.length);var ee=Ut.substring(5);K(Te,Ae+se,Et.substring(0,Ue),Ce,Je),K(Te,Ae+se+Ue,J,Be(ee,J),Je),K(Te,Ae+se+Le,Et.substring(Le),Ce,Je)}}Me.decorations=Je};return de}function Z(oe){var Y=[],G=[];oe.tripleQuotedStrings?Y.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?Y.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Y.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&G.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var X=oe.hashComments;X&&(oe.cStyleComments?(X>1?Y.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Y.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),G.push([y,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Y.push([T,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(G.push([T,/^\/\/[^\r\n]*/,null]),G.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=oe.regexLiterals;if(fe){var de=fe>1?"":`
|
|
|
\r`,Ce=de?".":"[\\S\\s]",Me="/(?=[^/*"+de+"])(?:[^/\\x5B\\x5C"+de+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+de+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";G.push(["lang-regex",RegExp("^"+j+"("+Me+")")])}var ue=oe.types;ue&&G.push([S,ue]);var Ae=(""+oe.keywords).replace(/^ | $/g,"");Ae.length&&G.push([x,new RegExp("^(?:"+Ae.replace(/[\s,]+/g,"|")+")\\b"),null]),Y.push([I,/^\s+/,null,` \r
|
|
|
\xA0`]);var Te="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(Te+="(?!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],[O,new RegExp(Te),null]),Q(Y,G)}var le=Z({keywords:g,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ne(oe,Y,G){for(var X=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,de=oe.ownerDocument,Ce=de.createElement("li");oe.firstChild;)Ce.appendChild(oe.firstChild);var Me=[Ce];function ue(Re){var Lt=Re.nodeType;if(Lt==1&&!X.test(Re.className))if(Re.nodeName==="br")Ae(Re),Re.parentNode&&Re.parentNode.removeChild(Re);else for(var $e=Re.firstChild;$e;$e=$e.nextSibling)ue($e);else if((Lt==3||Lt==4)&&G){var Et=Re.nodeValue,Ut=Et.match(fe);if(Ut){var Bt=Et.substring(0,Ut.index);Re.nodeValue=Bt;var _t=Et.substring(Ut.index+Ut[0].length);if(_t){var jt=Re.parentNode;jt.insertBefore(de.createTextNode(_t),Re.nextSibling)}Ae(Re),Bt||Re.parentNode.removeChild(Re)}}}function Ae(Re){for(;!Re.nextSibling;)if(Re=Re.parentNode,!Re)return;function Lt(Ut,Bt){var _t=Bt?Ut.cloneNode(!1):Ut,jt=Ut.parentNode;if(jt){var He=Lt(jt,1),se=Ut.nextSibling;He.appendChild(_t);for(var J=se;J;J=se)se=J.nextSibling,He.appendChild(J)}return _t}for(var $e=Lt(Re.nextSibling,0),Et;(Et=$e.parentNode)&&Et.nodeType===1;)$e=Et;Me.push($e)}for(var Te=0;Te<Me.length;++Te)ue(Me[Te]);Y===(Y|0)&&Me[0].setAttribute("value",Y);var Je=de.createElement("ol");Je.className="linenums";for(var At=Math.max(0,Y-1|0)||0,Te=0,qe=Me.length;Te<qe;++Te)Ce=Me[Te],Ce.className="L"+(Te+At)%10,Ce.firstChild||Ce.appendChild(de.createTextNode("\xA0")),Je.appendChild(Ce);oe.appendChild(Je)}function ve(oe){var Y=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Y=Y&&+Y[1]<=8;var G=/\n/g,X=oe.sourceCode,fe=X.length,de=0,Ce=oe.spans,Me=Ce.length,ue=0,Ae=oe.decorations,Te=Ae.length,Je=0;Ae[Te]=fe;var At,qe;for(qe=At=0;qe<Te;)Ae[qe]!==Ae[qe+2]?(Ae[At++]=Ae[qe++],Ae[At++]=Ae[qe++]):qe+=2;for(Te=At,qe=At=0;qe<Te;){for(var Re=Ae[qe],Lt=Ae[qe+1],$e=qe+2;$e+2<=Te&&Ae[$e+1]===Lt;)$e+=2;Ae[At++]=Re,Ae[At++]=Lt,qe=$e}Te=Ae.length=At;var Et=oe.sourceNode,Ut="";Et&&(Ut=Et.style.display,Et.style.display="none");try{for(var Bt=null;ue<Me;){var _t=Ce[ue],jt=Ce[ue+2]||fe,He=Ae[Je+2]||fe,$e=Math.min(jt,He),se=Ce[ue+1],J;if(se.nodeType!==1&&(J=X.substring(de,$e))){Y&&(J=J.replace(G,"\r")),se.nodeValue=J;var Ue=se.ownerDocument,Le=Ue.createElement("span");Le.className=Ae[Je+1];var ee=se.parentNode;ee.replaceChild(Le,se),Le.appendChild(se),de<jt&&(Ce[ue+1]=se=Ue.createTextNode(X.substring($e,jt)),ee.insertBefore(se,Le.nextSibling))}de=$e,de>=jt&&(ue+=2),de>=He&&(Je+=2)}}finally{Et&&(Et.style.display=Ut)}}var xe={};function _e(oe,Y){for(var G=Y.length;--G>=0;){var X=Y[G];xe.hasOwnProperty(X)?c.console&&console.warn("cannot override language handler %s",X):xe[X]=oe}}function Be(oe,Y){return oe&&xe.hasOwnProperty(oe)||(oe=/^\s*</.test(Y)?"default-markup":"default-code"),xe[oe]}_e(le,["default-code"]),_e(Q([],[[I,/^[^<?]+/],[N,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[O,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),_e(Q([[I,/^[\s]+/,null,` \r
|
|
|
`],[k,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[L,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[O,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),_e(Q([],[[k,/^[\s\S]+/]]),["uq.val"]),_e(Z({keywords:n,hashComments:!0,cStyleComments:!0,types:v}),["c","cc","cpp","cxx","cyc","m"]),_e(Z({keywords:"null,true,false"}),["json"]),_e(Z({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:v}),["cs"]),_e(Z({keywords:e,cStyleComments:!0}),["java"]),_e(Z({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),_e(Z({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),_e(Z({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),_e(Z({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),_e(Z({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),_e(Z({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),_e(Q([],[[y,/^[\s\S]+/]]),["regex"]);function me(oe){var Y=oe.langExtension;try{var G=U(oe.sourceNode,oe.pre),X=G.sourceCode;oe.sourceCode=X,oe.spans=G.spans,oe.basePos=0,Be(Y,X)(oe),ve(oe)}catch(fe){c.console&&console.log(fe&&fe.stack||fe)}}function Fe(oe,Y,G){var X=G||!1,fe=Y||null,de=document.createElement("div");de.innerHTML="<pre>"+oe+"</pre>",de=de.firstChild,X&&ne(de,X,!0);var Ce={langExtension:fe,numberLines:X,sourceNode:de,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return me(Ce),de.innerHTML}function ie(oe,Y){var G=Y||document.body,X=G.ownerDocument||document;function fe(_t){return G.getElementsByTagName(_t)}for(var de=[fe("pre"),fe("code"),fe("xmp")],Ce=[],Me=0;Me<de.length;++Me)for(var ue=0,Ae=de[Me].length;ue<Ae;++ue)Ce.push(de[Me][ue]);de=null;var Te=Date;Te.now||(Te={now:function(){return+new Date}});var Je=0,At=/\blang(?:uage)?-([\w.]+)(?!\S)/,qe=/\bprettyprint\b/,Re=/\bprettyprinted\b/,Lt=/pre|xmp/i,$e=/^code$/i,Et=/^(?:pre|code|xmp)$/i,Ut={};function Bt(){for(var _t=c.PR_SHOULD_USE_CONTINUATION?Te.now()+250:Infinity;Je<Ce.length&&Te.now()<_t;Je++){for(var jt=Ce[Je],He=Ut,se=jt;se=se.previousSibling;){var J=se.nodeType,Ue=(J===7||J===8)&&se.nodeValue;if(Ue?!/^\??prettify\b/.test(Ue):J!==3||/\S/.test(se.nodeValue))break;if(Ue){He={},Ue.replace(/\b(\w+)=([\w:.%+-]+)/g,function(lt,Hr,dn){He[Hr]=dn});break}}var Le=jt.className;if((He!==Ut||qe.test(Le))&&!Re.test(Le)){for(var ee=!1,ct=jt.parentNode;ct;ct=ct.parentNode){var Mt=ct.tagName;if(Et.test(Mt)&&ct.className&&qe.test(ct.className)){ee=!0;break}}if(!ee){jt.className+=" prettyprinted";var ot=He.lang;if(!ot){ot=Le.match(At);var Yt;!ot&&(Yt=z(jt))&&$e.test(Yt.tagName)&&(ot=Yt.className.match(At)),ot&&(ot=ot[1])}var or;if(Lt.test(jt.tagName))or=1;else{var Zr=jt.currentStyle,ir=X.defaultView,dr=Zr?Zr.whiteSpace:ir&&ir.getComputedStyle?ir.getComputedStyle(jt,null).getPropertyValue("white-space"):0;or=dr&&dr.substring(0,3)==="pre"}var qt=He.linenums;(qt=qt==="true"||+qt)||(qt=Le.match(/\blinenums\b(?::(\d+))?/),qt=qt?qt[1]&&qt[1].length?+qt[1]:!0:!1),qt&&ne(jt,qt,or);var Ht={langExtension:ot,sourceNode:jt,numberLines:qt,pre:or,sourceCode:null,basePos:null,spans:null,decorations:null};me(Ht)}}}Je<Ce.length?c.setTimeout(Bt,250):typeof oe=="function"&&oe()}Bt()}var te=c.PR={createSimpleLexer:Q,registerLangHandler:_e,sourceDecorator:Z,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:k,PR_COMMENT:T,PR_DECLARATION:N,PR_KEYWORD:x,PR_LITERAL:b,PR_NOCODE:M,PR_PLAIN:I,PR_PUNCTUATION:O,PR_SOURCE:D,PR_STRING:y,PR_TAG:L,PR_TYPE:S,prettyPrintOne:C?c.prettyPrintOne=Fe:m=Fe,prettyPrint:f=C?c.prettyPrint=ie:f=ie},Ge=c.define;typeof Ge=="function"&&Ge.amd&&Ge("google-code-prettify",[],function(){return te})})()},SKnc:function(H,B,d){var _=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},_.inherits(C,E);var A=C;H.exports=A},"SKx+":function(H,B,d){var _=d("ProS"),E=_.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 _=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")}_.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 _={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=_},SUKs:function(H,B,d){var _=d("LPTA"),E=_.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=_;function _(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 _=d("pVnL"),E=d.n(_),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,O=b===void 0?"rc-switch":b,I=x.className,L=x.checked,N=x.defaultChecked,D=x.disabled,R=x.loadingIcon,k=x.checkedChildren,M=x.unCheckedChildren,j=x.onClick,F=x.onChange,U=x.onKeyDown,K=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),Q=z[0],Z=z[1];function le(_e,Be){var me=Q;return D||(me=_e,Z(me),F==null||F(me,Be)),me}function ne(_e){_e.which===n.a.LEFT?le(!1,_e):_e.which===n.a.RIGHT&&le(!0,_e),U==null||U(_e)}function ve(_e){var Be=le(!Q,_e);j==null||j(Be,_e)}var xe=r()(O,I,(S={},Object(m.a)(S,"".concat(O,"-checked"),Q),Object(m.a)(S,"".concat(O,"-disabled"),D),S));return w.createElement("button",Object.assign({},K,{type:"button",role:"switch","aria-checked":Q,disabled:D,className:xe,ref:T,onKeyDown:ne,onClick:ve}),R,w.createElement("span",{className:"".concat(O,"-inner")},Q?k:M))});e.displayName="Switch";var l=e,t=d("gZBC"),a=d.n(t),s=d("g0mS"),u=d("H84U"),h=d("3Nzz"),p=d("uaoM"),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 O=0,b=Object.getOwnPropertySymbols(x);O<b.length;O++)T.indexOf(b[O])<0&&Object.prototype.propertyIsEnumerable.call(x,b[O])&&(S[b[O]]=x[b[O]]);return S},v=w.forwardRef(function(x,T){var S,b=x.prefixCls,O=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 k=w.useContext(u.b),M=k.getPrefixCls,j=k.direction,F=w.useContext(h.b),U=M("switch",b),K=w.createElement("div",{className:"".concat(U,"-handle")},I&&w.createElement(a.a,{className:"".concat(U,"-loading-icon")})),V=r()(N,(S={},A()(S,"".concat(U,"-small"),(O||F)==="small"),A()(S,"".concat(U,"-loading"),I),A()(S,"".concat(U,"-rtl"),j==="rtl"),S));return w.createElement(s.a,{insertExtraNode:!0},w.createElement(l,E()({},R,{prefixCls:U,className:V,disabled:D||I,ref:T,loadingIcon:K})))});v.__ANT_SWITCH=!0,v.displayName="Switch";var y=B.a=v},SehX:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("2B6p"),A=C.updateCenterAndZoom;_.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 _=d("bYtY"),E=d("H6uX"),C=d("YH21"),A=d("pP6R");function w(t){this.pointerChecker,this._zr=t,this._opt={};var a=_.bind,s=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=_.defaults(_.clone(y)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),v==null&&(v=!0),(v===!0||v==="move"||v==="pan")&&(t.on("mousedown",s),t.on("mousemove",u),t.on("mouseup",h)),(v===!0||v==="scale"||v==="zoom")&&(t.on("mousewheel",p),t.on("pinch",g))},this.disable=function(){t.off("mousedown",s),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}}_.mixin(w,E);function m(t){if(C.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)return;var a=t.offsetX,s=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,s)&&(this._x=a,this._y=s,this._dragging=!0)}function f(t){if(!this._dragging||!e("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var a=t.offsetX,s=t.offsetY,u=this._x,h=this._y,p=a-u,g=s-h;this._x=a,this._y=s,this._opt.preventDefaultMouseMove&&C.stop(t.event),n(this,"pan","moveOnMouseMove",t,{dx:p,dy:g,oldX:u,oldY:h,newX:a,newY:s})}function c(t){C.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function o(t){var a=e("zoomOnMouseWheel",t,this._opt),s=e("moveOnMouseWheel",t,this._opt),u=t.wheelDelta,h=Math.abs(u),p=t.offsetX,g=t.offsetY;if(u===0||!a&&!s)return;if(a){var v=h>3?1.4:h>1?1.2:1.1,y=u>0?v:1/v;i(this,"zoom","zoomOnMouseWheel",t,{scale:y,originX:p,originY:g})}if(s){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,s,u,h){t.pointerChecker&&t.pointerChecker(u,h.originX,h.originY)&&(C.stop(u.event),n(t,a,s,u,h))}function n(t,a,s,u,h){h.isAvailableBehavior=_.bind(e,null,s,u),t.trigger(a,h)}function e(t,a,s){var u=s[t];return!t||u&&(!_.isString(u)||a.event[u+"Key"])}var l=w;H.exports=l},SgaC:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function _(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(){_(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 l=i.rQshiftBytes(4);n.fillRect(f,c,o,r,l)}for(;this._subrects>0;){if(i.rQwait("RRE",4+8))return!1;var t=i.rQshiftBytes(4),a=i.rQshift16(),s=i.rQshift16(),u=i.rQshift16(),h=i.rQshift16();n.fillRect(f+a,c+s,u,h,t),this._subrects--}return!0}}]),w}();B.default=A},Sj0X:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("QBsz"),E=_.create,C=_.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 l(b){return b>m||b<-m}function t(b,O,I,L,N){var D=1-N;return D*D*(D*b+3*N*O)+N*N*(N*L+3*D*I)}function a(b,O,I,L,N){var D=1-N;return 3*(((O-b)*D+2*(I-O)*N)*D+(L-I)*N*N)}function s(b,O,I,L,N,D){var R=L+3*(O-I)-b,k=3*(I-O*2+b),M=3*(O-b),j=b-N,F=k*k-3*R*M,U=k*M-9*R*j,K=M*M-3*k*j,V=0;if(e(F)&&e(U))if(e(k))D[0]=0;else{var z=-M/k;z>=0&&z<=1&&(D[V++]=z)}else{var Q=U*U-4*F*K;if(e(Q)){var Z=U/F,z=-k/R+Z,le=-Z/2;z>=0&&z<=1&&(D[V++]=z),le>=0&&le<=1&&(D[V++]=le)}else if(Q>0){var ne=w(Q),ve=F*k+1.5*R*(-U+ne),xe=F*k+1.5*R*(-U-ne);ve<0?ve=-A(-ve,o):ve=A(ve,o),xe<0?xe=-A(-xe,o):xe=A(xe,o);var z=(-k-(ve+xe))/(3*R);z>=0&&z<=1&&(D[V++]=z)}else{var _e=(2*F*k-3*R*U)/(2*w(F*F*F)),Be=Math.acos(_e)/3,me=w(F),Fe=Math.cos(Be),z=(-k-2*me*Fe)/(3*R),le=(-k+me*(Fe+c*Math.sin(Be)))/(3*R),ie=(-k+me*(Fe-c*Math.sin(Be)))/(3*R);z>=0&&z<=1&&(D[V++]=z),le>=0&&le<=1&&(D[V++]=le),ie>=0&&ie<=1&&(D[V++]=ie)}}return V}function u(b,O,I,L,N){var D=6*I-12*O+6*b,R=9*O+3*L-3*b-9*I,k=3*O-3*b,M=0;if(e(R)){if(l(D)){var j=-k/D;j>=0&&j<=1&&(N[M++]=j)}}else{var F=D*D-4*R*k;if(e(F))N[0]=-D/(2*R);else if(F>0){var U=w(F),j=(-D+U)/(2*R),K=(-D-U)/(2*R);j>=0&&j<=1&&(N[M++]=j),K>=0&&K<=1&&(N[M++]=K)}}return M}function h(b,O,I,L,N,D){var R=(O-b)*N+b,k=(I-O)*N+O,M=(L-I)*N+I,j=(k-R)*N+R,F=(M-k)*N+k,U=(F-j)*N+j;D[0]=b,D[1]=R,D[2]=j,D[3]=U,D[4]=U,D[5]=F,D[6]=M,D[7]=L}function p(b,O,I,L,N,D,R,k,M,j,F){var U,K=.005,V=Infinity,z,Q,Z,le;r[0]=M,r[1]=j;for(var ne=0;ne<1;ne+=.05)i[0]=t(b,I,N,R,ne),i[1]=t(O,L,D,k,ne),Z=C(r,i),Z<V&&(U=ne,V=Z);V=Infinity;for(var ve=0;ve<32&&!(K<f);ve++)z=U-K,Q=U+K,i[0]=t(b,I,N,R,z),i[1]=t(O,L,D,k,z),Z=C(i,r),z>=0&&Z<V?(U=z,V=Z):(n[0]=t(b,I,N,R,Q),n[1]=t(O,L,D,k,Q),le=C(n,r),Q<=1&&le<V?(U=Q,V=le):K*=.5);return F&&(F[0]=t(b,I,N,R,U),F[1]=t(O,L,D,k,U)),w(V)}function g(b,O,I,L){var N=1-L;return N*(N*b+2*L*O)+L*L*I}function v(b,O,I,L){return 2*((1-L)*(O-b)+L*(I-O))}function y(b,O,I,L,N){var D=b-2*O+I,R=2*(O-b),k=b-L,M=0;if(e(D)){if(l(R)){var j=-k/R;j>=0&&j<=1&&(N[M++]=j)}}else{var F=R*R-4*D*k;if(e(F)){var j=-R/(2*D);j>=0&&j<=1&&(N[M++]=j)}else if(F>0){var U=w(F),j=(-R+U)/(2*D),K=(-R-U)/(2*D);j>=0&&j<=1&&(N[M++]=j),K>=0&&K<=1&&(N[M++]=K)}}return M}function x(b,O,I){var L=b+I-2*O;return L===0?.5:(b-O)/L}function T(b,O,I,L,N){var D=(O-b)*L+b,R=(I-O)*L+O,k=(R-D)*L+D;N[0]=b,N[1]=D,N[2]=k,N[3]=k,N[4]=R,N[5]=I}function S(b,O,I,L,N,D,R,k,M){var j,F=.005,U=Infinity;r[0]=R,r[1]=k;for(var K=0;K<1;K+=.05){i[0]=g(b,I,N,K),i[1]=g(O,L,D,K);var V=C(r,i);V<U&&(j=K,U=V)}U=Infinity;for(var z=0;z<32&&!(F<f);z++){var Q=j-F,Z=j+F;i[0]=g(b,I,N,Q),i[1]=g(O,L,D,Q);var V=C(i,r);if(Q>=0&&V<U)j=Q,U=V;else{n[0]=g(b,I,N,Z),n[1]=g(O,L,D,Z);var le=C(n,r);Z<=1&&le<U?(j=Z,U=le):F*=.5}}return M&&(M[0]=g(b,I,N,j),M[1]=g(O,L,D,j)),w(U)}B.cubicAt=t,B.cubicDerivativeAt=a,B.cubicRootAt=s,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 _=d("3LNs"),E=d("/y7N"),C=d("AVZG"),A=d("Znkb"),w=_.extend({makeElOption:function(r,i,n,e,l){var t=n.axis,a=t.grid,s=e.get("type"),u=m(a,t).getOtherAxis(t).getGlobalExtent(),h=t.toGlobalCoord(t.dataToCoord(i,!0));if(s&&s!=="none"){var p=E.buildElStyle(e),g=f[s](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,l)},getHandleTransform:function(r,i,n){var e=C.layout(i.axis.grid.model,i,{labelInside:!1});return e.labelMargin=n.get("handle.margin"),{position:E.getTransformedPosition(i.axis,r,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,i,n,e){var l=n.axis,t=l.grid,a=l.getGlobalExtent(!0),s=m(t,l).getOtherAxis(l).getGlobalExtent(),u=l.dim==="x"?0:1,h=r.position;h[u]+=i[u],h[u]=Math.min(a[1],h[u]),h[u]=Math.max(a[0],h[u]);var p=(s[1]+s[0])/2,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()),l=n[1]-n[0];return{type:"Rect",shape:E.makeRectShape([i-e/2,n[0]],[e,l],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 _=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?_(r,o):r;var n=_(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 _=d("y+Vt"),E=d("iXp4"),C=_.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:E(_.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,l=Math.cos(i),t=Math.sin(i);w.moveTo(l*o+f,t*o+c),w.lineTo(l*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 _=d("hydK"),E=_.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,s,u,h){this._zrId=t,this._svgRoot=a,this._tagNames=typeof s=="string"?[s]:s,this._markLabel=u,this._domName=h||"_dom",this.nextId=0}e.prototype.createElement=E,e.prototype.getDefs=function(t){var a=this._svgRoot,s=this._svgRoot.getElementsByTagName("defs");return s.length===0?t?(s=a.insertBefore(this.createElement("defs"),a.firstChild),s.contains||(s.contains=function(u){var h=s.children;if(!h)return!1;for(var p=h.length-1;p>=0;--p)if(h[p]===u)return!0;return!1}),s):null:s[0]},e.prototype.update=function(t,a){if(!t)return;var s=this.getDefs(!1);if(t[this._domName]&&s.contains(t[this._domName]))typeof a=="function"&&a(t);else{var u=this.add(t);u&&(t[this._domName]=u)}},e.prototype.addDom=function(t){var a=this.getDefs(!0);a.appendChild(t)},e.prototype.removeDom=function(t){var a=this.getDefs(!1);a&&t[this._domName]&&(a.removeChild(t[this._domName]),t[this._domName]=null)},e.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var a=[];return C.each(this._tagNames,function(s){var u=t.getElementsByTagName(s);a=a.concat([].slice.call(u))}),a},e.prototype.markAllUnused=function(){var t=this.getDoms(),a=this;C.each(t,function(s){s[a._markLabel]=i})},e.prototype.markUsed=function(t){t&&(t[this._markLabel]=n)},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var a=this.getDoms(),s=this;C.each(a,function(u){u[s._markLabel]!==n&&t.removeChild(u)})},e.prototype.getSvgProxy=function(t){return t instanceof A?c:t instanceof w?o:t instanceof m?r:c},e.prototype.getTextSvgElement=function(t){return t.__textSvgEl},e.prototype.getSvgElement=function(t){return t.__svgEl};var l=e;H.exports=l},Swgg:function(H,B,d){var _=d("fc+c"),E=_.extend({type:"dataZoom.select"});H.exports=E},Sxd8:function(H,B,d){var _=d("ZCgT");function E(C){var A=_(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 _=E(d("zdCA"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},T4UG:function(H,B,d){var _=d("Tghj"),E=_.__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"),l=d("+TT/"),t=l.getLayoutParams,a=l.mergeLayoutParam,s=d("9H2F"),u=s.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,j,F,U){this.seriesIndex=this.componentIndex,this.dataTask=u({count:O,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,F),p(this);var K=this.getInitialData(M,F);N(K,this),this.dataTask.context.data=K,x(this).dataBeforeProcessed=K,S(this)},mergeDefaultAndTheme:function(M,j){var F=this.layoutMode,U=F?t(M):{},K=this.subType;i.hasClass(K)&&(K+="Series"),C.merge(M,j.getTheme().get(this.subType)),C.merge(M,this.getDefaultOption()),r.defaultEmphasis(M,"label",["show"]),this.fillDataTextStyle(M.data),F&&a(M,U,F)},mergeOption:function(M,j){M=C.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var F=this.layoutMode;F&&a(this.option,M,F),p(this);var U=this.getInitialData(M,j);N(U,this),this.dataTask.dirty(),this.dataTask.context.data=U,x(this).dataBeforeProcessed=U,S(this)},fillDataTextStyle:function(M){if(M&&!C.isTypedArray(M))for(var j=["show"],F=0;F<M.length;F++)M[F]&&M[F].label&&r.defaultEmphasis(M[F],"label",j)},getInitialData:function(){},appendData:function(M){var j=this.getRawData();j.appendData(M.data)},getData:function(M){var j=R(this);if(j){var F=j.context.data;return M==null?F:F.getLinkedData(M)}else return x(this).data},setData:function(M){var j=R(this);if(j){var F=j.context;F.data!==M&&j.modifyOutputEnd&&j.setOutputEnd(M.count()),F.outputData=M,j!==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,j,F,U){var K=this;U=U||"html";var V=U==="html"?"<br/>":`
|
|
|
`,z=U==="richText",Q={},Z=0;function le(de){var Ce=C.reduce(de,function(Je,At,qe){var Re=ve.getDimensionInfo(qe);return Je|=Re&&Re.tooltip!==!1&&Re.displayName!=null},0),Me=[];xe.length?C.each(xe,function(Je){ue(y(ve,M,Je),Je)}):C.each(de,ue);function ue(Je,At){var qe=ve.getDimensionInfo(At);if(!qe||qe.otherDims.tooltip===!1)return;var Re=qe.type,Lt="sub"+K.seriesIndex+"at"+Z,$e=o({color:Fe,type:"subItem",renderMode:U,markerId:Lt}),Et=typeof $e=="string"?$e:$e.content,Ut=(Ce?Et+f(qe.displayName||"-")+": ":"")+f(Re==="ordinal"?Je+"":Re==="time"?j?"":m("yyyy/MM/dd hh:mm:ss",Je):c(Je));Ut&&Me.push(Ut),z&&(Q[Lt]=Fe,++Z)}var Ae=Ce?z?`
|
|
|
`:"<br/>":"",Te=Ae+Me.join(Ae||", ");return{renderMode:U,content:Te,style:Q}}function ne(de){return{renderMode:U,content:f(c(de)),style:Q}}var ve=this.getData(),xe=ve.mapDimension("defaultedTooltip",!0),_e=xe.length,Be=this.getRawValue(M),me=C.isArray(Be),Fe=ve.getItemVisual(M,"color");C.isObject(Fe)&&Fe.colorStops&&(Fe=(Fe.colorStops[0]||{}).color),Fe=Fe||"transparent";var ie=_e>1||me&&!_e?le(Be):ne(_e?y(ve,M,xe[0]):me?Be[0]:Be),te=ie.content,Ge=K.seriesIndex+"at"+Z,oe=o({color:Fe,type:"item",renderMode:U,markerId:Ge});Q[Ge]=Fe,++Z;var Y=ve.getName(M),G=this.name;r.isNameSpecified(this)||(G=""),G=G?f(G)+(j?": ":V):"";var X=typeof oe=="string"?oe:oe.content,fe=j?X+G+te:G+X+(Y?f(Y)+": "+te:te);return{html:fe,markers:Q}},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,j,F){var U=this.ecModel,K=n.getColorFromPalette.call(this,M,j,F);return K||(K=U.getColorFromPalette(M,j,F)),K},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 j=M.name;r.isNameSpecified(M)||(M.name=b(M)||j)}function b(M){var j=M.getRawData(),F=j.mapDimension("seriesName",!0),U=[];return C.each(F,function(K){var V=j.getDimensionInfo(K);V.displayName&&U.push(V.displayName)}),U.join(" ")}function O(M){return M.model.getRawData().count()}function I(M){var j=M.model;return j.setData(j.getRawData().cloneShallow()),L}function L(M,j){j.outputData&&M.end>j.outputData.count()&&j.model.getRawData().cloneShallow(j.outputData)}function N(M,j){C.each(M.CHANGABLE_METHODS,function(F){M.wrapMethod(F,C.curry(D,j))})}function D(M){var j=R(M);j&&j.setOutputEnd(this.count())}function R(M){var j=(M.ecModel||{}).scheduler,F=j&&j.getPipeline(M.uid);if(F){var U=F.currentTask;if(U){var K=U.agentStubMap;K&&(U=K.get(M.uid))}return U}}var k=T;H.exports=k},T6xi:function(H,B,d){var _=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],l=f[(i+1)%r];A.bezierCurveTo(n[0],n[1],e[0],e[1],l[0],l[1])}}else{c==="spline"&&(f=_(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 _=d("bYtY"),E=_.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,l,t){var a=r(l).parsed;if(a)return a;var s=l.specialAreas||{},u=l.geoJSON,h;try{h=u?C(u,t):[]}catch(p){throw new Error(`Invalid geoJson format
|
|
|
`+p.message)}return m(e,h),E(h,function(p){var g=p.name;f(e,p),c(e,p),o(e,p);var v=s[g];v&&p.transformTo(v.left,v.top,v.width,v.height)}),r(l).parsed={regions:h,boundingRect:n(h)}}};function n(e){for(var l,t=0;t<e.length;t++){var a=e[t].getBoundingRect();l=l||a.clone(),l.union(a)}return l}H.exports=i},TJmX:function(H,B,d){var _=d("zM3Q"),E=["itemStyle","borderColor"],C=["itemStyle","borderColor0"],A=["itemStyle","color"],w=["itemStyle","color0"],m={seriesType:"candlestick",plan:_(),performRawSeries:!0,reset:function(f,c){var o=f.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:n(1,f),colorN:n(-1,f),borderColorP:e(1,f),borderColorN:e(-1,f)}),c.isSeriesFiltered(f))return;var r=f.pipelineContext.large;return!r&&{progress:i};function i(l,t){for(var a;(a=l.next())!=null;){var s=t.getItemModel(a),u=t.getItemLayout(a).sign;t.setItemVisual(a,{color:n(u,s),borderColor:e(u,s)})}}function n(l,t){return t.get(l>0?A:w)}function e(l,t){return t.get(l>0?E:C)}}};H.exports=m},TNol:function(H,B,d){"use strict";d.d(B,"b",function(){return w});var _=d("q1tI"),E=d.n(_),C=d("MNnm"),A=Object(C.a)()?_.useLayoutEffect:_.useEffect;B.a=A;var w=function(f,c){var 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 _=d("IwbS"),E=d("bYtY"),C=d("6Ic6");function A(o,r){_.Group.call(this);var i=new _.Polygon,n=new _.Polyline,e=new _.Text;this.add(i),this.add(n),this.add(e),this.highDownOnUpdate=function(l,t){t==="emphasis"?(n.ignore=n.hoverIgnore,e.ignore=e.hoverIgnore):(n.ignore=n.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,r,!0)}var w=A.prototype,m=["itemStyle","opacity"];w.updateData=function(o,r,i){var n=this.childAt(0),e=o.hostModel,l=o.getItemModel(r),t=o.getItemLayout(r),a=o.getItemModel(r).get(m);a=a==null?1:a,n.useStyle({}),i?(n.setShape({points:t.points}),n.setStyle({opacity:0}),_.initProps(n,{style:{opacity:a}},e,r)):_.updateProps(n,{style:{opacity:a},shape:{points:t.points}},e,r);var s=l.getModel("itemStyle"),u=o.getItemVisual(r,"color");n.setStyle(E.defaults({lineJoin:"round",fill:u},s.getItemStyle(["opacity"]))),n.hoverStyle=s.getModel("emphasis").getItemStyle(),this._updateLabel(o,r),_.setHoverStyle(this)},w._updateLabel=function(o,r){var i=this.childAt(1),n=this.childAt(2),e=o.hostModel,l=o.getItemModel(r),t=o.getItemLayout(r),a=t.label,s=o.getItemVisual(r,"color");_.updateProps(i,{shape:{points:a.linePoints||a.linePoints}},e,r),_.updateProps(n,{style:{x:a.x,y:a.y}},e,r),n.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var u=l.getModel("label"),h=l.getModel("emphasis.label"),p=l.getModel("labelLine"),g=l.getModel("emphasis.labelLine"),s=o.getItemVisual(r,"color");_.setLabelStyle(n.style,n.hoverStyle={},u,h,{labelFetcher:o.hostModel,labelDataIndex:r,defaultText:o.getName(r),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!g.get("show"),i.setStyle({stroke:s}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=g.getModel("lineStyle").getLineStyle()},E.inherits(A,_.Group);var f=C.extend({type:"funnel",render:function(o,r,i){var n=o.getData(),e=this._data,l=this.group;n.diff(e).add(function(t){var a=new A(n,t);n.setItemGraphicEl(t,a),l.add(a)}).update(function(t,a){var s=e.getItemGraphicEl(a);s.updateData(n,t),l.add(s),n.setItemGraphicEl(t,s)}).remove(function(t){var a=e.getItemGraphicEl(t);l.remove(a)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=f;H.exports=c},TYVI:function(H,B,d){var _=d("5GtS"),E=d("T4UG"),C=E.extend({type:"series.gauge",getInitialData:function(w,m){return _(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(_){var E;typeof window!="undefined"?E=window.__DEV__:typeof _!="undefined"&&(E=_.__DEV__),typeof E=="undefined"&&(E=!0);var C=E;B.__DEV__=C}).call(this,d("yLpj"))},ThAp:function(H,B,d){var _=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:_.curry(n,this)}),s=a.mapDimension("value"),u=_.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(s,g),selected:o(a,g,"selected")})}var x=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return _.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(),s=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+" : "+s)},getTooltipPosition:function(t){if(t!=null){var a=this.getData().getName(t),s=this.coordinateSystem,u=s.getRegion(a);return u&&s.dataToPoint(u.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});_.mixin(e,f);var l=e;H.exports=l},TkdX:function(H,B,d){var _=d("bYtY"),E=d("IwbS"),C={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,w=4;function m(e,l,t){E.Group.call(this);var a=new E.Sector({z2:A});a.seriesIndex=l.seriesIndex;var s=new E.Text({z2:w,silent:e.getModel("label").get("silent")});this.add(a),this.add(s),this.updateData(!0,e,"normal",l,t);function u(){s.ignore=s.hoverIgnore}function h(){s.ignore=s.normalIgnore}this.on("emphasis",u).on("normal",h).on("mouseover",u).on("mouseout",h)}var f=m.prototype;f.updateData=function(e,l,t,a,s){this.node=l,l.piece=this,a=a||this._seriesModel,s=s||this._ecModel;var u=this.childAt(0);u.dataIndex=l.dataIndex;var h=l.getModel(),p=l.getLayout(),g=_.extend({},p);g.label=null;var v=o(l,a,s);n(l,a,v);var y=h.getModel("itemStyle").getItemStyle(),x;if(t==="normal")x=y;else{var T=h.getModel(t+".itemStyle").getItemStyle();x=_.merge(T,y)}x=_.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,l.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,l,a,b)}this._seriesModel=a||this._seriesModel,this._ecModel=s||this._ecModel,E.setHoverStyle(this)},f.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(l.node===t?t.piece.updateData(!1,t,"emphasis"):i(t,l.node,e)?t.piece.childAt(0).trigger("highlight"):e!==C.NONE&&t.piece.childAt(0).trigger("downplay"))})},f.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},f.onHighlight=function(){this.updateData(!1,this.node,"highlight")},f.onDownplay=function(){this.updateData(!1,this.node,"downplay")},f._updateLabel=function(e,l,t){var a=this.node.getModel(),s=a.getModel("label"),u=t==="normal"||t==="emphasis"?s:a.getModel(t+".label"),h=a.getModel("emphasis.label"),p=_.retrieve(e.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);j("show")===!1&&(p="");var g=this.node.getLayout(),v=u.get("minAngle");v==null&&(v=s.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||{},s,h,{defaultText:u.getShallow("show")?p:null,autoColor:l,useInsideStyle:!0});var T=(g.startAngle+g.endAngle)/2,S=Math.cos(T),b=Math.sin(T),O,I=j("position"),L=j("distance")||0,N=j("align");I==="outside"?(O=g.r+L,N=T>Math.PI/2?"right":"left"):!N||N==="center"?(O=(g.r+g.r0)/2,N="center"):N==="left"?(O=g.r0+L,T>Math.PI/2&&(N="right")):N==="right"&&(O=g.r-L,T>Math.PI/2&&(N="left")),x.attr("style",{text:p,textAlign:N,textVerticalAlign:j("verticalAlign")||"middle",opacity:j("opacity")});var D=O*S+g.cx,R=O*b+g.cy;x.attr("position",[D,R]);var k=j("rotate"),M=0;k==="radial"?(M=-T,M<-Math.PI/2&&(M+=Math.PI)):k==="tangential"?(M=Math.PI/2-T,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof k=="number"&&(M=k*Math.PI/180),x.attr("rotation",M);function j(F){var U=u.get(F);return U==null?s.get(F):U}},f._initEvents=function(e,l,t,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var s=this,u=function(){s.onEmphasis(a)},h=function(){s.onNormal()},p=function(){s.onDownplay()},g=function(){s.onHighlight()};t.isAnimationEnabled()&&e.on("mouseover",u).on("mouseout",h).on("emphasis",u).on("normal",h).on("downplay",p).on("highlight",g)},_.inherits(m,E.Group);var c=m;function o(e,l,t){var a=e.getVisual("color"),s=e.getVisual("visualMeta");(!s||s.length===0)&&(a=null);var u=e.getModel("itemStyle").get("color");if(u)return u;if(a)return a;if(e.depth===0)return t.option.color[0];var h=t.option.color.length;return u=t.option.color[r(e)%h],u}function r(e){for(var l=e;l.depth>1;)l=l.parentNode;var t=e.getAncestors()[0];return _.indexOf(t.children,l)}function i(e,l,t){return t===C.NONE?!1:t===C.SELF?e===l:t===C.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function n(e,l,t){var a=l.getData();a.setItemVisual(e.dataIndex,"color",t)}H.exports=c},Tp9H:function(H,B,d){var _=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=!_.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",l=o.getConnectedDataURL({type:e,backgroundColor:r.get("backgroundColor",!0)||c.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")});if(typeof MouseEvent=="function"&&!_.browser.ie&&!_.browser.edge){var t=document.createElement("a");t.download=i+"."+e,t.target="_blank",t.href=l;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob){for(var s=atob(l.split(",")[1]),u=s.length,h=new Uint8Array(u);u--;)h[u]=s.charCodeAt(u);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,i+"."+e)}else{var g=r.get("lang"),v='<body style="margin:0;"><img src="'+l+'" 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 _(E){var C=E.getVisual("symbolSize");return C instanceof Array&&(C=(C[0]+C[1])/2),+C}B.getNodeGlobalScale=d,B.getSymbolSize=_},UADf:function(H,B,d){},UESt:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="RightOutlined";var f=B.a=E.forwardRef(m)},UOVi:function(H,B,d){var _=d("bYtY"),E=d("7aKB"),C=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function w(o){return _.indexOf(A,o)>=0}function m(o,r){o=o.slice();var i=_.map(o,E.capitalFirst);r=(r||[]).slice();var n=_.map(r,E.capitalFirst);return function(e,l){_.each(o,function(t,a){for(var s={name:t,capital:i[a]},u=0;u<r.length;u++)s[r[u]]=t+n[u];e.call(l,s)})}}var f=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;l(t,a);var s;do s=!1,o(u);while(s);function u(h){!n(h,a)&&e(h,a)&&(l(h,a),s=!0)}return a};function n(t,a){return _.indexOf(a.nodes,t)>=0}function e(t,a){var s=!1;return r(function(u){_.each(i(t,u)||[],function(h){a.records[u.name][h]&&(s=!0)})}),s}function l(t,a){a.nodes.push(t),r(function(s){_.each(i(t,s)||[],function(u){a.records[s.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 _={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=_},UnoB:function(H,B,d){var _=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"),l=r.getAxis();if(i.boundaryGap=e,l.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=_.map(r,function(v){return _.map(v.indices,function(y){var x=o.dataToPoint(m.get(i,y));return x[1]=m.get(n,y),x})}),l=w(e),t=l.y0,a=c/l.max,s=r.length,u=r[0].indices.length,h,p=0;p<u;++p){h=t[p]*a,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<s;++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={},l=0;l<c;++l){for(var t=0,n=0;t<f;++t)n+=m[t][l][1];n>i&&(i=n),o.push(n)}for(var a=0;a<c;++a)r[a]=(i-o[a])/2;i=0;for(var s=0;s<c;++s){var u=o[s]+r[s];u>i&&(i=u)}return e.y0=r,e.max=i,e}H.exports=C},Urep:function(H,B,d){},V7ic:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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(_){_.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 _=d("KCsZ"),E=_([["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=_,B.encodeUTF8=E;function _(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 _=d("bYtY"),E=d("SgGq"),C=d("iLNv"),A="\0_ec_dataZoom_roams";function w(e,l){var t=c(e),a=l.dataZoomId,s=l.coordId;_.each(t,function(p,g){var v=p.dataZoomInfos;v[a]&&_.indexOf(l.allCoordIds,s)<0&&(delete v[a],p.count--)}),r(t);var u=t[s];u||(u=t[s]={coordId:s,dataZoomInfos:{},count:0},u.controller=o(e,u),u.dispatchAction=_.curry(i,e)),!u.dataZoomInfos[a]&&u.count++,u.dataZoomInfos[a]=l;var h=n(u.dataZoomInfos);u.controller.enable(h.controlType,h.opt),u.controller.setPointerChecker(l.containsPoint),C.createOrUpdate(u,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function m(e,l){var t=c(e);_.each(t,function(a){a.controller.dispose();var s=a.dataZoomInfos;s[l]&&(delete s[l],a.count--)}),r(t)}function f(e){return e.type+"\0_"+e.id}function c(e){var l=e.getZr();return l[A]||(l[A]={})}function o(e,l){var t=new E(e.getZr());return _.each(["pan","zoom","scrollMove"],function(a){t.on(a,function(s){var u=[];_.each(l.dataZoomInfos,function(h){if(!s.isAvailableBehavior(h.dataZoomModel.option))return;var p=(h.getRange||{})[a],g=p&&p(l.controller,s);!h.dataZoomModel.get("disabled",!0)&&g&&u.push({dataZoomId:h.dataZoomId,start:g[0],end:g[1]})}),u.length&&l.dispatchAction(u)})}),t}function r(e){_.each(e,function(l,t){l.count||(l.controller.dispose(),delete e[t])})}function i(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function n(e){var l,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return _.each(e,function(u){var h=u.dataZoomModel,p=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;a[t+p]>a[t+l]&&(l=p),s&=h.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}B.register=w,B.unregister=m,B.generateCoordId=f},VaxA:function(H,B,d){var _=d("bYtY");function E(m,f,c){if(m&&_.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 _.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 _=d("bYtY");function E(A){A!=null&&_.extend(this,A),this.otherDims={}}var C=E;H.exports=C},Vl3Y:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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(){}}),l=f.createContext({updateItemErrors:function(){}}),t=function(ct){var Mt=Object(n.default)(ct,["prefixCls"]);return f.createElement(r.FormProvider,Mt)};function a(ee){return typeof ee=="object"&&ee!=null&&ee.nodeType===1}function s(ee,ct){return(!ct||ee!=="hidden")&&ee!=="visible"&&ee!=="clip"}function u(ee,ct){if(ee.clientHeight<ee.scrollHeight||ee.clientWidth<ee.scrollWidth){var Mt=getComputedStyle(ee,null);return s(Mt.overflowY,ct)||s(Mt.overflowX,ct)||function(ot){var Yt=function(or){if(!or.ownerDocument||!or.ownerDocument.defaultView)return null;try{return or.ownerDocument.defaultView.frameElement}catch(Zr){return null}}(ot);return!!Yt&&(Yt.clientHeight<ot.scrollHeight||Yt.clientWidth<ot.scrollWidth)}(ee)}return!1}function h(ee,ct,Mt,ot,Yt,or,Zr,ir){return or<ee&&Zr>ct||or>ee&&Zr<ct?0:or<=ee&&ir<=Mt||Zr>=ct&&ir>=Mt?or-ee-ot:Zr>ct&&ir<Mt||or<ee&&ir>Mt?Zr-ct+Yt:0}var p=function(ee,ct){var Mt=window,ot=ct.scrollMode,Yt=ct.block,or=ct.inline,Zr=ct.boundary,ir=ct.skipOverflowHiddenElements,dr=typeof Zr=="function"?Zr:function(Dn){return Dn!==Zr};if(!a(ee))throw new TypeError("Invalid target");for(var qt=document.scrollingElement||document.documentElement,Ht=[],lt=ee;a(lt)&&dr(lt);){if((lt=lt.parentElement)===qt){Ht.push(lt);break}lt!=null&<===document.body&&u(lt)&&!u(document.documentElement)||lt!=null&&u(lt,ir)&&Ht.push(lt)}for(var Hr=Mt.visualViewport?Mt.visualViewport.width:innerWidth,dn=Mt.visualViewport?Mt.visualViewport.height:innerHeight,Nn=window.scrollX||pageXOffset,Wn=window.scrollY||pageYOffset,gi=ee.getBoundingClientRect(),yn=gi.height,Mn=gi.width,Ft=gi.top,bt=gi.right,Oe=gi.bottom,Ee=gi.left,Ie=Yt==="start"||Yt==="nearest"?Ft:Yt==="end"?Oe:Ft+yn/2,Ye=or==="center"?Ee+Mn/2:or==="end"?bt:Ee,rt=[],ut=0;ut<Ht.length;ut++){var Ot=Ht[ut],Ar=Ot.getBoundingClientRect(),Pr=Ar.height,un=Ar.width,It=Ar.top,nt=Ar.right,at=Ar.bottom,rr=Ar.left;if(ot==="if-needed"&&Ft>=0&&Ee>=0&&Oe<=dn&&bt<=Hr&&Ft>=It&&Oe<=at&&Ee>=rr&&bt<=nt)return rt;var Pt=getComputedStyle(Ot),xt=parseInt(Pt.borderLeftWidth,10),Kt=parseInt(Pt.borderTopWidth,10),yt=parseInt(Pt.borderRightWidth,10),kt=parseInt(Pt.borderBottomWidth,10),Sr=0,hr=0,gr="offsetWidth"in Ot?Ot.offsetWidth-Ot.clientWidth-xt-yt:0,Jr="offsetHeight"in Ot?Ot.offsetHeight-Ot.clientHeight-Kt-kt:0;if(qt===Ot)Sr=Yt==="start"?Ie:Yt==="end"?Ie-dn:Yt==="nearest"?h(Wn,Wn+dn,dn,Kt,kt,Wn+Ie,Wn+Ie+yn,yn):Ie-dn/2,hr=or==="start"?Ye:or==="center"?Ye-Hr/2:or==="end"?Ye-Hr:h(Nn,Nn+Hr,Hr,xt,yt,Nn+Ye,Nn+Ye+Mn,Mn),Sr=Math.max(0,Sr+Wn),hr=Math.max(0,hr+Nn);else{Sr=Yt==="start"?Ie-It-Kt:Yt==="end"?Ie-at+kt+Jr:Yt==="nearest"?h(It,at,Pr,Kt,kt+Jr,Ie,Ie+yn,yn):Ie-(It+Pr/2)+Jr/2,hr=or==="start"?Ye-rr-xt:or==="center"?Ye-(rr+un/2)+gr/2:or==="end"?Ye-nt+yt+gr:h(rr,nt,un,xt,yt+gr,Ye,Ye+Mn,Mn);var $r=Ot.scrollLeft,kn=Ot.scrollTop;Ie+=kn-(Sr=Math.max(0,Math.min(kn+Sr,Ot.scrollHeight-Pr+Jr))),Ye+=$r-(hr=Math.max(0,Math.min($r+hr,Ot.scrollWidth-un+gr)))}rt.push({el:Ot,top:Sr,left:hr})}return rt};function g(ee){return ee===Object(ee)&&Object.keys(ee).length!==0}function v(ee,ct){ct===void 0&&(ct="auto");var Mt="scrollBehavior"in document.body.style;ee.forEach(function(ot){var Yt=ot.el,or=ot.top,Zr=ot.left;Yt.scroll&&Mt?Yt.scroll({top:or,left:Zr,behavior:ct}):(Yt.scrollTop=or,Yt.scrollLeft=Zr)})}function y(ee){return ee===!1?{block:"end",inline:"nearest"}:g(ee)?ee:{block:"start",inline:"nearest"}}function x(ee,ct){var Mt=ee.isConnected||ee.ownerDocument.documentElement.contains(ee);if(g(ct)&&typeof ct.behavior=="function")return ct.behavior(Mt?p(ee,ct):[]);if(!Mt)return;var ot=y(ct);return v(p(ee,ot),ot.behavior)}var T=x;function S(ee){return ee===void 0||ee===!1?[]:Array.isArray(ee)?ee:[ee]}function b(ee,ct){if(!ee.length)return;var Mt=ee.join("_");return ct?"".concat(ct,"_").concat(Mt):Mt}function O(ee){var ct=S(ee);return ct.join("_")}function I(ee){var ct=Object(r.useForm)(),Mt=A()(ct,1),ot=Mt[0],Yt=Object(f.useRef)({}),or=Object(f.useMemo)(function(){return ee||E()(E()({},ot),{__INTERNAL__:{itemRef:function(ir){return function(dr){var qt=O(ir);dr?Yt.current[qt]=dr:delete Yt.current[qt]}}},scrollToField:function(ir){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qt=S(ir),Ht=b(qt,or.__INTERNAL__.name),lt=Ht?document.getElementById(Ht):null;lt&&T(lt,E()({scrollMode:"if-needed",block:"nearest"},dr))},getFieldInstance:function(ir){var dr=O(ir);return Yt.current[dr]}})},[ee,ot]);return[or]}var L=d("3Nzz"),N=function(ee,ct){var Mt={};for(var ot in ee)Object.prototype.hasOwnProperty.call(ee,ot)&&ct.indexOf(ot)<0&&(Mt[ot]=ee[ot]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,ot=Object.getOwnPropertySymbols(ee);Yt<ot.length;Yt++)ct.indexOf(ot[Yt])<0&&Object.prototype.propertyIsEnumerable.call(ee,ot[Yt])&&(Mt[ot[Yt]]=ee[ot[Yt]]);return Mt},D=function(ct,Mt){var ot,Yt=f.useContext(L.b),or=f.useContext(i.b),Zr=or.getPrefixCls,ir=or.direction,dr=ct.name,qt=ct.prefixCls,Ht=ct.className,lt=Ht===void 0?"":Ht,Hr=ct.size,dn=Hr===void 0?Yt:Hr,Nn=ct.form,Wn=ct.colon,gi=ct.labelAlign,yn=ct.labelCol,Mn=ct.wrapperCol,Ft=ct.hideRequiredMark,bt=ct.layout,Oe=bt===void 0?"horizontal":bt,Ee=ct.scrollToFirstError,Ie=ct.requiredMark,Ye=ct.onFinishFailed,rt=N(ct,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),ut=Object(f.useMemo)(function(){return Ie!==void 0?Ie:!Ft},[Ft,Ie]),Ot=Zr("form",qt),Ar=o()(Ot,(ot={},m()(ot,"".concat(Ot,"-").concat(Oe),!0),m()(ot,"".concat(Ot,"-hide-required-mark"),ut===!1),m()(ot,"".concat(Ot,"-rtl"),ir==="rtl"),m()(ot,"".concat(Ot,"-").concat(dn),dn),ot),lt),Pr=I(Nn),un=A()(Pr,1),It=un[0],nt=It.__INTERNAL__;nt.name=dr;var at=Object(f.useMemo)(function(){return{name:dr,labelAlign:gi,labelCol:yn,wrapperCol:Mn,vertical:Oe==="vertical",colon:Wn,requiredMark:ut,itemRef:nt.itemRef}},[dr,gi,yn,Mn,Oe,Wn,ut]);f.useImperativeHandle(Mt,function(){return It});var rr=function(xt){Ye&&Ye(xt),Ee&&xt.errorFields.length&&It.scrollToField(xt.errorFields[0].name)};return f.createElement(L.a,{size:dn},f.createElement(e.Provider,{value:at},f.createElement(r.default,E()({id:dr},rt,{onFinishFailed:rr,form:It,className:Ar}))))},R=f.forwardRef(D),k=R,M=d("cDf5"),j=d.n(M),F=d("RIqP"),U=d.n(F),K=d("Y+p1"),V=d.n(K),z=d("KW7l"),Q=d("c+Xe"),Z=d("qrJ5"),le=d("CWQg"),ne=d("uaoM"),ve=d("/kpp"),xe=d("YMnH"),_e=d("ZvpZ"),Be=function(ct){var Mt=ct.prefixCls,ot=ct.label,Yt=ct.htmlFor,or=ct.labelCol,Zr=ct.labelAlign,ir=ct.colon,dr=ct.required,qt=ct.requiredMark,Ht=Object(xe.b)("Form"),lt=A()(Ht,1),Hr=lt[0];return ot?f.createElement(e.Consumer,{key:"label"},function(dn){var Nn,Wn=dn.vertical,gi=dn.labelAlign,yn=dn.labelCol,Mn=dn.colon,Ft,bt=or||yn||{},Oe=Zr||gi,Ee="".concat(Mt,"-item-label"),Ie=o()(Ee,Oe==="left"&&"".concat(Ee,"-left"),bt.className),Ye=ot,rt=ir===!0||Mn!==!1&&ir!==!1,ut=rt&&!Wn;ut&&typeof ot=="string"&&ot.trim()!==""&&(Ye=ot.replace(/[:|:]\s*$/,"")),qt==="optional"&&!dr&&(Ye=f.createElement(f.Fragment,null,Ye,f.createElement("span",{className:"".concat(Mt,"-item-optional")},(Hr==null?void 0:Hr.optional)||((Ft=_e.a.Form)===null||Ft===void 0?void 0:Ft.optional))));var Ot=o()((Nn={},m()(Nn,"".concat(Mt,"-item-required"),dr),m()(Nn,"".concat(Mt,"-item-required-mark-optional"),qt==="optional"),m()(Nn,"".concat(Mt,"-item-no-colon"),!rt),Nn));return f.createElement(ve.a,E()({},bt,{className:Ie}),f.createElement("label",{htmlFor:Yt,className:Ot,title:typeof ot=="string"?ot:""},Ye))}):null},me=Be,Fe=d("gZBC"),ie=d.n(Fe),te=d("kbBi"),Ge=d.n(te),oe=d("J84W"),Y=d.n(oe),G=d("sKbD"),X=d.n(G),fe=d("YrtM"),de=d("HTfv"),Ce=d("hkKa");function Me(ee,ct,Mt){var ot=f.useRef({errors:ee,visible:!!ee.length}),Yt=Object(Ce.a)(),or=function(){var ir=ot.current.visible,dr=!!ee.length,qt=ot.current.errors;ot.current.errors=ee,ot.current.visible=dr,ir!==dr?ct(dr):(qt.length!==ee.length||qt.some(function(Ht,lt){return Ht!==ee[lt]}))&&Yt()};return f.useEffect(function(){if(!Mt){var Zr=setTimeout(or,10);return function(){return clearTimeout(Zr)}}},[ee]),Mt&&or(),[ot.current.visible,ot.current.errors]}var ue={success:Y.a,warning:X.a,error:Ge.a,validating:ie.a},Ae=function(ct){var Mt=ct.prefixCls,ot=ct.wrapperCol,Yt=ct.children,or=ct.help,Zr=ct.errors,ir=ct.onDomErrorVisibleChange,dr=ct.hasFeedback,qt=ct.validateStatus,Ht=ct.extra,lt=Object(Ce.a)(),Hr="".concat(Mt,"-item"),dn=f.useContext(e),Nn=ot||dn.wrapperCol||{},Wn=o()("".concat(Hr,"-control"),Nn.className),gi=Me(Zr,function(Ye){Ye&&Promise.resolve().then(function(){ir(!0)}),lt()},!!or),yn=A()(gi,2),Mn=yn[0],Ft=yn[1];f.useEffect(function(){return function(){ir(!1)}},[]);var bt=Object(fe.a)(function(){return Ft},Mn,function(Ye,rt){return rt}),Oe=qt&&ue[qt],Ee=dr&&Oe?f.createElement("span",{className:"".concat(Hr,"-children-icon")},f.createElement(Oe,null)):null,Ie=E()({},dn);return delete Ie.labelCol,delete Ie.wrapperCol,f.createElement(e.Provider,{value:Ie},f.createElement(ve.a,E()({},Nn,{className:Wn}),f.createElement("div",{className:"".concat(Hr,"-control-input")},f.createElement("div",{className:"".concat(Hr,"-control-input-content")},Yt),Ee),f.createElement(de.default,{motionDeadline:500,visible:Mn,motionName:"show-help",onLeaveEnd:function(){ir(!1)},motionAppear:!0,removeOnLeave:!0},function(Ye){var rt=Ye.className;return f.createElement("div",{className:o()("".concat(Hr,"-explain"),rt),key:"help"},bt.map(function(ut,Ot){return f.createElement("div",{key:Ot,role:"alert"},ut)}))}),Ht&&f.createElement("div",{className:"".concat(Hr,"-extra")},Ht)))},Te=Ae,Je=d("0n0R"),At=d("xEkU"),qe=d.n(At);function Re(ee){var ct=f.useState(ee),Mt=A()(ct,2),ot=Mt[0],Yt=Mt[1],or=Object(f.useRef)(null),Zr=Object(f.useRef)([]),ir=Object(f.useRef)(!1);f.useEffect(function(){return function(){ir.current=!0,qe.a.cancel(or.current)}},[]);function dr(qt){if(ir.current)return;or.current===null&&(Zr.current=[],or.current=qe()(function(){or.current=null,Yt(function(Ht){var lt=Ht;return Zr.current.forEach(function(Hr){lt=Hr(lt)}),lt})})),Zr.current.push(qt)}return[ot,dr]}function Lt(){var ee=f.useContext(e),ct=ee.itemRef,Mt=f.useRef({});function ot(Yt,or){var Zr=or&&j()(or)==="object"&&or.ref,ir=Yt.join("_");return(Mt.current.name!==ir||Mt.current.originRef!==Zr)&&(Mt.current.name=ir,Mt.current.originRef=Zr,Mt.current.ref=Object(Q.a)(ct(Yt),Zr)),Mt.current.ref}return ot}var $e=function(ee,ct){var Mt={};for(var ot in ee)Object.prototype.hasOwnProperty.call(ee,ot)&&ct.indexOf(ot)<0&&(Mt[ot]=ee[ot]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,ot=Object.getOwnPropertySymbols(ee);Yt<ot.length;Yt++)ct.indexOf(ot[Yt])<0&&Object.prototype.propertyIsEnumerable.call(ee,ot[Yt])&&(Mt[ot[Yt]]=ee[ot[Yt]]);return Mt},Et=Object(le.a)("success","warning","error","validating",""),Ut=f.memo(function(ee){var ct=ee.children;return ct},function(ee,ct){return ee.value===ct.value&&ee.update===ct.update});function Bt(ee){return ee===null&&Object(ne.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ee==null)}function _t(ee){var ct=ee.name,Mt=ee.fieldKey,ot=ee.noStyle,Yt=ee.dependencies,or=ee.prefixCls,Zr=ee.style,ir=ee.className,dr=ee.shouldUpdate,qt=ee.hasFeedback,Ht=ee.help,lt=ee.rules,Hr=ee.validateStatus,dn=ee.children,Nn=ee.required,Wn=ee.label,gi=ee.trigger,yn=gi===void 0?"onChange":gi,Mn=ee.validateTrigger,Ft=ee.hidden,bt=$e(ee,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Oe=f.useRef(!1),Ee=f.useContext(i.b),Ie=Ee.getPrefixCls,Ye=f.useContext(e),rt=Ye.name,ut=Ye.requiredMark,Ot=f.useContext(l),Ar=Ot.updateItemErrors,Pr=f.useState(!!Ht),un=A()(Pr,2),It=un[0],nt=un[1],at=f.useRef(Hr),rr=Re({}),Pt=A()(rr,2),xt=Pt[0],Kt=Pt[1],yt=f.useContext(z.b),kt=yt.validateTrigger,Sr=Mn!==void 0?Mn:kt;function hr(Qe){Oe.current||nt(Qe)}var gr=Bt(ct),Jr=f.useRef([]);f.useEffect(function(){return function(){Oe.current=!0,Ar(Jr.current.join("__SPLIT__"),[])}},[]);var $r=Ie("form",or),kn=ot?Ar:function(Qe,Se){Kt(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V()(Ne[Qe],Se)?Ne:E()(E()({},Ne),m()({},Qe,Se))})},Dn=Lt();function Zn(Qe,Se,Ne,je){var Xe,ze;if(ot&&!Ft)return Qe;var Ze=[];Object.keys(xt).forEach(function(Rr){Ze=[].concat(U()(Ze),U()(xt[Rr]||[]))});var wt;Ht!=null?wt=S(Ht):(wt=Ne?Ne.errors:[],wt=[].concat(U()(wt),U()(Ze)));var st="";Hr!==void 0?st=Hr:(Ne==null?void 0:Ne.validating)?st="validating":((ze=Ne==null?void 0:Ne.errors)===null||ze===void 0?void 0:ze.length)||Ze.length?st="error":(Ne==null?void 0:Ne.touched)&&(st="success"),It&&Ht&&(at.current=st);var Jt=(Xe={},m()(Xe,"".concat($r,"-item"),!0),m()(Xe,"".concat($r,"-item-with-help"),It||Ht),m()(Xe,"".concat(ir),!!ir),m()(Xe,"".concat($r,"-item-has-feedback"),st&&qt),m()(Xe,"".concat($r,"-item-has-success"),st==="success"),m()(Xe,"".concat($r,"-item-has-warning"),st==="warning"),m()(Xe,"".concat($r,"-item-has-error"),st==="error"),m()(Xe,"".concat($r,"-item-has-error-leave"),!Ht&&It&&at.current==="error"),m()(Xe,"".concat($r,"-item-is-validating"),st==="validating"),m()(Xe,"".concat($r,"-item-hidden"),Ft),Xe);return f.createElement(Z.a,E()({className:o()(Jt),style:Zr,key:"row"},Object(n.default)(bt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),f.createElement(me,E()({htmlFor:Se,required:je,requiredMark:ut},ee,{prefixCls:$r})),f.createElement(Te,E()({},ee,Ne,{errors:wt,prefixCls:$r,onDomErrorVisibleChange:hr,validateStatus:st}),f.createElement(l.Provider,{value:{updateItemErrors:kn}},Qe)))}var li=typeof dn=="function",Ai=f.useRef(0);if(Ai.current+=1,!gr&&!li&&!Yt)return Zn(dn);var Ii={};return typeof Wn=="string"&&(Ii.label=Wn),f.createElement(r.Field,E()({},ee,{messageVariables:Ii,trigger:yn,validateTrigger:Sr,onReset:function(){hr(!1)}}),function(Qe,Se,Ne){var je=Se.errors,Xe=S(ct).length&&Se?Se.name:[],ze=b(Xe,rt);if(ot){if(Jr.current=U()(Xe),Mt){var Ze=Array.isArray(Mt)?Mt:[Mt];Jr.current=[].concat(U()(Xe.slice(0,-1)),U()(Ze))}Ar(Jr.current.join("__SPLIT__"),je)}var wt=Nn!==void 0?Nn:!!(lt&<.some(function(Xr){if(Xr&&j()(Xr)==="object"&&Xr.required)return!0;if(typeof Xr=="function"){var er=Xr(Ne);return er&&er.required}return!1})),st=E()({},Qe),Jt=null;if(Object(ne.a)(!(dr&&Yt),"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||Yt)||gr))Object(ne.a)(!!(dr||Yt),"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(Yt&&!li&&!gr)Object(ne.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Je.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),st);Rr.id||(Rr.id=ze),Object(Q.c)(dn)&&(Rr.ref=Dn(Xe,dn));var Ir=new Set([].concat(U()(S(yn)),U()(S(Sr))));Ir.forEach(function(Xr){Rr[Xr]=function(){for(var er,pn,fr,mn,en,Mr=arguments.length,Gn=new Array(Mr),di=0;di<Mr;di++)Gn[di]=arguments[di];(fr=st[Xr])===null||fr===void 0||(er=fr).call.apply(er,[st].concat(Gn)),(en=(mn=dn.props)[Xr])===null||en===void 0||(pn=en).call.apply(pn,[mn].concat(Gn))}}),Jt=f.createElement(Ut,{value:st[ee.valuePropName||"value"],update:Ai.current},Object(Je.a)(dn,Rr))}else li&&(dr||Yt)&&!gr?Jt=dn(Ne):(Object(ne.a)(!Xe.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Jt=dn);return Zn(Jt,ze,Se,wt)})}var jt=_t,He=function(ee,ct){var Mt={};for(var ot in ee)Object.prototype.hasOwnProperty.call(ee,ot)&&ct.indexOf(ot)<0&&(Mt[ot]=ee[ot]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,ot=Object.getOwnPropertySymbols(ee);Yt<ot.length;Yt++)ct.indexOf(ot[Yt])<0&&Object.prototype.propertyIsEnumerable.call(ee,ot[Yt])&&(Mt[ot[Yt]]=ee[ot[Yt]]);return Mt},se=function(ct){var Mt=ct.children,ot=He(ct,["children"]);return Object(ne.a)(!!ot.name,"Form.List","Miss `name` prop."),f.createElement(r.List,ot,function(Yt,or){return Mt(Yt.map(function(Zr){return E()(E()({},Zr),{fieldKey:Zr.key})}),or)})},J=se,Ue=k;Ue.Item=jt,Ue.List=J,Ue.useForm=I,Ue.Provider=t,Ue.create=function(){Object(ne.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Le=B.a=Ue},VpOo:function(H,B){function d(_,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),_.moveTo(C+c,A),_.lineTo(C+w-o,A),o!==0&&_.arc(C+w-o,A+o,o,-Math.PI/2,0),_.lineTo(C+w,A+m-r),r!==0&&_.arc(C+w-r,A+m-r,r,0,Math.PI/2),_.lineTo(C+i,A+m),i!==0&&_.arc(C+i,A+m-i,i,Math.PI/2,Math.PI),_.lineTo(C,A+c),c!==0&&_.arc(C+c,A+c,c,Math.PI,Math.PI*1.5)}B.buildPath=d},"VrN/":function(H,B,d){(function(_,E){H.exports=E()})(this,function(){"use strict";var _=navigator.userAgent,E=navigator.platform,C=/gecko\/\d/i.test(_),A=/MSIE \d/.test(_),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_),m=/Edge\/(\d+)/.exec(_),f=A||w||m,c=f&&(A?document.documentMode||6:+(m||w)[1]),o=!m&&/WebKit\//.test(_),r=o&&/Qt\/\d+\.\d+/.test(_),i=!m&&/Chrome\//.test(_),n=/Opera\//.test(_),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_),t=/PhantomJS/.test(_),a=!m&&/AppleWebKit/.test(_)&&/Mobile\/\w+/.test(_),s=/Android/.test(_),u=a||s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_),h=a||/Mac/.test(E),p=/\bCrOS\b/.test(_),g=/win/i.test(E),v=n&&_.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(P){return new RegExp("(^|\\s)"+P+"(?:$|\\s)\\s*")}var S=function(W,$){var re=W.className,ce=T($).exec(re);if(ce){var ke=re.slice(ce.index+ce[0].length);W.className=re.slice(0,ce.index)+(ke?ce[1]+ke:"")}};function b(P){for(var W=P.childNodes.length;W>0;--W)P.removeChild(P.firstChild);return P}function O(P,W){return b(P).appendChild(W)}function I(P,W,$,re){var ce=document.createElement(P);if($&&(ce.className=$),re&&(ce.style.cssText=re),typeof W=="string")ce.appendChild(document.createTextNode(W));else if(W)for(var ke=0;ke<W.length;++ke)ce.appendChild(W[ke]);return ce}function L(P,W,$,re){var ce=I(P,W,$,re);return ce.setAttribute("role","presentation"),ce}var N;document.createRange?N=function(W,$,re,ce){var ke=document.createRange();return ke.setEnd(ce||W,re),ke.setStart(W,$),ke}:N=function(W,$,re){var ce=document.body.createTextRange();try{ce.moveToElementText(W.parentNode)}catch(ke){return ce}return ce.collapse(!0),ce.moveEnd("character",re),ce.moveStart("character",$),ce};function D(P,W){if(W.nodeType==3&&(W=W.parentNode),P.contains)return P.contains(W);do if(W.nodeType==11&&(W=W.host),W==P)return!0;while(W=W.parentNode)}function R(){var P;try{P=document.activeElement}catch(W){P=document.body||null}for(;P&&P.shadowRoot&&P.shadowRoot.activeElement;)P=P.shadowRoot.activeElement;return P}function k(P,W){var $=P.className;T(W).test($)||(P.className+=($?" ":"")+W)}function M(P,W){for(var $=P.split(" "),re=0;re<$.length;re++)$[re]&&!T($[re]).test(W)&&(W+=" "+$[re]);return W}var j=function(W){W.select()};a?j=function(W){W.selectionStart=0,W.selectionEnd=W.value.length}:f&&(j=function(W){try{W.select()}catch($){}});function F(P){var W=Array.prototype.slice.call(arguments,1);return function(){return P.apply(null,W)}}function U(P,W,$){W||(W={});for(var re in P)P.hasOwnProperty(re)&&($!==!1||!W.hasOwnProperty(re))&&(W[re]=P[re]);return W}function K(P,W,$,re,ce){W==null&&(W=P.search(/[^\s\u00a0]/),W==-1&&(W=P.length));for(var ke=re||0,ht=ce||0;;){var Wt=P.indexOf(" ",ke);if(Wt<0||Wt>=W)return ht+(W-ke);ht+=Wt-ke,ht+=$-ht%$,ke=Wt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};V.prototype.onTimeout=function(P){P.id=0,P.time<=+new Date?P.f():setTimeout(P.handler,P.time-+new Date)},V.prototype.set=function(P,W){this.f=W;var $=+new Date+P;(!this.id||$<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,P),this.time=$)};function z(P,W){for(var $=0;$<P.length;++$)if(P[$]==W)return $;return-1}var Q=50,Z={toString:function(){return"CodeMirror.Pass"}},le={scroll:!1},ne={origin:"*mouse"},ve={origin:"+move"};function xe(P,W,$){for(var re=0,ce=0;;){var ke=P.indexOf(" ",re);ke==-1&&(ke=P.length);var ht=ke-re;if(ke==P.length||ce+ht>=W)return re+Math.min(ht,W-ce);if(ce+=ke-re,ce+=$-ce%$,re=ke+1,ce>=W)return re}}var _e=[""];function Be(P){for(;_e.length<=P;)_e.push(me(_e)+" ");return _e[P]}function me(P){return P[P.length-1]}function Fe(P,W){for(var $=[],re=0;re<P.length;re++)$[re]=W(P[re],re);return $}function ie(P,W,$){for(var re=0,ce=$(W);re<P.length&&$(P[re])<=ce;)re++;P.splice(re,0,W)}function te(){}function Ge(P,W){var $;return Object.create?$=Object.create(P):(te.prototype=P,$=new te),W&&U(W,$),$}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Y(P){return/\w/.test(P)||P>"\x80"&&(P.toUpperCase()!=P.toLowerCase()||oe.test(P))}function G(P,W){return W?W.source.indexOf("\\w")>-1&&Y(P)?!0:W.test(P):Y(P)}function X(P){for(var W in P)if(P.hasOwnProperty(W)&&P[W])return!1;return!0}var fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function de(P){return P.charCodeAt(0)>=768&&fe.test(P)}function Ce(P,W,$){for(;($<0?W>0:W<P.length)&&de(P.charAt(W));)W+=$;return W}function Me(P,W,$){for(var re=W>$?-1:1;;){if(W==$)return W;var ce=(W+$)/2,ke=re<0?Math.ceil(ce):Math.floor(ce);if(ke==W)return P(ke)?W:$;P(ke)?$=ke:W=ke+re}}function ue(P,W,$,re){if(!P)return re(W,$,"ltr",0);for(var ce=!1,ke=0;ke<P.length;++ke){var ht=P[ke];(ht.from<$&&ht.to>W||W==$&&ht.to==W)&&(re(Math.max(ht.from,W),Math.min(ht.to,$),ht.level==1?"rtl":"ltr",ke),ce=!0)}ce||re(W,$,"ltr")}var Ae=null;function Te(P,W,$){var re;Ae=null;for(var ce=0;ce<P.length;++ce){var ke=P[ce];if(ke.from<W&&ke.to>W)return ce;ke.to==W&&(ke.from!=ke.to&&$=="before"?re=ce:Ae=ce),ke.from==W&&(ke.from!=ke.to&&$!="before"?re=ce:Ae=ce)}return re!=null?re:Ae}var Je=function(){var P="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",W="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(pr){return pr<=247?P.charAt(pr):1424<=pr&&pr<=1524?"R":1536<=pr&&pr<=1785?W.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]/,ke=/[LRr]/,ht=/[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($(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":ke.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":ke.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(ht.test(ni[al])){var Nu=al;for(++al;al<ei&&ht.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))),me(Uo).level==1&&(Rl=pr.match(/\s+$/))&&(me(Uo).to-=Rl[0].length,Uo.push(new sr(0,ei-Rl[0].length,ei)))),wn=="rtl"?Uo.reverse():Uo}}();function At(P,W){var $=P.order;return $==null&&($=P.order=Je(P.text,W)),$}var qe=[],Re=function(W,$,re){if(W.addEventListener)W.addEventListener($,re,!1);else if(W.attachEvent)W.attachEvent("on"+$,re);else{var ce=W._handlers||(W._handlers={});ce[$]=(ce[$]||qe).concat(re)}};function Lt(P,W){return P._handlers&&P._handlers[W]||qe}function $e(P,W,$){if(P.removeEventListener)P.removeEventListener(W,$,!1);else if(P.detachEvent)P.detachEvent("on"+W,$);else{var re=P._handlers,ce=re&&re[W];if(ce){var ke=z(ce,$);ke>-1&&(re[W]=ce.slice(0,ke).concat(ce.slice(ke+1)))}}}function Et(P,W){var $=Lt(P,W);if(!$.length)return;for(var re=Array.prototype.slice.call(arguments,2),ce=0;ce<$.length;++ce)$[ce].apply(null,re)}function Ut(P,W,$){return typeof W=="string"&&(W={type:W,preventDefault:function(){this.defaultPrevented=!0}}),Et(P,$||W.type,P,W),J(W)||W.codemirrorIgnore}function Bt(P){var W=P._handlers&&P._handlers.cursorActivity;if(!W)return;for(var $=P.curOp.cursorActivityHandlers||(P.curOp.cursorActivityHandlers=[]),re=0;re<W.length;++re)z($,W[re])==-1&&$.push(W[re])}function _t(P,W){return Lt(P,W).length>0}function jt(P){P.prototype.on=function(W,$){Re(this,W,$)},P.prototype.off=function(W,$){$e(this,W,$)}}function He(P){P.preventDefault?P.preventDefault():P.returnValue=!1}function se(P){P.stopPropagation?P.stopPropagation():P.cancelBubble=!0}function J(P){return P.defaultPrevented!=null?P.defaultPrevented:P.returnValue==!1}function Ue(P){He(P),se(P)}function Le(P){return P.target||P.srcElement}function ee(P){var W=P.which;return W==null&&(P.button&1?W=1:P.button&2?W=3:P.button&4&&(W=2)),h&&P.ctrlKey&&W==1&&(W=3),W}var ct=function(){if(f&&c<9)return!1;var P=I("div");return"draggable"in P||"dragDrop"in P}(),Mt;function ot(P){if(Mt==null){var W=I("span","\u200B");O(P,I("span",[W,document.createTextNode("x")])),P.firstChild.offsetHeight!=0&&(Mt=W.offsetWidth<=1&&W.offsetHeight>2&&!(f&&c<8))}var $=Mt?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return $.setAttribute("cm-text",""),$}var Yt;function or(P){if(Yt!=null)return Yt;var W=O(P,document.createTextNode("A\u062EA")),$=N(W,0,1).getBoundingClientRect(),re=N(W,1,2).getBoundingClientRect();return b(P),!$||$.left==$.right?!1:Yt=re.right-$.right<3}var Zr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(P){for(var W=0,$=[],re=P.length;W<=re;){var ce=P.indexOf(`
|
|
|
`,W);ce==-1&&(ce=P.length);var ke=P.slice(W,P.charAt(ce-1)=="\r"?ce-1:ce),ht=ke.indexOf("\r");ht!=-1?($.push(ke.slice(0,ht)),W+=ht+1):($.push(ke),W=ce+1)}return $}:function(P){return P.split(/\r\n?|\n/)},ir=window.getSelection?function(P){try{return P.selectionStart!=P.selectionEnd}catch(W){return!1}}:function(P){var W;try{W=P.ownerDocument.selection.createRange()}catch($){}return!W||W.parentElement()!=P?!1:W.compareEndPoints("StartToEnd",W)!=0},dr=function(){var P=I("div");return"oncopy"in P?!0:(P.setAttribute("oncopy","return;"),typeof P.oncopy=="function")}(),qt=null;function Ht(P){if(qt!=null)return qt;var W=O(P,I("span","x")),$=W.getBoundingClientRect(),re=N(W,0,1).getBoundingClientRect();return qt=Math.abs($.left-re.left)>1}var lt={},Hr={};function dn(P,W){arguments.length>2&&(W.dependencies=Array.prototype.slice.call(arguments,2)),lt[P]=W}function Nn(P,W){Hr[P]=W}function Wn(P){if(typeof P=="string"&&Hr.hasOwnProperty(P))P=Hr[P];else if(P&&typeof P.name=="string"&&Hr.hasOwnProperty(P.name)){var W=Hr[P.name];typeof W=="string"&&(W={name:W}),P=Ge(W,P),P.name=W.name}else{if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(P))return Wn("application/xml");if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(P))return Wn("application/json")}return typeof P=="string"?{name:P}:P||{name:"null"}}function gi(P,W){W=Wn(W);var $=lt[W.name];if(!$)return gi(P,"text/plain");var re=$(P,W);if(yn.hasOwnProperty(W.name)){var ce=yn[W.name];for(var ke in ce){if(!ce.hasOwnProperty(ke))continue;re.hasOwnProperty(ke)&&(re["_"+ke]=re[ke]),re[ke]=ce[ke]}}if(re.name=W.name,W.helperType&&(re.helperType=W.helperType),W.modeProps)for(var ht in W.modeProps)re[ht]=W.modeProps[ht];return re}var yn={};function Mn(P,W){var $=yn.hasOwnProperty(P)?yn[P]:yn[P]={};U(W,$)}function Ft(P,W){if(W===!0)return W;if(P.copyState)return P.copyState(W);var $={};for(var re in W){var ce=W[re];ce instanceof Array&&(ce=ce.concat([])),$[re]=ce}return $}function bt(P,W){for(var $;P.innerMode&&!($=P.innerMode(W),!$||$.mode==P);)W=$.state,P=$.mode;return $||{mode:P,state:W}}function Oe(P,W,$){return P.startState?P.startState(W,$):!0}var Ee=function(W,$,re){this.pos=this.start=0,this.string=W,this.tabSize=$||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};Ee.prototype.eol=function(){return this.pos>=this.string.length},Ee.prototype.sol=function(){return this.pos==this.lineStart},Ee.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ee.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ee.prototype.eat=function(P){var W=this.string.charAt(this.pos),$;if(typeof P=="string"?$=W==P:$=W&&(P.test?P.test(W):P(W)),$)return++this.pos,W},Ee.prototype.eatWhile=function(P){for(var W=this.pos;this.eat(P););return this.pos>W},Ee.prototype.eatSpace=function(){for(var P=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>P},Ee.prototype.skipToEnd=function(){this.pos=this.string.length},Ee.prototype.skipTo=function(P){var W=this.string.indexOf(P,this.pos);if(W>-1)return this.pos=W,!0},Ee.prototype.backUp=function(P){this.pos-=P},Ee.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Ee.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Ee.prototype.match=function(P,W,$){if(typeof P=="string"){var re=function(Wt){return $?Wt.toLowerCase():Wt},ce=this.string.substr(this.pos,P.length);if(re(ce)==re(P))return W!==!1&&(this.pos+=P.length),!0}else{var ke=this.string.slice(this.pos).match(P);return ke&&ke.index>0?null:(ke&&W!==!1&&(this.pos+=ke[0].length),ke)}},Ee.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ee.prototype.hideFirstChars=function(P,W){this.lineStart+=P;try{return W()}finally{this.lineStart-=P}},Ee.prototype.lookAhead=function(P){var W=this.lineOracle;return W&&W.lookAhead(P)},Ee.prototype.baseToken=function(){var P=this.lineOracle;return P&&P.baseToken(this.pos)};function Ie(P,W){if(W-=P.first,W<0||W>=P.size)throw new Error("There is no line "+(W+P.first)+" in the document.");for(var $=P;!$.lines;)for(var re=0;;++re){var ce=$.children[re],ke=ce.chunkSize();if(W<ke){$=ce;break}W-=ke}return $.lines[W]}function Ye(P,W,$){var re=[],ce=W.line;return P.iter(W.line,$.line+1,function(ke){var ht=ke.text;ce==$.line&&(ht=ht.slice(0,$.ch)),ce==W.line&&(ht=ht.slice(W.ch)),re.push(ht),++ce}),re}function rt(P,W,$){var re=[];return P.iter(W,$,function(ce){re.push(ce.text)}),re}function ut(P,W){var $=W-P.height;if($)for(var re=P;re;re=re.parent)re.height+=$}function Ot(P){if(P.parent==null)return null;for(var W=P.parent,$=z(W.lines,P),re=W.parent;re;W=re,re=re.parent)for(var ce=0;!(re.children[ce]==W);++ce)$+=re.children[ce].chunkSize();return $+W.first}function Ar(P,W){var $=P.first;e:do{for(var re=0;re<P.children.length;++re){var ce=P.children[re],ke=ce.height;if(W<ke){P=ce;continue e}W-=ke,$+=ce.chunkSize()}return $}while(!P.lines);for(var ht=0;ht<P.lines.length;++ht){var Wt=P.lines[ht],sr=Wt.height;if(W<sr)break;W-=sr}return $+ht}function Pr(P,W){return W>=P.first&&W<P.first+P.size}function un(P,W){return String(P.lineNumberFormatter(W+P.firstLineNumber))}function It(P,W,$){if($===void 0&&($=null),!(this instanceof It))return new It(P,W,$);this.line=P,this.ch=W,this.sticky=$}function nt(P,W){return P.line-W.line||P.ch-W.ch}function at(P,W){return P.sticky==W.sticky&&nt(P,W)==0}function rr(P){return It(P.line,P.ch)}function Pt(P,W){return nt(P,W)<0?W:P}function xt(P,W){return nt(P,W)<0?P:W}function Kt(P,W){return Math.max(P.first,Math.min(W,P.first+P.size-1))}function yt(P,W){if(W.line<P.first)return It(P.first,0);var $=P.first+P.size-1;return W.line>$?It($,Ie(P,$).text.length):kt(W,Ie(P,W.line).text.length)}function kt(P,W){var $=P.ch;return $==null||$>W?It(P.line,W):$<0?It(P.line,0):P}function Sr(P,W){for(var $=[],re=0;re<W.length;re++)$[re]=yt(P,W[re]);return $}var hr=function(W,$){this.state=W,this.lookAhead=$},gr=function(W,$,re,ce){this.state=$,this.doc=W,this.line=re,this.maxLookAhead=ce||0,this.baseTokens=null,this.baseTokenPos=1};gr.prototype.lookAhead=function(P){var W=this.doc.getLine(this.line+P);return W!=null&&P>this.maxLookAhead&&(this.maxLookAhead=P),W},gr.prototype.baseToken=function(P){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=P;)this.baseTokenPos+=2;var W=this.baseTokens[this.baseTokenPos+1];return{type:W&&W.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-P}},gr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gr.fromSaved=function(P,W,$){return W instanceof hr?new gr(P,Ft(P.mode,W.state),$,W.lookAhead):new gr(P,Ft(P.mode,W),$)},gr.prototype.save=function(P){var W=P!==!1?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new hr(W,this.maxLookAhead):W};function Jr(P,W,$,re){var ce=[P.state.modeGen],ke={};Se(P,W.text,P.doc.mode,$,function(pr,wn){return ce.push(pr,wn)},ke,re);for(var ht=$.state,Wt=function(wn){$.baseTokens=ce;var Rn=P.state.overlays[wn],ei=1,ni=0;$.state=!0,Se(P,W.text,Rn.mode,$,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}},ke),$.state=ht,$.baseTokens=null,$.baseTokenPos=1},sr=0;sr<P.state.overlays.length;++sr)Wt(sr);return{styles:ce,classes:ke.bgClass||ke.textClass?ke:null}}function $r(P,W,$){if(!W.styles||W.styles[0]!=P.state.modeGen){var re=kn(P,Ot(W)),ce=W.text.length>P.options.maxHighlightLength&&Ft(P.doc.mode,re.state),ke=Jr(P,W,re);ce&&(re.state=ce),W.stateAfter=re.save(!ce),W.styles=ke.styles,ke.classes?W.styleClasses=ke.classes:W.styleClasses&&(W.styleClasses=null),$===P.doc.highlightFrontier&&(P.doc.modeFrontier=Math.max(P.doc.modeFrontier,++P.doc.highlightFrontier))}return W.styles}function kn(P,W,$){var re=P.doc,ce=P.display;if(!re.mode.startState)return new gr(re,!0,W);var ke=Ne(P,W,$),ht=ke>re.first&&Ie(re,ke-1).stateAfter,Wt=ht?gr.fromSaved(re,ht,ke):new gr(re,Oe(re.mode),ke);return re.iter(ke,W,function(sr){Dn(P,sr.text,Wt);var pr=Wt.line;sr.stateAfter=pr==W-1||pr%5==0||pr>=ce.viewFrom&&pr<ce.viewTo?Wt.save():null,Wt.nextLine()}),$&&(re.modeFrontier=Wt.line),Wt}function Dn(P,W,$,re){var ce=P.doc.mode,ke=new Ee(W,P.options.tabSize,$);for(ke.start=ke.pos=re||0,W==""&&Zn(ce,$.state);!ke.eol();)li(ce,ke,$.state),ke.start=ke.pos}function Zn(P,W){if(P.blankLine)return P.blankLine(W);if(!P.innerMode)return;var $=bt(P,W);if($.mode.blankLine)return $.mode.blankLine($.state)}function li(P,W,$,re){for(var ce=0;ce<10;ce++){re&&(re[0]=bt(P,$).mode);var ke=P.token(W,$);if(W.pos>W.start)return ke}throw new Error("Mode "+P.name+" failed to advance stream.")}var Ai=function(W,$,re){this.start=W.start,this.end=W.pos,this.string=W.current(),this.type=$||null,this.state=re};function Ii(P,W,$,re){var ce=P.doc,ke=ce.mode,ht;W=yt(ce,W);var Wt=Ie(ce,W.line),sr=kn(P,W.line,$),pr=new Ee(Wt.text,P.options.tabSize,sr),wn;for(re&&(wn=[]);(re||pr.pos<W.ch)&&!pr.eol();)pr.start=pr.pos,ht=li(ke,pr,sr.state),re&&wn.push(new Ai(pr,ht,Ft(ce.mode,sr.state)));return re?wn:new Ai(pr,ht,sr.state)}function Qe(P,W){if(P)for(;;){var $=P.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!$)break;P=P.slice(0,$.index)+P.slice($.index+$[0].length);var re=$[1]?"bgClass":"textClass";W[re]==null?W[re]=$[2]:new RegExp("(?:^|\\s)"+$[2]+"(?:$|\\s)").test(W[re])||(W[re]+=" "+$[2])}return P}function Se(P,W,$,re,ce,ke,ht){var Wt=$.flattenSpans;Wt==null&&(Wt=P.options.flattenSpans);var sr=0,pr=null,wn=new Ee(W,P.options.tabSize,re),Rn,ei=P.options.addModeClass&&[null];for(W==""&&Qe(Zn($,re.state),ke);!wn.eol();){if(wn.pos>P.options.maxHighlightLength?(Wt=!1,ht&&Dn(P,W,re,wn.pos),wn.pos=W.length,Rn=null):Rn=Qe(li($,wn,re.state,ei),ke),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 Ne(P,W,$){for(var re,ce,ke=P.doc,ht=$?-1:W-(P.doc.mode.innerMode?1e3:100),Wt=W;Wt>ht;--Wt){if(Wt<=ke.first)return ke.first;var sr=Ie(ke,Wt-1),pr=sr.stateAfter;if(pr&&(!$||Wt+(pr instanceof hr?pr.lookAhead:0)<=ke.modeFrontier))return Wt;var wn=K(sr.text,null,P.options.tabSize);(ce==null||re>wn)&&(ce=Wt-1,re=wn)}return ce}function je(P,W){if(P.modeFrontier=Math.min(P.modeFrontier,W),P.highlightFrontier<W-10)return;for(var $=P.first,re=W-1;re>$;re--){var ce=Ie(P,re).stateAfter;if(ce&&(!(ce instanceof hr)||re+ce.lookAhead<W)){$=re+1;break}}P.highlightFrontier=Math.min(P.highlightFrontier,$)}var Xe=!1,ze=!1;function Ze(){Xe=!0}function wt(){ze=!0}function st(P,W,$){this.marker=P,this.from=W,this.to=$}function Jt(P,W){if(P)for(var $=0;$<P.length;++$){var re=P[$];if(re.marker==W)return re}}function Rr(P,W){for(var $,re=0;re<P.length;++re)P[re]!=W&&($||($=[])).push(P[re]);return $}function Ir(P,W){P.markedSpans=P.markedSpans?P.markedSpans.concat([W]):[W],W.marker.attachLine(P)}function Xr(P,W,$){var re;if(P)for(var ce=0;ce<P.length;++ce){var ke=P[ce],ht=ke.marker,Wt=ke.from==null||(ht.inclusiveLeft?ke.from<=W:ke.from<W);if(Wt||ke.from==W&&ht.type=="bookmark"&&(!$||!ke.marker.insertLeft)){var sr=ke.to==null||(ht.inclusiveRight?ke.to>=W:ke.to>W);(re||(re=[])).push(new st(ht,ke.from,sr?null:ke.to))}}return re}function er(P,W,$){var re;if(P)for(var ce=0;ce<P.length;++ce){var ke=P[ce],ht=ke.marker,Wt=ke.to==null||(ht.inclusiveRight?ke.to>=W:ke.to>W);if(Wt||ke.from==W&&ht.type=="bookmark"&&(!$||ke.marker.insertLeft)){var sr=ke.from==null||(ht.inclusiveLeft?ke.from<=W:ke.from<W);(re||(re=[])).push(new st(ht,sr?null:ke.from-W,ke.to==null?null:ke.to-W))}}return re}function pn(P,W){if(W.full)return null;var $=Pr(P,W.from.line)&&Ie(P,W.from.line).markedSpans,re=Pr(P,W.to.line)&&Ie(P,W.to.line).markedSpans;if(!$&&!re)return null;var ce=W.from.ch,ke=W.to.ch,ht=nt(W.from,W.to)==0,Wt=Xr($,ce,ht),sr=er(re,ke,ht),pr=W.text.length==1,wn=me(W.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=W.text.length-2,xa;if(na>0&&Wt)for(var Ma=0;Ma<Wt.length;++Ma)Wt[Ma].to==null&&(xa||(xa=[])).push(new st(Wt[Ma].marker,null,null));for(var To=0;To<na;++To)ia.push(xa);ia.push(sr)}return ia}function fr(P){for(var W=0;W<P.length;++W){var $=P[W];$.from!=null&&$.from==$.to&&$.marker.clearWhenEmpty!==!1&&P.splice(W--,1)}return P.length?P:null}function mn(P,W,$){var re=null;if(P.iter(W.line,$.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:W,to:$}],ke=0;ke<re.length;++ke)for(var ht=re[ke],Wt=ht.find(0),sr=0;sr<ce.length;++sr){var pr=ce[sr];if(nt(pr.to,Wt.from)<0||nt(pr.from,Wt.to)>0)continue;var wn=[sr,1],Rn=nt(pr.from,Wt.from),ei=nt(pr.to,Wt.to);(Rn<0||!ht.inclusiveLeft&&!Rn)&&wn.push({from:pr.from,to:Wt.from}),(ei>0||!ht.inclusiveRight&&!ei)&&wn.push({from:Wt.to,to:pr.to}),ce.splice.apply(ce,wn),sr+=wn.length-3}return ce}function en(P){var W=P.markedSpans;if(!W)return;for(var $=0;$<W.length;++$)W[$].marker.detachLine(P);P.markedSpans=null}function Mr(P,W){if(!W)return;for(var $=0;$<W.length;++$)W[$].marker.attachLine(P);P.markedSpans=W}function Gn(P){return P.inclusiveLeft?-1:0}function di(P){return P.inclusiveRight?1:0}function _i(P,W){var $=P.lines.length-W.lines.length;if($!=0)return $;var re=P.find(),ce=W.find(),ke=nt(re.from,ce.from)||Gn(P)-Gn(W);if(ke)return-ke;var ht=nt(re.to,ce.to)||di(P)-di(W);return ht||W.id-P.id}function Br(P,W){var $=ze&&P.markedSpans,re;if($)for(var ce=void 0,ke=0;ke<$.length;++ke)ce=$[ke],ce.marker.collapsed&&(W?ce.from:ce.to)==null&&(!re||_i(re,ce.marker)<0)&&(re=ce.marker);return re}function sn(P){return Br(P,!0)}function Sn(P){return Br(P,!1)}function Dt(P,W){var $=ze&&P.markedSpans,re;if($)for(var ce=0;ce<$.length;++ce){var ke=$[ce];ke.marker.collapsed&&(ke.from==null||ke.from<W)&&(ke.to==null||ke.to>W)&&(!re||_i(re,ke.marker)<0)&&(re=ke.marker)}return re}function ft(P,W,$,re,ce){var ke=Ie(P,W),ht=ze&&ke.markedSpans;if(ht)for(var Wt=0;Wt<ht.length;++Wt){var sr=ht[Wt];if(!sr.marker.collapsed)continue;var pr=sr.marker.find(0),wn=nt(pr.from,$)||Gn(sr.marker)-Gn(ce),Rn=nt(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?nt(pr.to,$)>=0:nt(pr.to,$)>0)||wn>=0&&(sr.marker.inclusiveRight&&ce.inclusiveLeft?nt(pr.from,re)<=0:nt(pr.from,re)<0))return!0}}function St(P){for(var W;W=sn(P);)P=W.find(-1,!0).line;return P}function Ct(P){for(var W;W=Sn(P);)P=W.find(1,!0).line;return P}function Nt(P){for(var W,$;W=Sn(P);)P=W.find(1,!0).line,($||($=[])).push(P);return $}function gt(P,W){var $=Ie(P,W),re=St($);return $==re?W:Ot(re)}function Qt(P,W){if(W>P.lastLine())return W;var $=Ie(P,W),re;if(!tr(P,$))return W;for(;re=Sn($);)$=re.find(1,!0).line;return Ot($)+1}function tr(P,W){var $=ze&&W.markedSpans;if($)for(var re=void 0,ce=0;ce<$.length;++ce){if(re=$[ce],!re.marker.collapsed)continue;if(re.from==null)return!0;if(re.marker.widgetNode)continue;if(re.from==0&&re.marker.inclusiveLeft&&ar(P,W,re))return!0}}function ar(P,W,$){if($.to==null){var re=$.marker.find(1,!0);return ar(P,re.line,Jt(re.line.markedSpans,$.marker))}if($.marker.inclusiveRight&&$.to==W.text.length)return!0;for(var ce=void 0,ke=0;ke<W.markedSpans.length;++ke)if(ce=W.markedSpans[ke],ce.marker.collapsed&&!ce.marker.widgetNode&&ce.from==$.to&&(ce.to==null||ce.to!=$.from)&&(ce.marker.inclusiveLeft||$.marker.inclusiveRight)&&ar(P,W,ce))return!0}function yr(P){P=St(P);for(var W=0,$=P.parent,re=0;re<$.lines.length;++re){var ce=$.lines[re];if(ce==P)break;W+=ce.height}for(var ke=$.parent;ke;$=ke,ke=$.parent)for(var ht=0;ht<ke.children.length;++ht){var Wt=ke.children[ht];if(Wt==$)break;W+=Wt.height}return W}function xn(P){if(P.height==0)return 0;for(var W=P.text.length,$,re=P;$=sn(re);){var ce=$.find(0,!0);re=ce.from.line,W+=ce.from.ch-ce.to.ch}for(re=P;$=Sn(re);){var ke=$.find(0,!0);W-=re.text.length-ke.from.ch,re=ke.to.line,W+=re.text.length-ke.to.ch}return W}function vn(P){var W=P.display,$=P.doc;W.maxLine=Ie($,$.first),W.maxLineLength=xn(W.maxLine),W.maxLineChanged=!0,$.iter(function(re){var ce=xn(re);ce>W.maxLineLength&&(W.maxLineLength=ce,W.maxLine=re)})}var zn=function(W,$,re){this.text=W,Mr(this,$),this.height=re?re(this):1};zn.prototype.lineNo=function(){return Ot(this)},jt(zn);function Yr(P,W,$,re){P.text=W,P.stateAfter&&(P.stateAfter=null),P.styles&&(P.styles=null),P.order!=null&&(P.order=null),en(P),Mr(P,$);var ce=re?re(P):1;ce!=P.height&&ut(P,ce)}function xr(P){P.parent=null,en(P)}var ln={},On={};function In(P,W){if(!P||/^\s*$/.test(P))return null;var $=W.addModeClass?On:ln;return $[P]||($[P]=P.replace(/\S+/g,"cm-$&"))}function Un(P,W){var $=L("span",null,null,o?"padding-right: .1px":null),re={pre:L("pre",[$],"CodeMirror-line"),content:$,col:0,pos:0,cm:P,trailingSpace:!1,splitSpaces:P.getOption("lineWrapping")};W.measure={};for(var ce=0;ce<=(W.rest?W.rest.length:0);ce++){var ke=ce?W.rest[ce-1]:W.line,ht=void 0;re.pos=0,re.addToken=ui,or(P.display.measure)&&(ht=At(ke,P.doc.direction))&&(re.addToken=ki(re.addToken,ht)),re.map=[];var Wt=W!=P.display.externalMeasured&&Ot(ke);Ri(ke,re,$r(P,ke,Wt)),ke.styleClasses&&(ke.styleClasses.bgClass&&(re.bgClass=M(ke.styleClasses.bgClass,re.bgClass||"")),ke.styleClasses.textClass&&(re.textClass=M(ke.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(ot(P.display.measure))),ce==0?(W.measure.map=re.map,W.measure.cache={}):((W.measure.maps||(W.measure.maps=[])).push(re.map),(W.measure.caches||(W.measure.caches=[])).push({}))}if(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 Et(P,"renderLine",P,W.line,re.pre),re.pre.className&&(re.textClass=M(re.pre.className,re.textClass||"")),re}function ti(P){var W=I("span","\u2022","cm-invalidchar");return W.title="\\u"+P.charCodeAt(0).toString(16),W.setAttribute("aria-label",W.title),W}function ui(P,W,$,re,ce,ke,ht){if(!W)return;var Wt=P.splitSpaces?si(W,P.trailingSpace):W,sr=P.cm.state.specialChars,pr=!1,wn;if(!sr.test(W))P.col+=W.length,wn=document.createTextNode(Wt),P.map.push(P.pos,P.pos+W.length,wn),f&&c<9&&(pr=!0),P.pos+=W.length;else{wn=document.createDocumentFragment();for(var Rn=0;;){sr.lastIndex=Rn;var ei=sr.exec(W),ni=ei?ei.index-Rn:W.length-Rn;if(ni){var Mi=document.createTextNode(Wt.slice(Rn,Rn+ni));f&&c<9?wn.appendChild(I("span",[Mi])):wn.appendChild(Mi),P.map.push(P.pos,P.pos+ni,Mi),P.col+=ni,P.pos+=ni}if(!ei)break;Rn+=ni+1;var Zi=void 0;if(ei[0]==" "){var da=P.cm.options.tabSize,ia=da-P.col%da;Zi=wn.appendChild(I("span",Be(ia),"cm-tab")),Zi.setAttribute("role","presentation"),Zi.setAttribute("cm-text"," "),P.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]),P.col+=1):(Zi=P.cm.options.specialCharPlaceholder(ei[0]),Zi.setAttribute("cm-text",ei[0]),f&&c<9?wn.appendChild(I("span",[Zi])):wn.appendChild(Zi),P.col+=1);P.map.push(P.pos,P.pos+1,Zi),P.pos++}}if(P.trailingSpace=Wt.charCodeAt(W.length-1)==32,$||re||ce||pr||ke||ht){var na=$||"";re&&(na+=re),ce&&(na+=ce);var xa=I("span",[wn],na,ke);if(ht)for(var Ma in ht)ht.hasOwnProperty(Ma)&&Ma!="style"&&Ma!="class"&&xa.setAttribute(Ma,ht[Ma]);return P.content.appendChild(xa)}P.content.appendChild(wn)}function si(P,W){if(P.length>1&&!/ /.test(P))return P;for(var $=W,re="",ce=0;ce<P.length;ce++){var ke=P.charAt(ce);ke==" "&&$&&(ce==P.length-1||P.charCodeAt(ce+1)==32)&&(ke="\xA0"),re+=ke,$=ke==" "}return re}function ki(P,W){return function($,re,ce,ke,ht,Wt,sr){ce=ce?ce+" cm-force-border":"cm-force-border";for(var pr=$.pos,wn=pr+re.length;;){for(var Rn=void 0,ei=0;ei<W.length&&!(Rn=W[ei],Rn.to>pr&&Rn.from<=pr);ei++);if(Rn.to>=wn)return P($,re,ce,ke,ht,Wt,sr);P($,re.slice(0,Rn.to-pr),ce,ke,null,Wt,sr),ke=null,re=re.slice(Rn.to-pr),pr=Rn.to}}}function zi(P,W,$,re){var ce=!re&&$.widgetNode;ce&&P.map.push(P.pos,P.pos+W,ce),!re&&P.cm.display.input.needsContentAttribute&&(ce||(ce=P.content.appendChild(document.createElement("span"))),ce.setAttribute("cm-marker",$.id)),ce&&(P.cm.display.input.setUneditable(ce),P.content.appendChild(ce)),P.pos+=W,P.trailingSpace=!1}function Ri(P,W,$){var re=P.markedSpans,ce=P.text,ke=0;if(!re){for(var ht=1;ht<$.length;ht+=2)W.addToken(W,ce.slice(ke,ke=$[ht]),In($[ht+1],W.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(W,0,xa[Ts]);if(ia&&(ia.from||0)==sr){if(zi(W,(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;W.addToken(W,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(ke,ke=$[pr++]),Rn=In($[pr++],W.cm.options)}}}function Yi(P,W,$){this.line=W,this.rest=Nt(W),this.size=this.rest?Ot(me(this.rest))-$+1:1,this.node=this.text=null,this.hidden=tr(P,W)}function $n(P,W,$){for(var re=[],ce,ke=W;ke<$;ke=ce){var ht=new Yi(P.doc,Ie(P.doc,ke),ke);ce=ke+ht.size,re.push(ht)}return re}var gn=null;function mi(P){gn?gn.ops.push(P):P.ownsGroup=gn={ops:[P],delayedCallbacks:[]}}function Hi(P){var W=P.delayedCallbacks,$=0;do{for(;$<W.length;$++)W[$].call(null);for(var re=0;re<P.ops.length;re++){var ce=P.ops[re];if(ce.cursorActivityHandlers)for(;ce.cursorActivityCalled<ce.cursorActivityHandlers.length;)ce.cursorActivityHandlers[ce.cursorActivityCalled++].call(null,ce.cm)}}while($<W.length)}function Li(P,W){var $=P.ownsGroup;if(!$)return;try{Hi($)}finally{gn=null,W($)}}var Bi=null;function wr(P,W){var $=Lt(P,W);if(!$.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 ke=function(sr){ce.push(function(){return $[sr].apply(null,re)})},ht=0;ht<$.length;++ht)ke(ht)}function lr(){var P=Bi;Bi=null;for(var W=0;W<P.length;++W)P[W]()}function on(P,W,$,re){for(var ce=0;ce<W.changes.length;ce++){var ke=W.changes[ce];ke=="text"?Wr(P,W):ke=="gutter"?vt(P,W,$,re):ke=="class"?An(P,W):ke=="widget"&&mr(P,W,re)}W.changes=null}function Zt(P){return P.node==P.text&&(P.node=I("div",null,null,"position: relative"),P.text.parentNode&&P.text.parentNode.replaceChild(P.node,P.text),P.node.appendChild(P.text),f&&c<8&&(P.node.style.zIndex=2)),P.node}function br(P,W){var $=W.bgClass?W.bgClass+" "+(W.line.bgClass||""):W.line.bgClass;if($&&($+=" CodeMirror-linebackground"),W.background)$?W.background.className=$:(W.background.parentNode.removeChild(W.background),W.background=null);else if($){var re=Zt(W);W.background=re.insertBefore(I("div",null,$),re.firstChild),P.display.input.setUneditable(W.background)}}function Or(P,W){var $=P.display.externalMeasured;return $&&$.line==W.line?(P.display.externalMeasured=null,W.measure=$.measure,$.built):Un(P,W)}function Wr(P,W){var $=W.text.className,re=Or(P,W);W.text==W.node&&(W.node=re.pre),W.text.parentNode.replaceChild(re.pre,W.text),W.text=re.pre,re.bgClass!=W.bgClass||re.textClass!=W.textClass?(W.bgClass=re.bgClass,W.textClass=re.textClass,An(P,W)):$&&(W.text.className=$)}function An(P,W){br(P,W),W.line.wrapClass?Zt(W).className=W.line.wrapClass:W.node!=W.text&&(W.node.className="");var $=W.textClass?W.textClass+" "+(W.line.textClass||""):W.line.textClass;W.text.className=$||""}function vt(P,W,$,re){if(W.gutter&&(W.node.removeChild(W.gutter),W.gutter=null),W.gutterBackground&&(W.node.removeChild(W.gutterBackground),W.gutterBackground=null),W.line.gutterClass){var ce=Zt(W);W.gutterBackground=I("div",null,"CodeMirror-gutter-background "+W.line.gutterClass,"left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),P.display.input.setUneditable(W.gutterBackground),ce.insertBefore(W.gutterBackground,W.text)}var ke=W.line.gutterMarkers;if(P.options.lineNumbers||ke){var ht=Zt(W),Wt=W.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(P.display.input.setUneditable(Wt),ht.insertBefore(Wt,W.text),W.line.gutterClass&&(Wt.className+=" "+W.line.gutterClass),P.options.lineNumbers&&(!ke||!ke["CodeMirror-linenumbers"])&&(W.lineNumber=Wt.appendChild(I("div",un(P.options,$),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+P.display.lineNumInnerWidth+"px"))),ke)for(var sr=0;sr<P.display.gutterSpecs.length;++sr){var pr=P.display.gutterSpecs[sr].className,wn=ke.hasOwnProperty(pr)&&ke[pr];wn&&Wt.appendChild(I("div",[wn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[pr]+"px; width: "+re.gutterWidth[pr]+"px"))}}}function mr(P,W,$){W.alignable&&(W.alignable=null);for(var re=T("CodeMirror-linewidget"),ce=W.node.firstChild,ke=void 0;ce;ce=ke)ke=ce.nextSibling,re.test(ce.className)&&W.node.removeChild(ce);Fr(P,W,$)}function vr(P,W,$,re){var ce=Or(P,W);return W.text=W.node=ce.pre,ce.bgClass&&(W.bgClass=ce.bgClass),ce.textClass&&(W.textClass=ce.textClass),An(P,W),vt(P,W,$,re),Fr(P,W,re),W.node}function Fr(P,W,$){if(nn(P,W.line,W,$,!0),W.rest)for(var re=0;re<W.rest.length;re++)nn(P,W.rest[re],W,$,!1)}function nn(P,W,$,re,ce){if(!W.widgets)return;for(var ke=Zt($),ht=0,Wt=W.widgets;ht<Wt.length;++ht){var sr=Wt[ht],pr=I("div",[sr.node],"CodeMirror-linewidget"+(sr.className?" "+sr.className:""));sr.handleMouseEvents||pr.setAttribute("cm-ignore-events","true"),cn(sr,pr,$,re),P.display.input.setUneditable(pr),ce&&sr.above?ke.insertBefore(pr,$.gutter||$.text):ke.appendChild(pr),wr(sr,"redraw")}}function cn(P,W,$,re){if(P.noHScroll){($.alignable||($.alignable=[])).push(W);var ce=re.wrapperWidth;W.style.left=re.fixedPos+"px",P.coverGutter||(ce-=re.gutterTotalWidth,W.style.paddingLeft=re.gutterTotalWidth+"px"),W.style.width=ce+"px"}P.coverGutter&&(W.style.zIndex=5,W.style.position="relative",P.noHScroll||(W.style.marginLeft=-re.gutterTotalWidth+"px"))}function tn(P){if(P.height!=null)return P.height;var W=P.doc.cm;if(!W)return 0;if(!D(document.body,P.node)){var $="position: relative;";P.coverGutter&&($+="margin-left: -"+W.display.gutters.offsetWidth+"px;"),P.noHScroll&&($+="width: "+W.display.wrapper.clientWidth+"px;"),O(W.display.measure,I("div",[P.node],null,$))}return P.height=P.node.parentNode.offsetHeight}function Ln(P,W){for(var $=Le(W);$!=P.wrapper;$=$.parentNode)if(!$||$.nodeType==1&&$.getAttribute("cm-ignore-events")=="true"||$.parentNode==P.sizer&&$!=P.mover)return!0}function Tn(P){return P.lineSpace.offsetTop}function Xn(P){return P.mover.offsetHeight-P.lineSpace.offsetHeight}function ci(P){if(P.cachedPaddingH)return P.cachedPaddingH;var W=O(P.measure,I("pre","x","CodeMirror-line-like")),$=window.getComputedStyle?window.getComputedStyle(W):W.currentStyle,re={left:parseInt($.paddingLeft),right:parseInt($.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(P.cachedPaddingH=re),re}function Jn(P){return Q-P.display.nativeBarWidth}function pi(P){return P.display.scroller.clientWidth-Jn(P)-P.display.barWidth}function Si(P){return P.display.scroller.clientHeight-Jn(P)-P.display.barHeight}function Ni(P,W,$){var re=P.options.lineWrapping,ce=re&&pi(P);if(!W.measure.heights||re&&W.measure.width!=ce){var ke=W.measure.heights=[];if(re){W.measure.width=ce;for(var ht=W.text.firstChild.getClientRects(),Wt=0;Wt<ht.length-1;Wt++){var sr=ht[Wt],pr=ht[Wt+1];Math.abs(sr.bottom-pr.bottom)>2&&ke.push((sr.bottom+pr.top)/2-$.top)}}ke.push($.bottom-$.top)}}function xi(P,W,$){if(P.line==W)return{map:P.measure.map,cache:P.measure.cache};for(var re=0;re<P.rest.length;re++)if(P.rest[re]==W)return{map:P.measure.maps[re],cache:P.measure.caches[re]};for(var ce=0;ce<P.rest.length;ce++)if(Ot(P.rest[ce])>$)return{map:P.measure.maps[ce],cache:P.measure.caches[ce],before:!0}}function yi(P,W){W=St(W);var $=Ot(W),re=P.display.externalMeasured=new Yi(P.doc,W,$);re.lineN=$;var ce=re.built=Un(P,re);return re.text=ce.pre,O(P.display.lineMeasure,ce.pre),re}function vi(P,W,$,re){return $i(P,Ui(P,W),$,re)}function Ti(P,W){if(W>=P.display.viewFrom&&W<P.display.viewTo)return P.display.view[Fa(P,W)];var $=P.display.externalMeasured;if($&&W>=$.lineN&&W<$.lineN+$.size)return $}function Ui(P,W){var $=Ot(W),re=Ti(P,$);re&&!re.text?re=null:re&&re.changes&&(on(P,re,$,Ro(P)),P.curOp.forceUpdate=!0),re||(re=yi(P,W));var ce=xi(re,W,$);return{line:W,view:re,rect:null,map:ce.map,cache:ce.cache,before:ce.before,hasHeights:!1}}function $i(P,W,$,re,ce){W.before&&($=-1);var ke=$+(re||""),ht;return W.cache.hasOwnProperty(ke)?ht=W.cache[ke]:(W.rect||(W.rect=W.view.text.getBoundingClientRect()),W.hasHeights||(Ni(P,W.view,W.rect),W.hasHeights=!0),ht=Gi(P,W,$,re),ht.bogus||(W.cache[ke]=ht)),{left:ht.left,right:ht.right,top:ce?ht.rtop:ht.top,bottom:ce?ht.rbottom:ht.bottom}}var Di={left:0,right:0,top:0,bottom:0};function ua(P,W,$){for(var re,ce,ke,ht,Wt,sr,pr=0;pr<P.length;pr+=3)if(Wt=P[pr],sr=P[pr+1],W<Wt?(ce=0,ke=1,ht="left"):W<sr?(ce=W-Wt,ke=ce+1):(pr==P.length-3||W==sr&&P[pr+3]>W)&&(ke=sr-Wt,ce=ke-1,W>=sr&&(ht="right")),ce!=null){if(re=P[pr+2],Wt==sr&&$==(re.insertLeft?"left":"right")&&(ht=$),$=="left"&&ce==0)for(;pr&&P[pr-2]==P[pr-3]&&P[pr-1].insertLeft;)re=P[(pr-=3)+2],ht="left";if($=="right"&&ce==sr-Wt)for(;pr<P.length-3&&P[pr+3]==P[pr+4]&&!P[pr+5].insertLeft;)re=P[(pr+=3)+2],ht="right";break}return{node:re,start:ce,end:ke,collapse:ht,coverStart:Wt,coverEnd:sr}}function aa(P,W){var $=Di;if(W=="left")for(var re=0;re<P.length&&!(($=P[re]).left!=$.right);re++);else for(var ce=P.length-1;ce>=0&&!(($=P[ce]).left!=$.right);ce--);return $}function Gi(P,W,$,re){var ce=ua(W.map,$,re),ke=ce.node,ht=ce.start,Wt=ce.end,sr=ce.collapse,pr;if(ke.nodeType==3){for(var wn=0;wn<4;wn++){for(;ht&&de(W.line.text.charAt(ce.coverStart+ht));)--ht;for(;ce.coverStart+Wt<ce.coverEnd&&de(W.line.text.charAt(ce.coverStart+Wt));)++Wt;if(f&&c<9&&ht==0&&Wt==ce.coverEnd-ce.coverStart?pr=ke.parentNode.getBoundingClientRect():pr=aa(N(ke,ht,Wt).getClientRects(),re),pr.left||pr.right||ht==0)break;Wt=ht,ht=ht-1,sr="right"}f&&c<11&&(pr=Vi(P.display.measure,pr))}else{ht>0&&(sr=re="right");var Rn;P.options.lineWrapping&&(Rn=ke.getClientRects()).length>1?pr=Rn[re=="right"?Rn.length-1:0]:pr=ke.getBoundingClientRect()}if(f&&c<9&&!ht&&(!pr||!pr.left&&!pr.right)){var ei=ke.parentNode.getClientRects()[0];ei?pr={left:ei.left,right:ei.left+oo(P.display),top:ei.top,bottom:ei.bottom}:pr=Di}for(var ni=pr.top-W.rect.top,Mi=pr.bottom-W.rect.top,Zi=(ni+Mi)/2,da=W.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)-W.rect.left,right:(sr=="left"?pr.left:pr.right)-W.rect.left,top:na,bottom:xa};return!pr.left&&!pr.right&&(Ma.bogus=!0),P.options.singleCursorHeightPerLine||(Ma.rtop=ni,Ma.rbottom=Mi),Ma}function Vi(P,W){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ht(P))return W;var $=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:W.left*$,right:W.right*$,top:W.top*re,bottom:W.bottom*re}}function ta(P){if(P.measure&&(P.measure.cache={},P.measure.heights=null,P.rest))for(var W=0;W<P.rest.length;W++)P.measure.caches[W]={}}function Xi(P){P.display.externalMeasure=null,b(P.display.lineMeasure);for(var W=0;W<P.display.view.length;W++)ta(P.display.view[W])}function ga(P){Xi(P),P.display.cachedCharWidth=P.display.cachedTextHeight=P.display.cachedPaddingH=null,P.options.lineWrapping||(P.display.maxLineChanged=!0),P.display.lineNumChars=null}function ra(){return i&&s?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pa(){return i&&s?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _a(P){var W=0;if(P.widgets)for(var $=0;$<P.widgets.length;++$)P.widgets[$].above&&(W+=tn(P.widgets[$]));return W}function Da(P,W,$,re,ce){if(!ce){var ke=_a(W);$.top+=ke,$.bottom+=ke}if(re=="line")return $;re||(re="local");var ht=yr(W);if(re=="local"?ht+=Tn(P.display):ht-=P.display.viewOffset,re=="page"||re=="window"){var Wt=P.display.lineSpace.getBoundingClientRect();ht+=Wt.top+(re=="window"?0:pa());var sr=Wt.left+(re=="window"?0:ra());$.left+=sr,$.right+=sr}return $.top+=ht,$.bottom+=ht,$}function Ra(P,W,$){if($=="div")return W;var re=W.left,ce=W.top;if($=="page")re-=ra(),ce-=pa();else if($=="local"||!$){var ke=P.display.sizer.getBoundingClientRect();re+=ke.left,ce+=ke.top}var ht=P.display.lineSpace.getBoundingClientRect();return{left:re-ht.left,top:ce-ht.top}}function Ao(P,W,$,re,ce){return re||(re=Ie(P.doc,W.line)),Da(P,re,vi(P,re,W.ch,ce),$)}function ja(P,W,$,re,ce,ke){re=re||Ie(P.doc,W.line),ce||(ce=Ui(P,re));function ht(Mi,Zi){var da=$i(P,ce,Mi,Zi?"right":"left",ke);return Zi?da.left=da.right:da.right=da.left,Da(P,re,da,$)}var Wt=At(re,P.doc.direction),sr=W.ch,pr=W.sticky;if(sr>=re.text.length?(sr=re.text.length,pr="before"):sr<=0&&(sr=0,pr="after"),!Wt)return ht(pr=="before"?sr-1:sr,pr=="before");function wn(Mi,Zi,da){var ia=Wt[Zi],na=ia.level==1;return ht(da?Mi-1:Mi,na!=da)}var Rn=Te(Wt,sr,pr),ei=Ae,ni=wn(sr,Rn,pr=="before");return ei!=null&&(ni.other=wn(sr,ei,pr!="before")),ni}function Ya(P,W){var $=0;W=yt(P.doc,W),P.options.lineWrapping||($=oo(P.display)*W.ch);var re=Ie(P.doc,W.line),ce=yr(re)+Tn(P.display);return{left:$,right:$,top:ce,bottom:ce+re.height}}function Ia(P,W,$,re,ce){var ke=It(P,W,$);return ke.xRel=ce,re&&(ke.outside=re),ke}function Va(P,W,$){var re=P.doc;if($+=P.display.viewOffset,$<0)return Ia(re.first,0,null,-1,-1);var ce=Ar(re,$),ke=re.first+re.size-1;if(ce>ke)return Ia(re.first+re.size-1,Ie(re,ke).text.length,null,1,1);W<0&&(W=0);for(var ht=Ie(re,ce);;){var Wt=uo(P,ht,ce,W,$),sr=Dt(ht,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;ht=Ie(re,ce=pr.line)}}function co(P,W,$,re){re-=_a(W);var ce=W.text.length,ke=Me(function(ht){return $i(P,$,ht-1).bottom<=re},ce,0);return ce=Me(function(ht){return $i(P,$,ht).top>re},ke,ce),{begin:ke,end:ce}}function Ca(P,W,$,re){$||($=Ui(P,W));var ce=Da(P,W,$i(P,$,re),"line").top;return co(P,W,$,ce)}function yo(P,W,$,re){return P.bottom<=$?!1:P.top>$?!0:(re?P.left:P.right)>W}function uo(P,W,$,re,ce){ce-=yr(W);var ke=Ui(P,W),ht=_a(W),Wt=0,sr=W.text.length,pr=!0,wn=At(W,P.doc.direction);if(wn){var Rn=(P.options.lineWrapping?Oo:Ga)(P,W,$,ke,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=Me(function(To){var no=$i(P,ke,To);return no.top+=ht,no.bottom+=ht,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==W.text.length?"before":$i(P,ke,Mi-(pr?1:0)).bottom+ht<=ce==pr?"after":"before";var Ma=ja(P,It($,Mi,da),"line",W,ke);Zi=Ma.left,ia=ce<Ma.top?-1:ce>=Ma.bottom?1:0}return Mi=Ce(W.text,Mi,1),Ia($,Mi,da,ia,re-Zi)}function Ga(P,W,$,re,ce,ke,ht){var Wt=Me(function(Rn){var ei=ce[Rn],ni=ei.level!=1;return yo(ja(P,It($,ni?ei.to:ei.from,ni?"before":"after"),"line",W,re),ke,ht,!0)},0,ce.length-1),sr=ce[Wt];if(Wt>0){var pr=sr.level!=1,wn=ja(P,It($,pr?sr.from:sr.to,pr?"after":"before"),"line",W,re);yo(wn,ke,ht,!0)&&wn.top>ht&&(sr=ce[Wt-1])}return sr}function Oo(P,W,$,re,ce,ke,ht){var Wt=co(P,W,re,ht),sr=Wt.begin,pr=Wt.end;/\s/.test(W.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(P,re,Mi?Math.min(pr,ni.to)-1:Math.max(sr,ni.from)).right,da=Zi<ke?ke-Zi+1e9:Zi-ke;(!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(P){if(P.cachedTextHeight!=null)return P.cachedTextHeight;if(oa==null){oa=I("pre",null,"CodeMirror-line-like");for(var W=0;W<49;++W)oa.appendChild(document.createTextNode("x")),oa.appendChild(I("br"));oa.appendChild(document.createTextNode("x"))}O(P.measure,oa);var $=oa.offsetHeight/50;return $>3&&(P.cachedTextHeight=$),b(P.measure),$||1}function oo(P){if(P.cachedCharWidth!=null)return P.cachedCharWidth;var W=I("span","xxxxxxxxxx"),$=I("pre",[W],"CodeMirror-line-like");O(P.measure,$);var re=W.getBoundingClientRect(),ce=(re.right-re.left)/10;return ce>2&&(P.cachedCharWidth=ce),ce||10}function Ro(P){for(var W=P.display,$={},re={},ce=W.gutters.clientLeft,ke=W.gutters.firstChild,ht=0;ke;ke=ke.nextSibling,++ht){var Wt=P.display.gutterSpecs[ht].className;$[Wt]=ke.offsetLeft+ke.clientLeft+ce,re[Wt]=ke.clientWidth}return{fixedPos:Xa(W),gutterTotalWidth:W.gutters.offsetWidth,gutterLeft:$,gutterWidth:re,wrapperWidth:W.wrapper.clientWidth}}function Xa(P){return P.scroller.getBoundingClientRect().left-P.sizer.getBoundingClientRect().left}function _o(P){var W=qa(P.display),$=P.options.lineWrapping,re=$&&Math.max(5,P.display.scroller.clientWidth/oo(P.display)-3);return function(ce){if(tr(P.doc,ce))return 0;var ke=0;if(ce.widgets)for(var ht=0;ht<ce.widgets.length;ht++)ce.widgets[ht].height&&(ke+=ce.widgets[ht].height);return $?ke+(Math.ceil(ce.text.length/re)||1)*W:ke+W}}function go(P){var W=P.doc,$=_o(P);W.iter(function(re){var ce=$(re);ce!=re.height&&ut(re,ce)})}function Ja(P,W,$,re){var ce=P.display;if(!$&&Le(W).getAttribute("cm-not-content")=="true")return null;var ke,ht,Wt=ce.lineSpace.getBoundingClientRect();try{ke=W.clientX-Wt.left,ht=W.clientY-Wt.top}catch(Rn){return null}var sr=Va(P,ke,ht),pr;if(re&&sr.xRel>0&&(pr=Ie(P.doc,sr.line).text).length==sr.ch){var wn=K(pr,pr.length,P.options.tabSize)-pr.length;sr=It(sr.line,Math.max(0,Math.round((ke-ci(P.display).left)/oo(P.display))-wn))}return sr}function Fa(P,W){if(W>=P.display.viewTo)return null;if(W-=P.display.viewFrom,W<0)return null;for(var $=P.display.view,re=0;re<$.length;re++)if(W-=$[re].size,W<0)return re}function ha(P,W,$,re){W==null&&(W=P.doc.first),$==null&&($=P.doc.first+P.doc.size),re||(re=0);var ce=P.display;if(re&&$<ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>W)&&(ce.updateLineNumbers=W),P.curOp.viewChanged=!0,W>=ce.viewTo)ze&>(P.doc,W)<ce.viewTo&&cr(P);else if($<=ce.viewFrom)ze&&Qt(P.doc,$+re)>ce.viewFrom?cr(P):(ce.viewFrom+=re,ce.viewTo+=re);else if(W<=ce.viewFrom&&$>=ce.viewTo)cr(P);else if(W<=ce.viewFrom){var ke=kr(P,$,$+re,1);ke?(ce.view=ce.view.slice(ke.index),ce.viewFrom=ke.lineN,ce.viewTo+=re):cr(P)}else if($>=ce.viewTo){var ht=kr(P,W,W,-1);ht?(ce.view=ce.view.slice(0,ht.index),ce.viewTo=ht.lineN):cr(P)}else{var Wt=kr(P,W,W,-1),sr=kr(P,$,$+re,1);Wt&&sr?(ce.view=ce.view.slice(0,Wt.index).concat($n(P,Wt.lineN,sr.lineN)).concat(ce.view.slice(sr.index)),ce.viewTo+=re):cr(P)}var pr=ce.externalMeasured;pr&&($<pr.lineN?pr.lineN+=re:W<pr.lineN+pr.size&&(ce.externalMeasured=null))}function tt(P,W,$){P.curOp.viewChanged=!0;var re=P.display,ce=P.display.externalMeasured;if(ce&&W>=ce.lineN&&W<ce.lineN+ce.size&&(re.externalMeasured=null),W<re.viewFrom||W>=re.viewTo)return;var ke=re.view[Fa(P,W)];if(ke.node==null)return;var ht=ke.changes||(ke.changes=[]);z(ht,$)==-1&&ht.push($)}function cr(P){P.display.viewFrom=P.display.viewTo=P.doc.first,P.display.view=[],P.display.viewOffset=0}function kr(P,W,$,re){var ce=Fa(P,W),ke,ht=P.display.view;if(!ze||$==P.doc.first+P.doc.size)return{index:ce,lineN:$};for(var Wt=P.display.viewFrom,sr=0;sr<ce;sr++)Wt+=ht[sr].size;if(Wt!=W){if(re>0){if(ce==ht.length-1)return null;ke=Wt+ht[ce].size-W,ce++}else ke=Wt-W;W+=ke,$+=ke}for(;gt(P.doc,$)!=$;){if(ce==(re<0?0:ht.length-1))return null;$+=re*ht[ce-(re<0?1:0)].size,ce+=re}return{index:ce,lineN:$}}function Lr(P,W,$){var re=P.display,ce=re.view;ce.length==0||W>=re.viewTo||$<=re.viewFrom?(re.view=$n(P,W,$),re.viewFrom=W):(re.viewFrom>W?re.view=$n(P,W,re.viewFrom).concat(re.view):re.viewFrom<W&&(re.view=re.view.slice(Fa(P,W))),re.viewFrom=W,re.viewTo<$?re.view=re.view.concat($n(P,re.viewTo,$)):re.viewTo>$&&(re.view=re.view.slice(0,Fa(P,$)))),re.viewTo=$}function _n(P){for(var W=P.display.view,$=0,re=0;re<W.length;re++){var ce=W[re];!ce.hidden&&(!ce.node||ce.changes)&&++$}return $}function Vr(P){P.display.input.showSelection(P.display.input.prepareSelection())}function _r(P,W){W===void 0&&(W=!0);for(var $=P.doc,re={},ce=re.cursors=document.createDocumentFragment(),ke=re.selection=document.createDocumentFragment(),ht=0;ht<$.sel.ranges.length;ht++){if(!W&&ht==$.sel.primIndex)continue;var Wt=$.sel.ranges[ht];if(Wt.from().line>=P.display.viewTo||Wt.to().line<P.display.viewFrom)continue;var sr=Wt.empty();(sr||P.options.showCursorWhenSelecting)&&Pn(P,Wt.head,ce),sr||En(P,Wt,ke)}return re}function Pn(P,W,$){var re=ja(P,W,"div",null,null,!P.options.singleCursorHeightPerLine),ce=$.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)*P.options.cursorHeight+"px",re.other){var ke=$.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ke.style.display="",ke.style.left=re.other.left+"px",ke.style.top=re.other.top+"px",ke.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function Ur(P,W){return P.top-W.top||P.left-W.left}function En(P,W,$){var re=P.display,ce=P.doc,ke=document.createDocumentFragment(),ht=ci(P.display),Wt=ht.left,sr=Math.max(re.sizerWidth,pi(P)-re.sizer.offsetLeft)-ht.right,pr=ce.direction=="ltr";function wn(xa,Ma,To,no){Ma<0&&(Ma=0),Ma=Math.round(Ma),no=Math.round(no),ke.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=Ie(ce,xa),Wo=no.text.length,ps,Us;function Ts(Gs,cl){return Ao(P,It(xa,Gs),"div",no,cl)}function tl(Gs,cl,rl){var ya=Ca(P,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=At(no,ce.direction);return ue(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=W.from(),ni=W.to();if(ei.line==ni.line)Rn(ei.line,ei.ch,ni.ch);else{var Mi=Ie(ce,ei.line),Zi=Ie(ce,ni.line),da=St(Mi)==St(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)}$.appendChild(ke)}function jn(P){if(!P.state.focused)return;var W=P.display;clearInterval(W.blinker);var $=!0;W.cursorDiv.style.visibility="",P.options.cursorBlinkRate>0?W.blinker=setInterval(function(){P.hasFocus()||Yn(P),W.cursorDiv.style.visibility=($=!$)?"":"hidden"},P.options.cursorBlinkRate):P.options.cursorBlinkRate<0&&(W.cursorDiv.style.visibility="hidden")}function Hn(P){P.state.focused||(P.display.input.focus(),ri(P))}function Bn(P){P.state.delayingBlurEvent=!0,setTimeout(function(){P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1,Yn(P))},100)}function ri(P,W){if(P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1),P.options.readOnly=="nocursor")return;P.state.focused||(Et(P,"focus",P,W),P.state.focused=!0,k(P.display.wrapper,"CodeMirror-focused"),!P.curOp&&P.display.selForContextMenu!=P.doc.sel&&(P.display.input.reset(),o&&setTimeout(function(){return P.display.input.reset(!0)},20)),P.display.input.receivedFocus()),jn(P)}function Yn(P,W){if(P.state.delayingBlurEvent)return;P.state.focused&&(Et(P,"blur",P,W),P.state.focused=!1,S(P.display.wrapper,"CodeMirror-focused")),clearInterval(P.display.blinker),setTimeout(function(){P.state.focused||(P.display.shift=!1)},150)}function ii(P){for(var W=P.display,$=W.lineDiv.offsetTop,re=0;re<W.view.length;re++){var ce=W.view[re],ke=P.options.lineWrapping,ht=void 0,Wt=0;if(ce.hidden)continue;if(f&&c<8){var sr=ce.node.offsetTop+ce.node.offsetHeight;ht=sr-$,$=sr}else{var pr=ce.node.getBoundingClientRect();ht=pr.bottom-pr.top,!ke&&ce.text.firstChild&&(Wt=ce.text.firstChild.getBoundingClientRect().right-pr.left-1)}var wn=ce.line.height-ht;if((wn>.005||wn<-.005)&&(ut(ce.line,ht),ai(ce.line),ce.rest))for(var Rn=0;Rn<ce.rest.length;Rn++)ai(ce.rest[Rn]);if(Wt>P.display.sizerWidth){var ei=Math.ceil(Wt/oo(P.display));ei>P.display.maxLineLength&&(P.display.maxLineLength=ei,P.display.maxLine=ce.line,P.display.maxLineChanged=!0)}}}function ai(P){if(P.widgets)for(var W=0;W<P.widgets.length;++W){var $=P.widgets[W],re=$.node.parentNode;re&&($.height=re.offsetHeight)}}function Pi(P,W,$){var re=$&&$.top!=null?Math.max(0,$.top):P.scroller.scrollTop;re=Math.floor(re-Tn(P));var ce=$&&$.bottom!=null?$.bottom:re+P.wrapper.clientHeight,ke=Ar(W,re),ht=Ar(W,ce);if($&&$.ensure){var Wt=$.ensure.from.line,sr=$.ensure.to.line;Wt<ke?(ke=Wt,ht=Ar(W,yr(Ie(W,Wt))+P.wrapper.clientHeight)):Math.min(sr,W.lastLine())>=ht&&(ke=Ar(W,yr(Ie(W,sr))-P.wrapper.clientHeight),ht=sr)}return{from:ke,to:Math.max(ht,ke+1)}}function bi(P,W){if(Ut(P,"scrollCursorIntoView"))return;var $=P.display,re=$.sizer.getBoundingClientRect(),ce=null;if(W.top+re.top<0?ce=!0:W.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(ce=!1),ce!=null&&!t){var ke=I("div","\u200B",null,`position: absolute;
|
|
|
top: `+(W.top-$.viewOffset-Tn(P.display))+`px;
|
|
|
height: `+(W.bottom-W.top+Jn(P)+$.barHeight)+`px;
|
|
|
left: `+W.left+"px; width: "+Math.max(2,W.right-W.left)+"px;");P.display.lineSpace.appendChild(ke),ke.scrollIntoView(ce),P.display.lineSpace.removeChild(ke)}}function Ki(P,W,$,re){re==null&&(re=0);var ce;!P.options.lineWrapping&&W==$&&(W=W.ch?It(W.line,W.sticky=="before"?W.ch-1:W.ch,"after"):W,$=W.sticky=="before"?It(W.line,W.ch+1,"before"):W);for(var ke=0;ke<5;ke++){var ht=!1,Wt=ja(P,W),sr=!$||$==W?Wt:ja(P,$);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(P,ce),wn=P.doc.scrollTop,Rn=P.doc.scrollLeft;if(pr.scrollTop!=null&&(qi(P,pr.scrollTop),Math.abs(P.doc.scrollTop-wn)>1&&(ht=!0)),pr.scrollLeft!=null&&(ma(P,pr.scrollLeft),Math.abs(P.doc.scrollLeft-Rn)>1&&(ht=!0)),!ht)break}return ce}function Aa(P,W){var $=ea(P,W);$.scrollTop!=null&&qi(P,$.scrollTop),$.scrollLeft!=null&&ma(P,$.scrollLeft)}function ea(P,W){var $=P.display,re=qa(P.display);W.top<0&&(W.top=0);var ce=P.curOp&&P.curOp.scrollTop!=null?P.curOp.scrollTop:$.scroller.scrollTop,ke=Si(P),ht={};W.bottom-W.top>ke&&(W.bottom=W.top+ke);var Wt=P.doc.height+Xn($),sr=W.top<re,pr=W.bottom>Wt-re;if(W.top<ce)ht.scrollTop=sr?0:W.top;else if(W.bottom>ce+ke){var wn=Math.min(W.top,(pr?Wt:W.bottom)-ke);wn!=ce&&(ht.scrollTop=wn)}var Rn=P.options.fixedGutter?0:$.gutters.offsetWidth,ei=P.curOp&&P.curOp.scrollLeft!=null?P.curOp.scrollLeft:$.scroller.scrollLeft-Rn,ni=pi(P)-$.gutters.offsetWidth,Mi=W.right-W.left>ni;return Mi&&(W.right=W.left+ni),W.left<10?ht.scrollLeft=0:W.left<ei?ht.scrollLeft=Math.max(0,W.left+Rn-(Mi?0:10)):W.right>ni+ei-3&&(ht.scrollLeft=W.right+(Mi?0:10)-ni),ht}function Ji(P,W){if(W==null)return;Qa(P),P.curOp.scrollTop=(P.curOp.scrollTop==null?P.doc.scrollTop:P.curOp.scrollTop)+W}function sa(P){Qa(P);var W=P.getCursor();P.curOp.scrollToPos={from:W,to:W,margin:P.options.cursorScrollMargin}}function fa(P,W,$){(W!=null||$!=null)&&Qa(P),W!=null&&(P.curOp.scrollLeft=W),$!=null&&(P.curOp.scrollTop=$)}function xo(P,W){Qa(P),P.curOp.scrollToPos=W}function Qa(P){var W=P.curOp.scrollToPos;if(W){P.curOp.scrollToPos=null;var $=Ya(P,W.from),re=Ya(P,W.to);Wi(P,$,re,W.margin)}}function Wi(P,W,$,re){var ce=ea(P,{left:Math.min(W.left,$.left),top:Math.min(W.top,$.top)-re,right:Math.max(W.right,$.right),bottom:Math.max(W.bottom,$.bottom)+re});fa(P,ce.scrollLeft,ce.scrollTop)}function qi(P,W){if(Math.abs(P.doc.scrollTop-W)<2)return;C||bs(P,{top:W}),ca(P,W,!0),C&&bs(P),zo(P,100)}function ca(P,W,$){if(W=Math.max(0,Math.min(P.display.scroller.scrollHeight-P.display.scroller.clientHeight,W)),P.display.scroller.scrollTop==W&&!$)return;P.doc.scrollTop=W,P.display.scrollbars.setScrollTop(W),P.display.scroller.scrollTop!=W&&(P.display.scroller.scrollTop=W)}function ma(P,W,$,re){if(W=Math.max(0,Math.min(W,P.display.scroller.scrollWidth-P.display.scroller.clientWidth)),($?W==P.doc.scrollLeft:Math.abs(P.doc.scrollLeft-W)<2)&&!re)return;P.doc.scrollLeft=W,_s(P),P.display.scroller.scrollLeft!=W&&(P.display.scroller.scrollLeft=W),P.display.scrollbars.setScrollLeft(W)}function Pa(P){var W=P.display,$=W.gutters.offsetWidth,re=Math.round(P.doc.height+Xn(P.display));return{clientHeight:W.scroller.clientHeight,viewHeight:W.wrapper.clientHeight,scrollWidth:W.scroller.scrollWidth,clientWidth:W.scroller.clientWidth,viewWidth:W.wrapper.clientWidth,barLeft:P.options.fixedGutter?$:0,docHeight:re,scrollHeight:re+Jn(P)+W.barHeight,nativeBarWidth:W.nativeBarWidth,gutterWidth:$}}var La=function(W,$,re){this.cm=re;var ce=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ke=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ce.tabIndex=ke.tabIndex=-1,W(ce),W(ke),Re(ce,"scroll",function(){ce.clientHeight&&$(ce.scrollTop,"vertical")}),Re(ke,"scroll",function(){ke.clientWidth&&$(ke.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};La.prototype.update=function(P){var W=P.scrollWidth>P.clientWidth+1,$=P.scrollHeight>P.clientHeight+1,re=P.nativeBarWidth;if($){this.vert.style.display="block",this.vert.style.bottom=W?re+"px":"0";var ce=P.viewHeight-(W?re:0);this.vert.firstChild.style.height=Math.max(0,P.scrollHeight-P.clientHeight+ce)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(W){this.horiz.style.display="block",this.horiz.style.right=$?re+"px":"0",this.horiz.style.left=P.barLeft+"px";var ke=P.viewWidth-P.barLeft-($?re:0);this.horiz.firstChild.style.width=Math.max(0,P.scrollWidth-P.clientWidth+ke)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&P.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:$?re:0,bottom:W?re:0}},La.prototype.setScrollLeft=function(P){this.horiz.scrollLeft!=P&&(this.horiz.scrollLeft=P),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},La.prototype.setScrollTop=function(P){this.vert.scrollTop!=P&&(this.vert.scrollTop=P),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},La.prototype.zeroWidthHack=function(){var P=h&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=P,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},La.prototype.enableZeroWidthBar=function(P,W,$){P.style.pointerEvents="auto";function re(){var ce=P.getBoundingClientRect(),ke=$=="vert"?document.elementFromPoint(ce.right-1,(ce.top+ce.bottom)/2):document.elementFromPoint((ce.right+ce.left)/2,ce.bottom-1);ke!=P?P.style.pointerEvents="none":W.set(1e3,re)}W.set(1e3,re)},La.prototype.clear=function(){var P=this.horiz.parentNode;P.removeChild(this.horiz),P.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(P,W){W||(W=Pa(P));var $=P.display.barWidth,re=P.display.barHeight;ko(P,W);for(var ce=0;ce<4&&$!=P.display.barWidth||re!=P.display.barHeight;ce++)$!=P.display.barWidth&&P.options.lineWrapping&&ii(P),ko(P,Pa(P)),$=P.display.barWidth,re=P.display.barHeight}function ko(P,W){var $=P.display,re=$.scrollbars.update(W);$.sizer.style.paddingRight=($.barWidth=re.right)+"px",$.sizer.style.paddingBottom=($.barHeight=re.bottom)+"px",$.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?($.scrollbarFiller.style.display="block",$.scrollbarFiller.style.height=re.bottom+"px",$.scrollbarFiller.style.width=re.right+"px"):$.scrollbarFiller.style.display="",re.bottom&&P.options.coverGutterNextToScrollbar&&P.options.fixedGutter?($.gutterFiller.style.display="block",$.gutterFiller.style.height=re.bottom+"px",$.gutterFiller.style.width=W.gutterWidth+"px"):$.gutterFiller.style.display=""}var jo={native:La,null:Za};function cs(P){P.display.scrollbars&&(P.display.scrollbars.clear(),P.display.scrollbars.addClass&&S(P.display.wrapper,P.display.scrollbars.addClass)),P.display.scrollbars=new jo[P.options.scrollbarStyle](function(W){P.display.wrapper.insertBefore(W,P.display.scrollbarFiller),Re(W,"mousedown",function(){P.state.focused&&setTimeout(function(){return P.display.input.focus()},0)}),W.setAttribute("cm-not-content","true")},function(W,$){$=="horizontal"?ma(P,W):qi(P,W)},P),P.display.scrollbars.addClass&&k(P.display.wrapper,P.display.scrollbars.addClass)}var Mo=0;function Lo(P){P.curOp={cm:P,viewChanged:!1,startHeight:P.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Mo},mi(P.curOp)}function Ba(P){var W=P.curOp;W&&Li(W,function($){for(var re=0;re<$.ops.length;re++)$.ops[re].cm.curOp=null;za($)})}function za(P){for(var W=P.ops,$=0;$<W.length;$++)Ta(W[$]);for(var re=0;re<W.length;re++)Po(W[re]);for(var ce=0;ce<W.length;ce++)Qo(W[ce]);for(var ke=0;ke<W.length;ke++)so(W[ke]);for(var ht=0;ht<W.length;ht++)Os(W[ht])}function Ta(P){var W=P.cm,$=W.display;Js(W),P.updateMaxLine&&vn(W),P.mustUpdate=P.viewChanged||P.forceUpdate||P.scrollTop!=null||P.scrollToPos&&(P.scrollToPos.from.line<$.viewFrom||P.scrollToPos.to.line>=$.viewTo)||$.maxLineChanged&&W.options.lineWrapping,P.update=P.mustUpdate&&new es(W,P.mustUpdate&&{top:P.scrollTop,ensure:P.scrollToPos},P.forceUpdate)}function Po(P){P.updatedDisplay=P.mustUpdate&&Ko(P.cm,P.update)}function Qo(P){var W=P.cm,$=W.display;P.updatedDisplay&&ii(W),P.barMeasure=Pa(W),$.maxLineChanged&&!W.options.lineWrapping&&(P.adjustWidthTo=vi(W,$.maxLine,$.maxLine.text.length).left+3,W.display.sizerWidth=P.adjustWidthTo,P.barMeasure.scrollWidth=Math.max($.scroller.clientWidth,$.sizer.offsetLeft+P.adjustWidthTo+Jn(W)+W.display.barWidth),P.maxScrollLeft=Math.max(0,$.sizer.offsetLeft+P.adjustWidthTo-pi(W))),(P.updatedDisplay||P.selectionChanged)&&(P.preparedSelection=$.input.prepareSelection())}function so(P){var W=P.cm;P.adjustWidthTo!=null&&(W.display.sizer.style.minWidth=P.adjustWidthTo+"px",P.maxScrollLeft<W.doc.scrollLeft&&ma(W,Math.min(W.display.scroller.scrollLeft,P.maxScrollLeft),!0),W.display.maxLineChanged=!1);var $=P.focus&&P.focus==R();P.preparedSelection&&W.display.input.showSelection(P.preparedSelection,$),(P.updatedDisplay||P.startHeight!=W.doc.height)&&eo(W,P.barMeasure),P.updatedDisplay&&us(W,P.barMeasure),P.selectionChanged&&jn(W),W.state.focused&&P.updateInput&&W.display.input.reset(P.typing),$&&Hn(P.cm)}function Os(P){var W=P.cm,$=W.display,re=W.doc;if(P.updatedDisplay&&hs(W,P.update),$.wheelStartX!=null&&(P.scrollTop!=null||P.scrollLeft!=null||P.scrollToPos)&&($.wheelStartX=$.wheelStartY=null),P.scrollTop!=null&&ca(W,P.scrollTop,P.forceScroll),P.scrollLeft!=null&&ma(W,P.scrollLeft,!0,!0),P.scrollToPos){var ce=Ki(W,yt(re,P.scrollToPos.from),yt(re,P.scrollToPos.to),P.scrollToPos.margin);bi(W,ce)}var ke=P.maybeHiddenMarkers,ht=P.maybeUnhiddenMarkers;if(ke)for(var Wt=0;Wt<ke.length;++Wt)ke[Wt].lines.length||Et(ke[Wt],"hide");if(ht)for(var sr=0;sr<ht.length;++sr)ht[sr].lines.length&&Et(ht[sr],"unhide");$.wrapper.offsetHeight&&(re.scrollTop=W.display.scroller.scrollTop),P.changeObjs&&Et(W,"changes",W,P.changeObjs),P.update&&P.update.finish()}function ho(P,W){if(P.curOp)return W();Lo(P);try{return W()}finally{Ba(P)}}function bo(P,W){return function(){if(P.curOp)return W.apply(P,arguments);Lo(P);try{return W.apply(P,arguments)}finally{Ba(P)}}}function ds(P){return function(){if(this.curOp)return P.apply(this,arguments);Lo(this);try{return P.apply(this,arguments)}finally{Ba(this)}}}function Ho(P){return function(){var W=this.cm;if(!W||W.curOp)return P.apply(this,arguments);Lo(W);try{return P.apply(this,arguments)}finally{Ba(W)}}}function zo(P,W){P.doc.highlightFrontier<P.display.viewTo&&P.state.highlight.set(W,F(rn,P))}function rn(P){var W=P.doc;if(W.highlightFrontier>=P.display.viewTo)return;var $=+new Date+P.options.workTime,re=kn(P,W.highlightFrontier),ce=[];W.iter(re.line,Math.min(W.first+W.size,P.display.viewTo+500),function(ke){if(re.line>=P.display.viewFrom){var ht=ke.styles,Wt=ke.text.length>P.options.maxHighlightLength?Ft(W.mode,re.state):null,sr=Jr(P,ke,re,!0);Wt&&(re.state=Wt),ke.styles=sr.styles;var pr=ke.styleClasses,wn=sr.classes;wn?ke.styleClasses=wn:pr&&(ke.styleClasses=null);for(var Rn=!ht||ht.length!=ke.styles.length||pr!=wn&&(!pr||!wn||pr.bgClass!=wn.bgClass||pr.textClass!=wn.textClass),ei=0;!Rn&&ei<ht.length;++ei)Rn=ht[ei]!=ke.styles[ei];Rn&&ce.push(re.line),ke.stateAfter=re.save(),re.nextLine()}else ke.text.length<=P.options.maxHighlightLength&&Dn(P,ke.text,re),ke.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>$)return zo(P,P.options.workDelay),!0}),W.highlightFrontier=re.line,W.modeFrontier=Math.max(W.modeFrontier,re.line),ce.length&&ho(P,function(){for(var ke=0;ke<ce.length;ke++)tt(P,ce[ke],"text")})}var es=function(W,$,re){var ce=W.display;this.viewport=$,this.visible=Pi(ce,W.doc,$),this.editorIsHidden=!ce.wrapper.offsetWidth,this.wrapperHeight=ce.wrapper.clientHeight,this.wrapperWidth=ce.wrapper.clientWidth,this.oldDisplayWidth=pi(W),this.force=re,this.dims=Ro(W),this.events=[]};es.prototype.signal=function(P,W){_t(P,W)&&this.events.push(arguments)},es.prototype.finish=function(){for(var P=0;P<this.events.length;P++)Et.apply(null,this.events[P])};function Js(P){var W=P.display;!W.scrollbarsClipped&&W.scroller.offsetWidth&&(W.nativeBarWidth=W.scroller.offsetWidth-W.scroller.clientWidth,W.heightForcer.style.height=Jn(P)+"px",W.sizer.style.marginBottom=-W.nativeBarWidth+"px",W.sizer.style.borderRightWidth=Jn(P)+"px",W.scrollbarsClipped=!0)}function Es(P){if(P.hasFocus())return null;var W=R();if(!W||!D(P.display.lineDiv,W))return null;var $={activeElt:W};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&D(P.display.lineDiv,re.anchorNode)&&($.anchorNode=re.anchorNode,$.anchorOffset=re.anchorOffset,$.focusNode=re.focusNode,$.focusOffset=re.focusOffset)}return $}function gs(P){if(!P||!P.activeElt||P.activeElt==R())return;if(P.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(P.activeElt.nodeName)&&P.anchorNode&&D(document.body,P.anchorNode)&&D(document.body,P.focusNode)){var W=window.getSelection(),$=document.createRange();$.setEnd(P.anchorNode,P.anchorOffset),$.collapse(!1),W.removeAllRanges(),W.addRange($),W.extend(P.focusNode,P.focusOffset)}}function Ko(P,W){var $=P.display,re=P.doc;if(W.editorIsHidden)return cr(P),!1;if(!W.force&&W.visible.from>=$.viewFrom&&W.visible.to<=$.viewTo&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo)&&$.renderedView==$.view&&_n(P)==0)return!1;vs(P)&&(cr(P),W.dims=Ro(P));var ce=re.first+re.size,ke=Math.max(W.visible.from-P.options.viewportMargin,re.first),ht=Math.min(ce,W.visible.to+P.options.viewportMargin);$.viewFrom<ke&&ke-$.viewFrom<20&&(ke=Math.max(re.first,$.viewFrom)),$.viewTo>ht&&$.viewTo-ht<20&&(ht=Math.min(ce,$.viewTo)),ze&&(ke=gt(P.doc,ke),ht=Qt(P.doc,ht));var Wt=ke!=$.viewFrom||ht!=$.viewTo||$.lastWrapHeight!=W.wrapperHeight||$.lastWrapWidth!=W.wrapperWidth;Lr(P,ke,ht),$.viewOffset=yr(Ie(P.doc,$.viewFrom)),P.display.mover.style.top=$.viewOffset+"px";var sr=_n(P);if(!Wt&&sr==0&&!W.force&&$.renderedView==$.view&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo))return!1;var pr=Es(P);return sr>4&&($.lineDiv.style.display="none"),ws(P,$.updateLineNumbers,W.dims),sr>4&&($.lineDiv.style.display=""),$.renderedView=$.view,gs(pr),b($.cursorDiv),b($.selectionDiv),$.gutters.style.height=$.sizer.style.minHeight=0,Wt&&($.lastWrapHeight=W.wrapperHeight,$.lastWrapWidth=W.wrapperWidth,zo(P,400)),$.updateLineNumbers=null,!0}function hs(P,W){for(var $=W.viewport,re=!0;;re=!1){if(!re||!P.options.lineWrapping||W.oldDisplayWidth==pi(P)){if($&&$.top!=null&&($={top:Math.min(P.doc.height+Xn(P.display)-Si(P),$.top)}),W.visible=Pi(P.display,P.doc,$),W.visible.from>=P.display.viewFrom&&W.visible.to<=P.display.viewTo)break}else re&&(W.visible=Pi(P.display,P.doc,$));if(!Ko(P,W))break;ii(P);var ce=Pa(P);Vr(P),eo(P,ce),us(P,ce),W.force=!1}W.signal(P,"update",P),(P.display.viewFrom!=P.display.reportedViewFrom||P.display.viewTo!=P.display.reportedViewTo)&&(W.signal(P,"viewportChange",P,P.display.viewFrom,P.display.viewTo),P.display.reportedViewFrom=P.display.viewFrom,P.display.reportedViewTo=P.display.viewTo)}function bs(P,W){var $=new es(P,W);if(Ko(P,$)){ii(P),hs(P,$);var re=Pa(P);Vr(P),eo(P,re),us(P,re),$.finish()}}function ws(P,W,$){var re=P.display,ce=P.options.lineNumbers,ke=re.lineDiv,ht=ke.firstChild;function Wt(Mi){var Zi=Mi.nextSibling;return o&&h&&P.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!=ke){var ei=vr(P,Rn,pr,$);ke.insertBefore(ei,ht)}else{for(;ht!=Rn.node;)ht=Wt(ht);var ni=ce&&W!=null&&W<=pr&&Rn.lineNumber;Rn.changes&&(z(Rn.changes,"gutter")>-1&&(ni=!1),on(P,Rn,pr,$)),ni&&(b(Rn.lineNumber),Rn.lineNumber.appendChild(document.createTextNode(un(P.options,pr)))),ht=Rn.node.nextSibling}pr+=Rn.size}for(;ht;)ht=Wt(ht)}function qo(P){var W=P.gutters.offsetWidth;P.sizer.style.marginLeft=W+"px"}function us(P,W){P.display.sizer.style.minHeight=W.docHeight+"px",P.display.heightForcer.style.top=W.docHeight+"px",P.display.gutters.style.height=W.docHeight+P.display.barHeight+Jn(P)+"px"}function _s(P){var W=P.display,$=W.view;if(!W.alignWidgets&&(!W.gutters.firstChild||!P.options.fixedGutter))return;for(var re=Xa(W)-W.scroller.scrollLeft+P.doc.scrollLeft,ce=W.gutters.offsetWidth,ke=re+"px",ht=0;ht<$.length;ht++)if(!$[ht].hidden){P.options.fixedGutter&&($[ht].gutter&&($[ht].gutter.style.left=ke),$[ht].gutterBackground&&($[ht].gutterBackground.style.left=ke));var Wt=$[ht].alignable;if(Wt)for(var sr=0;sr<Wt.length;sr++)Wt[sr].style.left=ke}P.options.fixedGutter&&(W.gutters.style.left=re+ce+"px")}function vs(P){if(!P.options.lineNumbers)return!1;var W=P.doc,$=un(P.options,W.first+W.size-1),re=P.display;if($.length!=re.lineNumChars){var ce=re.measure.appendChild(I("div",[I("div",$)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ke=ce.firstChild.offsetWidth,ht=ce.offsetWidth-ke;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(ke,re.lineGutter.offsetWidth-ht)+1,re.lineNumWidth=re.lineNumInnerWidth+ht,re.lineNumChars=re.lineNumInnerWidth?$.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",qo(P.display),!0}return!1}function vo(P,W){for(var $=[],re=!1,ce=0;ce<P.length;ce++){var ke=P[ce],ht=null;if(typeof ke!="string"&&(ht=ke.style,ke=ke.className),ke=="CodeMirror-linenumbers")if(W)re=!0;else continue;$.push({className:ke,style:ht})}return W&&!re&&$.push({className:"CodeMirror-linenumbers",style:null}),$}function to(P){var W=P.gutters,$=P.gutterSpecs;b(W),P.lineGutter=null;for(var re=0;re<$.length;++re){var ce=$[re],ke=ce.className,ht=ce.style,Wt=W.appendChild(I("div",null,"CodeMirror-gutter "+ke));ht&&(Wt.style.cssText=ht),ke=="CodeMirror-linenumbers"&&(P.lineGutter=Wt,Wt.style.width=(P.lineNumWidth||1)+"px")}W.style.display=$.length?"":"none",qo(P)}function Jo(P){to(P.display),ha(P),_s(P)}function ts(P,W,$,re){var ce=this;this.input=$,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 ke=L("div",[ce.lineSpace],"CodeMirror-lines");ce.mover=I("div",[ke],null,"position: relative"),ce.sizer=I("div",[ce.mover],"CodeMirror-sizer"),ce.sizerWidth=null,ce.heightForcer=I("div",null,null,"position: absolute; height: "+Q+"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),P&&(P.appendChild?P.appendChild(ce.wrapper):P(ce.wrapper)),ce.viewFrom=ce.viewTo=W.first,ce.reportedViewFrom=ce.reportedViewTo=W.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),$.init(ce)}var Ha=0,Tt=null;f?Tt=-.53:C?Tt=15:i?Tt=-.7:e&&(Tt=-1/3);function Vt(P){var W=P.wheelDeltaX,$=P.wheelDeltaY;return W==null&&P.detail&&P.axis==P.HORIZONTAL_AXIS&&(W=P.detail),$==null&&P.detail&&P.axis==P.VERTICAL_AXIS?$=P.detail:$==null&&($=P.wheelDelta),{x:W,y:$}}function hn(P){var W=Vt(P);return W.x*=Tt,W.y*=Tt,W}function Vn(P,W){var $=Vt(W),re=$.x,ce=$.y,ke=P.display,ht=ke.scroller,Wt=ht.scrollWidth>ht.clientWidth,sr=ht.scrollHeight>ht.clientHeight;if(!(re&&Wt||ce&&sr))return;if(ce&&h&&o){e:for(var pr=W.target,wn=ke.view;pr!=ht;pr=pr.parentNode)for(var Rn=0;Rn<wn.length;Rn++)if(wn[Rn].node==pr){P.display.currentWheelTarget=pr;break e}}if(re&&!C&&!n&&Tt!=null){ce&&sr&&qi(P,Math.max(0,ht.scrollTop+ce*Tt)),ma(P,Math.max(0,ht.scrollLeft+re*Tt)),(!ce||ce&&sr)&&He(W),ke.wheelStartX=null;return}if(ce&&Tt!=null){var ei=ce*Tt,ni=P.doc.scrollTop,Mi=ni+ke.wrapper.clientHeight;ei<0?ni=Math.max(0,ni+ei-50):Mi=Math.min(P.doc.height,Mi+ei+50),bs(P,{top:ni,bottom:Mi})}Ha<20&&(ke.wheelStartX==null?(ke.wheelStartX=ht.scrollLeft,ke.wheelStartY=ht.scrollTop,ke.wheelDX=re,ke.wheelDY=ce,setTimeout(function(){if(ke.wheelStartX==null)return;var Zi=ht.scrollLeft-ke.wheelStartX,da=ht.scrollTop-ke.wheelStartY,ia=da&&ke.wheelDY&&da/ke.wheelDY||Zi&&ke.wheelDX&&Zi/ke.wheelDX;if(ke.wheelStartX=ke.wheelStartY=null,!ia)return;Tt=(Tt*Ha+ia)/(Ha+1),++Ha},200)):(ke.wheelDX+=re,ke.wheelDY+=ce))}var pt=function(W,$){this.ranges=W,this.primIndex=$};pt.prototype.primary=function(){return this.ranges[this.primIndex]},pt.prototype.equals=function(P){if(P==this)return!0;if(P.primIndex!=this.primIndex||P.ranges.length!=this.ranges.length)return!1;for(var W=0;W<this.ranges.length;W++){var $=this.ranges[W],re=P.ranges[W];if(!at($.anchor,re.anchor)||!at($.head,re.head))return!1}return!0},pt.prototype.deepCopy=function(){for(var P=[],W=0;W<this.ranges.length;W++)P[W]=new ae(rr(this.ranges[W].anchor),rr(this.ranges[W].head));return new pt(P,this.primIndex)},pt.prototype.somethingSelected=function(){for(var P=0;P<this.ranges.length;P++)if(!this.ranges[P].empty())return!0;return!1},pt.prototype.contains=function(P,W){W||(W=P);for(var $=0;$<this.ranges.length;$++){var re=this.ranges[$];if(nt(W,re.from())>=0&&nt(P,re.to())<=0)return $}return-1};var ae=function(W,$){this.anchor=W,this.head=$};ae.prototype.from=function(){return xt(this.anchor,this.head)},ae.prototype.to=function(){return Pt(this.anchor,this.head)},ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pe(P,W,$){var re=P&&P.options.selectionsMayTouch,ce=W[$];W.sort(function(ei,ni){return nt(ei.from(),ni.from())}),$=z(W,ce);for(var ke=1;ke<W.length;ke++){var ht=W[ke],Wt=W[ke-1],sr=nt(Wt.to(),ht.from());if(re&&!ht.empty()?sr>0:sr>=0){var pr=xt(Wt.from(),ht.from()),wn=Pt(Wt.to(),ht.to()),Rn=Wt.empty()?ht.from()==ht.head:Wt.from()==Wt.head;ke<=$&&--$,W.splice(--ke,2,new ae(Rn?wn:pr,Rn?pr:wn))}}return new pt(W,$)}function be(P,W){return new pt([new ae(P,W||P)],0)}function Ke(P){return P.text?It(P.from.line+P.text.length-1,me(P.text).length+(P.text.length==1?P.from.ch:0)):P.to}function mt(P,W){if(nt(P,W.from)<0)return P;if(nt(P,W.to)<=0)return Ke(W);var $=P.line+W.text.length-(W.to.line-W.from.line)-1,re=P.ch;return P.line==W.to.line&&(re+=Ke(W).ch-W.to.ch),It($,re)}function Gt(P,W){for(var $=[],re=0;re<P.sel.ranges.length;re++){var ce=P.sel.ranges[re];$.push(new ae(mt(ce.anchor,W),mt(ce.head,W)))}return pe(P.cm,$,P.sel.primIndex)}function Dr(P,W,$){return P.line==W.line?It($.line,P.ch-W.ch+$.ch):It($.line+(P.line-W.line),P.ch)}function Gr(P,W,$){for(var re=[],ce=It(P.first,0),ke=ce,ht=0;ht<W.length;ht++){var Wt=W[ht],sr=Dr(Wt.from,ce,ke),pr=Dr(Ke(Wt),ce,ke);if(ce=Wt.to,ke=pr,$=="around"){var wn=P.sel.ranges[ht],Rn=nt(wn.head,wn.anchor)<0;re[ht]=new ae(Rn?pr:sr,Rn?sr:pr)}else re[ht]=new ae(sr,sr)}return new pt(re,P.sel.primIndex)}function fn(P){P.doc.mode=gi(P.options,P.doc.modeOption),Kn(P)}function Kn(P){P.doc.iter(function(W){W.stateAfter&&(W.stateAfter=null),W.styles&&(W.styles=null)}),P.doc.modeFrontier=P.doc.highlightFrontier=P.doc.first,zo(P,100),P.state.modeGen++,P.curOp&&ha(P)}function qn(P,W){return W.from.ch==0&&W.to.ch==0&&me(W.text)==""&&(!P.cm||P.cm.options.wholeLineUpdateBefore)}function Qn(P,W,$,re){function ce(na){return $?$[na]:null}function ke(na,xa,Ma){Yr(na,xa,Ma,re),wr(na,"change",na,W)}function ht(na,xa){for(var Ma=[],To=na;To<xa;++To)Ma.push(new zn(pr[To],ce(To),re));return Ma}var Wt=W.from,sr=W.to,pr=W.text,wn=Ie(P,Wt.line),Rn=Ie(P,sr.line),ei=me(pr),ni=ce(pr.length-1),Mi=sr.line-Wt.line;if(W.full)P.insert(0,ht(0,pr.length)),P.remove(pr.length,P.size-pr.length);else if(qn(P,W)){var Zi=ht(0,pr.length-1);ke(Rn,Rn.text,ni),Mi&&P.remove(Wt.line,Mi),Zi.length&&P.insert(Wt.line,Zi)}else if(wn==Rn)if(pr.length==1)ke(wn,wn.text.slice(0,Wt.ch)+ei+wn.text.slice(sr.ch),ni);else{var da=ht(1,pr.length-1);da.push(new zn(ei+wn.text.slice(sr.ch),ni,re)),ke(wn,wn.text.slice(0,Wt.ch)+pr[0],ce(0)),P.insert(Wt.line+1,da)}else if(pr.length==1)ke(wn,wn.text.slice(0,Wt.ch)+pr[0]+Rn.text.slice(sr.ch),ce(0)),P.remove(Wt.line+1,Mi);else{ke(wn,wn.text.slice(0,Wt.ch)+pr[0],ce(0)),ke(Rn,ei+Rn.text.slice(sr.ch),ni);var ia=ht(1,pr.length-1);Mi>1&&P.remove(Wt.line+1,Mi-1),P.insert(Wt.line+1,ia)}wr(P,"change",P,W)}function Ei(P,W,$){function re(ce,ke,ht){if(ce.linked)for(var Wt=0;Wt<ce.linked.length;++Wt){var sr=ce.linked[Wt];if(sr.doc==ke)continue;var pr=ht&&sr.sharedHist;if($&&!pr)continue;W(sr.doc,pr),re(sr.doc,ce,pr)}}re(P,null,!0)}function Fi(P,W){if(W.cm)throw new Error("This document is already in use.");P.doc=W,W.cm=P,go(P),fn(P),va(P),P.options.lineWrapping||vn(P),P.options.mode=W.modeOption,ha(P)}function va(P){(P.doc.direction=="rtl"?k:S)(P.display.lineDiv,"CodeMirror-rtl")}function Oa(P){ho(P,function(){va(P),ha(P)})}function fo(P){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=P||1}function wo(P,W){var $={from:rr(W.from),to:Ke(W),text:Ye(P,W.from,W.to)};return is(P,$,W.from.line,W.to.line+1),Ei(P,function(re){return is(re,$,W.from.line,W.to.line+1)},!0),$}function lo(P){for(;P.length;){var W=me(P);if(W.ranges)P.pop();else break}}function Yo(P,W){if(W)return lo(P.done),me(P.done);if(P.done.length&&!me(P.done).ranges)return me(P.done);if(P.done.length>1&&!P.done[P.done.length-2].ranges)return P.done.pop(),me(P.done)}function Vo(P,W,$,re){var ce=P.history;ce.undone.length=0;var ke=+new Date,ht,Wt;if((ce.lastOp==re||ce.lastOrigin==W.origin&&W.origin&&(W.origin.charAt(0)=="+"&&ce.lastModTime>ke-(P.cm?P.cm.options.historyEventDelay:500)||W.origin.charAt(0)=="*"))&&(ht=Yo(ce,ce.lastOp==re)))Wt=me(ht.changes),nt(W.from,W.to)==0&&nt(W.from,Wt.to)==0?Wt.to=Ke(W):ht.changes.push(wo(P,W));else{var sr=me(ce.done);for((!sr||!sr.ranges)&&Ka(P.sel,ce.done),ht={changes:[wo(P,W)],generation:ce.generation},ce.done.push(ht);ce.done.length>ce.undoDepth;)ce.done.shift(),ce.done[0].ranges||ce.done.shift()}ce.done.push($),ce.generation=++ce.maxGeneration,ce.lastModTime=ce.lastSelTime=ke,ce.lastOp=ce.lastSelOp=re,ce.lastOrigin=ce.lastSelOrigin=W.origin,Wt||Et(P,"historyAdded")}function No(P,W,$,re){var ce=W.charAt(0);return ce=="*"||ce=="+"&&$.ranges.length==re.ranges.length&&$.somethingSelected()==re.somethingSelected()&&new Date-P.history.lastSelTime<=(P.cm?P.cm.options.historyEventDelay:500)}function ao(P,W,$,re){var ce=P.history,ke=re&&re.origin;$==ce.lastSelOp||ke&&ce.lastSelOrigin==ke&&(ce.lastModTime==ce.lastSelTime&&ce.lastOrigin==ke||No(P,ke,me(ce.done),W))?ce.done[ce.done.length-1]=W:Ka(W,ce.done),ce.lastSelTime=+new Date,ce.lastSelOrigin=ke,ce.lastSelOp=$,re&&re.clearRedo!==!1&&lo(ce.undone)}function Ka(P,W){var $=me(W);$&&$.ranges&&$.equals(P)||W.push(P)}function is(P,W,$,re){var ce=W["spans_"+P.id],ke=0;P.iter(Math.max(P.first,$),Math.min(P.first+P.size,re),function(ht){ht.markedSpans&&((ce||(ce=W["spans_"+P.id]={}))[ke]=ht.markedSpans),++ke})}function Is(P){if(!P)return null;for(var W,$=0;$<P.length;++$)P[$].marker.explicitlyCleared?W||(W=P.slice(0,$)):W&&W.push(P[$]);return W?W.length?W:null:P}function Go(P,W){var $=W["spans_"+P.id];if(!$)return null;for(var re=[],ce=0;ce<W.text.length;++ce)re.push(Is($[ce]));return re}function la(P,W){var $=Go(P,W),re=pn(P,W);if(!$)return re;if(!re)return $;for(var ce=0;ce<$.length;++ce){var ke=$[ce],ht=re[ce];if(ke&&ht){e:for(var Wt=0;Wt<ht.length;++Wt){for(var sr=ht[Wt],pr=0;pr<ke.length;++pr)if(ke[pr].marker==sr.marker)continue e;ke.push(sr)}}else ht&&($[ce]=ht)}return $}function Vs(P,W,$){for(var re=[],ce=0;ce<P.length;++ce){var ke=P[ce];if(ke.ranges){re.push($?pt.prototype.deepCopy.call(ke):ke);continue}var ht=ke.changes,Wt=[];re.push({changes:Wt});for(var sr=0;sr<ht.length;++sr){var pr=ht[sr],wn=void 0;if(Wt.push({from:pr.from,to:pr.to,text:pr.text}),W)for(var Rn in pr)(wn=Rn.match(/^spans_(\d+)$/))&&(z(W,Number(wn[1]))>-1&&(me(Wt)[Rn]=pr[Rn],delete pr[Rn]))}}return re}function Hs(P,W,$,re){if(re){var ce=P.anchor;if($){var ke=nt(W,ce)<0;ke!=nt($,ce)<0?(ce=W,W=$):ke!=nt(W,$)<0&&(W=$)}return new ae(ce,W)}else return new ae($||W,W)}function fs(P,W,$,re,ce){ce==null&&(ce=P.cm&&(P.cm.display.shift||P.extend)),Zo(P,new pt([Hs(P.sel.primary(),W,$,ce)],0),re)}function as(P,W,$){for(var re=[],ce=P.cm&&(P.cm.display.shift||P.extend),ke=0;ke<P.sel.ranges.length;ke++)re[ke]=Hs(P.sel.ranges[ke],W[ke],null,ce);var ht=pe(P.cm,re,P.sel.primIndex);Zo(P,ht,$)}function Ss(P,W,$,re){var ce=P.sel.ranges.slice(0);ce[W]=$,Zo(P,pe(P.cm,ce,P.sel.primIndex),re)}function xl(P,W,$,re){Zo(P,be(W,$),re)}function vl(P,W,$){var re={ranges:W.ranges,update:function(ke){this.ranges=[];for(var ht=0;ht<ke.length;ht++)this.ranges[ht]=new ae(yt(P,ke[ht].anchor),yt(P,ke[ht].head))},origin:$&&$.origin};return Et(P,"beforeSelectionChange",P,re),P.cm&&Et(P.cm,"beforeSelectionChange",P.cm,re),re.ranges!=W.ranges?pe(P.cm,re.ranges,re.ranges.length-1):W}function zs(P,W,$){var re=P.history.done,ce=me(re);ce&&ce.ranges?(re[re.length-1]=W,As(P,W,$)):Zo(P,W,$)}function Zo(P,W,$){As(P,W,$),ao(P,P.sel,P.cm?P.cm.curOp.id:NaN,$)}function As(P,W,$){(_t(P,"beforeSelectionChange")||P.cm&&_t(P.cm,"beforeSelectionChange"))&&(W=vl(P,W,$));var re=$&&$.bias||(nt(W.primary().head,P.sel.primary().head)<0?-1:1);nl(P,po(P,W,re,!0)),!($&&$.scroll===!1)&&P.cm&&sa(P.cm)}function nl(P,W){if(W.equals(P.sel))return;P.sel=W,P.cm&&(P.cm.curOp.updateInput=1,P.cm.curOp.selectionChanged=!0,Bt(P.cm)),wr(P,"cursorActivity",P)}function ks(P){nl(P,po(P,P.sel,null,!1))}function po(P,W,$,re){for(var ce,ke=0;ke<W.ranges.length;ke++){var ht=W.ranges[ke],Wt=W.ranges.length==P.sel.ranges.length&&P.sel.ranges[ke],sr=Eo(P,ht.anchor,Wt&&Wt.anchor,$,re),pr=Eo(P,ht.head,Wt&&Wt.head,$,re);(ce||sr!=ht.anchor||pr!=ht.head)&&(ce||(ce=W.ranges.slice(0,ke)),ce[ke]=new ae(sr,pr))}return ce?pe(P.cm,ce,W.primIndex):W}function Wa(P,W,$,re,ce){var ke=Ie(P,W.line);if(ke.markedSpans)for(var ht=0;ht<ke.markedSpans.length;++ht){var Wt=ke.markedSpans[ht],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<=W.ch:Wt.from<W.ch))&&(Wt.to==null||(wn?Wt.to>=W.ch:Wt.to>W.ch))){if(ce&&(Et(sr,"beforeCursorEnter"),sr.explicitlyCleared))if(ke.markedSpans){--ht;continue}else break;if(!sr.atomic)continue;if($){var Rn=sr.find(re<0?1:-1),ei=void 0;if((re<0?wn:pr)&&(Rn=Xo(P,Rn,-re,Rn&&Rn.line==W.line?ke:null)),Rn&&Rn.line==W.line&&(ei=nt(Rn,$))&&(re<0?ei<0:ei>0))return Wa(P,Rn,W,re,ce)}var ni=sr.find(re<0?-1:1);return(re<0?pr:wn)&&(ni=Xo(P,ni,re,ni.line==W.line?ke:null)),ni?Wa(P,ni,W,re,ce):null}}return W}function Eo(P,W,$,re,ce){var ke=re||1,ht=Wa(P,W,$,ke,ce)||!ce&&Wa(P,W,$,ke,!0)||Wa(P,W,$,-ke,ce)||!ce&&Wa(P,W,$,-ke,!0);return ht||(P.cantEdit=!0,It(P.first,0))}function Xo(P,W,$,re){return $<0&&W.ch==0?W.line>P.first?yt(P,It(W.line-1)):null:$>0&&W.ch==(re||Ie(P,W.line)).text.length?W.line<P.first+P.size-1?It(W.line+1,0):null:new It(W.line,W.ch+$)}function $o(P){P.setSelection(It(P.firstLine(),0),It(P.lastLine()),le)}function Co(P,W,$){var re={canceled:!1,from:W.from,to:W.to,text:W.text,origin:W.origin,cancel:function(){return re.canceled=!0}};return $&&(re.update=function(ce,ke,ht,Wt){ce&&(re.from=yt(P,ce)),ke&&(re.to=yt(P,ke)),ht&&(re.text=ht),Wt!==void 0&&(re.origin=Wt)}),Et(P,"beforeChange",P,re),P.cm&&Et(P.cm,"beforeChange",P.cm,re),re.canceled?(P.cm&&(P.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function rs(P,W,$){if(P.cm){if(!P.cm.curOp)return bo(P.cm,rs)(P,W,$);if(P.cm.state.suppressEdits)return}if((_t(P,"beforeChange")||P.cm&&_t(P.cm,"beforeChange"))&&(W=Co(P,W,!0),!W))return;var re=Xe&&!$&&mn(P,W.from,W.to);if(re)for(var ce=re.length-1;ce>=0;--ce)os(P,{from:re[ce].from,to:re[ce].to,text:ce?[""]:W.text,origin:W.origin});else os(P,W)}function os(P,W){if(W.text.length==1&&W.text[0]==""&&nt(W.from,W.to)==0)return;var $=Gt(P,W);Vo(P,W,$,P.cm?P.cm.curOp.id:NaN),Zs(P,W,$,pn(P,W));var re=[];Ei(P,function(ce,ke){!ke&&z(re,ce.history)==-1&&(Ns(ce.history,W),re.push(ce.history)),Zs(ce,W,null,pn(ce,W))})}function Fs(P,W,$){var re=P.cm&&P.cm.state.suppressEdits;if(re&&!$)return;for(var ce=P.history,ke,ht=P.sel,Wt=W=="undo"?ce.done:ce.undone,sr=W=="undo"?ce.undone:ce.done,pr=0;pr<Wt.length&&!(ke=Wt[pr],$?ke.ranges&&!ke.equals(P.sel):!ke.ranges);pr++);if(pr==Wt.length)return;for(ce.lastOrigin=ce.lastSelOrigin=null;;)if(ke=Wt.pop(),ke.ranges){if(Ka(ke,sr),$&&!ke.equals(P.sel)){Zo(P,ke,{clearRedo:!1});return}ht=ke}else if(re){Wt.push(ke);return}else break;var wn=[];Ka(ht,sr),sr.push({changes:wn,generation:ce.generation}),ce.generation=ke.generation||++ce.maxGeneration;for(var Rn=_t(P,"beforeChange")||P.cm&&_t(P.cm,"beforeChange"),ei=function(da){var ia=ke.changes[da];if(ia.origin=W,Rn&&!Co(P,ia,!1))return Wt.length=0,{};wn.push(wo(P,ia));var na=da?Gt(P,ia):me(Wt);Zs(P,ia,na,la(P,ia)),!da&&P.cm&&P.cm.scrollIntoView({from:ia.from,to:Ke(ia)});var xa=[];Ei(P,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=ke.changes.length-1;ni>=0;--ni){var Mi=ei(ni);if(Mi)return Mi.v}}function ol(P,W){if(W==0)return;if(P.first+=W,P.sel=new pt(Fe(P.sel.ranges,function(ce){return new ae(It(ce.anchor.line+W,ce.anchor.ch),It(ce.head.line+W,ce.head.ch))}),P.sel.primIndex),P.cm){ha(P.cm,P.first,P.first-W,W);for(var $=P.cm.display,re=$.viewFrom;re<$.viewTo;re++)tt(P.cm,re,"gutter")}}function Zs(P,W,$,re){if(P.cm&&!P.cm.curOp)return bo(P.cm,Zs)(P,W,$,re);if(W.to.line<P.first){ol(P,W.text.length-1-(W.to.line-W.from.line));return}if(W.from.line>P.lastLine())return;if(W.from.line<P.first){var ce=W.text.length-1-(P.first-W.from.line);ol(P,ce),W={from:It(P.first,0),to:It(W.to.line+ce,W.to.ch),text:[me(W.text)],origin:W.origin}}var ke=P.lastLine();W.to.line>ke&&(W={from:W.from,to:It(ke,Ie(P,ke).text.length),text:[W.text[0]],origin:W.origin}),W.removed=Ye(P,W.from,W.to),$||($=Gt(P,W)),P.cm?dl(P.cm,W,re):Qn(P,W,re),As(P,$,le),P.cantEdit&&Eo(P,It(P.firstLine(),0))&&(P.cantEdit=!1)}function dl(P,W,$){var re=P.doc,ce=P.display,ke=W.from,ht=W.to,Wt=!1,sr=ke.line;P.options.lineWrapping||(sr=Ot(St(Ie(re,ke.line))),re.iter(sr,ht.line+1,function(ni){if(ni==ce.maxLine)return Wt=!0,!0})),re.sel.contains(W.from,W.to)>-1&&Bt(P),Qn(re,W,$,_o(P)),P.options.lineWrapping||(re.iter(sr,ke.line+W.text.length,function(ni){var Mi=xn(ni);Mi>ce.maxLineLength&&(ce.maxLine=ni,ce.maxLineLength=Mi,ce.maxLineChanged=!0,Wt=!1)}),Wt&&(P.curOp.updateMaxLine=!0)),je(re,ke.line),zo(P,400);var pr=W.text.length-(ht.line-ke.line)-1;W.full?ha(P):ke.line==ht.line&&W.text.length==1&&!qn(P.doc,W)?tt(P,ke.line,"text"):ha(P,ke.line,ht.line+1,pr);var wn=_t(P,"changes"),Rn=_t(P,"change");if(Rn||wn){var ei={from:ke,to:ht,text:W.text,removed:W.removed,origin:W.origin};Rn&&wr(P,"change",P,ei),wn&&(P.curOp.changeObjs||(P.curOp.changeObjs=[])).push(ei)}P.display.selForContextMenu=null}function hl(P,W,$,re,ce){var ke;re||(re=$),nt(re,$)<0&&(ke=[re,$],$=ke[0],re=ke[1]),typeof W=="string"&&(W=P.splitLines(W)),rs(P,{from:$,to:re,text:W,origin:ce})}function sl(P,W,$,re){$<P.line?P.line+=re:W<P.line&&(P.line=W,P.ch=0)}function yl(P,W,$,re){for(var ce=0;ce<P.length;++ce){var ke=P[ce],ht=!0;if(ke.ranges){ke.copied||(ke=P[ce]=ke.deepCopy(),ke.copied=!0);for(var Wt=0;Wt<ke.ranges.length;Wt++)sl(ke.ranges[Wt].anchor,W,$,re),sl(ke.ranges[Wt].head,W,$,re);continue}for(var sr=0;sr<ke.changes.length;++sr){var pr=ke.changes[sr];if($<pr.from.line)pr.from=It(pr.from.line+re,pr.from.ch),pr.to=It(pr.to.line+re,pr.to.ch);else if(W<=pr.to.line){ht=!1;break}}ht||(P.splice(0,ce+1),ce=0)}}function Ns(P,W){var $=W.from.line,re=W.to.line,ce=W.text.length-(re-$)-1;yl(P.done,$,re,ce),yl(P.undone,$,re,ce)}function ys(P,W,$,re){var ce=W,ke=W;return typeof W=="number"?ke=Ie(P,Kt(P,W)):ce=Ot(W),ce==null?null:(re(ke,ce)&&P.cm&&tt(P.cm,ce,$),ke)}function Ds(P){this.lines=P,this.parent=null;for(var W=0,$=0;$<P.length;++$)P[$].parent=this,W+=P[$].height;this.height=W}Ds.prototype={chunkSize:function(){return this.lines.length},removeInner:function(W,$){for(var re=W,ce=W+$;re<ce;++re){var ke=this.lines[re];this.height-=ke.height,xr(ke),wr(ke,"delete")}this.lines.splice(W,$)},collapse:function(W){W.push.apply(W,this.lines)},insertInner:function(W,$,re){this.height+=re,this.lines=this.lines.slice(0,W).concat($).concat(this.lines.slice(W));for(var ce=0;ce<$.length;++ce)$[ce].parent=this},iterN:function(W,$,re){for(var ce=W+$;W<ce;++W)if(re(this.lines[W]))return!0}};function xs(P){this.children=P;for(var W=0,$=0,re=0;re<P.length;++re){var ce=P[re];W+=ce.chunkSize(),$+=ce.height,ce.parent=this}this.size=W,this.height=$,this.parent=null}xs.prototype={chunkSize:function(){return this.size},removeInner:function(W,$){this.size-=$;for(var re=0;re<this.children.length;++re){var ce=this.children[re],ke=ce.chunkSize();if(W<ke){var ht=Math.min($,ke-W),Wt=ce.height;if(ce.removeInner(W,ht),this.height-=Wt-ce.height,ke==ht&&(this.children.splice(re--,1),ce.parent=null),($-=ht)==0)break;W=0}else W-=ke}if(this.size-$<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(W){for(var $=0;$<this.children.length;++$)this.children[$].collapse(W)},insertInner:function(W,$,re){this.size+=$.length,this.height+=re;for(var ce=0;ce<this.children.length;++ce){var ke=this.children[ce],ht=ke.chunkSize();if(W<=ht){if(ke.insertInner(W,$,re),ke.lines&&ke.lines.length>50){for(var Wt=ke.lines.length%25+25,sr=Wt;sr<ke.lines.length;){var pr=new Ds(ke.lines.slice(sr,sr+=25));ke.height-=pr.height,this.children.splice(++ce,0,pr),pr.parent=this}ke.lines=ke.lines.slice(0,Wt),this.maybeSpill()}break}W-=ht}},maybeSpill:function(){if(this.children.length<=10)return;var W=this;do{var $=W.children.splice(W.children.length-5,5),re=new xs($);if(W.parent){W.size-=re.size,W.height-=re.height;var ke=z(W.parent.children,W);W.parent.children.splice(ke+1,0,re)}else{var ce=new xs(W.children);ce.parent=W,W.children=[ce,re],W=ce}re.parent=W.parent}while(W.children.length>10);W.parent.maybeSpill()},iterN:function(W,$,re){for(var ce=0;ce<this.children.length;++ce){var ke=this.children[ce],ht=ke.chunkSize();if(W<ht){var Wt=Math.min($,ht-W);if(ke.iterN(W,Wt,re))return!0;if(($-=Wt)==0)break;W=0}else W-=ht}}};var Xs=function(W,$,re){if(re)for(var ce in re)re.hasOwnProperty(ce)&&(this[ce]=re[ce]);this.doc=W,this.node=$};Xs.prototype.clear=function(){var P=this.doc.cm,W=this.line.widgets,$=this.line,re=Ot($);if(re==null||!W)return;for(var ce=0;ce<W.length;++ce)W[ce]==this&&W.splice(ce--,1);W.length||($.widgets=null);var ke=tn(this);ut($,Math.max(0,$.height-ke)),P&&(ho(P,function(){ll(P,$,-ke),tt(P,re,"widget")}),wr(P,"lineWidgetCleared",P,this,re))},Xs.prototype.changed=function(){var P=this,W=this.height,$=this.doc.cm,re=this.line;this.height=null;var ce=tn(this)-W;if(!ce)return;tr(this.doc,re)||ut(re,re.height+ce),$&&ho($,function(){$.curOp.forceUpdate=!0,ll($,re,ce),wr($,"lineWidgetChanged",$,P,Ot(re))})},jt(Xs);function ll(P,W,$){yr(W)<(P.curOp&&P.curOp.scrollTop||P.doc.scrollTop)&&Ji(P,$)}function El(P,W,$,re){var ce=new Xs(P,$,re),ke=P.cm;return ke&&ce.noHScroll&&(ke.display.alignWidgets=!0),ys(P,W,"widget",function(ht){var Wt=ht.widgets||(ht.widgets=[]);if(ce.insertAt==null?Wt.push(ce):Wt.splice(Math.min(Wt.length-1,Math.max(0,ce.insertAt)),0,ce),ce.line=ht,ke&&!tr(P,ht)){var sr=yr(ht)<P.scrollTop;ut(ht,ht.height+tn(ce)),sr&&Ji(ke,ce.height),ke.curOp.forceUpdate=!0}return!0}),ke&&wr(ke,"lineWidgetAdded",ke,ce,typeof W=="number"?W:Ot(W)),ce}var jl=0,$s=function(W,$){this.lines=[],this.type=$,this.doc=W,this.id=++jl};$s.prototype.clear=function(){if(this.explicitlyCleared)return;var P=this.doc.cm,W=P&&!P.curOp;if(W&&Lo(P),_t(this,"clear")){var $=this.find();$&&wr(this,"clear",$.from,$.to)}for(var re=null,ce=null,ke=0;ke<this.lines.length;++ke){var ht=this.lines[ke],Wt=Jt(ht.markedSpans,this);P&&!this.collapsed?tt(P,Ot(ht),"text"):P&&(Wt.to!=null&&(ce=Ot(ht)),Wt.from!=null&&(re=Ot(ht))),ht.markedSpans=Rr(ht.markedSpans,Wt),Wt.from==null&&this.collapsed&&!tr(this.doc,ht)&&P&&ut(ht,qa(P.display))}if(P&&this.collapsed&&!P.options.lineWrapping)for(var sr=0;sr<this.lines.length;++sr){var pr=St(this.lines[sr]),wn=xn(pr);wn>P.display.maxLineLength&&(P.display.maxLine=pr,P.display.maxLineLength=wn,P.display.maxLineChanged=!0)}re!=null&&P&&this.collapsed&&ha(P,re,ce+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,P&&ks(P.doc)),P&&wr(P,"markerCleared",P,this,re,ce),W&&Ba(P),this.parent&&this.parent.clear()},$s.prototype.find=function(P,W){P==null&&this.type=="bookmark"&&(P=1);for(var $,re,ce=0;ce<this.lines.length;++ce){var ke=this.lines[ce],ht=Jt(ke.markedSpans,this);if(ht.from!=null&&($=It(W?ke:Ot(ke),ht.from),P==-1))return $;if(ht.to!=null&&(re=It(W?ke:Ot(ke),ht.to),P==1))return re}return $&&{from:$,to:re}},$s.prototype.changed=function(){var P=this,W=this.find(-1,!0),$=this,re=this.doc.cm;if(!W||!re)return;ho(re,function(){var ce=W.line,ke=Ot(W.line),ht=Ti(re,ke);if(ht&&(ta(ht),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!tr($.doc,ce)&&$.height!=null){var Wt=$.height;$.height=null;var sr=tn($)-Wt;sr&&ut(ce,ce.height+sr)}wr(re,"markerChanged",re,P)})},$s.prototype.attachLine=function(P){if(!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(!W.maybeHiddenMarkers||z(W.maybeHiddenMarkers,this)==-1)&&(W.maybeUnhiddenMarkers||(W.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(P)},$s.prototype.detachLine=function(P){if(this.lines.splice(z(this.lines,P),1),!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(W.maybeHiddenMarkers||(W.maybeHiddenMarkers=[])).push(this)}},jt($s);function Nl(P,W,$,re,ce){if(re&&re.shared)return yu(P,W,$,re,ce);if(P.cm&&!P.cm.curOp)return bo(P.cm,Nl)(P,W,$,re,ce);var ke=new $s(P,ce),ht=nt(W,$);if(re&&U(re,ke,!1),ht>0||ht==0&&ke.clearWhenEmpty!==!1)return ke;if(ke.replacedWith&&(ke.collapsed=!0,ke.widgetNode=L("span",[ke.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||ke.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(ke.widgetNode.insertLeft=!0)),ke.collapsed){if(ft(P,W.line,W,$,ke)||W.line!=$.line&&ft(P,$.line,W,$,ke))throw new Error("Inserting collapsed marker partially overlapping an existing one");wt()}ke.addToHistory&&Vo(P,{from:W,to:$,origin:"markText"},P.sel,NaN);var Wt=W.line,sr=P.cm,pr;if(P.iter(Wt,$.line+1,function(Rn){sr&&ke.collapsed&&!sr.options.lineWrapping&&St(Rn)==sr.display.maxLine&&(pr=!0),ke.collapsed&&Wt!=W.line&&ut(Rn,0),Ir(Rn,new st(ke,Wt==W.line?W.ch:null,Wt==$.line?$.ch:null)),++Wt}),ke.collapsed&&P.iter(W.line,$.line+1,function(Rn){tr(P,Rn)&&ut(Rn,0)}),ke.clearOnEnter&&Re(ke,"beforeCursorEnter",function(){return ke.clear()}),ke.readOnly&&(Ze(),(P.history.done.length||P.history.undone.length)&&P.clearHistory()),ke.collapsed&&(ke.id=++jl,ke.atomic=!0),sr){if(pr&&(sr.curOp.updateMaxLine=!0),ke.collapsed)ha(sr,W.line,$.line+1);else if(ke.className||ke.startStyle||ke.endStyle||ke.css||ke.attributes||ke.title)for(var wn=W.line;wn<=$.line;wn++)tt(sr,wn,"text");ke.atomic&&ks(sr.doc),wr(sr,"markerAdded",sr,ke)}return ke}var Pl=function(W,$){this.markers=W,this.primary=$;for(var re=0;re<W.length;++re)W[re].parent=this};Pl.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var P=0;P<this.markers.length;++P)this.markers[P].clear();wr(this,"clear")},Pl.prototype.find=function(P,W){return this.primary.find(P,W)},jt(Pl);function yu(P,W,$,re,ce){re=U(re),re.shared=!1;var ke=[Nl(P,W,$,re,ce)],ht=ke[0],Wt=re.widgetNode;return Ei(P,function(sr){Wt&&(re.widgetNode=Wt.cloneNode(!0)),ke.push(Nl(sr,yt(sr,W),yt(sr,$),re,ce));for(var pr=0;pr<sr.linked.length;++pr)if(sr.linked[pr].isParent)return;ht=me(ke)}),new Pl(ke,ht)}function cu(P){return P.findMarks(It(P.first,0),P.clipPos(It(P.lastLine())),function(W){return W.parent})}function eu(P,W){for(var $=0;$<W.length;$++){var re=W[$],ce=re.find(),ke=P.clipPos(ce.from),ht=P.clipPos(ce.to);if(nt(ke,ht)){var Wt=Nl(P,ke,ht,re.primary,re.primary.type);re.markers.push(Wt),Wt.parent=re}}}function tu(P){for(var W=function(ce){var ke=P[ce],ht=[ke.primary.doc];Ei(ke.primary.doc,function(pr){return ht.push(pr)});for(var Wt=0;Wt<ke.markers.length;Wt++){var sr=ke.markers[Wt];z(ht,sr.doc)==-1&&(sr.parent=null,ke.markers.splice(Wt--,1))}},$=0;$<P.length;$++)W($)}var Vl=0,Ys=function P(W,$,re,ce,ke){if(!(this instanceof P))return new P(W,$,re,ce,ke);re==null&&(re=0),xs.call(this,[new Ds([new zn("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var ht=It(re,0);this.sel=be(ht),this.history=new fo(null),this.id=++Vl,this.modeOption=$,this.lineSep=ce,this.direction=ke=="rtl"?"rtl":"ltr",this.extend=!1,typeof W=="string"&&(W=this.splitLines(W)),Qn(this,{from:ht,to:ht,text:W}),Zo(this,be(ht),le)};Ys.prototype=Ge(xs.prototype,{constructor:Ys,iter:function(W,$,re){re?this.iterN(W-this.first,$-W,re):this.iterN(this.first,this.first+this.size,W)},insert:function(W,$){for(var re=0,ce=0;ce<$.length;++ce)re+=$[ce].height;this.insertInner(W-this.first,$,re)},remove:function(W,$){this.removeInner(W-this.first,$)},getValue:function(W){var $=rt(this,this.first,this.first+this.size);return W===!1?$:$.join(W||this.lineSeparator())},setValue:Ho(function(P){var W=It(this.first,0),$=this.first+this.size-1;rs(this,{from:W,to:It($,Ie(this,$).text.length),text:this.splitLines(P),origin:"setValue",full:!0},!0),this.cm&&fa(this.cm,0,0),Zo(this,be(W),le)}),replaceRange:function(W,$,re,ce){$=yt(this,$),re=re?yt(this,re):$,hl(this,W,$,re,ce)},getRange:function(W,$,re){var ce=Ye(this,yt(this,W),yt(this,$));return re===!1?ce:ce.join(re||this.lineSeparator())},getLine:function(W){var $=this.getLineHandle(W);return $&&$.text},getLineHandle:function(W){if(Pr(this,W))return Ie(this,W)},getLineNumber:function(W){return Ot(W)},getLineHandleVisualStart:function(W){return typeof W=="number"&&(W=Ie(this,W)),St(W)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(W){return yt(this,W)},getCursor:function(W){var $=this.sel.primary(),re;return W==null||W=="head"?re=$.head:W=="anchor"?re=$.anchor:W=="end"||W=="to"||W===!1?re=$.to():re=$.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ho(function(P,W,$){xl(this,yt(this,typeof P=="number"?It(P,W||0):P),null,$)}),setSelection:Ho(function(P,W,$){xl(this,yt(this,P),yt(this,W||P),$)}),extendSelection:Ho(function(P,W,$){fs(this,yt(this,P),W&&yt(this,W),$)}),extendSelections:Ho(function(P,W){as(this,Sr(this,P),W)}),extendSelectionsBy:Ho(function(P,W){var $=Fe(this.sel.ranges,P);as(this,Sr(this,$),W)}),setSelections:Ho(function(P,W,$){if(!P.length)return;for(var re=[],ce=0;ce<P.length;ce++)re[ce]=new ae(yt(this,P[ce].anchor),yt(this,P[ce].head));W==null&&(W=Math.min(P.length-1,this.sel.primIndex)),Zo(this,pe(this.cm,re,W),$)}),addSelection:Ho(function(P,W,$){var re=this.sel.ranges.slice(0);re.push(new ae(yt(this,P),yt(this,W||P))),Zo(this,pe(this.cm,re,re.length-1),$)}),getSelection:function(W){for(var $=this.sel.ranges,re,ce=0;ce<$.length;ce++){var ke=Ye(this,$[ce].from(),$[ce].to());re=re?re.concat(ke):ke}return W===!1?re:re.join(W||this.lineSeparator())},getSelections:function(W){for(var $=[],re=this.sel.ranges,ce=0;ce<re.length;ce++){var ke=Ye(this,re[ce].from(),re[ce].to());W!==!1&&(ke=ke.join(W||this.lineSeparator())),$[ce]=ke}return $},replaceSelection:function(W,$,re){for(var ce=[],ke=0;ke<this.sel.ranges.length;ke++)ce[ke]=W;this.replaceSelections(ce,$,re||"+input")},replaceSelections:Ho(function(P,W,$){for(var re=[],ce=this.sel,ke=0;ke<ce.ranges.length;ke++){var ht=ce.ranges[ke];re[ke]={from:ht.from(),to:ht.to(),text:this.splitLines(P[ke]),origin:$}}for(var Wt=W&&W!="end"&&Gr(this,re,W),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(W){this.extend=W},getExtending:function(){return this.extend},historySize:function(){for(var W=this.history,$=0,re=0,ce=0;ce<W.done.length;ce++)W.done[ce].ranges||++$;for(var ke=0;ke<W.undone.length;ke++)W.undone[ke].ranges||++re;return{undo:$,redo:re}},clearHistory:function(){var W=this;this.history=new fo(this.history.maxGeneration),Ei(this,function($){return $.history=W.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(W){return W&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(W){return this.history.generation==(W||this.cleanGeneration)},getHistory:function(){return{done:Vs(this.history.done),undone:Vs(this.history.undone)}},setHistory:function(W){var $=this.history=new fo(this.history.maxGeneration);$.done=Vs(W.done.slice(0),null,!0),$.undone=Vs(W.undone.slice(0),null,!0)},setGutterMarker:Ho(function(P,W,$){return ys(this,P,"gutter",function(re){var ce=re.gutterMarkers||(re.gutterMarkers={});return ce[W]=$,!$&&X(ce)&&(re.gutterMarkers=null),!0})}),clearGutter:Ho(function(P){var W=this;this.iter(function($){$.gutterMarkers&&$.gutterMarkers[P]&&ys(W,$,"gutter",function(){return $.gutterMarkers[P]=null,X($.gutterMarkers)&&($.gutterMarkers=null),!0})})}),lineInfo:function(W){var $;if(typeof W=="number"){if(!Pr(this,W))return null;if($=W,W=Ie(this,W),!W)return null}else if($=Ot(W),$==null)return null;return{line:$,handle:W,text:W.text,gutterMarkers:W.gutterMarkers,textClass:W.textClass,bgClass:W.bgClass,wrapClass:W.wrapClass,widgets:W.widgets}},addLineClass:Ho(function(P,W,$){return ys(this,P,W=="gutter"?"gutter":"class",function(re){var ce=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass";if(!re[ce])re[ce]=$;else{if(T($).test(re[ce]))return!1;re[ce]+=" "+$}return!0})}),removeLineClass:Ho(function(P,W,$){return ys(this,P,W=="gutter"?"gutter":"class",function(re){var ce=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass",ke=re[ce];if(ke)if($==null)re[ce]=null;else{var ht=ke.match(T($));if(!ht)return!1;var Wt=ht.index+ht[0].length;re[ce]=ke.slice(0,ht.index)+(!ht.index||Wt==ke.length?"":" ")+ke.slice(Wt)||null}else return!1;return!0})}),addLineWidget:Ho(function(P,W,$){return El(this,P,W,$)}),removeLineWidget:function(W){W.clear()},markText:function(W,$,re){return Nl(this,yt(this,W),yt(this,$),re,re&&re.type||"range")},setBookmark:function(W,$){var re={replacedWith:$&&($.nodeType==null?$.widget:$),insertLeft:$&&$.insertLeft,clearWhenEmpty:!1,shared:$&&$.shared,handleMouseEvents:$&&$.handleMouseEvents};return W=yt(this,W),Nl(this,W,W,re,"bookmark")},findMarksAt:function(W){W=yt(this,W);var $=[],re=Ie(this,W.line).markedSpans;if(re)for(var ce=0;ce<re.length;++ce){var ke=re[ce];(ke.from==null||ke.from<=W.ch)&&(ke.to==null||ke.to>=W.ch)&&$.push(ke.marker.parent||ke.marker)}return $},findMarks:function(W,$,re){W=yt(this,W),$=yt(this,$);var ce=[],ke=W.line;return this.iter(W.line,$.line+1,function(ht){var Wt=ht.markedSpans;if(Wt)for(var sr=0;sr<Wt.length;sr++){var pr=Wt[sr];!(pr.to!=null&&ke==W.line&&W.ch>=pr.to||pr.from==null&&ke!=W.line||pr.from!=null&&ke==$.line&&pr.from>=$.ch)&&(!re||re(pr.marker))&&ce.push(pr.marker.parent||pr.marker)}++ke}),ce},getAllMarks:function(){var W=[];return this.iter(function($){var re=$.markedSpans;if(re)for(var ce=0;ce<re.length;++ce)re[ce].from!=null&&W.push(re[ce].marker)}),W},posFromIndex:function(W){var $,re=this.first,ce=this.lineSeparator().length;return this.iter(function(ke){var ht=ke.text.length+ce;if(ht>W)return $=W,!0;W-=ht,++re}),yt(this,It(re,$))},indexFromPos:function(W){W=yt(this,W);var $=W.ch;if(W.line<this.first||W.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,W.line,function(ce){$+=ce.text.length+re}),$},copy:function(W){var $=new Ys(rt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return $.scrollTop=this.scrollTop,$.scrollLeft=this.scrollLeft,$.sel=this.sel,$.extend=!1,W&&($.history.undoDepth=this.history.undoDepth,$.setHistory(this.getHistory())),$},linkedDoc:function(W){W||(W={});var $=this.first,re=this.first+this.size;W.from!=null&&W.from>$&&($=W.from),W.to!=null&&W.to<re&&(re=W.to);var ce=new Ys(rt(this,$,re),W.mode||this.modeOption,$,this.lineSep,this.direction);return W.sharedHist&&(ce.history=this.history),(this.linked||(this.linked=[])).push({doc:ce,sharedHist:W.sharedHist}),ce.linked=[{doc:this,isParent:!0,sharedHist:W.sharedHist}],eu(ce,cu(this)),ce},unlinkDoc:function(W){if(W instanceof Tr&&(W=W.doc),this.linked)for(var $=0;$<this.linked.length;++$){var re=this.linked[$];if(re.doc!=W)continue;this.linked.splice($,1),W.unlinkDoc(this),tu(cu(this));break}if(W.history==this.history){var ce=[W.id];Ei(W,function(ke){return ce.push(ke.id)},!0),W.history=new fo(null),W.history.done=Vs(this.history.done,ce),W.history.undone=Vs(this.history.undone,ce)}},iterLinkedDocs:function(W){Ei(this,W)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(W){return this.lineSep?W.split(this.lineSep):Zr(W)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ho(function(P){if(P!="rtl"&&(P="ltr"),P==this.direction)return;this.direction=P,this.iter(function(W){return W.order=null}),this.cm&&Oa(this.cm)})}),Ys.prototype.eachLine=Ys.prototype.iter;var il=0;function fl(P){var W=this;if(ru(W),Ut(W,P)||Ln(W.display,P))return;He(P),f&&(il=+new Date);var $=Ja(W,P,!0),re=P.dataTransfer.files;if(!$||W.isReadOnly())return;if(re&&re.length&&window.FileReader&&window.File)for(var ce=re.length,ke=Array(ce),ht=0,Wt=function(){++ht==ce&&bo(W,function(){$=yt(W.doc,$);var Mi={from:$,to:$,text:W.doc.splitLines(ke.filter(function(Zi){return Zi!=null}).join(W.doc.lineSeparator())),origin:"paste"};rs(W.doc,Mi),zs(W.doc,be(yt(W.doc,$),yt(W.doc,Ke(Mi))))})()},sr=function(Mi,Zi){if(W.options.allowDropFileTypes&&z(W.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}ke[Zi]=ia,Wt()},da.readAsText(Mi)},pr=0;pr<re.length;pr++)sr(re[pr],pr);else{if(W.state.draggingText&&W.doc.sel.contains($)>-1){W.state.draggingText(P),setTimeout(function(){return W.display.input.focus()},20);return}try{var wn=P.dataTransfer.getData("Text");if(wn){var Rn;if(W.state.draggingText&&!W.state.draggingText.copy&&(Rn=W.listSelections()),As(W.doc,be($,$)),Rn)for(var ei=0;ei<Rn.length;++ei)hl(W.doc,"",Rn[ei].anchor,Rn[ei].head,"drag");W.replaceSelection(wn,"around","paste"),W.display.input.focus()}}catch(ni){}}}function kl(P,W){if(f&&(!P.state.draggingText||+new Date-il<100)){Ue(W);return}if(Ut(P,W)||Ln(P.display,W))return;if(W.dataTransfer.setData("Text",P.getSelection()),W.dataTransfer.effectAllowed="copyMove",W.dataTransfer.setDragImage&&!e){var $=I("img",null,null,"position: fixed; left: 0; top: 0;");$.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&($.width=$.height=1,P.display.wrapper.appendChild($),$._top=$.offsetTop),W.dataTransfer.setDragImage($,0,0),n&&$.parentNode.removeChild($)}}function du(P,W){var $=Ja(P,W);if(!$)return;var re=document.createDocumentFragment();Pn(P,$,re),P.display.dragCursor||(P.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),P.display.lineSpace.insertBefore(P.display.dragCursor,P.display.cursorDiv)),O(P.display.dragCursor,re)}function ru(P){P.display.dragCursor&&(P.display.lineSpace.removeChild(P.display.dragCursor),P.display.dragCursor=null)}function nu(P){if(!document.getElementsByClassName)return;for(var W=document.getElementsByClassName("CodeMirror"),$=[],re=0;re<W.length;re++){var ce=W[re].CodeMirror;ce&&$.push(ce)}$.length&&$[0].operation(function(){for(var ke=0;ke<$.length;ke++)P($[ke])})}var Qs=!1;function iu(){if(Qs)return;au(),Qs=!0}function au(){var P;Re(window,"resize",function(){P==null&&(P=setTimeout(function(){P=null,nu(bu)},100))}),Re(window,"blur",function(){return nu(Yn)})}function bu(P){var W=P.display;W.cachedCharWidth=W.cachedTextHeight=W.cachedPaddingH=null,W.scrollbarsClipped=!1,P.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(P){var W=P.split(/-(?!$)/);P=W[W.length-1];for(var $,re,ce,ke,ht=0;ht<W.length-1;ht++){var Wt=W[ht];if(/^(cmd|meta|m)$/i.test(Wt))ke=!0;else if(/^a(lt)?$/i.test(Wt))$=!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 $&&(P="Alt-"+P),re&&(P="Ctrl-"+P),ke&&(P="Cmd-"+P),ce&&(P="Shift-"+P),P}function Cu(P){var W={};for(var $ in P)if(P.hasOwnProperty($)){var re=P[$];if(/^(name|fallthrough|(de|at)tach)$/.test($))continue;if(re=="..."){delete P[$];continue}for(var ce=Fe($.split(" "),Tu),ke=0;ke<ce.length;ke++){var ht=void 0,Wt=void 0;ke==ce.length-1?(Wt=ce.join(" "),ht=re):(Wt=ce.slice(0,ke+1).join(" "),ht="...");var sr=W[Wt];if(!sr)W[Wt]=ht;else if(sr!=ht)throw new Error("Inconsistent bindings for "+Wt)}delete P[$]}for(var pr in W)P[pr]=W[pr];return P}function Cl(P,W,$,re){W=Rs(W);var ce=W.call?W.call(P,re):W[P];if(ce===!1)return"nothing";if(ce==="...")return"multi";if(ce!=null&&$(ce))return"handled";if(W.fallthrough){if(Object.prototype.toString.call(W.fallthrough)!="[object Array]")return Cl(P,W.fallthrough,$,re);for(var ke=0;ke<W.fallthrough.length;ke++){var ht=Cl(P,W.fallthrough[ke],$,re);if(ht)return ht}}}function ou(P){var W=typeof P=="string"?P:bl[P.keyCode];return W=="Ctrl"||W=="Alt"||W=="Shift"||W=="Mod"}function hu(P,W,$){var re=P;return W.altKey&&re!="Alt"&&(P="Alt-"+P),(y?W.metaKey:W.ctrlKey)&&re!="Ctrl"&&(P="Ctrl-"+P),(y?W.ctrlKey:W.metaKey)&&re!="Mod"&&(P="Cmd-"+P),!$&&W.shiftKey&&re!="Shift"&&(P="Shift-"+P),P}function su(P,W){if(n&&P.keyCode==34&&P.char)return!1;var $=bl[P.keyCode];return $==null||P.altGraphKey?!1:(P.keyCode==3&&P.code&&($=P.code),hu($,P,W))}function Rs(P){return typeof P=="string"?Tl[P]:P}function el(P,W){for(var $=P.doc.sel.ranges,re=[],ce=0;ce<$.length;ce++){for(var ke=W($[ce]);re.length&&nt(ke.from,me(re).to)<=0;){var ht=re.pop();if(nt(ht.from,ke.from)<0){ke.from=ht.from;break}}re.push(ke)}ho(P,function(){for(var Wt=re.length-1;Wt>=0;Wt--)hl(P.doc,"",re[Wt].from,re[Wt].to,"+delete");sa(P)})}function Bl(P,W,$){var re=Ce(P.text,W+$,$);return re<0||re>P.text.length?null:re}function wu(P,W,$){var re=Bl(P,W.ch,$);return re==null?null:new It(W.line,re,$<0?"after":"before")}function fu(P,W,$,re,ce){if(P){W.doc.direction=="rtl"&&(ce=-ce);var ke=At($,W.doc.direction);if(ke){var ht=ce<0?me(ke):ke[0],Wt=ce<0==(ht.level==1),sr=Wt?"after":"before",pr;if(ht.level>0||W.doc.direction=="rtl"){var wn=Ui(W,$);pr=ce<0?$.text.length-1:0;var Rn=$i(W,wn,pr).top;pr=Me(function(ei){return $i(W,wn,ei).top==Rn},ce<0==(ht.level==1)?ht.from:ht.to-1,pr),sr=="before"&&(pr=Bl($,pr,1))}else pr=ce<0?ht.to:ht.from;return new It(re,pr,sr)}}return new It(re,ce<0?$.text.length:0,ce<0?"before":"after")}function Xl(P,W,$,re){var ce=At(W,P.doc.direction);if(!ce)return wu(W,$,re);$.ch>=W.text.length?($.ch=W.text.length,$.sticky="before"):$.ch<=0&&($.ch=0,$.sticky="after");var ke=Te(ce,$.ch,$.sticky),ht=ce[ke];if(P.doc.direction=="ltr"&&ht.level%2==0&&(re>0?ht.to>$.ch:ht.from<$.ch))return wu(W,$,re);var Wt=function(na,xa){return Bl(W,na instanceof It?na.ch:na,xa)},sr,pr=function(na){return P.options.lineWrapping?(sr=sr||Ui(P,W),Ca(P,W,sr,na)):{begin:0,end:W.text.length}},wn=pr($.sticky=="before"?Wt($,-1):$.ch);if(P.doc.direction=="rtl"||ht.level==1){var Rn=ht.level==1==re<0,ei=Wt($,Rn?1:-1);if(ei!=null&&(Rn?ei<=ht.to&&ei<=wn.end:ei>=ht.from&&ei>=wn.begin)){var ni=Rn?"before":"after";return new It($.line,ei,ni)}}var Mi=function(na,xa,Ma){for(var To=function(Ts,tl){return tl?new It($.line,Wt(Ts,1),"before"):new It($.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(ke+re,re,wn);if(Zi)return Zi;var da=re>0?wn.end:Wt(wn.begin,-1);return da!=null&&!(re>0&&da==W.text.length)&&(Zi=Mi(re>0?0:ce.length-1,re,pr(da)),Zi)?Zi:null}var Kl={selectAll:$o,singleSelection:function(W){return W.setSelection(W.getCursor("anchor"),W.getCursor("head"),le)},killLine:function(W){return el(W,function($){if($.empty()){var re=Ie(W.doc,$.head.line).text.length;return $.head.ch==re&&$.head.line<W.lastLine()?{from:$.head,to:It($.head.line+1,0)}:{from:$.head,to:It($.head.line,re)}}else return{from:$.from(),to:$.to()}})},deleteLine:function(W){return el(W,function($){return{from:It($.from().line,0),to:yt(W.doc,It($.to().line+1,0))}})},delLineLeft:function(W){return el(W,function($){return{from:It($.from().line,0),to:$.from()}})},delWrappedLineLeft:function(W){return el(W,function($){var re=W.charCoords($.head,"div").top+5,ce=W.coordsChar({left:0,top:re},"div");return{from:ce,to:$.from()}})},delWrappedLineRight:function(W){return el(W,function($){var re=W.charCoords($.head,"div").top+5,ce=W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:re},"div");return{from:$.from(),to:ce}})},undo:function(W){return W.undo()},redo:function(W){return W.redo()},undoSelection:function(W){return W.undoSelection()},redoSelection:function(W){return W.redoSelection()},goDocStart:function(W){return W.extendSelection(It(W.firstLine(),0))},goDocEnd:function(W){return W.extendSelection(It(W.lastLine()))},goLineStart:function(W){return W.extendSelectionsBy(function($){return lu(W,$.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(W){return W.extendSelectionsBy(function($){return mu(W,$.head)},{origin:"+move",bias:1})},goLineEnd:function(W){return W.extendSelectionsBy(function($){return pu(W,$.head.line)},{origin:"+move",bias:-1})},goLineRight:function(W){return W.extendSelectionsBy(function($){var re=W.cursorCoords($.head,"div").top+5;return W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:re},"div")},ve)},goLineLeft:function(W){return W.extendSelectionsBy(function($){var re=W.cursorCoords($.head,"div").top+5;return W.coordsChar({left:0,top:re},"div")},ve)},goLineLeftSmart:function(W){return W.extendSelectionsBy(function($){var re=W.cursorCoords($.head,"div").top+5,ce=W.coordsChar({left:0,top:re},"div");return ce.ch<W.getLine(ce.line).search(/\S/)?mu(W,$.head):ce},ve)},goLineUp:function(W){return W.moveV(-1,"line")},goLineDown:function(W){return W.moveV(1,"line")},goPageUp:function(W){return W.moveV(-1,"page")},goPageDown:function(W){return W.moveV(1,"page")},goCharLeft:function(W){return W.moveH(-1,"char")},goCharRight:function(W){return W.moveH(1,"char")},goColumnLeft:function(W){return W.moveH(-1,"column")},goColumnRight:function(W){return W.moveH(1,"column")},goWordLeft:function(W){return W.moveH(-1,"word")},goGroupRight:function(W){return W.moveH(1,"group")},goGroupLeft:function(W){return W.moveH(-1,"group")},goWordRight:function(W){return W.moveH(1,"word")},delCharBefore:function(W){return W.deleteH(-1,"codepoint")},delCharAfter:function(W){return W.deleteH(1,"char")},delWordBefore:function(W){return W.deleteH(-1,"word")},delWordAfter:function(W){return W.deleteH(1,"word")},delGroupBefore:function(W){return W.deleteH(-1,"group")},delGroupAfter:function(W){return W.deleteH(1,"group")},indentAuto:function(W){return W.indentSelection("smart")},indentMore:function(W){return W.indentSelection("add")},indentLess:function(W){return W.indentSelection("subtract")},insertTab:function(W){return W.replaceSelection(" ")},insertSoftTab:function(W){for(var $=[],re=W.listSelections(),ce=W.options.tabSize,ke=0;ke<re.length;ke++){var ht=re[ke].from(),Wt=K(W.getLine(ht.line),ht.ch,ce);$.push(Be(ce-Wt%ce))}W.replaceSelections($)},defaultTab:function(W){W.somethingSelected()?W.indentSelection("add"):W.execCommand("insertTab")},transposeChars:function(W){return ho(W,function(){for(var $=W.listSelections(),re=[],ce=0;ce<$.length;ce++){if(!$[ce].empty())continue;var ke=$[ce].head,ht=Ie(W.doc,ke.line).text;if(ht){if(ke.ch==ht.length&&(ke=new It(ke.line,ke.ch-1)),ke.ch>0)ke=new It(ke.line,ke.ch+1),W.replaceRange(ht.charAt(ke.ch-1)+ht.charAt(ke.ch-2),It(ke.line,ke.ch-2),ke,"+transpose");else if(ke.line>W.doc.first){var Wt=Ie(W.doc,ke.line-1).text;Wt&&(ke=new It(ke.line,1),W.replaceRange(ht.charAt(0)+W.doc.lineSeparator()+Wt.charAt(Wt.length-1),It(ke.line-1,Wt.length-1),ke,"+transpose"))}}re.push(new ae(ke,ke))}W.setSelections(re)})},newlineAndIndent:function(W){return ho(W,function(){for(var $=W.listSelections(),re=$.length-1;re>=0;re--)W.replaceRange(W.doc.lineSeparator(),$[re].anchor,$[re].head,"+input");$=W.listSelections();for(var ce=0;ce<$.length;ce++)W.indentLine($[ce].from().line,null,!0);sa(W)})},openLine:function(W){return W.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(W){return W.toggleOverwrite()}};function lu(P,W){var $=Ie(P.doc,W),re=St($);return re!=$&&(W=Ot(re)),fu(!0,P,re,W,1)}function pu(P,W){var $=Ie(P.doc,W),re=Ct($);return re!=$&&(W=Ot(re)),fu(!0,P,$,W,-1)}function mu(P,W){var $=lu(P,W.line),re=Ie(P.doc,$.line),ce=At(re,P.doc.direction);if(!ce||ce[0].level==0){var ke=Math.max($.ch,re.text.search(/\S/)),ht=W.line==$.line&&W.ch<=ke&&W.ch;return It($.line,ht?0:ke,$.sticky)}return $}function pl(P,W,$){if(typeof W=="string"&&(W=Kl[W],!W))return!1;P.display.input.ensurePolled();var re=P.display.shift,ce=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),$&&(P.display.shift=!1),ce=W(P)!=Z}finally{P.display.shift=re,P.state.suppressEdits=!1}return ce}function wl(P,W,$){for(var re=0;re<P.state.keyMaps.length;re++){var ce=Cl(W,P.state.keyMaps[re],$,P);if(ce)return ce}return P.options.extraKeys&&Cl(W,P.options.extraKeys,$,P)||Cl(W,P.options.keyMap,$,P)}var Dl=new V;function Bo(P,W,$,re){var ce=P.state.keySeq;if(ce){if(ou(W))return"handled";if(/\'$/.test(W)?P.state.keySeq=null:Dl.set(50,function(){P.state.keySeq==ce&&(P.state.keySeq=null,P.display.input.reset())}),Na(P,ce+" "+W,$,re))return!0}return Na(P,W,$,re)}function Na(P,W,$,re){var ce=wl(P,W,re);return ce=="multi"&&(P.state.keySeq=W),ce=="handled"&&wr(P,"keyHandled",P,W,$),(ce=="handled"||ce=="multi")&&(He($),jn(P)),!!ce}function ro(P,W){var $=su(W,!0);return $?W.shiftKey&&!P.state.keySeq?Bo(P,"Shift-"+$,W,function(re){return pl(P,re,!0)})||Bo(P,$,W,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return pl(P,re)}):Bo(P,$,W,function(re){return pl(P,re)}):!1}function Io(P,W,$){return Bo(P,"'"+$+"'",W,function(re){return pl(P,re,!0)})}var Bs=null;function Ol(P){var W=this;if(P.target&&P.target!=W.display.input.getField())return;if(W.curOp.focus=R(),Ut(W,P))return;f&&c<11&&P.keyCode==27&&(P.returnValue=!1);var $=P.keyCode;W.display.shift=$==16||P.shiftKey;var re=ro(W,P);n&&(Bs=re?$:null,!re&&$==88&&!dr&&(h?P.metaKey:P.ctrlKey)&&W.replaceSelection("",null,"cut")),C&&!h&&!re&&$==46&&P.shiftKey&&!P.ctrlKey&&document.execCommand&&document.execCommand("cut"),$==18&&!/\bCodeMirror-crosshair\b/.test(W.display.lineDiv.className)&&_l(W)}function _l(P){var W=P.display.lineDiv;k(W,"CodeMirror-crosshair");function $(re){(re.keyCode==18||!re.altKey)&&(S(W,"CodeMirror-crosshair"),$e(document,"keyup",$),$e(document,"mouseover",$))}Re(document,"keyup",$),Re(document,"mouseover",$)}function ml(P){P.keyCode==16&&(this.doc.sel.shift=!1),Ut(this,P)}function Al(P){var W=this;if(P.target&&P.target!=W.display.input.getField())return;if(Ln(W.display,P)||Ut(W,P)||P.ctrlKey&&!P.altKey||h&&P.metaKey)return;var $=P.keyCode,re=P.charCode;if(n&&$==Bs){Bs=null,He(P);return}if(n&&(!P.which||P.which<10)&&ro(W,P))return;var ce=String.fromCharCode(re==null?$:re);if(ce=="\b")return;if(Io(W,P,ce))return;W.display.input.onKeyPress(P)}var Il=400,Ll=function(W,$,re){this.time=W,this.pos=$,this.button=re};Ll.prototype.compare=function(P,W,$){return this.time+Il>P&&nt(W,this.pos)==0&&$==this.button};var Ks,Yl;function gu(P,W){var $=+new Date;return Yl&&Yl.compare($,P,W)?(Ks=Yl=null,"triple"):Ks&&Ks.compare($,P,W)?(Yl=new Ll($,P,W),Ks=null,"double"):(Ks=new Ll($,P,W),Yl=null,"single")}function uu(P){var W=this,$=W.display;if(Ut(W,P)||$.activeTouch&&$.input.supportsTouch())return;if($.input.ensurePolled(),$.shift=P.shiftKey,Ln($,P)){o||($.scroller.draggable=!1,setTimeout(function(){return $.scroller.draggable=!0},100));return}if(Uu(W,P))return;var re=Ja(W,P),ce=ee(P),ke=re?gu(re,ce):"single";if(window.focus(),ce==1&&W.state.selectingText&&W.state.selectingText(P),re&&Ou(W,ce,re,ke,P))return;ce==1?re?Fu(W,re,ke,P):Le(P)==$.scroller&&He(P):ce==2?(re&&fs(W.doc,re),setTimeout(function(){return $.input.focus()},20)):ce==3&&(x?W.display.input.onContextMenu(P):Bn(W))}function Ou(P,W,$,re,ce){var ke="Click";return re=="double"?ke="Double"+ke:re=="triple"&&(ke="Triple"+ke),ke=(W==1?"Left":W==2?"Middle":"Right")+ke,Bo(P,hu(ke,ce),ce,function(ht){if(typeof ht=="string"&&(ht=Kl[ht]),!ht)return!1;var Wt=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),Wt=ht(P,$)!=Z}finally{P.state.suppressEdits=!1}return Wt})}function Vu(P,W,$){var re=P.getOption("configureMouse"),ce=re?re(P,W,$):{};if(ce.unit==null){var ke=p?$.shiftKey&&$.metaKey:$.altKey;ce.unit=ke?"rectangle":W=="single"?"char":W=="double"?"word":"line"}return(ce.extend==null||P.doc.extend)&&(ce.extend=P.doc.extend||$.shiftKey),ce.addNew==null&&(ce.addNew=h?$.metaKey:$.ctrlKey),ce.moveOnDrag==null&&(ce.moveOnDrag=!(h?$.altKey:$.ctrlKey)),ce}function Fu(P,W,$,re){f?setTimeout(F(Hn,P),0):P.curOp.focus=R();var ce=Vu(P,$,re),ke=P.doc.sel,ht;P.options.dragDrop&&ct&&!P.isReadOnly()&&$=="single"&&(ht=ke.contains(W))>-1&&(nt((ht=ke.ranges[ht]).from(),W)<0||W.xRel>0)&&(nt(ht.to(),W)>0||W.xRel<0)?ec(P,re,W,ce):Gu(P,re,W,ce)}function ec(P,W,$,re){var ce=P.display,ke=!1,ht=bo(P,function(pr){o&&(ce.scroller.draggable=!1),P.state.draggingText=!1,$e(ce.wrapper.ownerDocument,"mouseup",ht),$e(ce.wrapper.ownerDocument,"mousemove",Wt),$e(ce.scroller,"dragstart",sr),$e(ce.scroller,"drop",ht),ke||(He(pr),re.addNew||fs(P.doc,$,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){ke=ke||Math.abs(W.clientX-wn.clientX)+Math.abs(W.clientY-wn.clientY)>=10},sr=function(){return ke=!0};o&&(ce.scroller.draggable=!0),P.state.draggingText=ht,ht.copy=!re.moveOnDrag,ce.scroller.dragDrop&&ce.scroller.dragDrop(),Re(ce.wrapper.ownerDocument,"mouseup",ht),Re(ce.wrapper.ownerDocument,"mousemove",Wt),Re(ce.scroller,"dragstart",sr),Re(ce.scroller,"drop",ht),Bn(P),setTimeout(function(){return ce.input.focus()},20)}function Bu(P,W,$){if($=="char")return new ae(W,W);if($=="word")return P.findWordAt(W);if($=="line")return new ae(It(W.line,0),yt(P.doc,It(W.line+1,0)));var re=$(P,W);return new ae(re.from,re.to)}function Gu(P,W,$,re){var ce=P.display,ke=P.doc;He(W);var ht,Wt,sr=ke.sel,pr=sr.ranges;if(re.addNew&&!re.extend?(Wt=ke.sel.contains($),Wt>-1?ht=pr[Wt]:ht=new ae($,$)):(ht=ke.sel.primary(),Wt=ke.sel.primIndex),re.unit=="rectangle")re.addNew||(ht=new ae($,$)),$=Ja(P,W,!0,!0),Wt=-1;else{var wn=Bu(P,$,re.unit);re.extend?ht=Hs(ht,wn.anchor,wn.head,re.extend):ht=wn}re.addNew?Wt==-1?(Wt=pr.length,Zo(ke,pe(P,pr.concat([ht]),Wt),{scroll:!1,origin:"*mouse"})):pr.length>1&&pr[Wt].empty()&&re.unit=="char"&&!re.extend?(Zo(ke,pe(P,pr.slice(0,Wt).concat(pr.slice(Wt+1)),0),{scroll:!1,origin:"*mouse"}),sr=ke.sel):Ss(ke,Wt,ht,ne):(Wt=0,Zo(ke,new pt([ht],0),ne),sr=ke.sel);var Rn=$;function ei(xa){if(nt(Rn,xa)==0)return;if(Rn=xa,re.unit=="rectangle"){for(var Ma=[],To=P.options.tabSize,no=K(Ie(ke,$.line).text,$.ch,To),Wo=K(Ie(ke,xa.line).text,xa.ch,To),ps=Math.min(no,Wo),Us=Math.max(no,Wo),Ts=Math.min($.line,xa.line),tl=Math.min(P.lastLine(),Math.max($.line,xa.line));Ts<=tl;Ts++){var ul=Ie(ke,Ts).text,Gs=xe(ul,ps,To);ps==Us?Ma.push(new ae(It(Ts,Gs),It(Ts,Gs))):ul.length>Gs&&Ma.push(new ae(It(Ts,Gs),It(Ts,xe(ul,Us,To))))}Ma.length||Ma.push(new ae($,$)),Zo(ke,pe(P,sr.ranges.slice(0,Wt).concat(Ma),Wt),{origin:"*mouse",scroll:!1}),P.scrollIntoView(xa)}else{var cl=ht,rl=Bu(P,xa,re.unit),ya=cl.anchor,Ms;nt(rl.anchor,ya)>0?(Ms=rl.head,ya=xt(cl.from(),rl.anchor)):(Ms=rl.anchor,ya=Pt(cl.to(),rl.head));var Ls=sr.ranges.slice(0);Ls[Wt]=Xu(P,new ae(yt(ke,ya),Ms)),Zo(ke,pe(P,Ls,Wt),ne)}}var ni=ce.wrapper.getBoundingClientRect(),Mi=0;function Zi(xa){var Ma=++Mi,To=Ja(P,xa,!0,re.unit=="rectangle");if(!To)return;if(nt(To,Rn)!=0){P.curOp.focus=R(),ei(To);var no=Pi(ce,ke);(To.line>=no.to||To.line<no.from)&&setTimeout(bo(P,function(){Mi==Ma&&Zi(xa)}),150)}else{var Wo=xa.clientY<ni.top?-20:xa.clientY>ni.bottom?20:0;Wo&&setTimeout(bo(P,function(){if(Mi!=Ma)return;ce.scroller.scrollTop+=Wo,Zi(xa)}),50)}}function da(xa){P.state.selectingText=!1,Mi=Infinity,xa&&(He(xa),ce.input.focus()),$e(ce.wrapper.ownerDocument,"mousemove",ia),$e(ce.wrapper.ownerDocument,"mouseup",na),ke.history.lastSelOrigin=null}var ia=bo(P,function(xa){xa.buttons===0||!ee(xa)?da(xa):Zi(xa)}),na=bo(P,da);P.state.selectingText=na,Re(ce.wrapper.ownerDocument,"mousemove",ia),Re(ce.wrapper.ownerDocument,"mouseup",na)}function Xu(P,W){var $=W.anchor,re=W.head,ce=Ie(P.doc,$.line);if(nt($,re)==0&&$.sticky==re.sticky)return W;var ke=At(ce);if(!ke)return W;var ht=Te(ke,$.ch,$.sticky),Wt=ke[ht];if(Wt.from!=$.ch&&Wt.to!=$.ch)return W;var sr=ht+(Wt.from==$.ch==(Wt.level!=1)?0:1);if(sr==0||sr==ke.length)return W;var pr;if(re.line!=$.line)pr=(re.line-$.line)*(P.doc.direction=="ltr"?1:-1)>0;else{var wn=Te(ke,re.ch,re.sticky),Rn=wn-ht||(re.ch-$.ch)*(Wt.level==1?-1:1);wn==sr-1||wn==sr?pr=Rn<0:pr=Rn>0}var ei=ke[sr+(pr?-1:0)],ni=pr==(ei.level==1),Mi=ni?ei.from:ei.to,Zi=ni?"after":"before";return $.ch==Mi&&$.sticky==Zi?W:new ae(new It($.line,Mi,Zi),re)}function Yu(P,W,$,re){var ce,ke;if(W.touches)ce=W.touches[0].clientX,ke=W.touches[0].clientY;else try{ce=W.clientX,ke=W.clientY}catch(ei){return!1}if(ce>=Math.floor(P.display.gutters.getBoundingClientRect().right))return!1;re&&He(W);var ht=P.display,Wt=ht.lineDiv.getBoundingClientRect();if(ke>Wt.bottom||!_t(P,$))return J(W);ke-=Wt.top-ht.viewOffset;for(var sr=0;sr<P.display.gutterSpecs.length;++sr){var pr=ht.gutters.childNodes[sr];if(pr&&pr.getBoundingClientRect().right>=ce){var wn=Ar(P.doc,ke),Rn=P.display.gutterSpecs[sr];return Et(P,$,P,wn,Rn.className,W),J(W)}}}function Uu(P,W){return Yu(P,W,"gutterClick",!0)}function _u(P,W){if(Ln(P.display,W)||Ul(P,W))return;if(Ut(P,W,"contextmenu"))return;x||P.display.input.onContextMenu(W)}function Ul(P,W){return _t(P,"gutterContextMenu")?Yu(P,W,"gutterContextMenu",!1):!1}function Iu(P){P.display.wrapper.className=P.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+P.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ga(P)}var Wl={toString:function(){return"CodeMirror.Init"}},Su={},ge={};function We(P){var W=P.optionHandlers;function $(re,ce,ke,ht){P.defaults[re]=ce,ke&&(W[re]=ht?function(Wt,sr,pr){pr!=Wl&&ke(Wt,sr,pr)}:ke)}P.defineOption=$,P.Init=Wl,$("value","",function(re,ce){return re.setValue(ce)},!0),$("mode",null,function(re,ce){re.doc.modeOption=ce,fn(re)},!0),$("indentUnit",2,fn,!0),$("indentWithTabs",!1),$("smartIndent",!0),$("tabSize",4,function(re){Kn(re),ga(re),ha(re)},!0),$("lineSeparator",null,function(re,ce){if(re.doc.lineSep=ce,!ce)return;var ke=[],ht=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,ke.push(It(ht,wn))}ht++});for(var Wt=ke.length-1;Wt>=0;Wt--)hl(re.doc,ce,ke[Wt],It(ke[Wt].line,ke[Wt].ch+ce.length))}),$("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,ce,ke){re.state.specialChars=new RegExp(ce.source+(ce.test(" ")?"":"| "),"g"),ke!=Wl&&re.refresh()}),$("specialCharPlaceholder",ti,function(re){return re.refresh()},!0),$("electricChars",!0),$("inputStyle",u?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),$("spellcheck",!1,function(re,ce){return re.getInputField().spellcheck=ce},!0),$("autocorrect",!1,function(re,ce){return re.getInputField().autocorrect=ce},!0),$("autocapitalize",!1,function(re,ce){return re.getInputField().autocapitalize=ce},!0),$("rtlMoveVisually",!g),$("wholeLineUpdateBefore",!0),$("theme","default",function(re){Iu(re),Jo(re)},!0),$("keyMap","default",function(re,ce,ke){var ht=Rs(ce),Wt=ke!=Wl&&Rs(ke);Wt&&Wt.detach&&Wt.detach(re,ht),ht.attach&&ht.attach(re,Wt||null)}),$("extraKeys",null),$("configureMouse",null),$("lineWrapping",!1,nr,!0),$("gutters",[],function(re,ce){re.display.gutterSpecs=vo(ce,re.options.lineNumbers),Jo(re)},!0),$("fixedGutter",!0,function(re,ce){re.display.gutters.style.left=ce?Xa(re.display)+"px":"0",re.refresh()},!0),$("coverGutterNextToScrollbar",!1,function(re){return eo(re)},!0),$("scrollbarStyle","native",function(re){cs(re),eo(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),$("lineNumbers",!1,function(re,ce){re.display.gutterSpecs=vo(re.options.gutters,ce),Jo(re)},!0),$("firstLineNumber",1,Jo,!0),$("lineNumberFormatter",function(re){return re},Jo,!0),$("showCursorWhenSelecting",!1,Vr,!0),$("resetSelectionOnContextMenu",!0),$("lineWiseCopyCut",!0),$("pasteLinesPerSelection",!0),$("selectionsMayTouch",!1),$("readOnly",!1,function(re,ce){ce=="nocursor"&&(Yn(re),re.display.input.blur()),re.display.input.readOnlyChanged(ce)}),$("screenReaderLabel",null,function(re,ce){ce=ce===""?null:ce,re.display.input.screenReaderLabelChanged(ce)}),$("disableInput",!1,function(re,ce){ce||re.display.input.reset()},!0),$("dragDrop",!0,dt),$("allowDropFileTypes",null),$("cursorBlinkRate",530),$("cursorScrollMargin",0),$("cursorHeight",1,Vr,!0),$("singleCursorHeightPerLine",!0,Vr,!0),$("workTime",100),$("workDelay",100),$("flattenSpans",!0,Kn,!0),$("addModeClass",!1,Kn,!0),$("pollInterval",100),$("undoDepth",200,function(re,ce){return re.doc.history.undoDepth=ce}),$("historyEventDelay",1250),$("viewportMargin",10,function(re){return re.refresh()},!0),$("maxHighlightLength",1e4,Kn,!0),$("moveInputWithCursor",!0,function(re,ce){ce||re.display.input.resetPosition()}),$("tabindex",null,function(re,ce){return re.display.input.getField().tabIndex=ce||""}),$("autofocus",null),$("direction","ltr",function(re,ce){return re.doc.setDirection(ce)},!0),$("phrases",null)}function dt(P,W,$){var re=$&&$!=Wl;if(!W!=!re){var ce=P.display.dragFunctions,ke=W?Re:$e;ke(P.display.scroller,"dragstart",ce.start),ke(P.display.scroller,"dragenter",ce.enter),ke(P.display.scroller,"dragover",ce.over),ke(P.display.scroller,"dragleave",ce.leave),ke(P.display.scroller,"drop",ce.drop)}}function nr(P){P.options.lineWrapping?(k(P.display.wrapper,"CodeMirror-wrap"),P.display.sizer.style.minWidth="",P.display.sizerWidth=null):(S(P.display.wrapper,"CodeMirror-wrap"),vn(P)),go(P),ha(P),ga(P),setTimeout(function(){return eo(P)},100)}function Tr(P,W){var $=this;if(!(this instanceof Tr))return new Tr(P,W);this.options=W=W?U(W):{},U(Su,W,!1);var re=W.value;typeof re=="string"?re=new Ys(re,W.mode,null,W.lineSeparator,W.direction):W.mode&&(re.modeOption=W.mode),this.doc=re;var ce=new Tr.inputStyles[W.inputStyle](this),ke=this.display=new ts(P,re,ce,W);ke.wrapper.CodeMirror=this,Iu(this),W.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},W.autofocus&&!u&&ke.input.focus(),f&&c<11&&setTimeout(function(){return $.display.input.reset(!0)},20),zr(this),iu(),Lo(this),this.curOp.forceUpdate=!0,Fi(this,re),W.autofocus&&!u||this.hasFocus()?setTimeout(function(){$.hasFocus()&&!$.state.focused&&ri($)},20):Yn(this);for(var ht in ge)ge.hasOwnProperty(ht)&&ge[ht](this,W[ht],Wl);vs(this),W.finishInit&&W.finishInit(this);for(var Wt=0;Wt<De.length;++Wt)De[Wt](this);Ba(this),o&&W.lineWrapping&&getComputedStyle(ke.lineDiv).textRendering=="optimizelegibility"&&(ke.lineDiv.style.textRendering="auto")}Tr.defaults=Su,Tr.optionHandlers=ge;function zr(P){var W=P.display;Re(W.scroller,"mousedown",bo(P,uu)),f&&c<11?Re(W.scroller,"dblclick",bo(P,function(sr){if(Ut(P,sr))return;var pr=Ja(P,sr);if(!pr||Uu(P,sr)||Ln(P.display,sr))return;He(sr);var wn=P.findWordAt(pr);fs(P.doc,wn.anchor,wn.head)})):Re(W.scroller,"dblclick",function(sr){return Ut(P,sr)||He(sr)}),Re(W.scroller,"contextmenu",function(sr){return _u(P,sr)}),Re(W.input.getField(),"contextmenu",function(sr){W.scroller.contains(sr.target)||_u(P,sr)});var $,re={end:0};function ce(){W.activeTouch&&($=setTimeout(function(){return W.activeTouch=null},1e3),re=W.activeTouch,re.end=+new Date)}function ke(sr){if(sr.touches.length!=1)return!1;var pr=sr.touches[0];return pr.radiusX<=1&&pr.radiusY<=1}function ht(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}Re(W.scroller,"touchstart",function(sr){if(!Ut(P,sr)&&!ke(sr)&&!Uu(P,sr)){W.input.ensurePolled(),clearTimeout($);var pr=+new Date;W.activeTouch={start:pr,moved:!1,prev:pr-re.end<=300?re:null},sr.touches.length==1&&(W.activeTouch.left=sr.touches[0].pageX,W.activeTouch.top=sr.touches[0].pageY)}}),Re(W.scroller,"touchmove",function(){W.activeTouch&&(W.activeTouch.moved=!0)}),Re(W.scroller,"touchend",function(sr){var pr=W.activeTouch;if(pr&&!Ln(W,sr)&&pr.left!=null&&!pr.moved&&new Date-pr.start<300){var wn=P.coordsChar(W.activeTouch,"page"),Rn;!pr.prev||ht(pr,pr.prev)?Rn=new ae(wn,wn):!pr.prev.prev||ht(pr,pr.prev.prev)?Rn=P.findWordAt(wn):Rn=new ae(It(wn.line,0),yt(P.doc,It(wn.line+1,0))),P.setSelection(Rn.anchor,Rn.head),P.focus(),He(sr)}ce()}),Re(W.scroller,"touchcancel",ce),Re(W.scroller,"scroll",function(){W.scroller.clientHeight&&(qi(P,W.scroller.scrollTop),ma(P,W.scroller.scrollLeft,!0),Et(P,"scroll",P))}),Re(W.scroller,"mousewheel",function(sr){return Vn(P,sr)}),Re(W.scroller,"DOMMouseScroll",function(sr){return Vn(P,sr)}),Re(W.wrapper,"scroll",function(){return W.wrapper.scrollTop=W.wrapper.scrollLeft=0}),W.dragFunctions={enter:function(pr){Ut(P,pr)||Ue(pr)},over:function(pr){Ut(P,pr)||(du(P,pr),Ue(pr))},start:function(pr){return kl(P,pr)},drop:bo(P,fl),leave:function(pr){Ut(P,pr)||ru(P)}};var Wt=W.input.getField();Re(Wt,"keyup",function(sr){return ml.call(P,sr)}),Re(Wt,"keydown",bo(P,Ol)),Re(Wt,"keypress",bo(P,Al)),Re(Wt,"focus",function(sr){return ri(P,sr)}),Re(Wt,"blur",function(sr){return Yn(P,sr)})}var De=[];Tr.defineInitHook=function(P){return De.push(P)};function q(P,W,$,re){var ce=P.doc,ke;$==null&&($="add"),$=="smart"&&(ce.mode.indent?ke=kn(P,W).state:$="prev");var ht=P.options.tabSize,Wt=Ie(ce,W),sr=K(Wt.text,null,ht);Wt.stateAfter&&(Wt.stateAfter=null);var pr=Wt.text.match(/^\s*/)[0],wn;if(!re&&!/\S/.test(Wt.text))wn=0,$="not";else if($=="smart"&&(wn=ce.mode.indent(ke,Wt.text.slice(pr.length),Wt.text),wn==Z||wn>150)){if(!re)return;$="prev"}$=="prev"?W>ce.first?wn=K(Ie(ce,W-1).text,null,ht):wn=0:$=="add"?wn=sr+P.options.indentUnit:$=="subtract"?wn=sr-P.options.indentUnit:typeof $=="number"&&(wn=sr+$),wn=Math.max(0,wn);var Rn="",ei=0;if(P.options.indentWithTabs)for(var ni=Math.floor(wn/ht);ni;--ni)ei+=ht,Rn+=" ";if(ei<wn&&(Rn+=Be(wn-ei)),Rn!=pr)return hl(ce,Rn,It(W,0),It(W,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==W&&Zi.head.ch<pr.length){var da=It(W,pr.length);Ss(ce,Mi,new ae(da,da));break}}}var ye=null;function Ve(P){ye=P}function it(P,W,$,re,ce){var ke=P.doc;P.display.shift=!1,re||(re=ke.sel);var ht=+new Date-200,Wt=ce=="paste"||P.state.pasteIncoming>ht,sr=Zr(W),pr=null;if(Wt&&re.ranges.length>1)if(ye&&ye.text.join(`
|
|
|
`)==W){if(re.ranges.length%ye.text.length==0){pr=[];for(var wn=0;wn<ye.text.length;wn++)pr.push(ke.splitLines(ye.text[wn]))}}else sr.length==re.ranges.length&&P.options.pasteLinesPerSelection&&(pr=Fe(sr,function(ia){return[ia]}));for(var Rn=P.curOp.updateInput,ei=re.ranges.length-1;ei>=0;ei--){var ni=re.ranges[ei],Mi=ni.from(),Zi=ni.to();ni.empty()&&($&&$>0?Mi=It(Mi.line,Mi.ch-$):P.state.overwrite&&!Wt?Zi=It(Zi.line,Math.min(Ie(ke,Zi.line).text.length,Zi.ch+me(sr).length)):Wt&&ye&&ye.lineWise&&ye.text.join(`
|
|
|
`)==sr.join(`
|
|
|
`)&&(Mi=Zi=It(Mi.line,0)));var da={from:Mi,to:Zi,text:pr?pr[ei%pr.length]:sr,origin:ce||(Wt?"paste":P.state.cutIncoming>ht?"cut":"+input")};rs(P.doc,da),wr(P,"inputRead",P,da)}W&&!Wt&&zt(P,W),sa(P),P.curOp.updateInput<2&&(P.curOp.updateInput=Rn),P.curOp.typing=!0,P.state.pasteIncoming=P.state.cutIncoming=-1}function Rt(P,W){var $=P.clipboardData&&P.clipboardData.getData("Text");if($)return P.preventDefault(),!W.isReadOnly()&&!W.options.disableInput&&ho(W,function(){return it(W,$,0,null,"paste")}),!0}function zt(P,W){if(!P.options.electricChars||!P.options.smartIndent)return;for(var $=P.doc.sel,re=$.ranges.length-1;re>=0;re--){var ce=$.ranges[re];if(ce.head.ch>100||re&&$.ranges[re-1].head.line==ce.head.line)continue;var ke=P.getModeAt(ce.head),ht=!1;if(ke.electricChars){for(var Wt=0;Wt<ke.electricChars.length;Wt++)if(W.indexOf(ke.electricChars.charAt(Wt))>-1){ht=q(P,ce.head.line,"smart");break}}else ke.electricInput&&(ke.electricInput.test(Ie(P.doc,ce.head.line).text.slice(0,ce.head.ch))&&(ht=q(P,ce.head.line,"smart")));ht&&wr(P,"electricInput",P,ce.head.line)}}function Xt(P){for(var W=[],$=[],re=0;re<P.doc.sel.ranges.length;re++){var ce=P.doc.sel.ranges[re].head.line,ke={anchor:It(ce,0),head:It(ce+1,0)};$.push(ke),W.push(P.getRange(ke.anchor,ke.head))}return{text:W,ranges:$}}function Nr(P,W,$,re){P.setAttribute("autocorrect",$?"":"off"),P.setAttribute("autocapitalize",re?"":"off"),P.setAttribute("spellcheck",!!W)}function Qr(){var P=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),W=I("div",[P],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?P.style.width="1000px":P.setAttribute("wrap","off"),a&&(P.style.border="1px solid black"),Nr(P),W}function Cr(P){var W=P.optionHandlers,$=P.helpers={};P.prototype={constructor:P,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ce,ke){var ht=this.options,Wt=ht[ce];if(ht[ce]==ke&&ce!="mode")return;ht[ce]=ke,W.hasOwnProperty(ce)&&bo(this,W[ce])(this,ke,Wt),Et(this,"optionChange",this,ce)},getOption:function(ce){return this.options[ce]},getDoc:function(){return this.doc},addKeyMap:function(ce,ke){this.state.keyMaps[ke?"push":"unshift"](Rs(ce))},removeKeyMap:function(ce){for(var ke=this.state.keyMaps,ht=0;ht<ke.length;++ht)if(ke[ht]==ce||ke[ht].name==ce)return ke.splice(ht,1),!0},addOverlay:ds(function(re,ce){var ke=re.token?re:P.getMode(this.options,re);if(ke.startState)throw new Error("Overlays may not be stateful.");ie(this.state.overlays,{mode:ke,modeSpec:re,opaque:ce&&ce.opaque,priority:ce&&ce.priority||0},function(ht){return ht.priority}),this.state.modeGen++,ha(this)}),removeOverlay:ds(function(re){for(var ce=this.state.overlays,ke=0;ke<ce.length;++ke){var ht=ce[ke].modeSpec;if(ht==re||typeof re=="string"&&ht.name==re){ce.splice(ke,1),this.state.modeGen++,ha(this);return}}}),indentLine:ds(function(re,ce,ke){typeof ce!="string"&&typeof ce!="number"&&(ce==null?ce=this.options.smartIndent?"smart":"prev":ce=ce?"add":"subtract"),Pr(this.doc,re)&&q(this,re,ce,ke)}),indentSelection:ds(function(re){for(var ce=this.doc.sel.ranges,ke=-1,ht=0;ht<ce.length;ht++){var Wt=ce[ht];if(Wt.empty())Wt.head.line>ke&&(q(this,Wt.head.line,re,!0),ke=Wt.head.line,ht==this.doc.sel.primIndex&&sa(this));else{var sr=Wt.from(),pr=Wt.to(),wn=Math.max(ke,sr.line);ke=Math.min(this.lastLine(),pr.line-(pr.ch?0:1))+1;for(var Rn=wn;Rn<ke;++Rn)q(this,Rn,re);var ei=this.doc.sel.ranges;sr.ch==0&&ce.length==ei.length&&ei[ht].from().ch>0&&Ss(this.doc,ht,new ae(sr,ei[ht].to()),le)}}}),getTokenAt:function(ce,ke){return Ii(this,ce,ke)},getLineTokens:function(ce,ke){return Ii(this,It(ce),ke,!0)},getTokenTypeAt:function(ce){ce=yt(this.doc,ce);var ke=$r(this,Ie(this.doc,ce.line)),ht=0,Wt=(ke.length-1)/2,sr=ce.ch,pr;if(sr==0)pr=ke[2];else for(;;){var wn=ht+Wt>>1;if((wn?ke[wn*2-1]:0)>=sr)Wt=wn;else if(ke[wn*2+1]<sr)ht=wn+1;else{pr=ke[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 ke=this.doc.mode;return ke.innerMode?P.innerMode(ke,this.getTokenAt(ce).state).mode:ke},getHelper:function(ce,ke){return this.getHelpers(ce,ke)[0]},getHelpers:function(ce,ke){var ht=[];if(!$.hasOwnProperty(ke))return ht;var Wt=$[ke],sr=this.getModeAt(ce);if(typeof sr[ke]=="string")Wt[sr[ke]]&&ht.push(Wt[sr[ke]]);else if(sr[ke])for(var pr=0;pr<sr[ke].length;pr++){var wn=Wt[sr[ke][pr]];wn&&ht.push(wn)}else sr.helperType&&Wt[sr.helperType]?ht.push(Wt[sr.helperType]):Wt[sr.name]&&ht.push(Wt[sr.name]);for(var Rn=0;Rn<Wt._global.length;Rn++){var ei=Wt._global[Rn];ei.pred(sr,this)&&z(ht,ei.val)==-1&&ht.push(ei.val)}return ht},getStateAfter:function(ce,ke){var ht=this.doc;return ce=Kt(ht,ce==null?ht.first+ht.size-1:ce),kn(this,ce+1,ke).state},cursorCoords:function(ce,ke){var ht,Wt=this.doc.sel.primary();return ce==null?ht=Wt.head:typeof ce=="object"?ht=yt(this.doc,ce):ht=ce?Wt.from():Wt.to(),ja(this,ht,ke||"page")},charCoords:function(ce,ke){return Ao(this,yt(this.doc,ce),ke||"page")},coordsChar:function(ce,ke){return ce=Ra(this,ce,ke||"page"),Va(this,ce.left,ce.top)},lineAtHeight:function(ce,ke){return ce=Ra(this,{top:ce,left:0},ke||"page").top,Ar(this.doc,ce+this.display.viewOffset)},heightAtLine:function(ce,ke,ht){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=Ie(this.doc,ce)}else sr=ce;return Da(this,sr,{top:0,left:0},ke||"page",ht||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,ke,ht,Wt,sr){var pr=this.display;ce=ja(this,yt(this.doc,ce));var wn=ce.bottom,Rn=ce.left;if(ke.style.position="absolute",ke.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ke),pr.sizer.appendChild(ke),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+ke.offsetHeight>ei)&&ce.top>ke.offsetHeight?wn=ce.top-ke.offsetHeight:ce.bottom+ke.offsetHeight<=ei&&(wn=ce.bottom),Rn+ke.offsetWidth>ni&&(Rn=ni-ke.offsetWidth)}ke.style.top=wn+"px",ke.style.left=ke.style.right="",sr=="right"?(Rn=pr.sizer.clientWidth-ke.offsetWidth,ke.style.right="0px"):(sr=="left"?Rn=0:sr=="middle"&&(Rn=(pr.sizer.clientWidth-ke.offsetWidth)/2),ke.style.left=Rn+"px"),ht&&Aa(this,{left:Rn,top:wn,right:Rn+ke.offsetWidth,bottom:wn+ke.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,ke,ht,Wt){var sr=1;ke<0&&(sr=-1,ke=-ke);for(var pr=yt(this.doc,ce),wn=0;wn<ke&&!(pr=Er(this.doc,pr,sr,ht,Wt),pr.hitSide);++wn);return pr},moveH:ds(function(re,ce){var ke=this;this.extendSelectionsBy(function(ht){return ke.display.shift||ke.doc.extend||ht.empty()?Er(ke.doc,ht.head,re,ce,ke.options.rtlMoveVisually):re<0?ht.from():ht.to()},ve)}),deleteH:ds(function(re,ce){var ke=this.doc.sel,ht=this.doc;ke.somethingSelected()?ht.replaceSelection("",null,"+delete"):el(this,function(Wt){var sr=Er(ht,Wt.head,re,ce,!1);return re<0?{from:sr,to:Wt.head}:{from:Wt.head,to:sr}})}),findPosV:function(ce,ke,ht,Wt){var sr=1,pr=Wt;ke<0&&(sr=-1,ke=-ke);for(var wn=yt(this.doc,ce),Rn=0;Rn<ke;++Rn){var ei=ja(this,wn,"div");if(pr==null?pr=ei.left:ei.left=pr,wn=Kr(this,ei,sr,ht),wn.hitSide)break}return wn},moveV:ds(function(re,ce){var ke=this,ht=this.doc,Wt=[],sr=!this.display.shift&&!ht.extend&&ht.sel.somethingSelected();if(ht.extendSelectionsBy(function(wn){if(sr)return re<0?wn.from():wn.to();var Rn=ja(ke,wn.head,"div");wn.goalColumn!=null&&(Rn.left=wn.goalColumn),Wt.push(Rn.left);var ei=Kr(ke,Rn,re,ce);return ce=="page"&&wn==ht.sel.primary()&&Ji(ke,Ao(ke,ei,"div").top-Rn.top),ei},ve),Wt.length)for(var pr=0;pr<ht.sel.ranges.length;pr++)ht.sel.ranges[pr].goalColumn=Wt[pr]}),findWordAt:function(ce){var ke=this.doc,ht=Ie(ke,ce.line).text,Wt=ce.ch,sr=ce.ch;if(ht){var pr=this.getHelper(ce,"wordChars");(ce.sticky=="before"||sr==ht.length)&&Wt?--Wt:++sr;for(var wn=ht.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(ht.charAt(Wt-1));)--Wt;for(;sr<ht.length&&Rn(ht.charAt(sr));)++sr}return new ae(It(ce.line,Wt),It(ce.line,sr))},toggleOverwrite:function(ce){if(ce!=null&&ce==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),Et(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:It(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 ke=this,ht=function(pr){return typeof pr=="number"||/^\d+$/.test(String(pr))?pr+"px":pr};re!=null&&(this.display.wrapper.style.width=ht(re)),ce!=null&&(this.display.wrapper.style.height=ht(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){tt(ke,Wt,"widget");break}}++Wt}),this.curOp.forceUpdate=!0,Et(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),Et(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 ke=this.options.phrases;return ke&&Object.prototype.hasOwnProperty.call(ke,ce)?ke[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}},jt(P),P.registerHelper=function(re,ce,ke){$.hasOwnProperty(re)||($[re]=P[re]={_global:[]}),$[re][ce]=ke},P.registerGlobalHelper=function(re,ce,ke,ht){P.registerHelper(re,ce,ht),$[re]._global.push({pred:ke,val:ht})}}function Er(P,W,$,re,ce){var ke=W,ht=$,Wt=Ie(P,W.line),sr=ce&&P.direction=="rtl"?-$:$;function pr(){var na=W.line+sr;return na<P.first||na>=P.first+P.size?!1:(W=new It(na,W.ch,W.sticky),Wt=Ie(P,na))}function wn(na){var xa;if(re=="codepoint"){var Ma=Wt.text.charCodeAt(W.ch+(re>0?0:-1));isNaN(Ma)?xa=null:xa=new It(W.line,Math.max(0,Math.min(Wt.text.length,W.ch+$*(Ma>=55296&&Ma<56320?2:1))),-$)}else ce?xa=Xl(P.cm,Wt,W,$):xa=wu(Wt,W,$);if(xa==null)if(!na&&pr())W=fu(ce,P.cm,Wt,W.line,sr);else return!1;else W=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=P.cm&&P.cm.getHelper(W,"wordChars"),Mi=!0;!($<0&&!wn(!Mi));Mi=!1){var Zi=Wt.text.charAt(W.ch)||`
|
|
|
`,da=G(Zi,ni)?"w":ei&&Zi==`
|
|
|
`?"n":!ei||/\s/.test(Zi)?null:"p";if(ei&&!Mi&&!da&&(da="s"),Rn&&Rn!=da){$<0&&($=1,wn(),W.sticky="after");break}if(da&&(Rn=da),$>0&&!wn(!Mi))break}var ia=Eo(P,W,ke,ht,!0);return at(ke,ia)&&(ia.hitSide=!0),ia}function Kr(P,W,$,re){var ce=P.doc,ke=W.left,ht;if(re=="page"){var Wt=Math.min(P.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),sr=Math.max(Wt-.5*qa(P.display),3);ht=($>0?W.bottom:W.top)+$*sr}else re=="line"&&(ht=$>0?W.bottom+3:W.top-3);for(var pr;!(pr=Va(P,ke,ht),!pr.outside);){if($<0?ht<=0:ht>=ce.height){pr.hitSide=!0;break}ht+=$*5}return pr}var qr=function(W){this.cm=W,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qr.prototype.init=function(P){var W=this,$=this,re=$.cm,ce=$.div=P.lineDiv;Nr(ce,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function ke(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}Re(ce,"paste",function(Wt){if(!ke(Wt)||Ut(re,Wt)||Rt(Wt,re))return;c<=11&&setTimeout(bo(re,function(){return W.updateFromDOM()}),20)}),Re(ce,"compositionstart",function(Wt){W.composing={data:Wt.data,done:!1}}),Re(ce,"compositionupdate",function(Wt){W.composing||(W.composing={data:Wt.data,done:!1})}),Re(ce,"compositionend",function(Wt){W.composing&&(Wt.data!=W.composing.data&&W.readFromDOMSoon(),W.composing.done=!0)}),Re(ce,"touchstart",function(){return $.forceCompositionEnd()}),Re(ce,"input",function(){W.composing||W.readFromDOMSoon()});function ht(Wt){if(!ke(Wt)||Ut(re,Wt))return;if(re.somethingSelected())Ve({lineWise:!1,text:re.getSelections()}),Wt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var sr=Xt(re);Ve({lineWise:!0,text:sr.text}),Wt.type=="cut"&&re.operation(function(){re.setSelections(sr.ranges,0,le),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;j(Rn),setTimeout(function(){re.display.lineSpace.removeChild(wn),ei.focus(),ei==ce&&$.showPrimarySelection()},50)}Re(ce,"copy",ht),Re(ce,"cut",ht)},qr.prototype.screenReaderLabelChanged=function(P){P?this.div.setAttribute("aria-label",P):this.div.removeAttribute("aria-label")},qr.prototype.prepareSelection=function(){var P=_r(this.cm,!1);return P.focus=document.activeElement==this.div,P},qr.prototype.showSelection=function(P,W){if(!P||!this.cm.display.view.length)return;(P.focus||W)&&this.showPrimarySelection(),this.showMultipleSelections(P)},qr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qr.prototype.showPrimarySelection=function(){var P=this.getSelection(),W=this.cm,$=W.doc.sel.primary(),re=$.from(),ce=$.to();if(W.display.viewTo==W.display.viewFrom||re.line>=W.display.viewTo||ce.line<W.display.viewFrom){P.removeAllRanges();return}var ke=Oi(W,P.anchorNode,P.anchorOffset),ht=Oi(W,P.focusNode,P.focusOffset);if(ke&&!ke.bad&&ht&&!ht.bad&&nt(xt(ke,ht),re)==0&&nt(Pt(ke,ht),ce)==0)return;var Wt=W.display.view,sr=re.line>=W.display.viewFrom&&Cn(W,re)||{node:Wt[0].measure.map[2],offset:0},pr=ce.line<W.display.viewTo&&Cn(W,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){P.removeAllRanges();return}var ei=P.rangeCount&&P.getRangeAt(0),ni;try{ni=N(sr.node,sr.offset,pr.offset,pr.node)}catch(Mi){}ni&&(!C&&W.state.focused?(P.collapse(sr.node,sr.offset),ni.collapsed||(P.removeAllRanges(),P.addRange(ni))):(P.removeAllRanges(),P.addRange(ni)),ei&&P.anchorNode==null?P.addRange(ei):C&&this.startGracePeriod()),this.rememberSelection()},qr.prototype.startGracePeriod=function(){var P=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){P.gracePeriod=!1,P.selectionChanged()&&P.cm.operation(function(){return P.cm.curOp.selectionChanged=!0})},20)},qr.prototype.showMultipleSelections=function(P){O(this.cm.display.cursorDiv,P.cursors),O(this.cm.display.selectionDiv,P.selection)},qr.prototype.rememberSelection=function(){var P=this.getSelection();this.lastAnchorNode=P.anchorNode,this.lastAnchorOffset=P.anchorOffset,this.lastFocusNode=P.focusNode,this.lastFocusOffset=P.focusOffset},qr.prototype.selectionInEditor=function(){var P=this.getSelection();if(!P.rangeCount)return!1;var W=P.getRangeAt(0).commonAncestorContainer;return D(this.div,W)},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 P=this;this.selectionInEditor()?this.pollSelection():ho(this.cm,function(){return P.cm.curOp.selectionChanged=!0});function W(){P.cm.state.focused&&(P.pollSelection(),P.polling.set(P.cm.options.pollInterval,W))}this.polling.set(this.cm.options.pollInterval,W)},qr.prototype.selectionChanged=function(){var P=this.getSelection();return P.anchorNode!=this.lastAnchorNode||P.anchorOffset!=this.lastAnchorOffset||P.focusNode!=this.lastFocusNode||P.focusOffset!=this.lastFocusOffset},qr.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var P=this.getSelection(),W=this.cm;if(s&&i&&this.cm.display.gutterSpecs.length&&oi(P.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var $=Oi(W,P.anchorNode,P.anchorOffset),re=Oi(W,P.focusNode,P.focusOffset);$&&re&&ho(W,function(){Zo(W.doc,be($,re),le),($.bad||re.bad)&&(W.curOp.selectionChanged=!0)})},qr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var P=this.cm,W=P.display,$=P.doc.sel.primary(),re=$.from(),ce=$.to();if(re.ch==0&&re.line>P.firstLine()&&(re=It(re.line-1,Ie(P.doc,re.line-1).length)),ce.ch==Ie(P.doc,ce.line).text.length&&ce.line<P.lastLine()&&(ce=It(ce.line+1,0)),re.line<W.viewFrom||ce.line>W.viewTo-1)return!1;var ke,ht,Wt;re.line==W.viewFrom||(ke=Fa(P,re.line))==0?(ht=Ot(W.view[0].line),Wt=W.view[0].node):(ht=Ot(W.view[ke].line),Wt=W.view[ke-1].node.nextSibling);var sr=Fa(P,ce.line),pr,wn;if(sr==W.view.length-1?(pr=W.viewTo-1,wn=W.lineDiv.lastChild):(pr=Ot(W.view[sr+1].line)-1,wn=W.view[sr+1].node.previousSibling),!Wt)return!1;for(var Rn=P.doc.splitLines(ji(P,Wt,wn,ht,pr)),ei=Ye(P.doc,It(ht,0),It(pr,Ie(P.doc,pr).text.length));Rn.length>1&&ei.length>1;)if(me(Rn)==me(ei))Rn.pop(),ei.pop(),pr--;else if(Rn[0]==ei[0])Rn.shift(),ei.shift(),ht++;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=me(Rn),xa=me(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&&ht==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=It(ht,ni),no=It(pr,ei.length?me(ei).length-Mi:0);if(Rn.length>1||Rn[0]||nt(To,no))return hl(P.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 P=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(P.readDOMTimeout=null,P.composing)if(P.composing.done)P.composing=null;else return;P.updateFromDOM()},80)},qr.prototype.updateFromDOM=function(){var P=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return ha(P.cm)})},qr.prototype.setUneditable=function(P){P.contentEditable="false"},qr.prototype.onKeyPress=function(P){if(P.charCode==0||this.composing)return;P.preventDefault(),this.cm.isReadOnly()||bo(this.cm,it)(this.cm,String.fromCharCode(P.charCode==null?P.keyCode:P.charCode),0)},qr.prototype.readOnlyChanged=function(P){this.div.contentEditable=String(P!="nocursor")},qr.prototype.onContextMenu=function(){},qr.prototype.resetPosition=function(){},qr.prototype.needsContentAttribute=!0;function Cn(P,W){var $=Ti(P,W.line);if(!$||$.hidden)return null;var re=Ie(P.doc,W.line),ce=xi($,re,W.line),ke=At(re,P.doc.direction),ht="left";if(ke){var Wt=Te(ke,W.ch);ht=Wt%2?"right":"left"}var sr=ua(ce.map,W.ch,ht);return sr.offset=sr.collapse=="right"?sr.end:sr.start,sr}function oi(P){for(var W=P;W;W=W.parentNode)if(/CodeMirror-gutter-wrapper/.test(W.className))return!0;return!1}function hi(P,W){return W&&(P.bad=!0),P}function ji(P,W,$,re,ce){var ke="",ht=!1,Wt=P.doc.lineSeparator(),sr=!1;function pr(ni){return function(Mi){return Mi.id==ni}}function wn(){ht&&(ke+=Wt,sr&&(ke+=Wt),ht=sr=!1)}function Rn(ni){ni&&(wn(),ke+=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=P.findMarks(It(re,0),It(ce+1,0),pr(+Zi));ia.length&&(da=ia[0].find(0))&&Rn(Ye(P.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&&(ht=!0)}else ni.nodeType==3&&Rn(ni.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ei(W),W==$);)W=W.nextSibling,sr=!1;return ke}function Oi(P,W,$){var re;if(W==P.display.lineDiv){if(re=P.display.lineDiv.childNodes[$],!re)return hi(P.clipPos(It(P.display.viewTo-1)),!0);W=null,$=0}else for(re=W;;re=re.parentNode){if(!re||re==P.display.lineDiv)return null;if(re.parentNode&&re.parentNode==P.display.lineDiv)break}for(var ce=0;ce<P.display.view.length;ce++){var ke=P.display.view[ce];if(ke.node==re)return wa(ke,W,$)}}function wa(P,W,$){var re=P.text.firstChild,ce=!1;if(!W||!D(re,W))return hi(It(Ot(P.line),0),!0);if(W==re&&(ce=!0,W=re.childNodes[$],$=0,!W)){var ke=P.rest?me(P.rest):P.line;return hi(It(Ot(ke),ke.text.length),ce)}var ht=W.nodeType==3?W:null,Wt=W;for(!ht&&W.childNodes.length==1&&W.firstChild.nodeType==3&&(ht=W.firstChild,$&&($=ht.nodeValue.length));Wt.parentNode!=re;)Wt=Wt.parentNode;var sr=P.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=Ot(xa<0?P.line:P.rest[xa]),ps=Ma[To]+na;return(na<0||no!=da)&&(ps=Ma[To+(na?1:0)]),It(Wo,ps)}}}var Rn=wn(ht,Wt,$);if(Rn)return hi(Rn,ce);for(var ei=Wt.nextSibling,ni=ht?ht.nodeValue.length-$:0;ei;ei=ei.nextSibling){if(Rn=wn(ei,ei.firstChild,0),Rn)return hi(It(Rn.line,Rn.ch-ni),ce);ni+=ei.textContent.length}for(var Mi=Wt.previousSibling,Zi=$;Mi;Mi=Mi.previousSibling){if(Rn=wn(Mi,Mi.firstChild,-1),Rn)return hi(It(Rn.line,Rn.ch+Zi),ce);Zi+=Mi.textContent.length}}var Qi=function(W){this.cm=W,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Qi.prototype.init=function(P){var W=this,$=this,re=this.cm;this.createField(P);var ce=this.textarea;P.wrapper.insertBefore(this.wrapper,P.wrapper.firstChild),a&&(ce.style.width="0px"),Re(ce,"input",function(){f&&c>=9&&W.hasSelection&&(W.hasSelection=null),$.poll()}),Re(ce,"paste",function(ht){if(Ut(re,ht)||Rt(ht,re))return;re.state.pasteIncoming=+new Date,$.fastPoll()});function ke(ht){if(Ut(re,ht))return;if(re.somethingSelected())Ve({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var Wt=Xt(re);Ve({lineWise:!0,text:Wt.text}),ht.type=="cut"?re.setSelections(Wt.ranges,null,le):($.prevInput="",ce.value=Wt.text.join(`
|
|
|
`),j(ce))}else return;ht.type=="cut"&&(re.state.cutIncoming=+new Date)}Re(ce,"cut",ke),Re(ce,"copy",ke),Re(P.scroller,"paste",function(ht){if(Ln(P,ht)||Ut(re,ht))return;if(!ce.dispatchEvent){re.state.pasteIncoming=+new Date,$.focus();return}var Wt=new Event("paste");Wt.clipboardData=ht.clipboardData,ce.dispatchEvent(Wt)}),Re(P.lineSpace,"selectstart",function(ht){Ln(P,ht)||He(ht)}),Re(ce,"compositionstart",function(){var ht=re.getCursor("from");$.composing&&$.composing.range.clear(),$.composing={start:ht,range:re.markText(ht,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Re(ce,"compositionend",function(){$.composing&&($.poll(),$.composing.range.clear(),$.composing=null)})},Qi.prototype.createField=function(P){this.wrapper=Qr(),this.textarea=this.wrapper.firstChild},Qi.prototype.screenReaderLabelChanged=function(P){P?this.textarea.setAttribute("aria-label",P):this.textarea.removeAttribute("aria-label")},Qi.prototype.prepareSelection=function(){var P=this.cm,W=P.display,$=P.doc,re=_r(P);if(P.options.moveInputWithCursor){var ce=ja(P,$.sel.primary().head,"div"),ke=W.wrapper.getBoundingClientRect(),ht=W.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(W.wrapper.clientHeight-10,ce.top+ht.top-ke.top)),re.teLeft=Math.max(0,Math.min(W.wrapper.clientWidth-10,ce.left+ht.left-ke.left))}return re},Qi.prototype.showSelection=function(P){var W=this.cm,$=W.display;O($.cursorDiv,P.cursors),O($.selectionDiv,P.selection),P.teTop!=null&&(this.wrapper.style.top=P.teTop+"px",this.wrapper.style.left=P.teLeft+"px")},Qi.prototype.reset=function(P){if(this.contextMenuPending||this.composing)return;var W=this.cm;if(W.somethingSelected()){this.prevInput="";var $=W.getSelection();this.textarea.value=$,W.state.focused&&j(this.textarea),f&&c>=9&&(this.hasSelection=$)}else P||(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(P){}},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 P=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){P.poll(),P.cm.state.focused&&P.slowPoll()})},Qi.prototype.fastPoll=function(){var P=!1,W=this;W.pollingFast=!0;function $(){var re=W.poll();!re&&!P?(P=!0,W.polling.set(60,$)):(W.pollingFast=!1,W.slowPoll())}W.polling.set(20,$)},Qi.prototype.poll=function(){var P=this,W=this.cm,$=this.textarea,re=this.prevInput;if(this.contextMenuPending||!W.state.focused||ir($)&&!re&&!this.composing||W.isReadOnly()||W.options.disableInput||W.state.keySeq)return!1;var ce=$.value;if(ce==re&&!W.somethingSelected())return!1;if(f&&c>=9&&this.hasSelection===ce||h&&/[\uf700-\uf7ff]/.test(ce))return W.display.input.reset(),!1;if(W.doc.sel==W.display.selForContextMenu){var ke=ce.charCodeAt(0);if(ke==8203&&!re&&(re="\u200B"),ke==8666)return this.reset(),this.cm.execCommand("undo")}for(var ht=0,Wt=Math.min(re.length,ce.length);ht<Wt&&re.charCodeAt(ht)==ce.charCodeAt(ht);)++ht;return ho(W,function(){it(W,ce.slice(ht),re.length-ht,null,P.composing?"*compose":null),ce.length>1e3||ce.indexOf(`
|
|
|
`)>-1?$.value=P.prevInput="":P.prevInput=ce,P.composing&&(P.composing.range.clear(),P.composing.range=W.markText(P.composing.start,W.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(P){var W=this,$=W.cm,re=$.display,ce=W.textarea;W.contextMenuPending&&W.contextMenuPending();var ke=Ja($,P),ht=re.scroller.scrollTop;if(!ke||n)return;var Wt=$.options.resetSelectionOnContextMenu;Wt&&$.doc.sel.contains(ke)==-1&&bo($,Zo)($.doc,be(ke),le);var sr=ce.style.cssText,pr=W.wrapper.style.cssText,wn=W.wrapper.offsetParent.getBoundingClientRect();W.wrapper.style.cssText="position: static",ce.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(P.clientY-wn.top-5)+"px; left: "+(P.clientX-wn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rn;o&&(Rn=window.scrollY),re.input.focus(),o&&window.scrollTo(null,Rn),re.input.reset(),$.somethingSelected()||(ce.value=W.prevInput=" "),W.contextMenuPending=ni,re.selForContextMenu=$.doc.sel,clearTimeout(re.detectingSelectAll);function ei(){if(ce.selectionStart!=null){var Zi=$.somethingSelected(),da="\u200B"+(Zi?ce.value:"");ce.value="\u21DA",ce.value=da,W.prevInput=Zi?"":"\u200B",ce.selectionStart=1,ce.selectionEnd=da.length,re.selForContextMenu=$.doc.sel}}function ni(){if(W.contextMenuPending!=ni)return;if(W.contextMenuPending=!1,W.wrapper.style.cssText=pr,ce.style.cssText=sr,f&&c<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=ht),ce.selectionStart!=null){(!f||f&&c<9)&&ei();var Zi=0,da=function ia(){re.selForContextMenu==$.doc.sel&&ce.selectionStart==0&&ce.selectionEnd>0&&W.prevInput=="\u200B"?bo($,$o)($):Zi++<10?re.detectingSelectAll=setTimeout(ia,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(da,200)}}if(f&&c>=9&&ei(),x){Ue(P);var Mi=function Zi(){$e(window,"mouseup",Zi),setTimeout(ni,20)};Re(window,"mouseup",Mi)}else setTimeout(ni,50)},Qi.prototype.readOnlyChanged=function(P){P||this.reset(),this.textarea.disabled=P=="nocursor",this.textarea.readOnly=!!P},Qi.prototype.setUneditable=function(){},Qi.prototype.needsContentAttribute=!1;function Ua(P,W){if(W=W?U(W):{},W.value=P.value,!W.tabindex&&P.tabIndex&&(W.tabindex=P.tabIndex),!W.placeholder&&P.placeholder&&(W.placeholder=P.placeholder),W.autofocus==null){var $=R();W.autofocus=$==P||P.getAttribute("autofocus")!=null&&$==document.body}function re(){P.value=Wt.getValue()}var ce;if(P.form&&(Re(P.form,"submit",re),!W.leaveSubmitMethodAlone)){var ke=P.form;ce=ke.submit;try{var ht=ke.submit=function(){re(),ke.submit=ce,ke.submit(),ke.submit=ht}}catch(sr){}}W.finishInit=function(sr){sr.save=re,sr.getTextArea=function(){return P},sr.toTextArea=function(){sr.toTextArea=isNaN,re(),P.parentNode.removeChild(sr.getWrapperElement()),P.style.display="",P.form&&($e(P.form,"submit",re),!W.leaveSubmitMethodAlone&&typeof P.form.submit=="function"&&(P.form.submit=ce))}},P.style.display="none";var Wt=Tr(function(sr){return P.parentNode.insertBefore(sr,P.nextSibling)},W);return Wt}function Sa(P){P.off=$e,P.on=Re,P.wheelEventPixels=hn,P.Doc=Ys,P.splitLines=Zr,P.countColumn=K,P.findColumn=xe,P.isWordChar=Y,P.Pass=Z,P.signal=Et,P.Line=zn,P.changeEnd=Ke,P.scrollbarModel=jo,P.Pos=It,P.cmpPos=nt,P.modes=lt,P.mimeModes=Hr,P.resolveMode=Wn,P.getMode=gi,P.modeExtensions=yn,P.extendMode=Mn,P.copyState=Ft,P.startState=Oe,P.innerMode=bt,P.commands=Kl,P.keyMap=Tl,P.keyName=su,P.isModifierKey=ou,P.lookupKey=Cl,P.normalizeKeyMap=Cu,P.StringStream=Ee,P.SharedTextMarker=Pl,P.TextMarker=$s,P.LineWidget=Xs,P.e_preventDefault=He,P.e_stopPropagation=se,P.e_stop=Ue,P.addClass=k,P.contains=D,P.rmClass=S,P.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(P){return function(){return P.apply(this.doc,arguments)}}(Ys.prototype[Fo]));return jt(Ys),Tr.inputStyles={textarea:Qi,contenteditable:qr},Tr.defineMode=function(P){!Tr.defaults.mode&&P!="null"&&(Tr.defaults.mode=P),dn.apply(this,arguments)},Tr.defineMIME=Nn,Tr.defineMode("null",function(){return{token:function(W){return W.skipToEnd()}}}),Tr.defineMIME("text/plain","null"),Tr.defineExtension=function(P,W){Tr.prototype[P]=W},Tr.defineDocExtension=function(P,W){Ys.prototype[P]=W},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 _=E(d("iYpf"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},W2nI:function(H,B,d){var _=d("IwbS"),E=d("ProS"),C=d("bYtY"),A=["itemStyle","opacity"],w=["emphasis","itemStyle","opacity"],m=["lineStyle","opacity"],f=["emphasis","lineStyle","opacity"];function c(l,t){return l.getVisual("opacity")||l.getModel().get(t)}function o(l,t,a){var s=l.getGraphicEl(),u=c(l,t);a!=null&&(u==null&&(u=1),u*=a),s.downplay&&s.downplay(),s.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",u)})}function r(l,t){var a=c(l,t),s=l.getGraphicEl();s.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",a)}),s.highlight&&s.highlight()}var i=_.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,t){var a=t.extent;l.moveTo(t.x1,t.y1),l.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(l.lineTo(t.x2+a,t.y2),l.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(l.lineTo(t.x2,t.y2+a),l.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=E.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,t,a){var s=this,u=l.getGraph(),h=this.group,p=l.layoutInfo,g=p.width,v=p.height,y=l.getData(),x=l.getData("edge"),T=l.get("orient");this._model=l,h.removeAll(),h.attr("position",[p.x,p.y]),u.eachEdge(function(S){var b=new i;b.dataIndex=S.dataIndex,b.seriesIndex=l.seriesIndex,b.dataType="edge";var O=S.getModel("lineStyle"),I=O.get("curveness"),L=S.node1.getLayout(),N=S.node1.getModel(),D=N.get("localX"),R=N.get("localY"),k=S.node2.getLayout(),M=S.node2.getModel(),j=M.get("localX"),F=M.get("localY"),U=S.getLayout(),K,V,z,Q,Z,le,ne,ve;b.shape.extent=Math.max(1,U.dy),b.shape.orient=T,T==="vertical"?(K=(D!=null?D*g:L.x)+U.sy,V=(R!=null?R*v:L.y)+L.dy,z=(j!=null?j*g:k.x)+U.ty,Q=F!=null?F*v:k.y,Z=K,le=V*(1-I)+Q*I,ne=z,ve=V*I+Q*(1-I)):(K=(D!=null?D*g:L.x)+L.dx,V=(R!=null?R*v:L.y)+U.sy,z=j!=null?j*g:k.x,Q=(F!=null?F*v:k.y)+U.ty,Z=K*(1-I)+z*I,le=V,ne=K*I+z*(1-I),ve=Q),b.setShape({x1:K,y1:V,x2:z,y2:Q,cpx1:Z,cpy1:le,cpx2:ne,cpy2:ve}),b.setStyle(O.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}_.setHoverStyle(b,S.getModel("emphasis.lineStyle").getItemStyle()),h.add(b),x.setItemGraphicEl(S.dataIndex,b)}),u.eachNode(function(S){var b=S.getLayout(),O=S.getModel(),I=O.get("localX"),L=O.get("localY"),N=O.getModel("label"),D=O.getModel("emphasis.label"),R=new _.Rect({shape:{x:I!=null?I*g:b.x,y:L!=null?L*v:b.y,width:b.dx,height:b.dy},style:O.getModel("itemStyle").getItemStyle()}),k=S.getModel("emphasis.itemStyle").getItemStyle();_.setLabelStyle(R.style,k,N,D,{labelFetcher:l,labelDataIndex:S.dataIndex,defaultText:S.id,isRectText:!0}),R.setStyle("fill",S.getVisual("color")),_.setHoverStyle(R,k),h.add(R),y.setItemGraphicEl(S.dataIndex,R),R.dataType="node"}),y.eachItemGraphicEl(function(S,b){var O=y.getItemModel(b);O.get("draggable")&&(S.drift=function(I,L){s._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=L,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:y.getRawIndex(b),localX:this.shape.x/g,localY:this.shape.y/v})},S.ondragend=function(){s._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),O.get("focusNodeAdjacency")&&(S.on("mouseover",S.focusNodeAdjHandler=function(){s._focusAdjacencyDisabled||(s._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:S.dataIndex}))}),S.on("mouseout",S.unfocusNodeAdjHandler=function(){s._focusAdjacencyDisabled||s._dispatchUnfocus(a)}))}),x.eachItemGraphicEl(function(S,b){var O=x.getItemModel(b);S.focusNodeAdjHandler&&S.off("mouseover",S.focusNodeAdjHandler),S.unfocusNodeAdjHandler&&S.off("mouseout",S.unfocusNodeAdjHandler),O.get("focusNodeAdjacency")&&(S.on("mouseover",S.focusNodeAdjHandler=function(){s._focusAdjacencyDisabled||(s._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:S.dataIndex}))}),S.on("mouseout",S.unfocusNodeAdjHandler=function(){s._focusAdjacencyDisabled||s._dispatchUnfocus(a)}))}),!this._data&&l.get("animation")&&h.setClipPath(e(h.getBoundingRect(),l,function(){h.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,t,a,s){var u=l.getData(),h=u.graph,p=s.dataIndex,g=u.getItemModel(p),v=s.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(l,t,a,s){var u=l.getGraph();u.eachNode(function(h){o(h,A)}),u.eachEdge(function(h){o(h,m)})}});function e(l,t,a){var s=new _.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return _.initProps(s,{shape:{width:l.width+20}},t,a),s}H.exports=n},W4dC:function(H,B,d){var _=d("Tghj"),E=_.__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,s){var u=[],h=w(),p=w(),g,v=l(t);return A(v,function(y){var x=r[y.type].load(t,y,s);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,s){var u=l(a),h=[];return A(u,function(p){var g=r[p.type][t];g&&h.push(g(a,p,s))}),h}}function e(t){}function l(t){var a=m.retrieveMap(t)||[];return a}H.exports=i},WGYa:function(H,B,d){var _=d("7yuC"),E=_.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 l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var t=e.preservedPoints||{},a=e.getGraph(),s=a.data,u=a.edgeData,h=e.getModel("force"),p=h.get("initLayout");e.preservedPoints?s.each(function(N){var D=s.getId(N);s.setItemLayout(N,t[D]||[NaN,NaN])}):!p||p==="none"?A(e):p==="circular"&&m(e,"value");var g=s.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=s.mapArray("value",function(N,D){var R=s.getItemLayout(D),k=c(N,g,y);return isNaN(k)&&(k=(y[0]+y[1])/2),{w:k,rep:k,fixed:s.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),k=c(N,v,x);isNaN(k)&&(k=(x[0]+x[1])/2);var M=R.getModel();return{n1:T[R.node1.dataIndex],n2:T[R.node2.dataIndex],d:k,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),l=e.coordinateSystem,b=l.getBoundingRect(),O=E(T,S,{rect:b,gravity:h.get("gravity"),friction:h.get("friction")}),I=O.step;O.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(k,M,j){for(var F=0,U=k.length;F<U;F++)k[F].fixed||a.getNodeByIndex(F).setLayout(k[F].p),t[s.getId(F)]=k[F].p;for(var F=0,U=M.length;F<U;F++){var K=M[F],V=a.getEdgeByIndex(F),z=K.n1.p,Q=K.n2.p,Z=V.getLayout();Z=Z?Z.slice():[],Z[0]=Z[0]||[],Z[1]=Z[1]||[],o.copy(Z[0],z),o.copy(Z[1],Q),+K.curveness&&(Z[2]=[(z[0]+Q[0])/2-(z[1]-Q[1])*K.curveness,(z[1]+Q[1])/2-(Q[0]-z[0])*K.curveness]),V.setLayout(Z)}N&&N(j)})},e.forceLayout=O,e.preservedPoints=t,O.step()}else e.forceLayout=null})}H.exports=i},"WN+l":function(H,B,d){var _=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(),l=o.getTicksCoords({tickModel:r,clamp:!0});if(!l.length)return;var t=n.length,a=w.__splitAreaColors,s=_.createHashMap(),u=0;if(a)for(var h=0;h<l.length;h++){var p=a.get(l[h].tickValue);if(p!=null){u=(p+(t-1)*h)%t;break}}var g=o.toGlobalCoord(l[0].coord),v=i.getAreaStyle();n=_.isArray(n)?n:[n];for(var h=1;h<l.length;h++){var y=o.toGlobalCoord(l[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 O=l[h-1].tickValue;O!=null&&s.set(O,u),m.add(new E.Rect({anid:O!=null?"area_"+O:null,shape:{x,y:T,width:S,height:b},style:_.defaults({fill:n[u]},v),silent:!0})),u=(u+1)%t}w.__splitAreaColors=s}function A(w){w.__splitAreaColors=null}B.rectCoordAxisBuildSplitArea=C,B.rectCoordAxisHandleRemove=A},WXVj:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){(function(){var E=_,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 l=this._oKey=i.clone(),t=this._iKey=i.clone(),a=l.words,s=t.words,u=0;u<n;u++)a[u]^=1549556828,s[u]^=909522486;l.sigBytes=t.sigBytes=e,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var i=this._hasher,n=i.finalize(r);i.reset();var e=i.finalize(this._oKey.clone().concat(n));return e}})})()})},Wqna:function(H,B,d){var _=d("Tghj"),E=_.__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,l=i.niceScaleExtent,t=i.estimateLabelUnionRect,a=d("y+lR"),s=d("7AJT"),u=d("IDmD"),h=d("7hqr"),p=h.getStackedDimension;d("jtI2");function 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){l(M.scale,M.model)}),w(R.y,function(M){l(M.scale,M.model)});var k={};w(R.x,function(M){x(R,"y",M,k)}),w(R.y,function(M){x(R,"x",M,k)}),this.resize(this.model,D)};function x(N,D,R,k){R.getAxesOnZeroOf=function(){return j?[j]:[]};var M=N[D],j,F=R.model,U=F.get("axisLine.onZero"),K=F.get("axisLine.onZeroAxisIndex");if(!U)return;if(K!=null)T(M[K])&&(j=M[K]);else for(var V in M)if(M.hasOwnProperty(V)&&T(M[V])&&!k[z(M[V])]){j=M[V];break}j&&(k[z(j)]=!0);function z(Q){return Q.dim+"_"+Q.index}}function T(N){return N&&N.type!=="category"&&N.type!=="time"&&e(N)}y.resize=function(N,D,R){var k=r(N.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()});this._rect=k;var M=this._axesList;j(),!R&&N.get("containLabel")&&(w(M,function(F){if(!F.model.get("axisLabel.inside")){var U=t(F);if(U){var K=F.isHorizontal()?"height":"width",V=F.model.get("axisLabel.margin");k[K]-=U[K]+V,F.position==="top"?k.y+=U.height+V:F.position==="left"&&(k.x+=U.width+V)}}}),j());function j(){w(M,function(F){var U=F.isHorizontal(),K=U?[0,k.width]:[0,k.height],V=F.inverse?1:0;F.setExtent(K[V],K[1-V]),S(F,U?k.x:k.y)})}},y.getAxis=function(N,D){var R=this._axesMap[N];if(R!=null){if(D==null){for(var k in R)if(R.hasOwnProperty(k))return R[k]}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 k=0,M=this._coordsList;k<M.length;k++)if(M[k].getAxis("x").index===N||M[k].getAxis("y").index===D)return M[k]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(N,D,R){var k=this._findConvertTarget(N,D);return k.cartesian?k.cartesian.dataToPoint(R):k.axis?k.axis.toGlobalCoord(k.axis.dataToCoord(R)):null},y.convertFromPixel=function(N,D,R){var k=this._findConvertTarget(N,D);return k.cartesian?k.cartesian.pointToData(R):k.axis?k.axis.coordToData(k.axis.toLocalCoord(R)):null},y._findConvertTarget=function(N,D){var R=D.seriesModel,k=D.xAxisModel||R&&R.getReferringComponents("xAxis")[0],M=D.yAxisModel||R&&R.getReferringComponents("yAxis")[0],j=D.gridModel,F=this._coordsList,U,K;if(R)U=R.coordinateSystem,f(F,U)<0&&(U=null);else if(k&&M)U=this.getCartesian(k.componentIndex,M.componentIndex);else if(k)K=this.getAxis("x",k.componentIndex);else if(M)K=this.getAxis("y",M.componentIndex);else if(j){var V=j.coordinateSystem;V===this&&(U=this._coordsList[0])}return{cartesian:U,axis:K}},y.containPoint=function(N){var D=this._coordsList[0];if(D)return D.containPoint(N)},y._initCartesian=function(N,D,R){var k={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},j={x:0,y:0};if(D.eachComponent("xAxis",F("x"),this),D.eachComponent("yAxis",F("y"),this),!j.x||!j.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,w(M.x,function(U,K){w(M.y,function(V,z){var Q="x"+K+"y"+z,Z=new a(Q);Z.grid=this,Z.model=N,this._coordsMap[Q]=Z,this._coordsList.push(Z),Z.addAxis(U),Z.addAxis(V)},this)},this);function F(U){return function(K,V){if(!g(K,N,D))return;var z=K.get("position");U==="x"?z!=="top"&&z!=="bottom"&&(z=k.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=k.left?"right":"left"),k[z]=!0;var Q=new s(U,n(K),[0,0],K.get("type"),z),Z=Q.type==="category";Q.onBand=Z&&K.get("boundaryGap"),Q.inverse=K.get("inverse"),K.axis=Q,Q.model=K,Q.grid=this,Q.index=V,this._axesList.push(Q),M[U][V]=Q,j[U]++}}},y._updateScale=function(N,D){w(this._axesList,function(k){k.scale.setExtent(Infinity,-Infinity)}),N.eachSeries(function(k){if(I(k)){var M=O(k,N),j=M[0],F=M[1];if(!g(j,D,N)||!g(F,D,N))return;var U=this.getCartesian(j.componentIndex,F.componentIndex),K=k.getData(),V=U.getAxis("x"),z=U.getAxis("y");K.type==="list"&&(R(K,V,k),R(K,z,k))}},this);function R(k,M,j){w(k.mapDimension(M.dim,!0),function(F){M.scale.unionExtentFromData(k,p(k,F))})}},y.getTooltipAxes=function(N){var D=[],R=[];return w(this.getCartesians(),function(k){var M=N!=null&&N!=="auto"?k.getAxis(N):k.getBaseAxis(),j=k.getOtherAxis(M);f(D,M)<0&&D.push(M),f(R,j)<0&&R.push(j)}),{baseAxes:D,otherAxes:R}};function S(N,D){var R=N.getExtent(),k=R[0]+R[1];N.toGlobalCoord=N.dim==="x"?function(M){return M+D}:function(M){return k-M+D},N.toLocalCoord=N.dim==="x"?function(M){return M-D}:function(M){return k-M+D}}var b=["xAxis","yAxis"];function O(N,D){return m(b,function(R){var k=N.getReferringComponents(R)[0];return k})}function I(N){return N.get("coordinateSystem")==="cartesian2d"}v.create=function(N,D){var R=[];return N.eachComponent("grid",function(k,M){var j=new v(k,N,D);j.name="grid_"+M,j.resize(k,D,!0),k.coordinateSystem=j,R.push(j)}),N.eachSeries(function(k){if(!I(k))return;var M=O(k,N),j=M[0],F=M[1],U=j.getCoordSysModel(),K=U.coordinateSystem;k.coordinateSystem=K.getCartesian(j.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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _={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=_},XAae:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("hwYd"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},XOKv:function(H,B,d){d("OXB0"),d("SA4+")},Xmg4:function(H,B,d){var _=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=_.createCanvas(),l=i.getWidth(),t=i.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=l+"px",a.height=t+"px",e.setAttribute("data-zr-dom-id",r)),e.width=l*n,e.height=t*n,e}var c=function(i,n,e){var l;e=e||C,typeof i=="string"?l=f(i,n,e):_.isObject(i)&&(l=i,i=l.id),this.id=i,this.dom=l;var t=l.style;t&&(l.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,l=this.dom,t=l.style,a=this.domBack;t&&(t.width=i+"px",t.height=n+"px"),l.width=i*e,l.height=n*e,a&&(a.width=i*e,a.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(i,n){var e=this.dom,l=this.ctx,t=e.width,a=e.height,n=n||this.clearColor,s=this.motionBlur&&!i,u=this.lastFrameAlpha,h=this.dpr;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,t/h,a/h)),l.clearRect(0,0,t,a),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||A.getGradient(l,n,{x:0,y:0,width:t,height:a}),n.__canvasGradient=p):n.image&&(p=w.prototype.getCanvasPattern.call(n,l)),l.save(),l.fillStyle=p||n,l.fillRect(0,0,t,a),l.restore()}if(s){var g=this.domBack;l.save(),l.globalAlpha=u,l.drawImage(g,0,0,t,a),l.restore()}}};var o=c;H.exports=o},Xnb7:function(H,B,d){var _=d("1RvN"),E=new _(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 _=d("Tghj"),E=_.__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,l=C.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(h,p,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(),O={width:g.getWidth(),height:g.getHeight()},I=h.get("padding"),L=r.getLayoutRect(b,O,I),N=this.layoutInner(h,y,L,v,T,S),D=r.getLayoutRect(A.defaults({width:N.width,height:N.height},b),O,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(),O=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 k=R.getData(),M=k.getVisual("color"),j=k.getVisual("borderColor");typeof M=="function"&&(M=M(R.getDataParams(0))),typeof j=="function"&&(j=j(R.getDataParams(0)));var F=k.getVisual("legendSymbol")||"roundRect",U=k.getVisual("symbol"),K=this._createItem(D,N,L,p,F,U,h,M,j,O);K.on("click",i(a,D,null,v,I)).on("mouseover",i(s,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 Q=z.indexOfName(D),Z=z.getItemVisual(Q,"color"),le=z.getItemVisual(Q,"borderColor"),ne="roundRect",ve=this._createItem(D,N,L,p,ne,null,h,Z,le,O);ve.on("click",i(a,null,D,v,I)).on("mouseover",i(s,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,O=new f.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){g.dispatchAction({type:b==="all"?"legendAllSelect":"legendInverseSelect"})}});x.add(O);var I=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");f.setLabelStyle(O.style,O.hoverStyle={},I,L,{defaultText:S.title,isRectText:!1}),f.setHoverStyle(O)}},_createItem:function(h,p,g,v,y,x,T,S,b,O){var I=v.get("itemWidth"),L=v.get("itemHeight"),N=v.get("inactiveColor"),D=v.get("inactiveBorderColor"),R=v.get("symbolKeepAspect"),k=v.getModel("itemStyle"),M=v.isSelected(h),j=new e,F=g.getModel("textStyle"),U=g.get("icon"),K=g.getModel("tooltip"),V=K.parentModel;y=U||y;var z=m(y,0,0,I,L,M?S:N,R==null?!0:R);if(j.add(t(z,y,k,b,D,M)),!U&&x&&(x!==y||x==="none")){var Q=L*.8;x==="none"&&(x="circle");var Z=m(x,(I-Q)/2,(L-Q)/2,Q,Q,M?S:N,R==null?!0:R);j.add(t(Z,x,k,b,D,M))}var le=T==="left"?I+5:-5,ne=T,ve=v.get("formatter"),xe=h;typeof ve=="string"&&ve?xe=ve.replace("{name}",h!=null?h:""):typeof ve=="function"&&(xe=ve(h)),j.add(new f.Text({style:f.setTextStyle({},F,{text:xe,x:le,y:L/2,textFill:M?F.getTextColor():N,textAlign:ne,textVerticalAlign:"middle"})}));var _e=new f.Rect({shape:j.getBoundingRect(),invisible:!0,tooltip:K.get("show")?A.extend({content:h,formatter:V.get("formatter",!0)||function(){return h},formatterParams:{componentType:"legend",legendIndex:v.componentIndex,name:h,$vars:["name"]}},K.option):null});return j.add(_e),j.eachChild(function(Be){Be.silent=!0}),_e.silent=!O,this.getContentGroup().add(j),f.setHoverStyle(j),j.__legendDataIndex=p,j},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(),O=[-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",k=D===0?"height":"width",M=D===0?"y":"x";x==="end"?L[D]+=b[R]+N:O[D]+=I[R]+N,L[1-D]+=b[k]/2-I[k]/2,S.attr("position",L),T.attr("position",O);var j={x:0,y:0};return j[R]=b[R]+N+I[R],j[k]=Math.max(b[k],I[k]),j[M]=Math.min(0,I[M]+L[1-D]),j}else return T.attr("position",O),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}),s(h,p,g,v)}function s(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=l},XuBP:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},XxSj:function(H,B,d){var _=d("bYtY"),E=d("Qe9p"),C=d("OELB"),A=C.linearMap,w=_.each,m=_.isObject,f=-1,c=function(x){var T=x.mappingMethod,S=x.type,b=this.option=_.clone(x);this.type=S,this.mappingMethod=T,this._normalizeData=g[T];var O=o[S];this.applyVisual=O.applyVisual,this.getColorMapper=O.getColorMapper,this._doMap=O._doMap[T],T==="piecewise"?(n(b),r(b)):T==="category"?b.categories?i(b):n(b,!0):(_.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 _.bind(this._normalizeData,this)}};var o=c.visualHandlers={color:{applyVisual:t("color"),getColorMapper:function(){var x=this.option;return _.bind(x.mappingMethod==="category"?function(T,S){return!S&&(T=this._normalizeData(T)),a.call(this,T)}:function(T,S,b){var O=!!b;return!S&&(T=this._normalizeData(T)),b=E.fastLerp(T,x.parsedVisual,b),O?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:s}},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:s,category:s,piecewise:s,fixed:s}},symbol:{applyVisual:function(x,T,S){var b=this.mapValueToVisual(x);if(_.isString(b))S("symbol",b);else if(m(b))for(var O in b)b.hasOwnProperty(O)&&S(O,b[O])},_doMap:{linear:l,category:a,piecewise:function(x,T){var S=h.call(this,T);return S==null&&(S=l.call(this,x)),S},fixed:s}},symbolSize:{applyVisual:t("symbolSize"),_doMap:u([0,1])}};function r(x){var T=x.pieceList;x.hasSpecialVisual=!1,_.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}),!_.isArray(S)){var O=[];_.isObject(S)?w(S,function(L,N){var D=b[N];O[D!=null?D:f]=L}):O[f]=S,S=p(x,O)}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=[];_.isObject(S)?w(S,function(I){b.push(I)}):S!=null&&b.push(S);var O={color:1,symbol:1};!T&&b.length===1&&!O.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 l(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 s(){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:s}}function h(x){var T=this.option,S=T.pieceList;if(T.hasSpecialVisual){var b=c.findPieceIndex(x,S),O=S[b];if(O&&O.visual)return O.visual[this.type]}}function p(x,T){return x.visual=T,x.type==="color"&&(x.parsedVisual=_.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:_.noop};c.listVisualTypes=function(){var x=[];return _.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){_.isObject(x)?_.each(x,T,S):T.call(S,x)},c.mapVisual=function(x,T,S){var b,O=_.isArray(x)?[]:_.isObject(x)?{}:(b=!0,null);return c.eachVisual(x,function(I,L){var N=T.call(S,I,L);b?O=N:O[L]=N}),O},c.retrieveVisuals=function(x){var T={},S;return x&&w(o,function(b,O){x.hasOwnProperty(O)&&(T[O]=x[O],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(_.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,O=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,k=D.close;if(R){if(R[0]===-Infinity){if(v(k[1],x,R[1]))return I}else if(R[1]===Infinity){if(v(k[0],R[0],x))return I}else if(v(k[0],R[0],x)&&v(k[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(j,F){var U=Math.abs(j-x);U<O&&(O=U,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 _=E(d("KpQ+"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},Y1PL:function(H,B,d){"use strict";d.r(B),d.d(B,"ResizableTextArea",function(){return y});var _=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
|
|
|
`,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],t={},a;function s(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=S.getAttribute("id")||S.getAttribute("data-reactid")||S.getAttribute("name");if(b&&t[O])return t[O];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=l.map(function(M){return"".concat(M,":").concat(I.getPropertyValue(M))}).join(";"),k={sizingStyle:R,paddingSize:N,borderSize:D,boxSizing:L};return b&&O&&(t[O]=k),k}function u(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;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=s(S,b),N=L.paddingSize,D=L.borderSize,R=L.boxSizing,k=L.sizingStyle;a.setAttribute("style","".concat(k,";").concat(e)),a.value=S.value||S.placeholder||"";var M=Number.MIN_SAFE_INTEGER,j=Number.MAX_SAFE_INTEGER,F=a.scrollHeight,U;if(R==="border-box"?F+=D:R==="content-box"&&(F-=N),O!==null||I!==null){a.value=" ";var K=a.scrollHeight-N;O!==null&&(M=K*O,R==="border-box"&&(M=M+N+D),F=Math.max(M,F)),I!==null&&(j=K*I,R==="border-box"&&(j=j+N+D),U=F>j?"":"hidden",F=Math.min(j,F))}return{height:F,minHeight:M,maxHeight:j,overflowY:U,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)(O,S);var b=Object(w.a)(O);function O(I){var L;return Object(E.a)(this,O),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,k=R.autoSize,M=R.onResize;if(D!==g.NONE)return;typeof M=="function"&&M(N),k&&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,k=u(L.textArea,!1,D,R);L.setState({textareaStyles:k,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,k=N.autoSize,M=N.onResize,j=N.className,F=N.disabled,U=L.state,K=U.textareaStyles,V=U.resizeStatus,z=Object(r.a)(L.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Q=n()(R,j,Object(c.a)({},"".concat(R,"-disabled"),F));"value"in z&&(z.value=z.value||"");var Z=Object(f.a)(Object(f.a)(Object(f.a)({},L.props.style),K),V===g.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(o.a,{onResize:L.handleResize,disabled:!(k||M)},m.createElement("textarea",Object(_.a)({},z,{className:Q,style:Z,ref:L.saveTextArea})))},L.state={textareaStyles:{},resizeStatus:g.NONE},L}return Object(C.a)(O,[{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()}}]),O}(m.Component),y=v,x=function(S){Object(A.a)(O,S);var b=Object(w.a)(O);function O(I){var L;Object(E.a)(this,O),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,k=R.onPressEnter,M=R.onKeyDown;D.keyCode===13&&k&&k(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)(O,[{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(_.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}}]),O}(m.Component),T=B.default=x},YH21:function(H,B,d){var _=d("H6uX");B.Dispatcher=_;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 l(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 s(u){return u.which>1}B.clientToLocal=o,B.getNativeEvent=i,B.normalizeEvent=n,B.addEventListener=e,B.removeEventListener=l,B.stop=t,B.isMiddleOrRightButtonOnMouseUpDown=a,B.notLeftMouse=s},YJ9k:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function _(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(){_(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 X}),d.d(B,"b",function(){return Ce});var _=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"),l=d.n(e),t=d("i8i4"),a=d.n(t),s=d("QLaP"),u=d.n(s),h=d("KQm4"),p=function(){function Me(){Object(A.a)(this,Me),Object(r.a)(this,"refs",{})}return Object(w.a)(Me,[{key:"add",value:function(Ae,Te){this.refs[Ae]||(this.refs[Ae]=[]),this.refs[Ae].push(Te)}},{key:"remove",value:function(Ae,Te){var Je=this.getIndex(Ae,Te);Je!==-1&&this.refs[Ae].splice(Je,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var Ae=this;return this.refs[this.active.collection].find(function(Te){var Je=Te.node;return Je.sortableInfo.index==Ae.active.index})}},{key:"getIndex",value:function(Ae,Te){return this.refs[Ae].indexOf(Te)}},{key:"getOrderedRefs",value:function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[Ae].sort(g)}}]),Me}();function g(Me,ue){var Ae=Me.node.sortableInfo.index,Te=ue.node.sortableInfo.index;return Ae-Te}function v(Me,ue,Ae){return Me=Me.slice(),Me.splice(Ae<0?Me.length+Ae:Ae,0,Me.splice(ue,1)[0]),Me}function y(Me,ue){return Object.keys(Me).reduce(function(Ae,Te){return ue.indexOf(Te)===-1&&(Ae[Te]=Me[Te]),Ae},{})}var x={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Me=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ue=(Array.prototype.slice.call(Me).join("").match(/-(moz|webkit|ms)-/)||Me.OLink===""&&["","o"])[1];switch(ue){case"ms":return"ms";default:return ue&&ue.length?ue[0].toUpperCase()+ue.substr(1):""}}();function S(Me,ue){Object.keys(ue).forEach(function(Ae){Me.style[Ae]=ue[Ae]})}function b(Me,ue){Me.style["".concat(T,"Transform")]=ue==null?"":"translate3d(".concat(ue.x,"px,").concat(ue.y,"px,0)")}function O(Me,ue){Me.style["".concat(T,"TransitionDuration")]=ue==null?"":"".concat(ue,"ms")}function I(Me,ue){for(;Me;){if(ue(Me))return Me;Me=Me.parentNode}return null}function L(Me,ue,Ae){return Math.max(Me,Math.min(Ae,ue))}function N(Me){return Me.substr(-2)==="px"?parseFloat(Me):0}function D(Me){var ue=window.getComputedStyle(Me);return{bottom:N(ue.marginBottom),left:N(ue.marginLeft),right:N(ue.marginRight),top:N(ue.marginTop)}}function R(Me,ue){var Ae=ue.displayName||ue.name;return Ae?"".concat(Me,"(").concat(Ae,")"):Me}function k(Me,ue){var Ae=Me.getBoundingClientRect();return{top:Ae.top+ue.top,left:Ae.left+ue.left}}function M(Me){return Me.touches&&Me.touches.length?{x:Me.touches[0].pageX,y:Me.touches[0].pageY}:Me.changedTouches&&Me.changedTouches.length?{x:Me.changedTouches[0].pageX,y:Me.changedTouches[0].pageY}:{x:Me.pageX,y:Me.pageY}}function j(Me){return Me.touches&&Me.touches.length||Me.changedTouches&&Me.changedTouches.length}function F(Me,ue){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Me)return;var Te={left:Ae.left+Me.offsetLeft,top:Ae.top+Me.offsetTop};return Me.parentNode===ue?Te:F(Me.parentNode,ue,Te)}function U(Me,ue,Ae){return Me<Ae&&Me>ue?Me-1:Me>Ae&&Me<ue?Me+1:Me}function K(Me){var ue=Me.lockOffset,Ae=Me.width,Te=Me.height,Je=ue,At=ue,qe="px";if(typeof ue=="string"){var Re=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(ue);u()(Re!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',ue),Je=parseFloat(ue),At=parseFloat(ue),qe=Re[1]}return u()(isFinite(Je)&&isFinite(At),"lockOffset value should be a finite. Given %s",ue),qe==="%"&&(Je=Je*Ae/100,At=At*Te/100),{x:Je,y:At}}function V(Me){var ue=Me.height,Ae=Me.width,Te=Me.lockOffset,Je=Array.isArray(Te)?Te:[Te,Te];u()(Je.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Te);var At=Object(E.a)(Je,2),qe=At[0],Re=At[1];return[K({height:ue,lockOffset:qe,width:Ae}),K({height:ue,lockOffset:Re,width:Ae})]}function z(Me){var ue=window.getComputedStyle(Me),Ae=/(auto|scroll)/,Te=["overflow","overflowX","overflowY"];return Te.find(function(Je){return Ae.test(ue[Je])})}function Q(Me){return Me instanceof HTMLElement?z(Me)?Me:Q(Me.parentNode):null}function Z(Me){var ue=window.getComputedStyle(Me);return ue.display==="grid"?{x:N(ue.gridColumnGap),y:N(ue.gridRowGap)}:{x:0,y:0}}var le={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 ve(Me){var ue="input, textarea, select, canvas, [contenteditable]",Ae=Me.querySelectorAll(ue),Te=Me.cloneNode(!0),Je=Object(h.a)(Te.querySelectorAll(ue));return Je.forEach(function(At,qe){if(At.type!=="file"&&(At.value=Ae[qe].value),At.type==="radio"&&At.name&&(At.name="__sortableClone__".concat(At.name)),At.tagName===ne.Canvas&&Ae[qe].width>0&&Ae[qe].height>0){var Re=At.getContext("2d");Re.drawImage(Ae[qe],0,0)}}),Te}function xe(Me){var ue,Ae,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ae=ue=function(Je){Object(c.a)(At,Je);function At(){return Object(A.a)(this,At),Object(m.a)(this,Object(f.a)(At).apply(this,arguments))}return Object(w.a)(At,[{key:"componentDidMount",value:function(){var Re=Object(t.findDOMNode)(this);Re.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(Te.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Re=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(Me,Object(_.a)({ref:Re},this.props))}}]),At}(i.Component),Object(r.a)(ue,"displayName",R("sortableHandle",Me)),Ae}function _e(Me){return Me.sortableHandle!=null}var Be=function(){function Me(ue,Ae){Object(A.a)(this,Me),this.container=ue,this.onScrollCallback=Ae}return Object(w.a)(Me,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(Ae){var Te=this,Je=Ae.translate,At=Ae.minTranslate,qe=Ae.maxTranslate,Re=Ae.width,Lt=Ae.height,$e={x:0,y:0},Et={x:1,y:1},Ut={x:10,y:10},Bt=this.container,_t=Bt.scrollTop,jt=Bt.scrollLeft,He=Bt.scrollHeight,se=Bt.scrollWidth,J=Bt.clientHeight,Ue=Bt.clientWidth,Le=_t===0,ee=He-_t-J===0,ct=jt===0,Mt=se-jt-Ue===0;Je.y>=qe.y-Lt/2&&!ee?($e.y=1,Et.y=Ut.y*Math.abs((qe.y-Lt/2-Je.y)/Lt)):Je.x>=qe.x-Re/2&&!Mt?($e.x=1,Et.x=Ut.x*Math.abs((qe.x-Re/2-Je.x)/Re)):Je.y<=At.y+Lt/2&&!Le?($e.y=-1,Et.y=Ut.y*Math.abs((Je.y-Lt/2-At.y)/Lt)):Je.x<=At.x+Re/2&&!ct&&($e.x=-1,Et.x=Ut.x*Math.abs((Je.x-Re/2-At.x)/Re)),this.interval&&(this.clear(),this.isAutoScrolling=!1),($e.x!==0||$e.y!==0)&&(this.interval=setInterval(function(){Te.isAutoScrolling=!0;var ot={left:Et.x*$e.x,top:Et.y*$e.y};Te.container.scrollTop+=ot.top,Te.container.scrollLeft+=ot.left,Te.onScrollCallback(ot)},5))}}]),Me}();function me(Me){var ue=Me.node;return{height:ue.offsetHeight,width:ue.offsetWidth}}function Fe(Me){var ue=[ne.Input,ne.Textarea,ne.Select,ne.Option,ne.Button];return ue.indexOf(Me.target.tagName)!==-1?!0:!!I(Me.target,function(Ae){return Ae.contentEditable==="true"})}var ie={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},te={lift:[le.SPACE],drop:[le.SPACE],cancel:[le.ESC],up:[le.UP,le.LEFT],down:[le.DOWN,le.RIGHT]},Ge={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:me,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:te,shouldCancelStart:Fe,transitionDuration:300,useWindowAsScrollContainer:!1},oe=Object.keys(ie);function Y(Me){u()(!(Me.distance&&Me.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(Me,ue){try{var Ae=Me()}catch(Te){return ue(!0,Te)}return Ae&&Ae.then?Ae.then(ue.bind(null,!1),ue.bind(null,!0)):ue(!1,value)}function X(Me){var ue,Ae,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ae=ue=function(Je){Object(c.a)(At,Je);function At(qe){var Re;return Object(A.a)(this,At),Re=Object(m.a)(this,Object(f.a)(At).call(this,qe)),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"state",{}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleStart",function(Lt){var $e=Re.props,Et=$e.distance,Ut=$e.shouldCancelStart;if(Lt.button===2||Ut(Lt))return;Re.touched=!0,Re.position=M(Lt);var Bt=I(Lt.target,function(Ue){return Ue.sortableInfo!=null});if(Bt&&Bt.sortableInfo&&Re.nodeIsChild(Bt)&&!Re.state.sorting){var _t=Re.props.useDragHandle,jt=Bt.sortableInfo,He=jt.index,se=jt.collection,J=jt.disabled;if(J)return;if(_t&&!I(Lt.target,_e))return;Re.manager.active={collection:se,index:He},!j(Lt)&&Lt.target.tagName===ne.Anchor&&Lt.preventDefault(),Et||(Re.props.pressDelay===0?Re.handlePress(Lt):Re.pressTimer=setTimeout(function(){return Re.handlePress(Lt)},Re.props.pressDelay))}}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"nodeIsChild",function(Lt){return Lt.sortableInfo.manager===Re.manager}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleMove",function(Lt){var $e=Re.props,Et=$e.distance,Ut=$e.pressThreshold;if(!Re.state.sorting&&Re.touched&&!Re._awaitingUpdateBeforeSortStart){var Bt=M(Lt),_t={x:Re.position.x-Bt.x,y:Re.position.y-Bt.y},jt=Math.abs(_t.x)+Math.abs(_t.y);Re.delta=_t,!Et&&(!Ut||jt>=Ut)?(clearTimeout(Re.cancelTimer),Re.cancelTimer=setTimeout(Re.cancel,0)):Et&&jt>=Et&&Re.manager.isActive()&&Re.handlePress(Lt)}}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleEnd",function(){Re.touched=!1,Re.cancel()}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"cancel",function(){var Lt=Re.props.distance,$e=Re.state.sorting;$e||(Lt||clearTimeout(Re.pressTimer),Re.manager.active=null)}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handlePress",function(Lt){try{var $e=Re.manager.getActive(),Et=function(){if($e){var Ut=function(){var or=ee.sortableInfo.index,Zr=D(ee),ir=Z(Re.container),dr=Re.scrollContainer.getBoundingClientRect(),qt=jt({index:or,node:ee,collection:ct});if(Re.node=ee,Re.margin=Zr,Re.gridGap=ir,Re.width=qt.width,Re.height=qt.height,Re.marginOffset={x:Re.margin.left+Re.margin.right+Re.gridGap.x,y:Math.max(Re.margin.top,Re.margin.bottom,Re.gridGap.y)},Re.boundingClientRect=ee.getBoundingClientRect(),Re.containerBoundingRect=dr,Re.index=or,Re.newIndex=or,Re.axis={x:_t.indexOf("x")>=0,y:_t.indexOf("y")>=0},Re.offsetEdge=F(ee,Re.container),Mt?Re.initialOffset=M(Object(C.a)({},Lt,{pageX:Re.boundingClientRect.left,pageY:Re.boundingClientRect.top})):Re.initialOffset=M(Lt),Re.initialScroll={left:Re.scrollContainer.scrollLeft,top:Re.scrollContainer.scrollTop},Re.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Re.helper=Re.helperContainer.appendChild(ve(ee)),S(Re.helper,{boxSizing:"border-box",height:"".concat(Re.height,"px"),left:"".concat(Re.boundingClientRect.left-Zr.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Re.boundingClientRect.top-Zr.top,"px"),width:"".concat(Re.width,"px")}),Mt&&Re.helper.focus(),se&&(Re.sortableGhost=ee,S(ee,{opacity:0,visibility:"hidden"})),Re.minTranslate={},Re.maxTranslate={},Mt){var Ht=Le?{top:0,left:0,width:Re.contentWindow.innerWidth,height:Re.contentWindow.innerHeight}:Re.containerBoundingRect,lt=Ht.top,Hr=Ht.left,dn=Ht.width,Nn=Ht.height,Wn=lt+Nn,gi=Hr+dn;Re.axis.x&&(Re.minTranslate.x=Hr-Re.boundingClientRect.left,Re.maxTranslate.x=gi-(Re.boundingClientRect.left+Re.width)),Re.axis.y&&(Re.minTranslate.y=lt-Re.boundingClientRect.top,Re.maxTranslate.y=Wn-(Re.boundingClientRect.top+Re.height))}else Re.axis.x&&(Re.minTranslate.x=(Le?0:dr.left)-Re.boundingClientRect.left-Re.width/2,Re.maxTranslate.x=(Le?Re.contentWindow.innerWidth:dr.left+dr.width)-Re.boundingClientRect.left-Re.width/2),Re.axis.y&&(Re.minTranslate.y=(Le?0:dr.top)-Re.boundingClientRect.top-Re.height/2,Re.maxTranslate.y=(Le?Re.contentWindow.innerHeight:dr.top+dr.height)-Re.boundingClientRect.top-Re.height/2);He&&He.split(" ").forEach(function(yn){return Re.helper.classList.add(yn)}),Re.listenerNode=Lt.touches?ee:Re.contentWindow,Mt?(Re.listenerNode.addEventListener("wheel",Re.handleKeyEnd,!0),Re.listenerNode.addEventListener("mousedown",Re.handleKeyEnd,!0),Re.listenerNode.addEventListener("keydown",Re.handleKeyDown)):(x.move.forEach(function(yn){return Re.listenerNode.addEventListener(yn,Re.handleSortMove,!1)}),x.end.forEach(function(yn){return Re.listenerNode.addEventListener(yn,Re.handleSortEnd,!1)})),Re.setState({sorting:!0,sortingIndex:or}),Ue&&Ue({node:ee,index:or,collection:ct,isKeySorting:Mt,nodes:Re.manager.getOrderedRefs(),helper:Re.helper},Lt),Mt&&Re.keyMove(0)},Bt=Re.props,_t=Bt.axis,jt=Bt.getHelperDimensions,He=Bt.helperClass,se=Bt.hideSortableGhost,J=Bt.updateBeforeSortStart,Ue=Bt.onSortStart,Le=Bt.useWindowAsScrollContainer,ee=$e.node,ct=$e.collection,Mt=Re.manager.isKeySorting,ot=function(){if(typeof J=="function"){Re._awaitingUpdateBeforeSortStart=!0;var Yt=G(function(){var or=ee.sortableInfo.index;return Promise.resolve(J({collection:ct,index:or,node:ee,isKeySorting:Mt},Lt)).then(function(){})},function(or,Zr){if(Re._awaitingUpdateBeforeSortStart=!1,or)throw Zr;return Zr});if(Yt&&Yt.then)return Yt.then(function(){})}}();return ot&&ot.then?ot.then(Ut):Ut(ot)}}();return Promise.resolve(Et&&Et.then?Et.then(function(){}):void 0)}catch(Ut){return Promise.reject(Ut)}}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleSortMove",function(Lt){var $e=Re.props.onSortMove;typeof Lt.preventDefault=="function"&&Lt.preventDefault(),Re.updateHelperPosition(Lt),Re.animateNodes(),Re.autoscroll(),$e&&$e(Lt)}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleSortEnd",function(Lt){var $e=Re.props,Et=$e.hideSortableGhost,Ut=$e.onSortEnd,Bt=Re.manager,_t=Bt.active.collection,jt=Bt.isKeySorting,He=Re.manager.getOrderedRefs();Re.listenerNode&&(jt?(Re.listenerNode.removeEventListener("wheel",Re.handleKeyEnd,!0),Re.listenerNode.removeEventListener("mousedown",Re.handleKeyEnd,!0),Re.listenerNode.removeEventListener("keydown",Re.handleKeyDown)):(x.move.forEach(function(ee){return Re.listenerNode.removeEventListener(ee,Re.handleSortMove)}),x.end.forEach(function(ee){return Re.listenerNode.removeEventListener(ee,Re.handleSortEnd)}))),Re.helper.parentNode.removeChild(Re.helper),Et&&Re.sortableGhost&&S(Re.sortableGhost,{opacity:"",visibility:""});for(var se=0,J=He.length;se<J;se++){var Ue=He[se],Le=Ue.node;Ue.edgeOffset=null,Ue.boundingClientRect=null,b(Le,null),O(Le,null),Ue.translate=null}Re.autoScroller.clear(),Re.manager.active=null,Re.manager.isKeySorting=!1,Re.setState({sorting:!1,sortingIndex:null}),typeof Ut=="function"&&Ut({collection:_t,newIndex:Re.newIndex,oldIndex:Re.index,isKeySorting:jt,nodes:He},Lt),Re.touched=!1}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"autoscroll",function(){var Lt=Re.props.disableAutoscroll,$e=Re.manager.isKeySorting;if(Lt){Re.autoScroller.clear();return}if($e){var Et=Object(C.a)({},Re.translate),Ut=0,Bt=0;Re.axis.x&&(Et.x=Math.min(Re.maxTranslate.x,Math.max(Re.minTranslate.x,Re.translate.x)),Ut=Re.translate.x-Et.x),Re.axis.y&&(Et.y=Math.min(Re.maxTranslate.y,Math.max(Re.minTranslate.y,Re.translate.y)),Bt=Re.translate.y-Et.y),Re.translate=Et,b(Re.helper,Re.translate),Re.scrollContainer.scrollLeft+=Ut,Re.scrollContainer.scrollTop+=Bt;return}Re.autoScroller.update({height:Re.height,maxTranslate:Re.maxTranslate,minTranslate:Re.minTranslate,translate:Re.translate,width:Re.width})}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"onAutoScroll",function(Lt){Re.translate.x+=Lt.left,Re.translate.y+=Lt.top,Re.animateNodes()}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleKeyDown",function(Lt){var $e=Lt.keyCode,Et=Re.props,Ut=Et.shouldCancelStart,Bt=Et.keyCodes,_t=Bt===void 0?{}:Bt,jt=Object(C.a)({},te,_t);if(Re.manager.active&&!Re.manager.isKeySorting||!Re.manager.active&&(!jt.lift.includes($e)||Ut(Lt)||!Re.isValidSortingTarget(Lt)))return;Lt.stopPropagation(),Lt.preventDefault(),jt.lift.includes($e)&&!Re.manager.active?Re.keyLift(Lt):jt.drop.includes($e)&&Re.manager.active?Re.keyDrop(Lt):jt.cancel.includes($e)?(Re.newIndex=Re.manager.active.index,Re.keyDrop(Lt)):jt.up.includes($e)?Re.keyMove(-1):jt.down.includes($e)&&Re.keyMove(1)}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"keyLift",function(Lt){var $e=Lt.target,Et=I($e,function(jt){return jt.sortableInfo!=null}),Ut=Et.sortableInfo,Bt=Ut.index,_t=Ut.collection;Re.initialFocusedNode=$e,Re.manager.isKeySorting=!0,Re.manager.active={index:Bt,collection:_t},Re.handlePress(Lt)}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"keyMove",function(Lt){var $e=Re.manager.getOrderedRefs(),Et=$e[$e.length-1].node.sortableInfo.index,Ut=Re.newIndex+Lt,Bt=Re.newIndex;if(Ut<0||Ut>Et)return;Re.prevIndex=Bt,Re.newIndex=Ut;var _t=U(Re.newIndex,Re.prevIndex,Re.index),jt=$e.find(function(Mt){var ot=Mt.node;return ot.sortableInfo.index===_t}),He=jt.node,se=Re.containerScrollDelta,J=jt.boundingClientRect||k(He,se),Ue=jt.translate||{x:0,y:0},Le={top:J.top+Ue.y-se.top,left:J.left+Ue.x-se.left},ee=Bt<Ut,ct={x:ee&&Re.axis.x?He.offsetWidth-Re.width:0,y:ee&&Re.axis.y?He.offsetHeight-Re.height:0};Re.handleSortMove({pageX:Le.left+ct.x,pageY:Le.top+ct.y,ignoreTransition:Lt===0})}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"keyDrop",function(Lt){Re.handleSortEnd(Lt),Re.initialFocusedNode&&Re.initialFocusedNode.focus()}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"handleKeyEnd",function(Lt){Re.manager.active&&Re.keyDrop(Lt)}),Object(r.a)(Object(o.a)(Object(o.a)(Re)),"isValidSortingTarget",function(Lt){var $e=Re.props.useDragHandle,Et=Lt.target,Ut=I(Et,function(Bt){return Bt.sortableInfo!=null});return Ut&&Ut.sortableInfo&&!Ut.sortableInfo.disabled&&($e?_e(Et):Et.sortableInfo)}),Y(qe),Re.manager=new p,Re.events={end:Re.handleEnd,move:Re.handleMove,start:Re.handleStart},Re}return Object(w.a)(At,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Re=this,Lt=this.props.useWindowAsScrollContainer,$e=this.getContainer();Promise.resolve($e).then(function(Et){Re.container=Et,Re.document=Re.container.ownerDocument||document;var Ut=Re.props.contentWindow||Re.document.defaultView||window;Re.contentWindow=typeof Ut=="function"?Ut():Ut,Re.scrollContainer=Lt?Re.document.scrollingElement||Re.document.documentElement:Q(Re.container)||Re.container,Re.autoScroller=new Be(Re.scrollContainer,Re.onAutoScroll),Object.keys(Re.events).forEach(function(Bt){return x[Bt].forEach(function(_t){return Re.container.addEventListener(_t,Re.events[Bt],!1)})}),Re.container.addEventListener("keydown",Re.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Re=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(Lt){return x[Lt].forEach(function($e){return Re.container.removeEventListener($e,Re.events[Lt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Re){var Lt=this.props,$e=Lt.lockAxis,Et=Lt.lockOffset,Ut=Lt.lockToContainerEdges,Bt=Lt.transitionDuration,_t=Lt.keyboardSortingTransitionDuration,jt=_t===void 0?Bt:_t,He=this.manager.isKeySorting,se=Re.ignoreTransition,J=M(Re),Ue={x:J.x-this.initialOffset.x,y:J.y-this.initialOffset.y};if(Ue.y-=window.pageYOffset-this.initialWindowScroll.top,Ue.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Ue,Ut){var Le=V({height:this.height,lockOffset:Et,width:this.width}),ee=Object(E.a)(Le,2),ct=ee[0],Mt=ee[1],ot={x:this.width/2-ct.x,y:this.height/2-ct.y},Yt={x:this.width/2-Mt.x,y:this.height/2-Mt.y};Ue.x=L(this.minTranslate.x+ot.x,this.maxTranslate.x-Yt.x,Ue.x),Ue.y=L(this.minTranslate.y+ot.y,this.maxTranslate.y-Yt.y,Ue.y)}$e==="x"?Ue.y=0:$e==="y"&&(Ue.x=0),He&&jt&&!se&&O(this.helper,jt),b(this.helper,Ue)}},{key:"animateNodes",value:function(){var Re=this.props,Lt=Re.transitionDuration,$e=Re.hideSortableGhost,Et=Re.onSortOver,Ut=this.containerScrollDelta,Bt=this.windowScrollDelta,_t=this.manager.getOrderedRefs(),jt={left:this.offsetEdge.left+this.translate.x+Ut.left,top:this.offsetEdge.top+this.translate.y+Ut.top},He=this.manager.isKeySorting,se=this.newIndex;this.newIndex=null;for(var J=0,Ue=_t.length;J<Ue;J++){var Le=_t[J].node,ee=Le.sortableInfo.index,ct=Le.offsetWidth,Mt=Le.offsetHeight,ot={height:this.height>Mt?Mt/2:this.height/2,width:this.width>ct?ct/2:this.width/2},Yt=He&&ee>this.index&&ee<=se,or=He&&ee<this.index&&ee>=se,Zr={x:0,y:0},ir=_t[J].edgeOffset;ir||(ir=F(Le,this.container),_t[J].edgeOffset=ir,He&&(_t[J].boundingClientRect=k(Le,Ut)));var dr=J<_t.length-1&&_t[J+1],qt=J>0&&_t[J-1];if(dr&&!dr.edgeOffset&&(dr.edgeOffset=F(dr.node,this.container),He&&(dr.boundingClientRect=k(dr.node,Ut))),ee===this.index){$e&&(this.sortableGhost=Le,S(Le,{opacity:0,visibility:"hidden"}));continue}Lt&&O(Le,Lt),this.axis.x?this.axis.y?or||ee<this.index&&(jt.left+Bt.left-ot.width<=ir.left&&jt.top+Bt.top<=ir.top+ot.height||jt.top+Bt.top+ot.height<=ir.top)?(Zr.x=this.width+this.marginOffset.x,ir.left+Zr.x>this.containerBoundingRect.width-ot.width&&(dr&&(Zr.x=dr.edgeOffset.left-ir.left,Zr.y=dr.edgeOffset.top-ir.top)),this.newIndex===null&&(this.newIndex=ee)):(Yt||ee>this.index&&(jt.left+Bt.left+ot.width>=ir.left&&jt.top+Bt.top+ot.height>=ir.top||jt.top+Bt.top+ot.height>=ir.top+Mt))&&(Zr.x=-(this.width+this.marginOffset.x),ir.left+Zr.x<this.containerBoundingRect.left+ot.width&&(qt&&(Zr.x=qt.edgeOffset.left-ir.left,Zr.y=qt.edgeOffset.top-ir.top)),this.newIndex=ee):Yt||ee>this.index&&jt.left+Bt.left+ot.width>=ir.left?(Zr.x=-(this.width+this.marginOffset.x),this.newIndex=ee):(or||ee<this.index&&jt.left+Bt.left<=ir.left+ot.width)&&(Zr.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ee)):this.axis.y&&(Yt||ee>this.index&&jt.top+Bt.top+ot.height>=ir.top?(Zr.y=-(this.height+this.marginOffset.y),this.newIndex=ee):(or||ee<this.index&&jt.top+Bt.top<=ir.top+ot.height)&&(Zr.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ee))),b(Le,Zr),_t[J].translate=Zr}this.newIndex==null&&(this.newIndex=this.index),He&&(this.newIndex=se);var Ht=He?this.prevIndex:se;Et&&this.newIndex!==Ht&&Et({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Ht,isKeySorting:He,nodes:_t,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(Te.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var Re=this.props.getContainer;return typeof Re!="function"?Object(t.findDOMNode)(this):Re(Te.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Re=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(Me,Object(_.a)({ref:Re},y(this.props,oe)))}},{key:"helperContainer",get:function(){var Re=this.props.helperContainer;return typeof Re=="function"?Re():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Re=this.props.useWindowAsScrollContainer;return Re?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),At}(i.Component),Object(r.a)(ue,"displayName",R("sortableList",Me)),Object(r.a)(ue,"defaultProps",Ge),Object(r.a)(ue,"propTypes",ie),Object(r.a)(ue,"childContextTypes",{manager:l.a.object.isRequired}),Ae}var fe={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},de=Object.keys(fe);function Ce(Me){var ue,Ae,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ae=ue=function(Je){Object(c.a)(At,Je);function At(){return Object(A.a)(this,At),Object(m.a)(this,Object(f.a)(At).apply(this,arguments))}return Object(w.a)(At,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Re){this.node&&(Re.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Re.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Re.collection!==this.props.collection&&(this.unregister(Re.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Re=this.props,Lt=Re.collection,$e=Re.disabled,Et=Re.index,Ut=Object(t.findDOMNode)(this);Ut.sortableInfo={collection:Lt,disabled:$e,index:Et,manager:this.context.manager},this.node=Ut,this.ref={node:Ut},this.context.manager.add(Lt,this.ref)}},{key:"unregister",value:function(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Re,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(Te.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Re=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(Me,Object(_.a)({ref:Re},y(this.props,de)))}}]),At}(i.Component),Object(r.a)(ue,"displayName",R("sortableElement",Me)),Object(r.a)(ue,"contextTypes",{manager:l.a.object.isRequired}),Object(r.a)(ue,"propTypes",fe),Object(r.a)(ue,"defaultProps",{collection:0}),Ae}},YNAk:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("IwbS"),E=d("6Ic6"),C=.3,A=E.extend({type:"parallel",init:function(){this._dataGroup=new _.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,e,l,t){var a=this._dataGroup,s=n.getData(),u=this._data,h=n.coordinateSystem,p=h.dimensions,g=c(n);s.diff(u).add(v).update(y).remove(x).execute();function v(S){var b=f(s,a,S,p,h);o(b,s,S,g)}function y(S,b){var O=u.getItemGraphicEl(b),I=m(s,S,p,h);s.setItemGraphicEl(S,O);var L=t&&t.animation===!1?null:n;_.updateProps(O,{shape:{points:I}},L,S),o(O,s,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=s},incrementalPrepareRender:function(n,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,e,l){for(var t=e.getData(),a=e.coordinateSystem,s=a.dimensions,u=c(e),h=n.start;h<n.end;h++){var p=f(t,this._dataGroup,h,s,a);p.incremental=!0,o(p,t,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function w(n,e,l){var t=n.model,a=n.getRect(),s=new _.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),u=t.get("layout")==="horizontal"?"width":"height";return s.setShape(u,0),_.initProps(s,{shape:{width:a.width,height:a.height}},e,l),s}function m(n,e,l,t){for(var a=[],s=0;s<l.length;s++){var u=l[s],h=n.get(n.mapDimension(u),e);r(h,t.getAxis(u).type)||a.push(t.dataToPoint(h,u))}return a}function f(n,e,l,t,a){var s=m(n,l,t,a),u=new _.Polyline({shape:{points:s},silent:!0,z2:10});return e.add(u),n.setItemGraphicEl(l,u),u}function c(n){var e=n.get("smooth",!0);return e===!0&&(e=C),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:C}}function o(n,e,l,t){var a=t.lineStyle;if(e.hasItemOption){var s=e.getItemModel(l).getModel("lineStyle");a=s.getLineStyle()}n.useStyle(a);var u=n.style;u.fill=null,u.stroke=e.getItemVisual(l,"color"),u.opacity=e.getItemVisual(l,"opacity"),t.smooth&&(n.shape.smooth=t.smooth)}function r(n,e){return e==="category"?n==null:n==null||isNaN(n)}var i=A;H.exports=i},YOMW:function(H,B,d){var _=d("bYtY"),E={get:function(w,m,f){var c=_.clone((C[w]||{})[m]);return f&&_.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 _=d("Tghj"),E=_.__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,l="undefined",t=-1,a="e\0\0",s={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},u=typeof Uint32Array===l?Array:Uint32Array,h=typeof Int32Array===l?Array:Int32Array,p=typeof Uint16Array===l?Array:Uint16Array;function g(z){return z._rawCount>65535?u:p}function v(z){var Q=z.constructor;return Q===Array?z.slice():new Q(z)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],x=["_extent","_approximateExtent","_rawExtent"];function T(z,Q){C.each(y.concat(Q.__wrappedMethods||[]),function(Z){Q.hasOwnProperty(Z)&&(z[Z]=Q[Z])}),z.__wrappedMethods=Q.__wrappedMethods,C.each(x,function(Z){z[Z]=C.clone(Q[Z])}),z._calculationInfo=C.extend(Q._calculationInfo)}var S=function(z,Q){z=z||["x","y"];for(var Z={},le=[],ne={},ve=0;ve<z.length;ve++){var xe=z[ve];C.isString(xe)?xe=new n({name:xe}):xe instanceof n||(xe=new n(xe));var _e=xe.name;xe.type=xe.type||"float",xe.coordDim||(xe.coordDim=_e,xe.coordDimIndex=0),xe.otherDims=xe.otherDims||{},le.push(_e),Z[_e]=xe,xe.index=ve,xe.createInvertedIndices&&(ne[_e]=[])}this.dimensions=le,this._dimensionInfos=Z,this.hostModel=Q,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,Q){var Z=this._dimensionsSummary;if(Q==null)return Z.encodeFirstDimNotExtra[z];var le=Z.encode[z];return Q===!0?(le||[]).slice():le&&le[Q]},b.initData=function(z,Q,Z){var le=m.isInstance(z)||C.isArrayLike(z);le&&(z=new o(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=Q||[],this._idList=[],this._nameRepeatCount={},Z||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=Z=Z||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 Q=this._rawData,Z=this.count();Q.appendData(z);var le=Q.count();Q.persistent||(le+=Z),this._initDataFromProvider(Z,le)},b.appendValues=function(z,Q){for(var Z=this._chunkSize,le=this._storage,ne=this.dimensions,ve=ne.length,xe=this._rawExtent,_e=this.count(),Be=_e+Math.max(z.length,Q?Q.length:0),me=this._chunkCount,Fe=0;Fe<ve;Fe++){var ie=ne[Fe];xe[ie]||(xe[ie]=U()),le[ie]||(le[ie]=[]),O(le,this._dimensionInfos[ie],Z,me,Be),this._chunkCount=le[ie].length}for(var te=new Array(ve),Ge=_e;Ge<Be;Ge++){for(var oe=Ge-_e,Y=Math.floor(Ge/Z),G=Ge%Z,X=0;X<ve;X++){var ie=ne[X],fe=this._dimValueGetterArrayRows(z[oe]||te,ie,oe,X);le[ie][Y][G]=fe;var de=xe[ie];fe<de[0]&&(de[0]=fe),fe>de[1]&&(de[1]=fe)}Q&&(this._nameList[Ge]=Q[oe])}this._rawCount=this._count=Be,this._extent={},I(this)},b._initDataFromProvider=function(z,Q){if(z>=Q)return;for(var Z=this._chunkSize,le=this._rawData,ne=this._storage,ve=this.dimensions,xe=ve.length,_e=this._dimensionInfos,Be=this._nameList,me=this._idList,Fe=this._rawExtent,ie=this._nameRepeatCount={},te,Ge=this._chunkCount,oe=0;oe<xe;oe++){var Y=ve[oe];Fe[Y]||(Fe[Y]=U());var G=_e[Y];G.otherDims.itemName===0&&(te=this._nameDimIdx=oe),G.otherDims.itemId===0&&(this._idDimIdx=oe),ne[Y]||(ne[Y]=[]),O(ne,G,Z,Ge,Q),this._chunkCount=ne[Y].length}for(var X=new Array(xe),fe=z;fe<Q;fe++){X=le.getItem(fe,X);for(var de=Math.floor(fe/Z),Ce=fe%Z,Me=0;Me<xe;Me++){var Y=ve[Me],ue=ne[Y][de],Ae=this._dimValueGetter(X,Y,fe,Me);ue[Ce]=Ae;var Te=Fe[Y];Ae<Te[0]&&(Te[0]=Ae),Ae>Te[1]&&(Te[1]=Ae)}if(!le.pure){var Je=Be[fe];if(X&&Je==null){if(X.name!=null)Be[fe]=Je=X.name;else if(te!=null){var At=ve[te],qe=ne[At][de];if(qe){Je=qe[Ce];var Re=_e[At].ordinalMeta;Re&&Re.categories.length&&(Je=Re.categories[Je])}}}var Lt=X==null?null:X.id;Lt==null&&Je!=null&&(ie[Je]=ie[Je]||0,Lt=Je,ie[Je]>0&&(Lt+="__ec__"+ie[Je]),ie[Je]++),Lt!=null&&(me[fe]=Lt)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=Q,this._extent={},I(this)};function O(z,Q,Z,le,ne){var ve=s[Q.type],xe=le-1,_e=Q.name,Be=z[_e][xe];if(Be&&Be.length<Z){for(var me=new ve(Math.min(ne-xe*Z,Z)),Fe=0;Fe<Be.length;Fe++)me[Fe]=Be[Fe];z[_e][xe]=me}for(var ie=le*Z;ie<ne;ie+=Z)z[_e].push(new ve(Math.min(ne-ie,Z)))}function I(z){var Q=z._invertedIndicesMap;C.each(Q,function(Z,le){var ne=z._dimensionInfos[le],ve=ne.ordinalMeta;if(ve){Z=Q[le]=new h(ve.categories.length);for(var xe=0;xe<Z.length;xe++)Z[xe]=t;for(var xe=0;xe<z._count;xe++)Z[z.get(le,xe)]=xe}})}function L(z,Q,Z){var le;if(Q!=null){var ne=z._chunkSize,ve=Math.floor(Z/ne),xe=Z%ne,_e=z.dimensions[Q],Be=z._storage[_e][ve];if(Be){le=Be[xe];var me=z._dimensionInfos[_e].ordinalMeta;me&&me.categories.length&&(le=me.categories[le])}}return le}b.count=function(){return this._count},b.getIndices=function(){var z,Q=this._indices;if(Q){var Z=Q.constructor,le=this._count;if(Z===Array){z=new Z(le);for(var ne=0;ne<le;ne++)z[ne]=Q[ne]}else z=new Z(Q.buffer,0,le)}else for(var Z=g(this),z=new Z(this.count()),ne=0;ne<z.length;ne++)z[ne]=ne;return z},b.get=function(z,Q){if(!(Q>=0&&Q<this._count))return NaN;var Z=this._storage;if(!Z[z])return NaN;Q=this.getRawIndex(Q);var le=Math.floor(Q/this._chunkSize),ne=Q%this._chunkSize,ve=Z[z][le],xe=ve[ne];return xe},b.getByRawIndex=function(z,Q){if(!(Q>=0&&Q<this._rawCount))return NaN;var Z=this._storage[z];if(!Z)return NaN;var le=Math.floor(Q/this._chunkSize),ne=Q%this._chunkSize,ve=Z[le];return ve[ne]},b._getFast=function(z,Q){var Z=Math.floor(Q/this._chunkSize),le=Q%this._chunkSize,ne=this._storage[z][Z];return ne[le]},b.getValues=function(z,Q){var Z=[];C.isArray(z)||(Q=z,z=this.dimensions);for(var le=0,ne=z.length;le<ne;le++)Z.push(this.get(z[le],Q));return Z},b.hasValue=function(z){for(var Q=this._dimensionsSummary.dataDimsOnCoord,Z=0,le=Q.length;Z<le;Z++)if(isNaN(this.get(Q[Z],z)))return!1;return!0},b.getDataExtent=function(z){z=this.getDimension(z);var Q=this._storage[z],Z=U();if(!Q)return Z;var le=this.count(),ne=!this._indices,ve;if(ne)return this._rawExtent[z].slice();if(ve=this._extent[z],ve)return ve.slice();ve=Z;for(var xe=ve[0],_e=ve[1],Be=0;Be<le;Be++){var me=this._getFast(z,this.getRawIndex(Be));me<xe&&(xe=me),me>_e&&(_e=me)}return ve=[xe,_e],this._extent[z]=ve,ve},b.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},b.setApproximateExtent=function(z,Q){Q=this.getDimension(Q),this._approximateExtent[Q]=z.slice()},b.getCalculationInfo=function(z){return this._calculationInfo[z]},b.setCalculationInfo=function(z,Q){e(z)?C.extend(this._calculationInfo,z):this._calculationInfo[z]=Q},b.getSum=function(z){var Q=this._storage[z],Z=0;if(Q)for(var le=0,ne=this.count();le<ne;le++){var ve=this.get(z,le);isNaN(ve)||(Z+=ve)}return Z},b.getMedian=function(z){var Q=[];this.each(z,function(ne,ve){isNaN(ne)||Q.push(ne)});var Z=[].concat(Q).sort(function(ne,ve){return ne-ve}),le=this.count();return le===0?0:le%2===1?Z[(le-1)/2]:(Z[le/2]+Z[le/2-1])/2},b.rawIndexOf=function(z,Q){var Z=z&&this._invertedIndicesMap[z],le=Z[Q];return le==null||isNaN(le)?t:le},b.indexOfName=function(z){for(var Q=0,Z=this.count();Q<Z;Q++)if(this.getName(Q)===z)return Q;return-1},b.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var Q=this._indices,Z=Q[z];if(Z!=null&&Z<this._count&&Z===z)return z;for(var le=0,ne=this._count-1;le<=ne;){var ve=(le+ne)/2|0;if(Q[ve]<z)le=ve+1;else if(Q[ve]>z)ne=ve-1;else return ve}return-1},b.indicesOfNearest=function(z,Q,Z){var le=this._storage,ne=le[z],ve=[];if(!ne)return ve;Z==null&&(Z=Infinity);for(var xe=Infinity,_e=-1,Be=0,me=0,Fe=this.count();me<Fe;me++){var ie=Q-this.get(z,me),te=Math.abs(ie);te<=Z&&((te<xe||te===xe&&ie>=0&&_e<0)&&(xe=te,_e=ie,Be=0),ie===_e&&(ve[Be++]=me))}return ve.length=Be,ve},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 Q=[],Z=0;Z<this.dimensions.length;Z++){var le=this.dimensions[Z];Q.push(this.get(le,z))}return Q},b.getName=function(z){var Q=this.getRawIndex(z);return this._nameList[Q]||L(this,this._nameDimIdx,Q)||""},b.getId=function(z){return R(this,this.getRawIndex(z))};function R(z,Q){var Z=z._idList[Q];return Z==null&&(Z=L(z,z._idDimIdx,Q)),Z==null&&(Z=a+Q),Z}function k(z){return C.isArray(z)||(z=[z]),z}function M(z,Q){for(var Z=0;Z<Q.length;Z++)z._dimensionInfos[Q[Z]]||console.error("Unkown dimension "+Q[Z])}b.each=function(z,Q,Z,le){"use strict";if(!this._count)return;typeof z=="function"&&(le=Z,Z=Q,Q=z,z=[]),Z=Z||le||this,z=C.map(k(z),this.getDimension,this);for(var ne=z.length,ve=0;ve<this.count();ve++)switch(ne){case 0:Q.call(Z,ve);break;case 1:Q.call(Z,this.get(z[0],ve),ve);break;case 2:Q.call(Z,this.get(z[0],ve),this.get(z[1],ve),ve);break;default:for(var xe=0,_e=[];xe<ne;xe++)_e[xe]=this.get(z[xe],ve);_e[xe]=ve,Q.apply(Z,_e)}},b.filterSelf=function(z,Q,Z,le){"use strict";if(!this._count)return;typeof z=="function"&&(le=Z,Z=Q,Q=z,z=[]),Z=Z||le||this,z=C.map(k(z),this.getDimension,this);for(var ne=this.count(),ve=g(this),xe=new ve(ne),_e=[],Be=z.length,me=0,Fe=z[0],ie=0;ie<ne;ie++){var te,Ge=this.getRawIndex(ie);if(Be===0)te=Q.call(Z,ie);else if(Be===1){var oe=this._getFast(Fe,Ge);te=Q.call(Z,oe,ie)}else{for(var Y=0;Y<Be;Y++)_e[Y]=this._getFast(Fe,Ge);_e[Y]=ie,te=Q.apply(Z,_e)}te&&(xe[me++]=Ge)}return me<ne&&(this._indices=xe),this._count=me,this._extent={},this.getRawIndex=this._indices?D:N,this},b.selectRange=function(z){"use strict";if(!this._count)return;var Q=[];for(var Z in z)z.hasOwnProperty(Z)&&Q.push(Z);var le=Q.length;if(!le)return;var ne=this.count(),ve=g(this),xe=new ve(ne),_e=0,Be=Q[0],me=z[Be][0],Fe=z[Be][1],ie=!1;if(!this._indices){var te=0;if(le===1){for(var Ge=this._storage[Q[0]],oe=0;oe<this._chunkCount;oe++)for(var Y=Ge[oe],G=Math.min(this._count-oe*this._chunkSize,this._chunkSize),X=0;X<G;X++){var fe=Y[X];(fe>=me&&fe<=Fe||isNaN(fe))&&(xe[_e++]=te),te++}ie=!0}else if(le===2){for(var Ge=this._storage[Be],de=this._storage[Q[1]],Ce=z[Q[1]][0],Me=z[Q[1]][1],oe=0;oe<this._chunkCount;oe++)for(var Y=Ge[oe],ue=de[oe],G=Math.min(this._count-oe*this._chunkSize,this._chunkSize),X=0;X<G;X++){var fe=Y[X],Ae=ue[X];(fe>=me&&fe<=Fe||isNaN(fe))&&(Ae>=Ce&&Ae<=Me||isNaN(Ae))&&(xe[_e++]=te),te++}ie=!0}}if(!ie)if(le===1)for(var X=0;X<ne;X++){var Te=this.getRawIndex(X),fe=this._getFast(Be,Te);(fe>=me&&fe<=Fe||isNaN(fe))&&(xe[_e++]=Te)}else for(var X=0;X<ne;X++){for(var Je=!0,Te=this.getRawIndex(X),oe=0;oe<le;oe++){var At=Q[oe],fe=this._getFast(Z,Te);(fe<z[At][0]||fe>z[At][1])&&(Je=!1)}Je&&(xe[_e++]=this.getRawIndex(X))}return _e<ne&&(this._indices=xe),this._count=_e,this._extent={},this.getRawIndex=this._indices?D:N,this},b.mapArray=function(z,Q,Z,le){"use strict";typeof z=="function"&&(le=Z,Z=Q,Q=z,z=[]),Z=Z||le||this;var ne=[];return this.each(z,function(){ne.push(Q&&Q.apply(this,arguments))},Z),ne};function j(z,Q){var Z=z.dimensions,le=new S(C.map(Z,z.getDimensionInfo,z),z.hostModel);T(le,z);for(var ne=le._storage={},ve=z._storage,xe=0;xe<Z.length;xe++){var _e=Z[xe];ve[_e]&&(C.indexOf(Q,_e)>=0?(ne[_e]=F(ve[_e]),le._rawExtent[_e]=U(),le._extent[_e]=null):ne[_e]=ve[_e])}return le}function F(z){for(var Q=new Array(z.length),Z=0;Z<z.length;Z++)Q[Z]=v(z[Z]);return Q}function U(){return[Infinity,-Infinity]}b.map=function(z,Q,Z,le){"use strict";Z=Z||le||this,z=C.map(k(z),this.getDimension,this);var ne=j(this,z);ne._indices=this._indices,ne.getRawIndex=ne._indices?D:N;for(var ve=ne._storage,xe=[],_e=this._chunkSize,Be=z.length,me=this.count(),Fe=[],ie=ne._rawExtent,te=0;te<me;te++){for(var Ge=0;Ge<Be;Ge++)Fe[Ge]=this.get(z[Ge],te);Fe[Be]=te;var oe=Q&&Q.apply(Z,Fe);if(oe!=null){typeof oe!="object"&&(xe[0]=oe,oe=xe);for(var Y=this.getRawIndex(te),G=Math.floor(Y/_e),X=Y%_e,fe=0;fe<oe.length;fe++){var de=z[fe],Ce=oe[fe],Me=ie[de],ue=ve[de];ue&&(ue[G][X]=Ce),Ce<Me[0]&&(Me[0]=Ce),Ce>Me[1]&&(Me[1]=Ce)}}}return ne},b.downSample=function(z,Q,Z,le){for(var ne=j(this,[z]),ve=ne._storage,xe=[],_e=Math.floor(1/Q),Be=ve[z],me=this.count(),Fe=this._chunkSize,ie=ne._rawExtent[z],te=new(g(this))(me),Ge=0,oe=0;oe<me;oe+=_e){_e>me-oe&&(_e=me-oe,xe.length=_e);for(var Y=0;Y<_e;Y++){var G=this.getRawIndex(oe+Y),X=Math.floor(G/Fe),fe=G%Fe;xe[Y]=Be[X][fe]}var de=Z(xe),Ce=this.getRawIndex(Math.min(oe+le(xe,de)||0,me-1)),Me=Math.floor(Ce/Fe),ue=Ce%Fe;Be[Me][ue]=de,de<ie[0]&&(ie[0]=de),de>ie[1]&&(ie[1]=de),te[Ge++]=Ce}return ne._count=Ge,ne._indices=te,ne.getRawIndex=D,ne},b.getItemModel=function(z){var Q=this.hostModel;return new A(this.getRawDataItem(z),Q,Q&&Q.ecModel)},b.diff=function(z){var Q=this;return new w(z?z.getIndices():[],this.getIndices(),function(Z){return R(z,Z)},function(Z){return R(Q,Z)})},b.getVisual=function(z){var Q=this._visual;return Q&&Q[z]},b.setVisual=function(z,Q){if(e(z)){for(var Z in z)z.hasOwnProperty(Z)&&this.setVisual(Z,z[Z]);return}this._visual=this._visual||{},this._visual[z]=Q},b.setLayout=function(z,Q){if(e(z)){for(var Z in z)z.hasOwnProperty(Z)&&this.setLayout(Z,z[Z]);return}this._layout[z]=Q},b.getLayout=function(z){return this._layout[z]},b.getItemLayout=function(z){return this._itemLayouts[z]},b.setItemLayout=function(z,Q,Z){this._itemLayouts[z]=Z?C.extend(this._itemLayouts[z]||{},Q):Q},b.clearItemLayouts=function(){this._itemLayouts.length=0},b.getItemVisual=function(z,Q,Z){var le=this._itemVisuals[z],ne=le&&le[Q];return ne==null&&!Z?this.getVisual(Q):ne},b.setItemVisual=function(z,Q,Z){var le=this._itemVisuals[z]||{},ne=this.hasItemVisual;if(this._itemVisuals[z]=le,e(Q)){for(var ve in Q)Q.hasOwnProperty(ve)&&(le[ve]=Q[ve],ne[ve]=!0);return}le[Q]=Z,ne[Q]=!0},b.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var K=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};b.setItemGraphicEl=function(z,Q){var Z=this.hostModel;Q&&(Q.dataIndex=z,Q.dataType=this.dataType,Q.seriesIndex=Z&&Z.seriesIndex,Q.type==="group"&&Q.traverse(K,Q)),this._graphicEls[z]=Q},b.getItemGraphicEl=function(z){return this._graphicEls[z]},b.eachItemGraphicEl=function(z,Q){C.each(this._graphicEls,function(Z,le){Z&&(z&&z.call(Q,Z,le))})},b.cloneShallow=function(z){if(!z){var Q=C.map(this.dimensions,this.getDimensionInfo,this);z=new S(Q,this.hostModel)}if(z._storage=this._storage,T(z,this),this._indices){var Z=this._indices.constructor;z._indices=new Z(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?D:N,z},b.wrapMethod=function(z,Q){var Z=this[z];if(typeof Z!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var le=Z.apply(this,arguments);return Q.apply(this,[le].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 _=d("QBsz"),E=_.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),l=n-e,t,a=w[e%f],s,u;m?(t=w[(e-1+f)%f],s=w[(e+1)%f],u=w[(e+2)%f]):(t=w[e===0?e:e-1],s=w[e>f-2?f-1:e+1],u=w[e>f-3?f-1:e+2]);var h=l*l,p=l*h;c.push([C(t[0],a[0],s[0],u[0],l,h,p),C(t[1],a[1],s[1],u[1],l,h,p)])}return c}H.exports=A},Yl7c:function(H,B,d){var _=d("Tghj"),E=_.__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(s){var u=this,h=function(){s.$constructor?s.$constructor.apply(this,arguments):u.apply(this,arguments)};return C.extend(h.prototype,s),h.extend=this.extend,h.superCall=i,h.superApply=n,C.inherits(h,this),h.superClass=u,h}}var o=0;function r(t){var a=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");t.prototype[a]=!0,t.isInstance=function(s){return!!(s&&s[a])}}function i(t,a){var s=C.slice(arguments,2);return this.superClass.prototype[a].apply(t,s)}function n(t,a,s){return this.superClass.prototype[a].apply(t,s)}function e(t,a){a=a||{};var s={};t.registerClass=function(p,g){if(g){if(f(g),g=m(g),!g.sub)s[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=s[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=s[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),!!s[p.main]},t.getAllClassMainTypes=function(){var p=[];return C.each(s,function(g,v){p.push(v)}),p},t.hasSubTypes=function(p){p=m(p);var g=s[p.main];return g&&g[w]},t.parseClassType=m;function u(p){var g=s[p.main];return(!g||!g[w])&&(g=s[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 l(t,a){}B.parseClassType=m,B.enableClassExtend=c,B.enableClassCheck=r,B.enableClassManagement=e,B.setReadOnly=l},Ynxi:function(H,B,d){var _=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"),l=c.get("textAlign"),t=_.retrieve2(c.get("textBaseline"),c.get("textVerticalAlign")),a=new C.Text({style:C.setTextStyle({},n,{text:c.get("text"),textFill:n.getTextColor()},{disableBox:!0}),z2:10}),s=a.getBoundingRect(),u=c.get("subtext"),h=new C.Text({style:C.setTextStyle({},e,{text:u,textFill:e.getTextColor(),y:s.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),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"));l||(l=c.get("left")||c.get("right"),l==="middle"&&(l="center"),l==="right"?T.x+=T.width:l==="center"&&(T.x+=T.width/2)),t||(t=c.get("top")||c.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?T.y+=T.height:t==="middle"&&(T.y+=T.height/2),t=t||"top"),i.attr("position",[T.x,T.y]);var S={textAlign:l,textVerticalAlign:t};a.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var b=T.margin,O=c.getItemStyle(["color","opacity"]);O.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:O,subPixelOptimize:!0,silent:!0});i.add(I)}})},Ywus:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var E=_(d("pVnL")),C=_(d("HjOm")),A=_(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 _=d("ycre"),E=d("quyA"),C=d("q4HE");function A(w){return E(w)?C(w):_(w)}H.exports=A},Z1r0:function(H,B){function d(_){var E=_.findComponents({mainType:"legend"});if(!E||!E.length)return;_.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 _=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");_.registerLayout(E),_.registerVisual(C),_.registerProcessor(_.PRIORITY.PROCESSOR.STATISTIC,A),_.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 _=d("MwEJ"),E=d("T4UG"),C=E.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,w){return _(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 _={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},E=_;B.default=E},Z8zF:function(H,B,d){var _=d("Tghj"),E=_.__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,l=d("sK/D"),t=l.createClipPath,a=d("wr5s"),s=["itemStyle","barBorderWidth"],u=[0,0];A.extend(c.prototype,o);function h(K,V){var z=K.getArea&&K.getArea();if(K.type==="cartesian2d"){var Q=K.getBaseAxis();if(Q.type!=="category"||!Q.onBand){var Z=V.getLayout("bandWidth");Q.isHorizontal()?(z.x-=Z,z.width+=Z*2):(z.y-=Z,z.height+=Z*2)}}return z}var p=C.extendChartView({type:"bar",render:function(K,V,z){this._updateDrawMode(K);var Q=K.get("coordinateSystem");return(Q==="cartesian2d"||Q==="polar")&&(this._isLargeDraw?this._renderLarge(K,V,z):this._renderNormal(K,V,z)),this.group},incrementalPrepareRender:function(K,V,z){this._clear(),this._updateDrawMode(K)},incrementalRender:function(K,V,z,Q){this._incrementalRenderLarge(K,V)},_updateDrawMode:function(K){var V=K.pipelineContext.large;(this._isLargeDraw==null||V^this._isLargeDraw)&&(this._isLargeDraw=V,this._clear())},_renderNormal:function(K,V,z){var Q=this.group,Z=K.getData(),le=this._data,ne=K.coordinateSystem,ve=ne.getBaseAxis(),xe;ne.type==="cartesian2d"?xe=ve.isHorizontal():ne.type==="polar"&&(xe=ve.dim==="angle");var _e=K.isAnimationEnabled()?K:null,Be=K.get("clip",!0),me=h(ne,Z);Q.removeClipPath();var Fe=K.get("roundCap",!0),ie=K.get("showBackground",!0),te=K.getModel("backgroundStyle"),Ge=te.get("barBorderRadius")||0,oe=[],Y=this._backgroundEls||[];Z.diff(le).add(function(fe){var de=Z.getItemModel(fe),Ce=b[ne.type](Z,fe,de);if(ie){var Me=b[ne.type](Z,fe),ue=U(ne,xe,Me);ue.useStyle(te.getBarItemStyle()),ne.type==="cartesian2d"&&ue.setShape("r",Ge),oe[fe]=ue}if(!Z.hasValue(fe))return;if(Be){var Ae=y[ne.type](me,Ce);if(Ae){Q.remove(Te);return}}var Te=x[ne.type](fe,Ce,xe,_e,!1,Fe);Z.setItemGraphicEl(fe,Te),Q.add(Te),I(Te,Z,fe,de,Ce,K,xe,ne.type==="polar")}).update(function(fe,de){var Ce=Z.getItemModel(fe),Me=b[ne.type](Z,fe,Ce);if(ie){var ue=Y[de];ue.useStyle(te.getBarItemStyle()),ne.type==="cartesian2d"&&ue.setShape("r",Ge),oe[fe]=ue;var Ae=b[ne.type](Z,fe),Te=F(xe,Ae,ne);w.updateProps(ue,{shape:Te},_e,fe)}var Je=le.getItemGraphicEl(de);if(!Z.hasValue(fe)){Q.remove(Je);return}if(Be){var At=y[ne.type](me,Me);if(At){Q.remove(Je);return}}Je?w.updateProps(Je,{shape:Me},_e,fe):Je=x[ne.type](fe,Me,xe,_e,!0,Fe),Z.setItemGraphicEl(fe,Je),Q.add(Je),I(Je,Z,fe,Ce,Me,K,xe,ne.type==="polar")}).remove(function(fe){var de=le.getItemGraphicEl(fe);ne.type==="cartesian2d"?de&&T(fe,_e,de):de&&S(fe,_e,de)}).execute();var G=this._backgroundGroup||(this._backgroundGroup=new i);G.removeAll();for(var X=0;X<oe.length;++X)G.add(oe[X]);Q.add(G),this._backgroundEls=oe,this._data=Z},_renderLarge:function(K,V,z){this._clear(),D(K,this.group);var Q=K.get("clip",!0)?t(K.coordinateSystem,!1,K):null;Q?this.group.setClipPath(Q):this.group.removeClipPath()},_incrementalRenderLarge:function(K,V){this._removeBackground(),D(V,this.group,!0)},dispose:A.noop,remove:function(K){this._clear(K)},_clear:function(K){var V=this.group,z=this._data;K&&K.get("animation")&&z&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],z.eachItemGraphicEl(function(Q){Q.type==="sector"?S(Q.dataIndex,K,Q):T(Q.dataIndex,K,Q)})):V.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),g=Math.max,v=Math.min,y={cartesian2d:function(K,V){var z=V.width<0?-1:1,Q=V.height<0?-1:1;z<0&&(V.x+=V.width,V.width=-V.width),Q<0&&(V.y+=V.height,V.height=-V.height);var Z=g(V.x,K.x),le=v(V.x+V.width,K.x+K.width),ne=g(V.y,K.y),ve=v(V.y+V.height,K.y+K.height);V.x=Z,V.y=ne,V.width=le-Z,V.height=ve-ne;var xe=V.width<0||V.height<0;return z<0&&(V.x+=V.width,V.width=-V.width),Q<0&&(V.y+=V.height,V.height=-V.height),xe},polar:function(K){return!1}},x={cartesian2d:function(K,V,z,Q,Z){var le=new w.Rect({shape:A.extend({},V),z2:1});if(le.name="item",Q){var ne=le.shape,ve=z?"height":"width",xe={};ne[ve]=0,xe[ve]=V[ve],w[Z?"updateProps":"initProps"](le,{shape:xe},Q,K)}return le},polar:function(K,V,z,Q,Z,le){var ne=V.startAngle<V.endAngle,ve=!z&&le?a:w.Sector,xe=new ve({shape:A.defaults({clockwise:ne},V),z2:1});if(xe.name="item",Q){var _e=xe.shape,Be=z?"r":"endAngle",me={};_e[Be]=z?0:V.startAngle,me[Be]=V[Be],w[Z?"updateProps":"initProps"](xe,{shape:me},Q,K)}return xe}};function T(K,V,z){z.style.text=null,w.updateProps(z,{shape:{width:0}},V,K,function(){z.parent&&z.parent.remove(z)})}function S(K,V,z){z.style.text=null,w.updateProps(z,{shape:{r:z.shape.r0}},V,K,function(){z.parent&&z.parent.remove(z)})}var b={cartesian2d:function(K,V,z){var Q=K.getItemLayout(V),Z=z?L(z,Q):0,le=Q.width>0?1:-1,ne=Q.height>0?1:-1;return{x:Q.x+le*Z/2,y:Q.y+ne*Z/2,width:Q.width-le*Z,height:Q.height-ne*Z}},polar:function(K,V,z){var Q=K.getItemLayout(V);return{cx:Q.cx,cy:Q.cy,r0:Q.r0,r:Q.r,startAngle:Q.startAngle,endAngle:Q.endAngle}}};function O(K){return K.startAngle!=null&&K.endAngle!=null&&K.startAngle===K.endAngle}function I(K,V,z,Q,Z,le,ne,ve){var xe=V.getItemVisual(z,"color"),_e=V.getItemVisual(z,"opacity"),Be=V.getVisual("borderColor"),me=Q.getModel("itemStyle"),Fe=Q.getModel("emphasis.itemStyle").getBarItemStyle();ve||K.setShape("r",me.get("barBorderRadius")||0),K.useStyle(A.defaults({stroke:O(Z)?"none":Be,fill:O(Z)?"none":xe,opacity:_e},me.getBarItemStyle()));var ie=Q.getShallow("cursor");ie&&K.attr("cursor",ie);var te=ne?Z.height>0?"bottom":"top":Z.width>0?"left":"right";ve||f(K.style,Fe,Q,xe,le,z,te),O(Z)&&(Fe.fill=Fe.stroke="none"),w.setHoverStyle(K,Fe)}function L(K,V){var z=K.get(s)||0,Q=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),Z=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,Q,Z)}var N=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(K,V){for(var z=V.points,Q=this.__startPoint,Z=this.__baseDimIdx,le=0;le<z.length;le+=2)Q[Z]=z[le+Z],K.moveTo(Q[0],Q[1]),K.lineTo(z[le],z[le+1])}});function D(K,V,z){var Q=K.getData(),Z=[],le=Q.getLayout("valueAxisHorizontal")?1:0;Z[1-le]=Q.getLayout("valueAxisStart");var ne=Q.getLayout("largeDataIndices"),ve=Q.getLayout("barWidth"),xe=K.getModel("backgroundStyle"),_e=K.get("showBackground",!0);if(_e){var Be=Q.getLayout("largeBackgroundPoints"),me=[];me[1-le]=Q.getLayout("backgroundStart");var Fe=new N({shape:{points:Be},incremental:!!z,__startPoint:me,__baseDimIdx:le,__largeDataIndices:ne,__barWidth:ve,silent:!0,z2:0});j(Fe,xe,Q),V.add(Fe)}var ie=new N({shape:{points:Q.getLayout("largePoints")},incremental:!!z,__startPoint:Z,__baseDimIdx:le,__largeDataIndices:ne,__barWidth:ve});V.add(ie),M(ie,K,Q),ie.seriesIndex=K.seriesIndex,K.get("silent")||(ie.on("mousedown",R),ie.on("mousemove",R))}var R=e(function(K){var V=this,z=k(V,K.offsetX,K.offsetY);V.dataIndex=z>=0?z:null},30,!1);function k(K,V,z){var Q=K.__baseDimIdx,Z=1-Q,le=K.shape.points,ne=K.__largeDataIndices,ve=Math.abs(K.__barWidth/2),xe=K.__startPoint[Z];u[0]=V,u[1]=z;for(var _e=u[Q],Be=u[1-Q],me=_e-ve,Fe=_e+ve,ie=0,te=le.length/2;ie<te;ie++){var Ge=ie*2,oe=le[Ge+Q],Y=le[Ge+Z];if(oe>=me&&oe<=Fe&&(xe<=Y?Be>=xe&&Be<=Y:Be>=Y&&Be<=xe))return ne[ie]}return-1}function M(K,V,z){var Q=z.getVisual("borderColor")||z.getVisual("color"),Z=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);K.useStyle(Z),K.style.fill=null,K.style.stroke=Q,K.style.lineWidth=z.getLayout("barWidth")}function j(K,V,z){var Q=V.get("borderColor")||V.get("color"),Z=V.getItemStyle(["color","borderColor"]);K.useStyle(Z),K.style.fill=null,K.style.stroke=Q,K.style.lineWidth=z.getLayout("barWidth")}function F(K,V,z){var Q,Z=z.type==="polar";return Z?Q=z.getArea():Q=z.grid.getRect(),Z?{cx:Q.cx,cy:Q.cy,r0:K?Q.r0:V.r0,r:K?Q.r:V.r,startAngle:K?V.startAngle:0,endAngle:K?V.endAngle:Math.PI*2}:{x:K?V.x:Q.x,y:K?Q.y:V.y,width:K?V.width:Q.width,height:K?Q.height:V.height}}function U(K,V,z){var Q=K.type==="polar"?w.Sector:w.Rect;return new Q({shape:F(V,z,K),silent:!0,z2:0})}H.exports=p},ZCgT:function(H,B,d){var _=d("tLB3"),E=1/0,C=17976931348623157e292;function A(w){if(!w)return w===0?w:0;if(w=_(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 _={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=_},ZMnZ:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("pVnL"),E=d.n(_),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"),l=d("KQm4"),t=d("xEkU"),a=d.n(t),s=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 Dt;return Object(s.a)(this,Sn),Dt=sn.apply(this,arguments),Dt.resizeObserver=null,Dt.childNode=null,Dt.currentElement=null,Dt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Dt.onResize=function(ft){var St=Dt.props.onResize,Ct=ft[0].target,Nt=Ct.getBoundingClientRect(),gt=Nt.width,Qt=Nt.height,tr=Ct.offsetWidth,ar=Ct.offsetHeight,yr=Math.floor(gt),xn=Math.floor(Qt);if(Dt.state.width!==yr||Dt.state.height!==xn||Dt.state.offsetWidth!==tr||Dt.state.offsetHeight!==ar){var vn={width:yr,height:xn,offsetWidth:tr,offsetHeight:ar};Dt.setState(vn),St&&Promise.resolve().then(function(){St(Object(o.a)(Object(o.a)({},vn),{},{offsetWidth:tr,offsetHeight:ar}))})}},Dt.setChildNode=function(ft){Dt.childNode=ft},Dt}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 ft=this.props.disabled;if(ft){this.destroyObserver();return}var St=Object(g.a)(this.childNode||this),Ct=St!==this.currentElement;Ct&&(this.destroyObserver(),this.currentElement=St),!this.resizeObserver&&St&&(this.resizeObserver=new x.default(this.onResize),this.resizeObserver.observe(St))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ft=this.props.children,St=Object(n.a)(ft);if(St.length>1)Object(v.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(St.length===0)return Object(v.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ct=St[0];if(w.isValidElement(Ct)&&Object(y.c)(Ct)){var Nt=Ct.ref;St[0]=w.cloneElement(Ct,{ref:Object(y.a)(Nt,this.setChildNode)})}return St.length===1?St[0]:St.map(function(gt,Qt){return!w.isValidElement(gt)||"key"in gt&>.key!==null?gt:w.cloneElement(gt,{key:"".concat(T,"-").concat(Qt)})})}}]),Sn}(w.Component);S.displayName="ResizeObserver";var b=S;function O(Br){var sn=Object(w.useRef)(),Sn=Object(w.useRef)(!1);function Dt(){for(var ft=arguments.length,St=new Array(ft),Ct=0;Ct<ft;Ct++)St[Ct]=arguments[Ct];Sn.current||(a.a.cancel(sn.current),sn.current=a()(function(){Br.apply(void 0,St)}))}return Object(w.useEffect)(function(){return function(){Sn.current=!0,a.a.cancel(sn.current)}},[]),Dt}function I(Br){var sn=Object(w.useRef)([]),Sn=Object(w.useState)({}),Dt=Object(f.a)(Sn,2),ft=Dt[1],St=Object(w.useRef)(typeof Br=="function"?Br():Br),Ct=O(function(){var gt=St.current;sn.current.forEach(function(Qt){gt=Qt(gt)}),sn.current=[],St.current=gt,ft({})});function Nt(gt){sn.current.push(gt),Ct()}return[St.current,Nt]}var L=d("4IlW");function N(Br,sn){var Sn,Dt=Br.prefixCls,ft=Br.id,St=Br.active,Ct=Br.rtl,Nt=Br.tab,gt=Nt.key,Qt=Nt.tab,tr=Nt.disabled,ar=Nt.closeIcon,yr=Br.tabBarGutter,xn=Br.tabPosition,vn=Br.closable,zn=Br.renderWrapper,Yr=Br.removeAriaLabel,xr=Br.editable,ln=Br.onClick,On=Br.onRemove,In=Br.onFocus,Un="".concat(Dt,"-tab");w.useEffect(function(){return On},[]);var ti={};xn==="top"||xn==="bottom"?ti[Ct?"marginLeft":"marginRight"]=yr:ti.marginBottom=yr;var ui=xr&&vn!==!1&&!tr;function si(Ri){if(tr)return;ln(Ri)}function ki(Ri){Ri.preventDefault(),Ri.stopPropagation(),xr.onEdit("remove",{key:gt,event:Ri})}var zi=w.createElement("div",{key:gt,ref:sn,className:i()(Un,(Sn={},Object(m.a)(Sn,"".concat(Un,"-with-remove"),ui),Object(m.a)(Sn,"".concat(Un,"-active"),St),Object(m.a)(Sn,"".concat(Un,"-disabled"),tr),Sn)),style:ti,onClick:si},w.createElement("div",{role:"tab","aria-selected":St,id:ft&&"".concat(ft,"-tab-").concat(gt),className:"".concat(Un,"-btn"),"aria-controls":ft&&"".concat(ft,"-panel-").concat(gt),"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(),ki(Yi)}},ar||xr.removeIcon||"\xD7"));return zn&&(zi=zn(zi)),zi}var D=w.forwardRef(N),R={width:0,height:0,left:0,top:0};function k(Br,sn,Sn){return Object(w.useMemo)(function(){for(var Dt,ft=new Map,St=sn.get((Dt=Br[0])===null||Dt===void 0?void 0:Dt.key)||R,Ct=St.left+St.width,Nt=0;Nt<Br.length;Nt+=1){var gt=Br[Nt].key,Qt=sn.get(gt);if(!Qt){var tr;Qt=sn.get((tr=Br[Nt-1])===null||tr===void 0?void 0:tr.key)||R}var ar=ft.get(gt)||Object(o.a)({},Qt);ar.right=Ct-ar.left-ar.width,ft.set(gt,ar)}return ft},[Br.map(function(Dt){return Dt.key}).join("_"),sn,Sn])}var M={width:0,height:0,left:0,top:0,right:0};function j(Br,sn,Sn,Dt,ft){var St=ft.tabs,Ct=ft.tabPosition,Nt=ft.rtl,gt,Qt,tr;["top","bottom"].includes(Ct)?(gt="width",Qt=Nt?"right":"left",tr=Math.abs(sn.left)):(gt="height",Qt="top",tr=-sn.top);var ar=sn[gt],yr=Sn[gt],xn=Dt[gt],vn=ar;return yr+xn>ar&&(vn=ar-xn),Object(w.useMemo)(function(){if(!St.length)return[0,0];for(var zn=St.length,Yr=zn,xr=0;xr<zn;xr+=1){var ln=Br.get(St[xr].key)||M;if(ln[Qt]+ln[gt]>tr+vn){Yr=xr-1;break}}for(var On=0,In=zn-1;In>=0;In-=1){var Un=Br.get(St[In].key)||M;if(Un[Qt]<tr){On=In+1;break}}return[On,Yr]},[Br,tr,vn,Ct,St.map(function(zn){return zn.key}).join("_"),Nt])}var F=d("wx14"),U=d("JX7q"),K=d("I8Z2"),V=d("bT9E"),z=d("2GS6"),Q=d("Gytx"),Z=d.n(Q),le=d("U8pU"),ne=/iPhone/i,ve=/iPod/i,xe=/iPad/i,_e=/\bAndroid(?:.+)Mobile\b/i,Be=/Android/i,me=/\bAndroid(?:.+)SD4930UR\b/i,Fe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,ie=/Windows Phone/i,te=/\bWindows(?:.+)ARM\b/i,Ge=/BlackBerry/i,oe=/BB10/i,Y=/Opera Mini/i,G=/\b(CriOS|Chrome)(?:.+)Mobile/i,X=/Mobile(?:.+)Firefox\b/i;function fe(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 Dt=Sn,ft=Object(f.a)(Dt,1);sn=ft[0]}if(Sn=sn.split("Twitter"),typeof Sn[1]!="undefined"){var St=Sn,Ct=Object(f.a)(St,1);sn=Ct[0]}var Nt={apple:{phone:fe(ne,sn)&&!fe(ie,sn),ipod:fe(ve,sn),tablet:!fe(ne,sn)&&fe(xe,sn)&&!fe(ie,sn),device:(fe(ne,sn)||fe(ve,sn)||fe(xe,sn))&&!fe(ie,sn)},amazon:{phone:fe(me,sn),tablet:!fe(me,sn)&&fe(Fe,sn),device:fe(me,sn)||fe(Fe,sn)},android:{phone:!fe(ie,sn)&&fe(me,sn)||!fe(ie,sn)&&fe(_e,sn),tablet:!fe(ie,sn)&&!fe(me,sn)&&!fe(_e,sn)&&(fe(Fe,sn)||fe(Be,sn)),device:!fe(ie,sn)&&(fe(me,sn)||fe(Fe,sn)||fe(_e,sn)||fe(Be,sn))||fe(/\bokhttp\b/i,sn)},windows:{phone:fe(ie,sn),tablet:fe(te,sn),device:fe(ie,sn)||fe(te,sn)},other:{blackberry:fe(Ge,sn),blackberry10:fe(oe,sn),opera:fe(Y,sn),firefox:fe(X,sn),chrome:fe(G,sn),device:fe(Ge,sn)||fe(oe,sn)||fe(Y,sn)||fe(X,sn)||fe(G,sn)},any:null,phone:null,tablet:null};return Nt.any=Nt.apple.device||Nt.android.device||Nt.windows.device||Nt.other.device,Nt.phone=Nt.apple.phone||Nt.android.phone||Nt.windows.phone,Nt.tablet=Nt.apple.tablet||Nt.android.tablet||Nt.windows.tablet,Nt}var Ce=Object(o.a)(Object(o.a)({},de()),{},{isMobile:de}),Me=Ce;function ue(){}function Ae(Br,sn,Sn){var Dt=sn||"";return Br.key||"".concat(Dt,"item_").concat(Sn)}function Te(Br){return"".concat(Br,"-menu-")}function Je(Br,sn){var Sn=-1;w.Children.forEach(Br,function(Dt){Sn+=1,Dt&&Dt.type&&Dt.type.isMenuItemGroup?w.Children.forEach(Dt.props.children,function(ft){Sn+=1,sn(ft,Sn)}):sn(Dt,Sn)})}function At(Br,sn,Sn){if(!Br||Sn.find)return;w.Children.forEach(Br,function(Dt){if(Dt){var ft=Dt.type;if(!ft||!(ft.isSubMenu||ft.isMenuItem||ft.isMenuItemGroup))return;sn.indexOf(Dt.key)!==-1?Sn.find=!0:Dt.props.children&&At(Dt.props.children,sn,Sn)}})}var qe=["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"],Re=function(sn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=sn&&typeof sn.getBoundingClientRect=="function"&&sn.getBoundingClientRect().width;if(Dt){if(Sn){var ft=getComputedStyle(sn),St=ft.marginLeft,Ct=ft.marginRight;Dt+=+St.replace("px","")+ +Ct.replace("px","")}Dt=+Dt.toFixed(6)}return Dt||0},Lt=function(sn,Sn,Dt){sn&&Object(le.a)(sn.style)==="object"&&(sn.style[Sn]=Dt)},$e=function(){return Me.any},Et=d("i8i4"),Ut=d("uciX"),Bt=d("wgJM"),_t=d("8XRh"),jt={adjustX:1,adjustY:1},He={topLeft:{points:["bl","tl"],overflow:jt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:jt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:jt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:jt,offset:[4,0]}},se={topLeft:{points:["bl","tl"],overflow:jt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:jt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:jt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:jt,offset:[4,0]}},J=He,Ue=0,Le={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ee=function(sn,Sn,Dt){var ft=Te(Sn),St=sn.getState();sn.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},St.defaultActiveFirst),{},Object(m.a)({},ft,Dt))})},ct=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(Dt){var ft;Object(s.a)(this,Sn),ft=sn.call(this,Dt),ft.onDestroy=function(tr){ft.props.onDestroy(tr)},ft.onKeyDown=function(tr){var ar=tr.keyCode,yr=ft.menuInstance,xn=ft.props.store,vn=ft.getVisible();if(ar===L.a.ENTER)return ft.onTitleClick(tr),ee(xn,ft.props.eventKey,!0),!0;if(ar===L.a.RIGHT)return vn?yr.onKeyDown(tr):(ft.triggerOpenChange(!0),ee(xn,ft.props.eventKey,!0)),!0;if(ar===L.a.LEFT){var zn;if(vn)zn=yr.onKeyDown(tr);else return;return zn||(ft.triggerOpenChange(!1),zn=!0),zn}return vn&&(ar===L.a.UP||ar===L.a.DOWN)?yr.onKeyDown(tr):void 0},ft.onOpenChange=function(tr){ft.props.onOpenChange(tr)},ft.onPopupVisibleChange=function(tr){ft.triggerOpenChange(tr,tr?"mouseenter":"mouseleave")},ft.onMouseEnter=function(tr){var ar=ft.props,yr=ar.eventKey,xn=ar.onMouseEnter,vn=ar.store;ee(vn,ft.props.eventKey,!1),xn({key:yr,domEvent:tr})},ft.onMouseLeave=function(tr){var ar=ft.props,yr=ar.parentMenu,xn=ar.eventKey,vn=ar.onMouseLeave;yr.subMenuInstance=Object(U.a)(ft),vn({key:xn,domEvent:tr})},ft.onTitleMouseEnter=function(tr){var ar=ft.props,yr=ar.eventKey,xn=ar.onItemHover,vn=ar.onTitleMouseEnter;xn({key:yr,hover:!0}),vn({key:yr,domEvent:tr})},ft.onTitleMouseLeave=function(tr){var ar=ft.props,yr=ar.parentMenu,xn=ar.eventKey,vn=ar.onItemHover,zn=ar.onTitleMouseLeave;yr.subMenuInstance=Object(U.a)(ft),vn({key:xn,hover:!1}),zn({key:xn,domEvent:tr})},ft.onTitleClick=function(tr){var ar=Object(U.a)(ft),yr=ar.props;if(yr.onTitleClick({key:yr.eventKey,domEvent:tr}),yr.triggerSubMenuAction==="hover")return;ft.triggerOpenChange(!ft.getVisible(),"click"),ee(yr.store,ft.props.eventKey,!1)},ft.onSubMenuClick=function(tr){typeof ft.props.onClick=="function"&&ft.props.onClick(ft.addKeyPath(tr))},ft.onSelect=function(tr){ft.props.onSelect(tr)},ft.onDeselect=function(tr){ft.props.onDeselect(tr)},ft.getPrefixCls=function(){return"".concat(ft.props.rootPrefixCls,"-submenu")},ft.getActiveClassName=function(){return"".concat(ft.getPrefixCls(),"-active")},ft.getDisabledClassName=function(){return"".concat(ft.getPrefixCls(),"-disabled")},ft.getSelectedClassName=function(){return"".concat(ft.getPrefixCls(),"-selected")},ft.getOpenClassName=function(){return"".concat(ft.props.rootPrefixCls,"-submenu-open")},ft.getVisible=function(){return ft.state.isOpen},ft.getMode=function(){return ft.state.mode},ft.saveMenuInstance=function(tr){ft.menuInstance=tr},ft.addKeyPath=function(tr){return Object(o.a)(Object(o.a)({},tr),{},{keyPath:(tr.keyPath||[]).concat(ft.props.eventKey)})},ft.triggerOpenChange=function(tr,ar){var yr=ft.props.eventKey,xn=function(){ft.onOpenChange({key:yr,item:Object(U.a)(ft),trigger:ar,open:tr})};ar==="mouseenter"?ft.mouseenterTimeout=setTimeout(function(){xn()},0):xn()},ft.isChildrenSelected=function(){var tr={find:!1};return At(ft.props.children,ft.props.selectedKeys,tr),tr.find},ft.isInlineMode=function(){return ft.getMode()==="inline"},ft.adjustWidth=function(){if(!ft.subMenuTitle||!ft.menuInstance)return;var tr=Et.findDOMNode(ft.menuInstance);if(tr.offsetWidth>=ft.subMenuTitle.offsetWidth)return;tr.style.minWidth="".concat(ft.subMenuTitle.offsetWidth,"px")},ft.saveSubMenuTitle=function(tr){ft.subMenuTitle=tr},ft.getBaseProps=function(){var tr=Object(U.a)(ft),ar=tr.props,yr=ft.getMode();return{mode:yr==="horizontal"?"vertical":yr,visible:ft.getVisible(),level:ar.level+1,inlineIndent:ar.inlineIndent,focusable:!1,onClick:ft.onSubMenuClick,onSelect:ft.onSelect,onDeselect:ft.onDeselect,onDestroy:ft.onDestroy,selectedKeys:ar.selectedKeys,eventKey:"".concat(ar.eventKey,"-menu-"),openKeys:ar.openKeys,motion:ar.motion,onOpenChange:ft.onOpenChange,subMenuOpenDelay:ar.subMenuOpenDelay,parentMenu:Object(U.a)(ft),subMenuCloseDelay:ar.subMenuCloseDelay,forceSubMenuRender:ar.forceSubMenuRender,triggerSubMenuAction:ar.triggerSubMenuAction,builtinPlacements:ar.builtinPlacements,defaultActiveFirst:ar.store.getState().defaultActiveFirst[Te(ar.eventKey)],multiple:ar.multiple,prefixCls:ar.rootPrefixCls,id:ft.internalMenuId,manualRef:ft.saveMenuInstance,itemIcon:ar.itemIcon,expandIcon:ar.expandIcon,direction:ar.direction}},ft.getMotion=function(tr,ar){var yr=Object(U.a)(ft),xn=yr.haveRendered,vn=ft.props,zn=vn.motion,Yr=vn.rootPrefixCls,xr=Object(o.a)(Object(o.a)({},zn),{},{leavedClassName:"".concat(Yr,"-hidden"),removeOnLeave:!1,motionAppear:xn||!ar||tr!=="inline"});return xr};var St=Dt.store,Ct=Dt.eventKey,Nt=St.getState(),gt=Nt.defaultActiveFirst;ft.isRootMenu=!1;var Qt=!1;return gt&&(Qt=gt[Ct]),ee(St,Ct,Qt),ft.state={mode:Dt.mode,isOpen:Dt.isOpen},ft}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ft=this,St=this.props,Ct=St.mode,Nt=St.parentMenu,gt=St.manualRef,Qt=St.isOpen,tr=function(){ft.setState({mode:Ct,isOpen:Qt})},ar=Qt!==this.state.isOpen,yr=Ct!==this.state.mode;if((yr||ar)&&(Bt.a.cancel(this.updateStateRaf),yr?this.updateStateRaf=Object(Bt.a)(tr):tr()),gt&>(this),Ct!=="horizontal"||!(Nt==null?void 0:Nt.isRootMenu)||!Qt)return;this.minWidthTimeout=setTimeout(function(){return ft.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ft=this.props,St=ft.onDestroy,Ct=ft.eventKey;St&&St(Ct),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Bt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(ft,St){var Ct=this.getBaseProps();return w.createElement(Wn,Object(F.a)({},Ct,{id:this.internalMenuId,className:ft,style:St}),this.props.children)}},{key:"renderChildren",value:function(){var ft=this,St=this.getBaseProps(),Ct=St.mode,Nt=St.visible,gt=St.forceSubMenuRender,Qt=St.direction,tr=this.getMotion(Ct,Nt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Nt||gt,!this.haveOpened)return w.createElement("div",null);var ar=i()("".concat(St.prefixCls,"-sub"),Object(m.a)({},"".concat(St.prefixCls,"-rtl"),Qt==="rtl"));return this.isInlineMode()?w.createElement(_t.b,Object(F.a)({visible:St.visible,forceRender:gt},tr),function(yr){var xn=yr.className,vn=yr.style,zn=i()(ar,xn);return ft.renderPopupMenu(zn,vn)}):this.renderPopupMenu(ar)}},{key:"render",value:function(){var ft,St,Ct,Nt=Object(o.a)({},this.props),gt=this.getVisible(),Qt=this.getPrefixCls(),tr=this.isInlineMode(),ar=this.getMode(),yr=i()(Qt,"".concat(Qt,"-").concat(ar),(ft={},Object(m.a)(ft,Nt.className,!!Nt.className),Object(m.a)(ft,this.getOpenClassName(),gt),Object(m.a)(ft,this.getActiveClassName(),Nt.active||gt&&!tr),Object(m.a)(ft,this.getDisabledClassName(),Nt.disabled),Object(m.a)(ft,this.getSelectedClassName(),this.isChildrenSelected()),ft));this.internalMenuId||(Nt.eventKey?this.internalMenuId="".concat(Nt.eventKey,"$Menu"):(Ue+=1,this.internalMenuId="$__$".concat(Ue,"$Menu")));var xn={},vn={},zn={};Nt.disabled||(xn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},vn={onClick:this.onTitleClick},zn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Yr={},xr=Nt.direction,ln=xr==="rtl";tr&&(ln?Yr.paddingRight=Nt.inlineIndent*Nt.level:Yr.paddingLeft=Nt.inlineIndent*Nt.level);var On={};this.getVisible()&&(On={"aria-owns":this.internalMenuId});var In=null;ar!=="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"},zn,vn,{"aria-expanded":gt},On,{"aria-haspopup":"true",title:typeof Nt.title=="string"?Nt.title:void 0}),Nt.title,In||w.createElement("i",{className:"".concat(Qt,"-arrow")})),ti=this.renderChildren(),ui=((St=Nt.parentMenu)===null||St===void 0?void 0:St.isRootMenu)?Nt.parentMenu.props.getPopupContainer:function(lr){return lr.parentNode},si=Le[ar],ki=Nt.popupOffset?{offset:Nt.popupOffset}:{},zi=i()((Ct={},Object(m.a)(Ct,Nt.popupClassName,Nt.popupClassName&&!tr),Object(m.a)(Ct,"".concat(Qt,"-rtl"),ln),Ct)),Ri=Nt.disabled,Yi=Nt.triggerSubMenuAction,$n=Nt.subMenuOpenDelay,gn=Nt.forceSubMenuRender,mi=Nt.subMenuCloseDelay,Hi=Nt.builtinPlacements;qe.forEach(function(lr){return delete Nt[lr]}),delete Nt.onClick;var Li=ln?Object(o.a)(Object(o.a)({},se),Hi):Object(o.a)(Object(o.a)({},He),Hi);delete Nt.direction;var Bi=this.getBaseProps(),wr=tr?null:this.getMotion(Bi.mode,Bi.visible);return w.createElement("li",Object(F.a)({},Nt,xn,{className:yr,role:"menuitem"}),w.createElement(Ut.a,{prefixCls:Qt,popupClassName:i()("".concat(Qt,"-popup"),zi),getPopupContainer:ui,builtinPlacements:Li,popupPlacement:si,popupVisible:tr?!1:gt,popupAlign:ki,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);ct.defaultProps={onMouseEnter:ue,onMouseLeave:ue,onTitleMouseEnter:ue,onTitleMouseLeave:ue,onTitleClick:ue,manualRef:ue,mode:"vertical",title:""};var Mt=Object(K.b)(function(Br,sn){var Sn=Br.openKeys,Dt=Br.activeKey,ft=Br.selectedKeys,St=sn.eventKey,Ct=sn.subMenuKey;return{isOpen:Sn.indexOf(St)>-1,active:Dt[Ct]===St,selectedKeys:ft}})(ct);Mt.isSubMenu=!0;var ot=Mt,Yt="menuitem-overflowed",or=.5,Zr=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Dt;return Object(s.a)(this,Sn),Dt=sn.apply(this,arguments),Dt.resizeObserver=null,Dt.mutationObserver=null,Dt.originalTotalWidth=0,Dt.overflowedItems=[],Dt.menuItemSizes=[],Dt.cancelFrameId=null,Dt.state={lastVisibleIndex:void 0},Dt.childRef=w.createRef(),Dt.getMenuItemNodes=function(){var ft=Dt.props.prefixCls,St=Dt.childRef.current;return St?[].slice.call(St.children).filter(function(Ct){return Ct.className.split(" ").indexOf("".concat(ft,"-overflowed-submenu"))<0}):[]},Dt.getOverflowedSubMenuItem=function(ft,St,Ct){var Nt=Dt.props,gt=Nt.overflowedIndicator,Qt=Nt.level,tr=Nt.mode,ar=Nt.prefixCls,yr=Nt.theme;if(Qt!==1||tr!=="horizontal")return null;var xn=Dt.props.children[0],vn=xn.props,zn=vn.children,Yr=vn.title,xr=vn.style,ln=Object(c.a)(vn,["children","title","style"]),On=Object(o.a)({},xr),In="".concat(ft,"-overflowed-indicator"),Un="".concat(ft,"-overflowed-indicator");St.length===0&&Ct!==!0?On=Object(o.a)(Object(o.a)({},On),{},{display:"none"}):Ct&&(On=Object(o.a)(Object(o.a)({},On),{},{visibility:"hidden",position:"absolute"}),In="".concat(In,"-placeholder"),Un="".concat(Un,"-placeholder"));var ti=yr?"".concat(ar,"-").concat(yr):"",ui={};return qe.forEach(function(si){ln[si]!==void 0&&(ui[si]=ln[si])}),w.createElement(ot,Object(F.a)({title:gt,className:"".concat(ar,"-overflowed-submenu"),popupClassName:ti},ui,{key:In,eventKey:Un,disabled:!1,style:On}),St)},Dt.setChildrenWidthAndResize=function(){if(Dt.props.mode!=="horizontal")return;var ft=Dt.childRef.current;if(!ft)return;var St=ft.children;if(!St||St.length===0)return;var Ct=ft.children[St.length-1];Lt(Ct,"display","inline-block");var Nt=Dt.getMenuItemNodes(),gt=Nt.filter(function(Qt){return Qt.className.split(" ").indexOf(Yt)>=0});gt.forEach(function(Qt){Lt(Qt,"display","inline-block")}),Dt.menuItemSizes=Nt.map(function(Qt){return Re(Qt,!0)}),gt.forEach(function(Qt){Lt(Qt,"display","none")}),Dt.overflowedIndicatorWidth=Re(ft.children[ft.children.length-1],!0),Dt.originalTotalWidth=Dt.menuItemSizes.reduce(function(Qt,tr){return Qt+tr},0),Dt.handleResize(),Lt(Ct,"display","none")},Dt.handleResize=function(){if(Dt.props.mode!=="horizontal")return;var ft=Dt.childRef.current;if(!ft)return;var St=Re(ft);Dt.overflowedItems=[];var Ct=0,Nt;Dt.originalTotalWidth>St+or&&(Nt=-1,Dt.menuItemSizes.forEach(function(gt){Ct+=gt,Ct+Dt.overflowedIndicatorWidth<=St&&(Nt+=1)})),Dt.setState({lastVisibleIndex:Nt})},Dt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){var ft=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var St=this.childRef.current;if(!St)return;this.resizeObserver=new x.default(function(Ct){Ct.forEach(function(){var Nt=ft.cancelFrameId;cancelAnimationFrame(Nt),ft.cancelFrameId=requestAnimationFrame(ft.setChildrenWidthAndResize)})}),[].slice.call(St.children).concat(St).forEach(function(Ct){ft.resizeObserver.observe(Ct)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ft.resizeObserver.disconnect(),[].slice.call(St.children).concat(St).forEach(function(Ct){ft.resizeObserver.observe(Ct)}),ft.setChildrenWidthAndResize()}),this.mutationObserver.observe(St,{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(ft){var St=this,Ct=this.state.lastVisibleIndex;return(ft||[]).reduce(function(Nt,gt,Qt){var tr=gt;if(St.props.mode==="horizontal"){var ar=St.getOverflowedSubMenuItem(gt.props.eventKey,[]);Ct!==void 0&&St.props.className.indexOf("".concat(St.props.prefixCls,"-root"))!==-1&&(Qt>Ct&&(tr=w.cloneElement(gt,{style:{display:"none"},eventKey:"".concat(gt.props.eventKey,"-hidden"),className:"".concat(Yt)})),Qt===Ct+1&&(St.overflowedItems=ft.slice(Ct+1).map(function(xn){return w.cloneElement(xn,{key:xn.props.eventKey,mode:"vertical-left"})}),ar=St.getOverflowedSubMenuItem(gt.props.eventKey,St.overflowedItems)));var yr=[].concat(Object(l.a)(Nt),[ar,tr]);return Qt===ft.length-1&&yr.push(St.getOverflowedSubMenuItem(gt.props.eventKey,[],!0)),yr}return[].concat(Object(l.a)(Nt),[tr])},[])}},{key:"render",value:function(){var ft=this.props,St=ft.visible,Ct=ft.prefixCls,Nt=ft.overflowedIndicator,gt=ft.mode,Qt=ft.level,tr=ft.tag,ar=ft.children,yr=ft.theme,xn=Object(c.a)(ft,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),vn=tr;return w.createElement(vn,Object(F.a)({ref:this.childRef},xn),this.renderChildren(ar))}}]),Sn}(w.Component);Zr.defaultProps={tag:"div",className:""};var ir=Zr;function dr(Br){return Br.length?Br.every(function(sn){return!!sn.props.disabled}):!0}function qt(Br,sn,Sn){var Dt=Br.getState();Br.setState({activeKey:Object(o.a)(Object(o.a)({},Dt.activeKey),{},Object(m.a)({},sn,Sn))})}function Ht(Br){return Br.eventKey||"0-menu-"}function lt(Br,sn){var Sn=sn,Dt=Br.children,ft=Br.eventKey;if(Sn){var St;if(Je(Dt,function(Ct,Nt){Ct&&Ct.props&&!Ct.props.disabled&&Sn===Ae(Ct,ft,Nt)&&(St=!0)}),St)return Sn}return Sn=null,Br.defaultActiveFirst&&Je(Dt,function(Ct,Nt){!Sn&&Ct&&!Ct.props.disabled&&(Sn=Ae(Ct,ft,Nt))}),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(Dt){var ft;return Object(s.a)(this,Sn),ft=sn.call(this,Dt),ft.onKeyDown=function(St,Ct){var Nt=St.keyCode,gt;if(ft.getFlatInstanceArray().forEach(function(tr){tr&&tr.props.active&&tr.onKeyDown&&(gt=tr.onKeyDown(St))}),gt)return 1;var Qt=null;return(Nt===L.a.UP||Nt===L.a.DOWN)&&(Qt=ft.step(Nt===L.a.UP?-1:1)),Qt?(St.preventDefault(),qt(ft.props.store,Ht(ft.props),Qt.props.eventKey),typeof Ct=="function"&&Ct(Qt),1):void 0},ft.onItemHover=function(St){var Ct=St.key,Nt=St.hover;qt(ft.props.store,Ht(ft.props),Nt?Ct:null)},ft.onDeselect=function(St){ft.props.onDeselect(St)},ft.onSelect=function(St){ft.props.onSelect(St)},ft.onClick=function(St){ft.props.onClick(St)},ft.onOpenChange=function(St){ft.props.onOpenChange(St)},ft.onDestroy=function(St){ft.props.onDestroy(St)},ft.getFlatInstanceArray=function(){return ft.instanceArray},ft.step=function(St){var Ct=ft.getFlatInstanceArray(),Nt=ft.props.store.getState().activeKey[Ht(ft.props)],gt=Ct.length;if(!gt)return null;St<0&&(Ct=Ct.concat().reverse());var Qt=-1;if(Ct.every(function(xn,vn){return xn&&xn.props.eventKey===Nt?(Qt=vn,!1):!0}),!ft.props.defaultActiveFirst&&Qt!==-1&&dr(Ct.slice(Qt,gt-1)))return;var tr=(Qt+1)%gt,ar=tr;do{var yr=Ct[ar];if(!yr||yr.props.disabled)ar=(ar+1)%gt;else return yr}while(ar!==tr);return null},ft.renderCommonMenuItem=function(St,Ct,Nt){var gt=ft.props.store.getState(),Qt=Object(U.a)(ft),tr=Qt.props,ar=Ae(St,tr.eventKey,Ct),yr=St.props;if(!yr||typeof St.type=="string")return St;var xn=ar===gt.activeKey,vn=Object(o.a)(Object(o.a)({mode:yr.mode||tr.mode,level:tr.level,inlineIndent:tr.inlineIndent,renderMenuItem:ft.renderMenuItem,rootPrefixCls:tr.prefixCls,index:Ct,parentMenu:tr.parentMenu,manualRef:yr.disabled?void 0:Object(z.a)(St.ref,Hr.bind(Object(U.a)(ft))),eventKey:ar,active:!yr.disabled&&xn,multiple:tr.multiple,onClick:function(Yr){(yr.onClick||ue)(Yr),ft.onClick(Yr)},onItemHover:ft.onItemHover,motion:tr.motion,subMenuOpenDelay:tr.subMenuOpenDelay,subMenuCloseDelay:tr.subMenuCloseDelay,forceSubMenuRender:tr.forceSubMenuRender,onOpenChange:ft.onOpenChange,onDeselect:ft.onDeselect,onSelect:ft.onSelect,builtinPlacements:tr.builtinPlacements,itemIcon:yr.itemIcon||ft.props.itemIcon,expandIcon:yr.expandIcon||ft.props.expandIcon},Nt),{},{direction:tr.direction});return(tr.mode==="inline"||$e())&&(vn.triggerSubMenuAction="click"),w.cloneElement(St,Object(o.a)(Object(o.a)({},vn),{},{key:ar||Ct}))},ft.renderMenuItem=function(St,Ct,Nt){if(!St)return null;var gt=ft.props.store.getState(),Qt={openKeys:gt.openKeys,selectedKeys:gt.selectedKeys,triggerSubMenuAction:ft.props.triggerSubMenuAction,subMenuKey:Nt};return ft.renderCommonMenuItem(St,Ct,Qt)},Dt.store.setState({activeKey:Object(o.a)(Object(o.a)({},Dt.store.getState().activeKey),{},Object(m.a)({},Dt.eventKey,lt(Dt,Dt.activeKey)))}),ft.instanceArray=[],ft}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ft){return this.props.visible||ft.visible||this.props.className!==ft.className||!Z()(this.props.style,ft.style)}},{key:"componentDidUpdate",value:function(ft){var St=this.props,Ct="activeKey"in St?St.activeKey:St.store.getState().activeKey[Ht(St)],Nt=lt(St,Ct);if(Nt!==Ct)qt(St.store,Ht(St),Nt);else if("activeKey"in ft){var gt=lt(ft,ft.activeKey);Nt!==gt&&qt(St.store,Ht(St),Nt)}}},{key:"render",value:function(){var ft=this,St=Object(F.a)({},this.props);this.instanceArray=[];var Ct=i()(St.prefixCls,St.className,"".concat(St.prefixCls,"-").concat(St.mode)),Nt={className:Ct,role:St.role||"menu"};St.id&&(Nt.id=St.id),St.focusable&&(Nt.tabIndex=0,Nt.onKeyDown=this.onKeyDown);var gt=St.prefixCls,Qt=St.eventKey,tr=St.visible,ar=St.level,yr=St.mode,xn=St.overflowedIndicator,vn=St.theme;return qe.forEach(function(zn){return delete St[zn]}),delete St.onClick,w.createElement(ir,Object(F.a)({},St,{prefixCls:gt,mode:yr,tag:"ul",level:ar,theme:vn,visible:tr,overflowedIndicator:xn},Nt),Object(n.a)(St.children).map(function(zn,Yr){return ft.renderMenuItem(zn,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:ue};var Nn=Object(K.b)()(dn),Wn=Nn;function gi(Br,sn,Sn){var Dt=Br.prefixCls,ft=Br.motion,St=Br.defaultMotions,Ct=St===void 0?{}:St,Nt=Br.openAnimation,gt=Br.openTransitionName,Qt=sn.switchingModeFromInline;if(ft)return ft;if(Object(le.a)(Nt)==="object"&&Nt)Object(v.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Nt=="string")return{motionName:"".concat(Dt,"-open-").concat(Nt)};if(gt)return{motionName:gt};var tr=Ct[Sn];return tr||(Qt?null:Ct.other)}var yn=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(Dt){var ft;Object(s.a)(this,Sn),ft=sn.call(this,Dt),ft.onSelect=function(Nt){var gt=Object(U.a)(ft),Qt=gt.props;if(Qt.selectable){var tr=ft.store.getState(),ar=tr.selectedKeys,yr=Nt.key;Qt.multiple?ar=ar.concat([yr]):ar=[yr],"selectedKeys"in Qt||ft.store.setState({selectedKeys:ar}),Qt.onSelect(Object(o.a)(Object(o.a)({},Nt),{},{selectedKeys:ar}))}},ft.onClick=function(Nt){var gt=ft.getRealMenuMode(),Qt=Object(U.a)(ft),tr=Qt.store,ar=Qt.props.onOpenChange;gt!=="inline"&&!("openKeys"in ft.props)&&(tr.setState({openKeys:[]}),ar([])),ft.props.onClick(Nt)},ft.onKeyDown=function(Nt,gt){ft.innerMenu.getWrappedInstance().onKeyDown(Nt,gt)},ft.onOpenChange=function(Nt){var gt=Object(U.a)(ft),Qt=gt.props,tr=ft.store.getState().openKeys.concat(),ar=!1,yr=function(vn){var zn=!1;if(vn.open)zn=tr.indexOf(vn.key)===-1,zn&&tr.push(vn.key);else{var Yr=tr.indexOf(vn.key);zn=Yr!==-1,zn&&tr.splice(Yr,1)}ar=ar||zn};Array.isArray(Nt)?Nt.forEach(yr):yr(Nt),ar&&("openKeys"in ft.props||ft.store.setState({openKeys:tr}),Qt.onOpenChange(tr))},ft.onDeselect=function(Nt){var gt=Object(U.a)(ft),Qt=gt.props;if(Qt.selectable){var tr=ft.store.getState().selectedKeys.concat(),ar=Nt.key,yr=tr.indexOf(ar);yr!==-1&&tr.splice(yr,1),"selectedKeys"in Qt||ft.store.setState({selectedKeys:tr}),Qt.onDeselect(Object(o.a)(Object(o.a)({},Nt),{},{selectedKeys:tr}))}},ft.onMouseEnter=function(Nt){ft.restoreModeVerticalFromInline();var gt=ft.props.onMouseEnter;gt&>(Nt)},ft.onTransitionEnd=function(Nt){var gt=Nt.propertyName==="width"&&Nt.target===Nt.currentTarget,Qt=Nt.target.className,tr=Object.prototype.toString.call(Qt)==="[object SVGAnimatedString]"?Qt.animVal:Qt,ar=Nt.propertyName==="font-size"&&tr.indexOf("anticon")>=0;(gt||ar)&&ft.restoreModeVerticalFromInline()},ft.setInnerMenu=function(Nt){ft.innerMenu=Nt},ft.isRootMenu=!0;var St=Dt.defaultSelectedKeys,Ct=Dt.defaultOpenKeys;return"selectedKeys"in Dt&&(St=Dt.selectedKeys||[]),"openKeys"in Dt&&(Ct=Dt.openKeys||[]),ft.store=Object(K.c)({selectedKeys:St,openKeys:Ct,activeKey:{"0-menu-":lt(Dt,Dt.activeKey)}}),ft.state={switchingModeFromInline:!1,prevProps:Dt,inlineOpenKeys:[],store:ft.store},ft}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ft){var St=this.props,Ct=St.siderCollapsed,Nt=St.inlineCollapsed,gt=St.onOpenChange;(!ft.inlineCollapsed&&Nt||!ft.siderCollapsed&&Ct)&>([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var ft=this.props.collapsedWidth,St=this.store,Ct=this.prevOpenKeys,Nt=this.getInlineCollapsed()&&(ft===0||ft==="0"||ft==="0px");Nt?(this.prevOpenKeys=St.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ct&&(this.store.setState({openKeys:Ct}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ft=this.props.mode,St=this.state.switchingModeFromInline,Ct=this.getInlineCollapsed();return St&&Ct?"inline":Ct?"vertical":ft}},{key:"getInlineCollapsed",value:function(){var ft=this.props,St=ft.inlineCollapsed,Ct=ft.siderCollapsed;return Ct!==void 0?Ct:St}},{key:"restoreModeVerticalFromInline",value:function(){var ft=this.state.switchingModeFromInline;ft&&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 ft=Object(o.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),St=this.getRealMenuMode();return ft.className+=" ".concat(ft.prefixCls,"-root"),ft.direction==="rtl"&&(ft.className+=" ".concat(ft.prefixCls,"-rtl")),ft=Object(o.a)(Object(o.a)({},ft),{},{mode:St,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,St)}),delete ft.openAnimation,delete ft.openTransitionName,w.createElement(K.a,{store:this.store},w.createElement(Wn,Object(F.a)({},ft,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(ft,St){var Ct=St.prevProps,Nt=St.store,gt=Nt.getState(),Qt={},tr={prevProps:ft};return Ct.mode==="inline"&&ft.mode!=="inline"&&(tr.switchingModeFromInline=!0),"openKeys"in ft?Qt.openKeys=ft.openKeys||[]:((ft.inlineCollapsed&&!Ct.inlineCollapsed||ft.siderCollapsed&&!Ct.siderCollapsed)&&(tr.switchingModeFromInline=!0,tr.inlineOpenKeys=gt.openKeys,Qt.openKeys=[]),(!ft.inlineCollapsed&&Ct.inlineCollapsed||!ft.siderCollapsed&&Ct.siderCollapsed)&&(Qt.openKeys=St.inlineOpenKeys,tr.inlineOpenKeys=[])),Object.keys(Qt).length&&Nt.setState(Qt),tr}}]),Sn}(w.Component);yn.defaultProps={selectable:!0,onClick:ue,onSelect:ue,onOpenChange:ue,onDeselect:ue,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=yn,Ft=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Dt;return Object(s.a)(this,Sn),Dt=sn.apply(this,arguments),Dt.onKeyDown=function(ft){var St=ft.keyCode;return St===L.a.ENTER?(Dt.onClick(ft),!0):void 0},Dt.onMouseLeave=function(ft){var St=Dt.props,Ct=St.eventKey,Nt=St.onItemHover,gt=St.onMouseLeave;Nt({key:Ct,hover:!1}),gt({key:Ct,domEvent:ft})},Dt.onMouseEnter=function(ft){var St=Dt.props,Ct=St.eventKey,Nt=St.onItemHover,gt=St.onMouseEnter;Nt({key:Ct,hover:!0}),gt({key:Ct,domEvent:ft})},Dt.onClick=function(ft){var St=Dt.props,Ct=St.eventKey,Nt=St.multiple,gt=St.onClick,Qt=St.onSelect,tr=St.onDeselect,ar=St.isSelected,yr={key:Ct,keyPath:[Ct],item:Object(U.a)(Dt),domEvent:ft};gt(yr),Nt?ar?tr(yr):Qt(yr):ar||Qt(yr)},Dt.saveNode=function(ft){Dt.node=ft},Dt}return Object(u.a)(Sn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ft=this.props;ft.onDestroy&&ft.onDestroy(ft.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 ft,St=Object(o.a)({},this.props),Ct=i()(this.getPrefixCls(),St.className,(ft={},Object(m.a)(ft,this.getActiveClassName(),!St.disabled&&St.active),Object(m.a)(ft,this.getSelectedClassName(),St.isSelected),Object(m.a)(ft,this.getDisabledClassName(),St.disabled),ft)),Nt=Object(o.a)(Object(o.a)({},St.attribute),{},{title:typeof St.title=="string"?St.title:void 0,className:Ct,role:St.role||"menuitem","aria-disabled":St.disabled});St.role==="option"?Nt=Object(o.a)(Object(o.a)({},Nt),{},{role:"option","aria-selected":St.isSelected}):(St.role===null||St.role==="none")&&(Nt.role="none");var gt={onClick:St.disabled?null:this.onClick,onMouseLeave:St.disabled?null:this.onMouseLeave,onMouseEnter:St.disabled?null:this.onMouseEnter},Qt=Object(o.a)({},St.style);St.mode==="inline"&&(St.direction==="rtl"?Qt.paddingRight=St.inlineIndent*St.level:Qt.paddingLeft=St.inlineIndent*St.level),qe.forEach(function(ar){return delete St[ar]}),delete St.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)(St,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Nt,gt,{style:Qt,ref:this.saveNode}),St.children,tr)}}]),Sn}(w.Component);Ft.isMenuItem=!0,Ft.defaultProps={onSelect:ue,onMouseEnter:ue,onMouseLeave:ue,manualRef:ue};var bt=Object(K.b)(function(Br,sn){var Sn=Br.activeKey,Dt=Br.selectedKeys,ft=sn.eventKey,St=sn.subMenuKey;return{active:Sn[St]===ft,isSelected:Array.isArray(Dt)?Dt.indexOf(ft)!==-1:Dt===ft}})(Ft),Oe=bt,Ee=function(Br){Object(h.a)(Sn,Br);var sn=Object(p.a)(Sn);function Sn(){var Dt;return Object(s.a)(this,Sn),Dt=sn.apply(this,arguments),Dt.renderInnerMenuItem=function(ft){var St=Dt.props,Ct=St.renderMenuItem,Nt=St.index;return Ct(ft,Nt,Dt.props.subMenuKey)},Dt}return Object(u.a)(Sn,[{key:"render",value:function(){var ft=Object(F.a)({},this.props),St=ft.className,Ct=St===void 0?"":St,Nt=ft.rootPrefixCls,gt="".concat(Nt,"-item-group-title"),Qt="".concat(Nt,"-item-group-list"),tr=ft.title,ar=ft.children;return qe.forEach(function(yr){return delete ft[yr]}),delete ft.direction,w.createElement("li",Object(F.a)({},ft,{onClick:function(xn){return xn.stopPropagation()},className:"".concat(Ct," ").concat(Nt,"-item-group")}),w.createElement("div",{className:gt,title:typeof tr=="string"?tr:void 0},tr),w.createElement("ul",{className:Qt},w.Children.map(ar,this.renderInnerMenuItem)))}}]),Sn}(w.Component);Ee.isMenuItemGroup=!0,Ee.defaultProps={disabled:!0};var Ie=Ee,Ye=function(sn){var Sn=sn.className,Dt=sn.rootPrefixCls,ft=sn.style;return w.createElement("li",{className:"".concat(Sn," ").concat(Dt,"-item-divider"),style:ft})};Ye.defaultProps={disabled:!0,className:"",style:{}};var rt=Ye,ut=Mn,Ot={adjustX:1,adjustY:1},Ar=[0,0],Pr={topLeft:{points:["bl","tl"],overflow:Ot,offset:[0,-4],targetOffset:Ar},topCenter:{points:["bc","tc"],overflow:Ot,offset:[0,-4],targetOffset:Ar},topRight:{points:["br","tr"],overflow:Ot,offset:[0,-4],targetOffset:Ar},bottomLeft:{points:["tl","bl"],overflow:Ot,offset:[0,4],targetOffset:Ar},bottomCenter:{points:["tc","bc"],overflow:Ot,offset:[0,4],targetOffset:Ar},bottomRight:{points:["tr","br"],overflow:Ot,offset:[0,4],targetOffset:Ar}},un=Pr,It=L.a.ESC,nt=L.a.TAB;function at(Br){var sn=Br.visible,Sn=Br.setTriggerVisible,Dt=Br.triggerRef,ft=Br.menuRef,St=Br.onVisibleChange,Ct=Br.autoFocus,Nt=w.useRef(!1),gt=function(){if(sn&&Dt.current){var yr,xn,vn,zn;(yr=Dt.current)===null||yr===void 0||((xn=yr.triggerRef)===null||xn===void 0||((vn=xn.current)===null||vn===void 0||((zn=vn.focus)===null||zn===void 0)))||zn.call(vn),Sn(!1),typeof St=="function"&&St(!1)}},Qt=function(){var yr,xn;(yr=ft.current)===null||yr===void 0||((xn=yr.focus)===null||xn===void 0)||xn.call(yr),Nt.current=!0},tr=function(yr){var xn;switch(yr.keyCode){case It:gt();break;case nt:!Nt.current&&((xn=ft.current)===null||xn===void 0?void 0:xn.focus)?(yr.preventDefault(),Qt()):gt();break}};w.useEffect(function(){return sn?(window.addEventListener("keydown",tr),Ct&&Object(Bt.a)(Qt,3),function(){window.removeEventListener("keydown",tr),Nt.current=!1}):function(){Nt.current=!1}},[sn])}var rr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Pt(Br,sn){var Sn=Br.arrow,Dt=Sn===void 0?!1:Sn,ft=Br.prefixCls,St=ft===void 0?"rc-dropdown":ft,Ct=Br.transitionName,Nt=Br.animation,gt=Br.align,Qt=Br.placement,tr=Qt===void 0?"bottomLeft":Qt,ar=Br.placements,yr=ar===void 0?un:ar,xn=Br.getPopupContainer,vn=Br.showAction,zn=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),ki=si[0],zi=si[1],Ri="visible"in Br?ln:ki,Yi=w.useRef(null);w.useImperativeHandle(sn,function(){return Yi.current});var $n=w.useRef(null),gn="".concat(St,"-menu");at({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,vt=mi().props;zi(!1),An&&An(Wr),vt.onClick&&vt.onClick(Wr)},Li=function(Wr){var An=Br.onVisibleChange;zi(Wr),typeof An=="function"&&An(Wr)},Bi=function(){var Wr,An=mi(),vt=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)?vt:void 0),Wr);return typeof An.type=="string"&&(delete mr.prefixCls,delete mr["data-dropdown-inject"]),w.createElement(w.Fragment,null,Dt&&w.createElement("div",{className:"".concat(St,"-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(St,"-open")},Zt=function(){var Wr=Br.children,An=Wr.props?Wr.props:{},vt=i()(An.className,on());return Ri&&Wr?w.cloneElement(Wr,{className:vt}):Wr},br=zn;return!br&&In.indexOf("contextMenu")!==-1&&(br=["click"]),w.createElement(Ut.a,Object(o.a)(Object(o.a)({builtinPlacements:yr},ti),{},{prefixCls:St,ref:Yi,popupClassName:i()(Yr,Object(m.a)({},"".concat(St,"-show-arrow"),Dt)),popupStyle:xr,action:In,showAction:vn,hideAction:br||[],popupPlacement:tr,popupAlign:gt,popupTransitionName:Ct,popupAnimation:Nt,popupVisible:Ri,stretch:lr()?"minWidth":"",popup:wr(),onPopupVisibleChange:Li,getPopupContainer:xn}),Zt())}var xt=w.forwardRef(Pt),Kt=xt;function yt(Br,sn){var Sn=Br.prefixCls,Dt=Br.editable,ft=Br.locale,St=Br.style;return!Dt||Dt.showAdd===!1?null:w.createElement("button",{ref:sn,type:"button",className:"".concat(Sn,"-nav-add"),style:St,"aria-label":(ft==null?void 0:ft.addAriaLabel)||"Add tab",onClick:function(Nt){Dt.onEdit("add",{event:Nt})}},Dt.addIcon||"+")}var kt=w.forwardRef(yt);function Sr(Br,sn){var Sn=Br.prefixCls,Dt=Br.id,ft=Br.tabs,St=Br.locale,Ct=Br.mobile,Nt=Br.moreIcon,gt=Nt===void 0?"More":Nt,Qt=Br.moreTransitionName,tr=Br.style,ar=Br.className,yr=Br.editable,xn=Br.tabBarGutter,vn=Br.rtl,zn=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(Dt,"-more-popup"),ki="".concat(Sn,"-dropdown"),zi=ti!==null?"".concat(si,"-").concat(ti):null,Ri=St==null?void 0:St.dropdownAriaLabel,Yi=w.createElement(ut,{onClick:function(wr){var lr=wr.key,on=wr.domEvent;zn(lr,on),On(!1)},id:si,tabIndex:-1,role:"listbox","aria-activedescendant":zi,selectedKeys:[ti],"aria-label":Ri!==void 0?Ri:"expanded dropdown"},ft.map(function(Bi){return w.createElement(Oe,{key:Bi.key,id:"".concat(si,"-").concat(Bi.key),role:"option","aria-controls":Dt&&"".concat(Dt,"-panel-").concat(Bi.key),disabled:Bi.disabled},Bi.tab)}));function $n(Bi){for(var wr=ft.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&&zn(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);ft.length||(mi.visibility="hidden",mi.order=1);var Hi=i()(Object(m.a)({},"".concat(ki,"-rtl"),vn)),Li=Ct?null:w.createElement(Kt,{prefixCls:ki,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(Dt,"-more"),"aria-expanded":ln,onKeyDown:gn},gt));return w.createElement("div",{className:i()("".concat(Sn,"-nav-operations"),ar),style:tr,ref:sn},Li,w.createElement(kt,{prefixCls:Sn,locale:St,editable:yr}))}var hr=w.forwardRef(Sr),gr=Object(w.createContext)(null),Jr=.1,$r=.01,kn=20,Dn=Math.pow(.995,kn);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)(),Dt=Object(f.a)(Sn,2),ft=Dt[0],St=Dt[1],Ct=Object(w.useState)(0),Nt=Object(f.a)(Ct,2),gt=Nt[0],Qt=Nt[1],tr=Object(w.useState)(0),ar=Object(f.a)(tr,2),yr=ar[0],xn=ar[1],vn=Object(w.useState)(),zn=Object(f.a)(vn,2),Yr=zn[0],xr=zn[1],ln=Object(w.useRef)();function On(Ri){var Yi=Ri.touches[0],$n=Yi.screenX,gn=Yi.screenY;St({x:$n,y:gn}),window.clearInterval(ln.current)}function In(Ri){if(!ft)return;Ri.preventDefault();var Yi=Ri.touches[0],$n=Yi.screenX,gn=Yi.screenY;St({x:$n,y:gn});var mi=$n-ft.x,Hi=gn-ft.y;sn(mi,Hi);var Li=Date.now();Qt(Li),xn(Li-gt),xr({x:mi,y:Hi})}function Un(){if(!ft)return;if(St(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*kn,Hi*kn)},kn)}}var ti=Object(w.useRef)(0),ui=Object(w.useRef)(!1),si=Object(w.useRef)();function ki(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:ki},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(Dt){return Br.current.has(Dt)||Br.current.set(Dt,w.createRef()),Br.current.get(Dt)}function Sn(Dt){Br.current.delete(Dt)}return[sn,Sn]}function Ii(Br,sn){var Sn=w.useRef(Br),Dt=w.useState({}),ft=Object(f.a)(Dt,2),St=ft[1];function Ct(Nt){var gt=typeof Nt=="function"?Nt(Sn.current):Nt;gt!==Sn.current&&sn(gt,Sn.current),Sn.current=gt,St({})}return[Sn.current,Ct]}var Qe=function(sn){var Sn=sn.position,Dt=sn.prefixCls,ft=sn.extra;if(!ft)return null;var St,Ct=ft;return Sn==="right"&&(St=Ct.right||!Ct.left&&Ct||null),Sn==="left"&&(St=Ct.left||null),St?w.createElement("div",{className:"".concat(Dt,"-extra-content")},St):null};function Se(Br,sn){var Sn,Dt=w.useContext(gr),ft=Dt.prefixCls,St=Dt.tabs,Ct=Br.className,Nt=Br.style,gt=Br.id,Qt=Br.animated,tr=Br.activeKey,ar=Br.rtl,yr=Br.extra,xn=Br.editable,vn=Br.locale,zn=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(),ki=Object(f.a)(si,2),zi=ki[0],Ri=ki[1],Yi=zn==="top"||zn==="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),vt=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=k(St,ga,br),_a="".concat(ft,"-nav-operations-hidden"),Da=0,Ra=0;Yi?ar?(Da=0,Ra=Math.max(0,br-pi)):(Da=Math.min(0,pi-br),Ra=0):(Da=Math.min(0,yi-vt),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 Pi=Ao(ai+ii),bi=Object(f.a)(Pi,2),Ki=bi[0],Aa=bi[1];return Bn=Aa,Ki})}if(Yi){if(pi>=br)return Bn;ri(Hi,jn)}else{if(yi>=vt)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;ar?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=j(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:St})),Oo=Object(f.a)(Ga,2),oa=Oo[0],qa=Oo[1],oo=St.map(function(jn){var Hn=jn.key;return w.createElement(D,{id:gt,prefixCls:ft,key:Hn,rtl:ar,tab:jn,closable:jn.closable,editable:xn,active:Hn===tr,tabPosition:zn,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(),ar||(In.current.scrollLeft=0),In.current.scrollTop=0}})}),Ro=O(function(){var jn,Hn,Bn,ri,Yn,ii,ai,Pi,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=(((Pi=Un.current)===null||Pi===void 0?void 0:Pi.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 St.forEach(function(ca){var ma=ca.key,Pa=zi(ma).current;Pa&&qi.set(ma,{width:Pa.offsetWidth,height:Pa.offsetHeight,left:Pa.offsetLeft,top:Pa.offsetTop})}),qi})}),Xa=St.slice(0,oa),_o=St.slice(qa+1),go=[].concat(Object(l.a)(Xa),Object(l.a)(_o)),Ja=Object(w.useState)(),Fa=Object(f.a)(Ja,2),ha=Fa[0],tt=Fa[1],cr=pa.get(tr),kr=Object(w.useRef)();function Lr(){a.a.cancel(kr.current)}Object(w.useEffect)(function(){var jn={};return cr&&(Yi?(ar?jn.right=cr.right:jn.left=cr.left,jn.width=cr.width):(jn.top=cr.top,jn.height=cr.height)),Lr(),kr.current=a()(function(){tt(jn)}),Lr},[cr,Yi,ar]),Object(w.useEffect)(function(){uo()},[tr,cr,pa,Yi]),Object(w.useEffect)(function(){Ro()},[ar,Yr,tr,St.map(function(jn){return jn.key}).join("_")]);var _n=!!go.length,Vr="".concat(ft,"-nav-wrap"),_r,Pn,Ur,En;return Yi?ar?(Pn=mi>0,_r=mi+pi<br):(_r=mi<0,Pn=-mi+pi<br):(Ur=wr<0,En=-wr+yi<vt),w.createElement("div",{ref:sn,role:"tablist",className:i()("".concat(ft,"-nav"),Ct),style:Nt,onKeyDown:function(){Ca()}},w.createElement(Qe,{position:"left",extra:yr,prefixCls:ft}),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"),Pn),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(ft,"-nav-list"),style:{transform:"translate(".concat(mi,"px, ").concat(wr,"px)"),transition:Va?"none":void 0}},oo,w.createElement(kt,{ref:ui,prefixCls:ft,locale:vn,editable:xn,style:{visibility:_n?"hidden":null}}),w.createElement("div",{className:i()("".concat(ft,"-ink-bar"),Object(m.a)({},"".concat(ft,"-ink-bar-animated"),Qt.inkBar)),style:ha}))))),w.createElement(hr,Object.assign({},Br,{ref:ti,prefixCls:ft,tabs:go,className:!_n&&_a})),w.createElement(Qe,{position:"right",extra:yr,prefixCls:ft}))}var Ne=w.forwardRef(Se);function je(Br){var sn=Br.id,Sn=Br.activeKey,Dt=Br.animated,ft=Br.tabPosition,St=Br.rtl,Ct=Br.destroyInactiveTabPane,Nt=w.useContext(gr),gt=Nt.prefixCls,Qt=Nt.tabs,tr=Dt.tabPane,ar=Qt.findIndex(function(yr){return yr.key===Sn});return w.createElement("div",{className:i()("".concat(gt,"-content-holder"))},w.createElement("div",{className:i()("".concat(gt,"-content"),"".concat(gt,"-content-").concat(ft),Object(m.a)({},"".concat(gt,"-content-animated"),tr)),style:ar&&tr?Object(m.a)({},St?"marginRight":"marginLeft","-".concat(ar,"00%")):null},Qt.map(function(yr){return w.cloneElement(yr.node,{key:yr.key,prefixCls:gt,tabKey:yr.key,id:sn,animated:tr,active:yr.key===Sn,destroyInactiveTabPane:Ct})})))}function Xe(Br){var sn=Br.prefixCls,Sn=Br.forceRender,Dt=Br.className,ft=Br.style,St=Br.id,Ct=Br.active,Nt=Br.animated,gt=Br.destroyInactiveTabPane,Qt=Br.tabKey,tr=Br.children,ar=w.useState(Sn),yr=Object(f.a)(ar,2),xn=yr[0],vn=yr[1];w.useEffect(function(){Ct?vn(!0):gt&&vn(!1)},[Ct,gt]);var zn={};return Ct||(Nt?(zn.visibility="hidden",zn.height=0,zn.overflowY="hidden"):zn.display="none"),w.createElement("div",{id:St&&"".concat(St,"-panel-").concat(Qt),role:"tabpanel",tabIndex:Ct?0:-1,"aria-labelledby":St&&"".concat(St,"-tab-").concat(Qt),"aria-hidden":!Ct,style:Object(o.a)(Object(o.a)({},zn),ft),className:i()("".concat(sn,"-tabpane"),Ct&&"".concat(sn,"-tabpane-active"),Dt)},(Ct||xn||Sn)&&tr)}var ze=0;function Ze(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 wt(Br,sn){var Sn,Dt=Br.id,ft=Br.prefixCls,St=ft===void 0?"rc-tabs":ft,Ct=Br.className,Nt=Br.children,gt=Br.direction,Qt=Br.activeKey,tr=Br.defaultActiveKey,ar=Br.editable,yr=Br.animated,xn=Br.tabPosition,vn=xn===void 0?"top":xn,zn=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,ki=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=Ze(Nt),Yi=gt==="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:Dt}),vt=Object(f.a)(An,2),mr=vt[0],vr=vt[1],Fr=vn;Hi&&!["left","right"].includes(vn)&&(Fr="top"),Object(w.useEffect)(function(){Dt||(vr("rc-tabs-".concat(ze)),ze+=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:ar,locale:ln,moreIcon:On,moreTransitionName:In,tabBarGutter:zn,onTabClick:nn,onTabScroll:ki,extra:xr,style:Yr,panes:Nt});return ti?tn=ti(Ln,Ne):tn=w.createElement(Ne,Object.assign({},Ln)),w.createElement(gr.Provider,{value:{tabs:Ri,prefixCls:St}},w.createElement("div",Object.assign({ref:sn,id:Dt,className:i()(St,"".concat(St,"-").concat(Fr),(Sn={},Object(m.a)(Sn,"".concat(St,"-mobile"),Hi),Object(m.a)(Sn,"".concat(St,"-editable"),ar),Object(m.a)(Sn,"".concat(St,"-rtl"),Yi),Sn),Ct)},zi),tn,w.createElement(je,Object.assign({destroyInactiveTabPane:Un},cn,{animated:$n}))))}var st=w.forwardRef(wt);st.TabPane=Xe;var Jt=st,Rr=Jt,Ir=d("cCPh"),Xr=d.n(Ir),er=d("fNCr"),pn=d.n(er),fr=d("V/uB"),mn=d.n(fr),en=d("uaoM"),Mr=d("H84U"),Gn=function(Br,sn){var Sn={};for(var Dt in Br)Object.prototype.hasOwnProperty.call(Br,Dt)&&sn.indexOf(Dt)<0&&(Sn[Dt]=Br[Dt]);if(Br!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Dt=Object.getOwnPropertySymbols(Br);ft<Dt.length;ft++)sn.indexOf(Dt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Br,Dt[ft])&&(Sn[Dt[ft]]=Br[Dt[ft]]);return Sn};function di(Br){var sn,Sn=Br.type,Dt=Br.className,ft=Br.size,St=Br.onEdit,Ct=Br.hideAdd,Nt=Br.centered,gt=Br.addIcon,Qt=Gn(Br,["type","className","size","onEdit","hideAdd","centered","addIcon"]),tr=Qt.prefixCls,ar=w.useContext(Mr.b),yr=ar.getPrefixCls,xn=ar.direction,vn=yr("tabs",tr),zn;return Sn==="editable-card"&&(zn={onEdit:function(xr,ln){var On=ln.key,In=ln.event;St==null||St(xr==="add"?In:On,xr)},removeIcon:w.createElement(mn.a,null),addIcon:gt||w.createElement(pn.a,null),showAdd:Ct!==!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()(Dt,(sn={},A()(sn,"".concat(vn,"-").concat(ft),ft),A()(sn,"".concat(vn,"-card"),["card","editable-card"].includes(Sn)),A()(sn,"".concat(vn,"-editable-card"),Sn==="editable-card"),A()(sn,"".concat(vn,"-centered"),Nt),sn)),editable:zn,moreIcon:w.createElement(Xr.a,null),prefixCls:vn}))}di.TabPane=Xe;var _i=B.a=di},ZTW2:function(H,B,d){},ZWlE:function(H,B,d){var _=d("bYtY"),E=d("4NO4");function C(m){A(m),w(m)}function A(m){if(m.parallel)return;var f=!1;_.each(m.series,function(c){c&&c.type==="parallel"&&(f=!0)}),f&&(m.parallel=[{}])}function w(m){var f=E.normalizeToArray(m.parallelAxis);_.each(f,function(c){if(!_.isObject(c))return;var o=c.parallelIndex||0,r=E.normalizeToArray(m.parallel)[o];r&&r.parallelAxisDefault&&_.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 _=d("lSNA"),E=d.n(_),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"),l=d("TSYQ"),t=d.n(l),a=d("BGR+"),s=d("T1rO"),u=d.n(s),h=d("fEPi"),p=d.n(h),g=d("DFhj"),v=d.n(g),y=d("PKem"),x=d("H84U"),T=function(k){return!isNaN(parseFloat(k))&&isFinite(k)},S=T,b=function(R,k){var M={};for(var j in R)Object.prototype.hasOwnProperty.call(R,j)&&k.indexOf(j)<0&&(M[j]=R[j]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,j=Object.getOwnPropertySymbols(R);F<j.length;F++)k.indexOf(j[F])<0&&Object.prototype.propertyIsEnumerable.call(R,j[F])&&(M[j[F]]=R[j[F]]);return M},O={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 k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return R+=1,"".concat(k).concat(R)}}(),N=function(R){r()(M,R);var k=n()(M);function M(j){var F;m()(this,M),F=k.call(this,j),F.responsiveHandler=function(V){F.setState({below:V.matches});var z=F.props.onBreakpoint,Q=F.state.collapsed;z&&z(V.matches),Q!==V.matches&&F.setCollapsed(V.matches,"responsive")},F.setCollapsed=function(V,z){"collapsed"in F.props||F.setState({collapsed:V});var Q=F.props.onCollapse;Q&&Q(V,z)},F.toggle=function(){var V=!F.state.collapsed;F.setCollapsed(V,"clickTrigger")},F.renderSider=function(V){var z,Q=V.getPrefixCls,Z=F.props,le=Z.prefixCls,ne=Z.className,ve=Z.theme,xe=Z.collapsible,_e=Z.reverseArrow,Be=Z.trigger,me=Z.style,Fe=Z.width,ie=Z.collapsedWidth,te=Z.zeroWidthTriggerStyle,Ge=Z.children,oe=b(Z,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Y=F.state,G=Y.collapsed,X=Y.below,fe=Q("layout-sider",le),de=Object(a.default)(oe,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=G?ie:Fe,Me=S(Ce)?"".concat(Ce,"px"):String(Ce),ue=parseFloat(String(ie||0))===0?e.createElement("span",{onClick:F.toggle,className:t()("".concat(fe,"-zero-width-trigger"),"".concat(fe,"-zero-width-trigger-").concat(_e?"right":"left")),style:te},Be||e.createElement(u.a,null)):null,Ae={expanded:_e?e.createElement(p.a,null):e.createElement(v.a,null),collapsed:_e?e.createElement(v.a,null):e.createElement(p.a,null)},Te=G?"collapsed":"expanded",Je=Ae[Te],At=Be!==null?ue||e.createElement("div",{className:"".concat(fe,"-trigger"),onClick:F.toggle,style:{width:Me}},Be||Je):null,qe=A()(A()({},me),{flex:"0 0 ".concat(Me),maxWidth:Me,minWidth:Me,width:Me}),Re=t()(ne,fe,"".concat(fe,"-").concat(ve),(z={},E()(z,"".concat(fe,"-collapsed"),!!G),E()(z,"".concat(fe,"-has-trigger"),xe&&Be!==null&&!ue),E()(z,"".concat(fe,"-below"),!!X),E()(z,"".concat(fe,"-zero-width"),parseFloat(Me)===0),z));return e.createElement("aside",A()({className:Re},de,{style:qe}),e.createElement("div",{className:"".concat(fe,"-children")},Ge),xe||X&&ue?At:null)},F.uniqueId=L("ant-sider-");var U;typeof window!="undefined"&&(U=window.matchMedia),U&&j.breakpoint&&j.breakpoint in O&&(F.mql=U("(max-width: ".concat(O[j.breakpoint],")")));var K;return"collapsed"in j?K=j.collapsed:K=j.defaultCollapsed,F.state={collapsed:K,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,U;(F=this===null||this===void 0?void 0:this.mql)===null||F===void 0||F.removeListener(this.responsiveHandler),(U=this.props)===null||U===void 0||U.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var F=this.state.collapsed,U=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:F,collapsedWidth:U}},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 k=n()(M);function M(){return m()(this,M),k.apply(this,arguments)}return c()(M,[{key:"render",value:function(){var F=this;return e.createElement(y.a.Consumer,null,function(U){return e.createElement(N,A()({},U,F.props))})}}]),M}(e.Component)},ZYIC:function(H,B,d){var _=d("zM3Q"),E={seriesType:"lines",plan:_(),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,l=c.start;l<c.end;l++)e+=C.getLineCoordsCount(l);i=new Float32Array(n+e*2)}else i=new Float32Array(n*4);for(var t=0,a=[],l=c.start;l<c.end;l++){var s=C.getLineCoords(l,r);w&&(i[t++]=s);for(var u=0;u<s;u++)a=A.dataToPoint(r[u],!1,a),i[t++]=a[0],i[t++]=a[1]}o.setLayout("linesPoints",i)}else for(var l=c.start;l<c.end;l++){var h=o.getItemModel(l),s=C.getLineCoords(l,r),p=[];if(w)for(var g=0;g<s;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(l,p)}}return{progress:f}}};H.exports=E},Ze12:function(H,B,d){var _=d("ItGF"),E=d("hOwI"),C=E.buildTransformer,A="___zrEVENTSAVED",w=[];function m(i,n,e,l,t){return f(w,n,l,t,!0)&&f(i,e,w[0],w[1])}function f(i,n,e,l,t){if(n.getBoundingClientRect&&_.domSupported&&!r(n)){var a=n[A]||(n[A]={}),s=c(n,a),u=o(s,a,t);if(u)return u(i,e,l),!0}return!1}function c(i,n){var e=n.markers;if(e)return e;e=n.markers=[];for(var l=["left","right"],t=["top","bottom"],a=0;a<4;a++){var s=document.createElement("div"),u=s.style,h=a%2,p=(a>>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[h]+":0",t[p]+":0",l[1-h]+":auto",t[1-p]+":auto",""].join("!important;"),i.appendChild(s),e.push(s)}return e}function o(i,n,e){for(var l=e?"invTrans":"trans",t=n[l],a=n.srcCoords,s=!0,u=[],h=[],p=0;p<4;p++){var g=i[p].getBoundingClientRect(),v=2*p,y=g.left,x=g.top;u.push(y,x),s=s&&a&&y===a[v]&&x===a[v+1],h.push(i[p].offsetLeft,i[p].offsetTop)}return s&&t?t:(n.srcCoords=u,n[l]=e?C(h,u):C(u,h))}function r(i){return i.nodeName.toUpperCase()==="CANVAS"}B.transformLocalCoord=m,B.transformCoordWithViewport=f,B.isCanvasEl=r},Znkb:function(H,B,d){var _=d("Tghj"),E=_.__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,l){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,l,t){var a=w.getAxisPointerClass(r.axisPointerClass);if(!a)return;var s=A.getAxisPointerModel(i);s?(r._axisPointer||(r._axisPointer=new a)).render(i,s,e,t):f(r,e)}function f(r,i,n){var e=r._axisPointer;e&&e.dispose(i,n),r._axisPointer=null}var c=[];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 _=d("cIOH"),E=d.n(_),C=d("9ama"),A=d.n(C)},ZqQs:function(H,B,d){var _=d("bYtY");function E(m){var f=m&&m.timeline;_.isArray(f)||(f=f?[f]:[]),_.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}_.each(m.data||[],function(r){_.isObject(r)&&!_.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};_.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 _;(function(E){var C=/^\s+/,A=/\s+$/,w=0,m=E.round,f=E.min,c=E.max,o=E.random;function r(me,Fe){if(me=me||"",Fe=Fe||{},me instanceof r)return me;if(!(this instanceof r))return new r(me,Fe);var ie=i(me);this._originalInput=me,this._r=ie.r,this._g=ie.g,this._b=ie.b,this._a=ie.a,this._roundA=m(100*this._a)/100,this._format=Fe.format||ie.format,this._gradientType=Fe.gradientType,this._r<1&&(this._r=m(this._r)),this._g<1&&(this._g=m(this._g)),this._b<1&&(this._b=m(this._b)),this._ok=ie.ok,this._tc_id=w++}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Fe=this.toRgb();return(Fe.r*299+Fe.g*587+Fe.b*114)/1e3},getLuminance:function(){var Fe=this.toRgb(),ie,te,Ge,oe,Y,G;return ie=Fe.r/255,te=Fe.g/255,Ge=Fe.b/255,ie<=.03928?oe=ie/12.92:oe=E.pow((ie+.055)/1.055,2.4),te<=.03928?Y=te/12.92:Y=E.pow((te+.055)/1.055,2.4),Ge<=.03928?G=Ge/12.92:G=E.pow((Ge+.055)/1.055,2.4),.2126*oe+.7152*Y+.0722*G},setAlpha:function(Fe){return this._a=j(Fe),this._roundA=m(100*this._a)/100,this},toHsv:function(){var Fe=t(this._r,this._g,this._b);return{h:Fe.h*360,s:Fe.s,v:Fe.v,a:this._a}},toHsvString:function(){var Fe=t(this._r,this._g,this._b),ie=m(Fe.h*360),te=m(Fe.s*100),Ge=m(Fe.v*100);return this._a==1?"hsv("+ie+", "+te+"%, "+Ge+"%)":"hsva("+ie+", "+te+"%, "+Ge+"%, "+this._roundA+")"},toHsl:function(){var Fe=e(this._r,this._g,this._b);return{h:Fe.h*360,s:Fe.s,l:Fe.l,a:this._a}},toHslString:function(){var Fe=e(this._r,this._g,this._b),ie=m(Fe.h*360),te=m(Fe.s*100),Ge=m(Fe.l*100);return this._a==1?"hsl("+ie+", "+te+"%, "+Ge+"%)":"hsla("+ie+", "+te+"%, "+Ge+"%, "+this._roundA+")"},toHex:function(Fe){return s(this._r,this._g,this._b,Fe)},toHexString:function(Fe){return"#"+this.toHex(Fe)},toHex8:function(Fe){return u(this._r,this._g,this._b,this._a,Fe)},toHex8String:function(Fe){return"#"+this.toHex8(Fe)},toRgb:function(){return{r:m(this._r),g:m(this._g),b:m(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+m(this._r)+", "+m(this._g)+", "+m(this._b)+")":"rgba("+m(this._r)+", "+m(this._g)+", "+m(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:m(F(this._r,255)*100)+"%",g:m(F(this._g,255)*100)+"%",b:m(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%)":"rgba("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[s(this._r,this._g,this._b,!0)]||!1},toFilter:function(Fe){var ie="#"+h(this._r,this._g,this._b,this._a),te=ie,Ge=this._gradientType?"GradientType = 1, ":"";if(Fe){var oe=r(Fe);te="#"+h(oe._r,oe._g,oe._b,oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ge+"startColorstr="+ie+",endColorstr="+te+")"},toString:function(Fe){var ie=!!Fe;Fe=Fe||this._format;var te=!1,Ge=this._a<1&&this._a>=0,oe=!ie&&Ge&&(Fe==="hex"||Fe==="hex6"||Fe==="hex3"||Fe==="hex4"||Fe==="hex8"||Fe==="name");return oe?Fe==="name"&&this._a===0?this.toName():this.toRgbString():(Fe==="rgb"&&(te=this.toRgbString()),Fe==="prgb"&&(te=this.toPercentageRgbString()),(Fe==="hex"||Fe==="hex6")&&(te=this.toHexString()),Fe==="hex3"&&(te=this.toHexString(!0)),Fe==="hex4"&&(te=this.toHex8String(!0)),Fe==="hex8"&&(te=this.toHex8String()),Fe==="name"&&(te=this.toName()),Fe==="hsl"&&(te=this.toHslString()),Fe==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(Fe,ie){var te=Fe.apply(null,[this].concat([].slice.call(ie)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(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(Fe,ie){return Fe.apply(null,[this].concat([].slice.call(ie)))},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(O,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},r.fromRatio=function(me,Fe){if(typeof me=="object"){var ie={};for(var te in me)me.hasOwnProperty(te)&&(te==="a"?ie[te]=me[te]:ie[te]=Z(me[te]));me=ie}return r(me,Fe)};function i(me){var Fe={r:0,g:0,b:0},ie=1,te=null,Ge=null,oe=null,Y=!1,G=!1;return typeof me=="string"&&(me=_e(me)),typeof me=="object"&&(xe(me.r)&&xe(me.g)&&xe(me.b)?(Fe=n(me.r,me.g,me.b),Y=!0,G=String(me.r).substr(-1)==="%"?"prgb":"rgb"):xe(me.h)&&xe(me.s)&&xe(me.v)?(te=Z(me.s),Ge=Z(me.v),Fe=a(me.h,te,Ge),Y=!0,G="hsv"):xe(me.h)&&xe(me.s)&&xe(me.l)&&(te=Z(me.s),oe=Z(me.l),Fe=l(me.h,te,oe),Y=!0,G="hsl"),me.hasOwnProperty("a")&&(ie=me.a)),ie=j(ie),{ok:Y,format:me.format||G,r:f(255,c(Fe.r,0)),g:f(255,c(Fe.g,0)),b:f(255,c(Fe.b,0)),a:ie}}function n(me,Fe,ie){return{r:F(me,255)*255,g:F(Fe,255)*255,b:F(ie,255)*255}}function e(me,Fe,ie){me=F(me,255),Fe=F(Fe,255),ie=F(ie,255);var te=c(me,Fe,ie),Ge=f(me,Fe,ie),oe,Y,G=(te+Ge)/2;if(te==Ge)oe=Y=0;else{var X=te-Ge;Y=G>.5?X/(2-te-Ge):X/(te+Ge);switch(te){case me:oe=(Fe-ie)/X+(Fe<ie?6:0);break;case Fe:oe=(ie-me)/X+2;break;case ie:oe=(me-Fe)/X+4;break}oe/=6}return{h:oe,s:Y,l:G}}function l(me,Fe,ie){var te,Ge,oe;me=F(me,360),Fe=F(Fe,100),ie=F(ie,100);function Y(fe,de,Ce){return Ce<0&&(Ce+=1),Ce>1&&(Ce-=1),Ce<1/6?fe+(de-fe)*6*Ce:Ce<1/2?de:Ce<2/3?fe+(de-fe)*(2/3-Ce)*6:fe}if(Fe===0)te=Ge=oe=ie;else{var G=ie<.5?ie*(1+Fe):ie+Fe-ie*Fe,X=2*ie-G;te=Y(X,G,me+1/3),Ge=Y(X,G,me),oe=Y(X,G,me-1/3)}return{r:te*255,g:Ge*255,b:oe*255}}function t(me,Fe,ie){me=F(me,255),Fe=F(Fe,255),ie=F(ie,255);var te=c(me,Fe,ie),Ge=f(me,Fe,ie),oe,Y,G=te,X=te-Ge;if(Y=te===0?0:X/te,te==Ge)oe=0;else{switch(te){case me:oe=(Fe-ie)/X+(Fe<ie?6:0);break;case Fe:oe=(ie-me)/X+2;break;case ie:oe=(me-Fe)/X+4;break}oe/=6}return{h:oe,s:Y,v:G}}function a(me,Fe,ie){me=F(me,360)*6,Fe=F(Fe,100),ie=F(ie,100);var te=E.floor(me),Ge=me-te,oe=ie*(1-Fe),Y=ie*(1-Ge*Fe),G=ie*(1-(1-Ge)*Fe),X=te%6,fe=[ie,Y,oe,oe,G,ie][X],de=[G,ie,ie,Y,oe,oe][X],Ce=[oe,oe,G,ie,ie,Y][X];return{r:fe*255,g:de*255,b:Ce*255}}function s(me,Fe,ie,te){var Ge=[Q(m(me).toString(16)),Q(m(Fe).toString(16)),Q(m(ie).toString(16))];return te&&Ge[0].charAt(0)==Ge[0].charAt(1)&&Ge[1].charAt(0)==Ge[1].charAt(1)&&Ge[2].charAt(0)==Ge[2].charAt(1)?Ge[0].charAt(0)+Ge[1].charAt(0)+Ge[2].charAt(0):Ge.join("")}function u(me,Fe,ie,te,Ge){var oe=[Q(m(me).toString(16)),Q(m(Fe).toString(16)),Q(m(ie).toString(16)),Q(le(te))];return Ge&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)&&oe[3].charAt(0)==oe[3].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0)+oe[3].charAt(0):oe.join("")}function h(me,Fe,ie,te){var Ge=[Q(le(te)),Q(m(me).toString(16)),Q(m(Fe).toString(16)),Q(m(ie).toString(16))];return Ge.join("")}r.equals=function(me,Fe){return!me||!Fe?!1:r(me).toRgbString()==r(Fe).toRgbString()},r.random=function(){return r.fromRatio({r:o(),g:o(),b:o()})};function p(me,Fe){Fe=Fe===0?0:Fe||10;var ie=r(me).toHsl();return ie.s-=Fe/100,ie.s=U(ie.s),r(ie)}function g(me,Fe){Fe=Fe===0?0:Fe||10;var ie=r(me).toHsl();return ie.s+=Fe/100,ie.s=U(ie.s),r(ie)}function v(me){return r(me).desaturate(100)}function y(me,Fe){Fe=Fe===0?0:Fe||10;var ie=r(me).toHsl();return ie.l+=Fe/100,ie.l=U(ie.l),r(ie)}function x(me,Fe){Fe=Fe===0?0:Fe||10;var ie=r(me).toRgb();return ie.r=c(0,f(255,ie.r-m(255*-(Fe/100)))),ie.g=c(0,f(255,ie.g-m(255*-(Fe/100)))),ie.b=c(0,f(255,ie.b-m(255*-(Fe/100)))),r(ie)}function T(me,Fe){Fe=Fe===0?0:Fe||10;var ie=r(me).toHsl();return ie.l-=Fe/100,ie.l=U(ie.l),r(ie)}function S(me,Fe){var ie=r(me).toHsl(),te=(ie.h+Fe)%360;return ie.h=te<0?360+te:te,r(ie)}function b(me){var Fe=r(me).toHsl();return Fe.h=(Fe.h+180)%360,r(Fe)}function O(me){var Fe=r(me).toHsl(),ie=Fe.h;return[r(me),r({h:(ie+120)%360,s:Fe.s,l:Fe.l}),r({h:(ie+240)%360,s:Fe.s,l:Fe.l})]}function I(me){var Fe=r(me).toHsl(),ie=Fe.h;return[r(me),r({h:(ie+90)%360,s:Fe.s,l:Fe.l}),r({h:(ie+180)%360,s:Fe.s,l:Fe.l}),r({h:(ie+270)%360,s:Fe.s,l:Fe.l})]}function L(me){var Fe=r(me).toHsl(),ie=Fe.h;return[r(me),r({h:(ie+72)%360,s:Fe.s,l:Fe.l}),r({h:(ie+216)%360,s:Fe.s,l:Fe.l})]}function N(me,Fe,ie){Fe=Fe||6,ie=ie||30;var te=r(me).toHsl(),Ge=360/ie,oe=[r(me)];for(te.h=(te.h-(Ge*Fe>>1)+720)%360;--Fe;)te.h=(te.h+Ge)%360,oe.push(r(te));return oe}function D(me,Fe){Fe=Fe||6;for(var ie=r(me).toHsv(),te=ie.h,Ge=ie.s,oe=ie.v,Y=[],G=1/Fe;Fe--;)Y.push(r({h:te,s:Ge,v:oe})),oe=(oe+G)%1;return Y}r.mix=function(me,Fe,ie){ie=ie===0?0:ie||50;var te=r(me).toRgb(),Ge=r(Fe).toRgb(),oe=ie/100,Y={r:(Ge.r-te.r)*oe+te.r,g:(Ge.g-te.g)*oe+te.g,b:(Ge.b-te.b)*oe+te.b,a:(Ge.a-te.a)*oe+te.a};return r(Y)},r.readability=function(me,Fe){var ie=r(me),te=r(Fe);return(E.max(ie.getLuminance(),te.getLuminance())+.05)/(E.min(ie.getLuminance(),te.getLuminance())+.05)},r.isReadable=function(me,Fe,ie){var te=r.readability(me,Fe),Ge,oe;oe=!1,Ge=Be(ie);switch(Ge.level+Ge.size){case"AAsmall":case"AAAlarge":oe=te>=4.5;break;case"AAlarge":oe=te>=3;break;case"AAAsmall":oe=te>=7;break}return oe},r.mostReadable=function(me,Fe,ie){var te=null,Ge=0,oe,Y,G,X;ie=ie||{},Y=ie.includeFallbackColors,G=ie.level,X=ie.size;for(var fe=0;fe<Fe.length;fe++)oe=r.readability(me,Fe[fe]),oe>Ge&&(Ge=oe,te=r(Fe[fe]));return r.isReadable(me,te,{level:G,size:X})||!Y?te:(ie.includeFallbackColors=!1,r.mostReadable(me,["#fff","#000"],ie))};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"},k=r.hexNames=M(R);function M(me){var Fe={};for(var ie in me)me.hasOwnProperty(ie)&&(Fe[me[ie]]=ie);return Fe}function j(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function F(me,Fe){V(me)&&(me="100%");var ie=z(me);return me=f(Fe,c(0,parseFloat(me))),ie&&(me=parseInt(me*Fe,10)/100),E.abs(me-Fe)<1e-6?1:me%Fe/parseFloat(Fe)}function U(me){return f(1,c(0,me))}function K(me){return parseInt(me,16)}function V(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function z(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Q(me){return me.length==1?"0"+me:""+me}function Z(me){return me<=1&&(me=me*100+"%"),me}function le(me){return E.round(parseFloat(me)*255).toString(16)}function ne(me){return K(me)/255}var ve=function(){var me="[-\\+]?\\d+%?",Fe="[-\\+]?\\d*\\.\\d+%?",ie="(?:"+Fe+")|(?:"+me+")",te="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?",Ge="[\\s|\\(]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")[,|\\s]+("+ie+")\\s*\\)?";return{CSS_UNIT:new RegExp(ie),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+Ge),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+Ge),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+Ge),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function xe(me){return!!ve.CSS_UNIT.exec(me)}function _e(me){me=me.replace(C,"").replace(A,"").toLowerCase();var Fe=!1;if(R[me])me=R[me],Fe=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ie;return(ie=ve.rgb.exec(me))?{r:ie[1],g:ie[2],b:ie[3]}:(ie=ve.rgba.exec(me))?{r:ie[1],g:ie[2],b:ie[3],a:ie[4]}:(ie=ve.hsl.exec(me))?{h:ie[1],s:ie[2],l:ie[3]}:(ie=ve.hsla.exec(me))?{h:ie[1],s:ie[2],l:ie[3],a:ie[4]}:(ie=ve.hsv.exec(me))?{h:ie[1],s:ie[2],v:ie[3]}:(ie=ve.hsva.exec(me))?{h:ie[1],s:ie[2],v:ie[3],a:ie[4]}:(ie=ve.hex8.exec(me))?{r:K(ie[1]),g:K(ie[2]),b:K(ie[3]),a:ne(ie[4]),format:Fe?"name":"hex8"}:(ie=ve.hex6.exec(me))?{r:K(ie[1]),g:K(ie[2]),b:K(ie[3]),format:Fe?"name":"hex"}:(ie=ve.hex4.exec(me))?{r:K(ie[1]+""+ie[1]),g:K(ie[2]+""+ie[2]),b:K(ie[3]+""+ie[3]),a:ne(ie[4]+""+ie[4]),format:Fe?"name":"hex8"}:(ie=ve.hex3.exec(me))?{r:K(ie[1]+""+ie[1]),g:K(ie[2]+""+ie[2]),b:K(ie[3]+""+ie[3]),format:Fe?"name":"hex"}:!1}function Be(me){var Fe,ie;return me=me||{level:"AA",size:"small"},Fe=(me.level||"AA").toUpperCase(),ie=(me.size||"small").toLowerCase(),Fe!=="AA"&&Fe!=="AAA"&&(Fe="AA"),ie!=="small"&&ie!=="large"&&(ie="small"),{level:Fe,size:ie}}H.exports?H.exports=r:!(_=function(){return r}.call(B,d,B,H),_!==void 0&&(H.exports=_))})(Math)},Zvw2:function(H,B,d){var _=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},_.inherits(C,E);var A=C;H.exports=A},a7Wl:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},a9QJ:function(H,B){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function _(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=_},aHsQ:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("6D9b"),A=d.n(C)},aKvl:function(H,B,d){var _=d("Sj9i"),E=_.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 l=E(A,w,m,f,c,o,i,n,null);return l<=e/2}B.containStroke=C},aTJb:function(H,B,d){var _=d("bLfw");_.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(H,B,d){var _=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(_(),h,p);return i[g.id]=g,g}function l(h){if(h)h.dispose();else{for(var p in i)i.hasOwnProperty(p)&&i[p].dispose();i={}}return this}function t(h){return i[h]}function a(h,p){r[h]=p}function s(h){delete i[h]}var u=function(p,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 O=x.delFromStorage,I=x.addToStorage;x.delFromStorage=function(L){O.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,s(this.id)}},B.version=n,B.init=e,B.dispose=l,B.getInstance=t,B.registerPainter=a},aX7z:function(H,B,d){var _=d("Tghj"),E=_.__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(),O=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]})),O==="dataMax"?O=I[1]:typeof O=="function"&&(O=O({min:I[0],max:I[1]}));var R=b!=null,k=O!=null;b==null&&(b=S==="ordinal"?L?0:NaN:I[0]-N[0]*D),O==null&&(O=S==="ordinal"?L?L-1:NaN:I[1]+N[1]*D),(b==null||!isFinite(b))&&(b=NaN),(O==null||!isFinite(O))&&(O=NaN),x.setBlank(C.eqNaN(b)||C.eqNaN(O)||S==="ordinal"&&!x.getOrdinalMeta().categories.length),T.getNeedCrossZero()&&(b>0&&O>0&&!R&&(b=0),b<0&&O<0&&!k&&(O=0));var M=T.ecModel;if(M&&S==="time"){var j=o("bar",M),F;if(C.each(j,function(V){F|=V.getBaseAxis()===T.axis}),F){var U=r(j),K=l(b,O,T,U);b=K.min,O=K.max}}return{extent:[b,O],fixMin:R,fixMax:k}}function l(x,T,S,b){var O=S.axis.getExtent(),I=O[1]-O[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,k=T-x,M=1-(N+D)/I,j=k/M-k;return T+=j*(D/R),x-=j*(N/R),{min:x,max:T}}function t(x,T){var S=e(x,T),b=S.extent,O=T.get("splitNumber");x.type==="log"&&(x.base=T.get("logBase"));var I=x.type;x.setExtent(b[0],b[1]),x.niceExtent({splitNumber:O,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 s(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(O){return O=x.scale.getLabel(O),b.replace("{value}",O!=null?O:"")}}(T),T):typeof T=="function"?function(b,O){return S!=null&&(O=b-S),T(h(x,b),O)}: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",O,I,L=S.getExtent();b?I=S.count():(O=S.getTicks(),I=O.length);var N=x.getLabelModel(),D=u(x),R,k=1;I>40&&(k=Math.ceil(I/40));for(var M=0;M<I;M+=k){var j=O?O[M]:L[0]+M,F=D(j),U=N.getTextRect(F),K=g(U,N.get("rotate")||0);R?R.union(K):R=K}return R}function g(x,T){var S=T*Math.PI/180,b=x.plain(),O=b.width,I=b.height,L=O*Math.cos(S)+I*Math.sin(S),N=O*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=s,B.makeLabelFormatter=u,B.getAxisRawValue=h,B.estimateLabelUnionRect=p,B.getOptionCategoryInterval=v,B.shouldShowAllLabels=y},"af/B":function(H,B,d){var _=d("bYtY"),E=_.each,C=_.map,A=_.isFunction,w=_.createHashMap,m=_.noop,f=d("9H2F"),c=f.createTask,o=d("iRjW"),r=o.getUID,i=d("fmMI"),n=d("hD7B"),e=d("4NO4"),l=e.normalizeToArray;function t(F,U,K,V){this.ecInstance=F,this.api=U,this.unfinished;var K=this._dataProcessorHandlers=K.slice(),V=this._visualHandlers=V.slice();this._allHandlers=K.concat(V),this._stageTaskMap=w()}var a=t.prototype;a.restoreData=function(F,U){F.restoreData(U),this._stageTaskMap.each(function(K){var V=K.overallTask;V&&V.dirty()})},a.getPerformArgs=function(F,U){if(!F.__pipeline)return;var K=this._pipelineMap.get(F.__pipeline.id),V=K.context,z=!U&&K.progressiveEnabled&&(!V||V.progressiveRender)&&F.__idxInPipeline>K.blockIndex,Q=z?K.step:null,Z=V&&V.modDataCount,le=Z!=null?Math.ceil(Z/Q):null;return{step:Q,modBy:le,modDataCount:Z}},a.getPipeline=function(F){return this._pipelineMap.get(F)},a.updateStreamModes=function(F,U){var K=this._pipelineMap.get(F.uid),V=F.getData(),z=V.count(),Q=K.progressiveEnabled&&U.incrementalPrepareRender&&z>=K.threshold,Z=F.get("large")&&z>=F.get("largeThreshold"),le=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=K.context={progressiveRender:Q,modDataCount:le,large:Z}},a.restorePipelines=function(F){var U=this,K=U._pipelineMap=w();F.eachSeries(function(V){var z=V.getProgressive(),Q=V.uid;K.set(Q,{id:Q,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),L(U,V,V.dataTask)})},a.prepareStageTasks=function(){var F=this._stageTaskMap,U=this.ecInstance.getModel(),K=this.api;E(this._allHandlers,function(V){var z=F.get(V.uid)||F.set(V.uid,[]);V.reset&&h(this,V,z,U,K),V.overallReset&&p(this,V,z,U,K)},this)},a.prepareView=function(F,U,K,V){var z=F.renderTask,Q=z.context;Q.model=U,Q.ecModel=K,Q.api=V,z.__block=!F.incrementalPrepareRender,L(this,U,z)},a.performDataProcessorTasks=function(F,U){s(this,this._dataProcessorHandlers,F,U,{block:!0})},a.performVisualTasks=function(F,U,K){s(this,this._visualHandlers,F,U,K)};function s(F,U,K,V,z){z=z||{};var Q;E(U,function(le,ne){if(z.visualType&&z.visualType!==le.visualType)return;var ve=F._stageTaskMap.get(le.uid),xe=ve.seriesTaskMap,_e=ve.overallTask;if(_e){var Be,me=_e.agentStubMap;me.each(function(ie){Z(z,ie)&&(ie.dirty(),Be=!0)}),Be&&_e.dirty(),u(_e,V);var Fe=F.getPerformArgs(_e,z.block);me.each(function(ie){ie.perform(Fe)}),Q|=_e.perform(Fe)}else xe&&xe.each(function(ie,te){Z(z,ie)&&ie.dirty();var Ge=F.getPerformArgs(ie,z.block);Ge.skip=!le.performRawSeries&&K.isSeriesFiltered(ie.context.model),u(ie,V),Q|=ie.perform(Ge)})});function Z(le,ne){return le.setDirty&&(!le.dirtyMap||le.dirtyMap.get(ne.__pipeline.id))}F.unfinished|=Q}a.performSeriesTasks=function(F){var U;F.eachSeries(function(K){U|=K.dataTask.perform()}),this.unfinished|=U},a.plan=function(){this._pipelineMap.each(function(F){var U=F.tail;do{if(U.__block){F.blockIndex=U.__idxInPipeline;break}U=U.getUpstream()}while(U)})};var u=a.updatePayload=function(F,U){U!=="remain"&&(F.context.payload=U)};function h(F,U,K,V,z){var Q=K.seriesTaskMap||(K.seriesTaskMap=w()),Z=U.seriesType,le=U.getTargetSeries;U.createOnAllSeries?V.eachRawSeries(ne):Z?V.eachRawSeriesByType(Z,ne):le&&le(V,z).each(ne);function ne(xe){var _e=xe.uid,Be=Q.get(_e)||Q.set(_e,c({plan:T,reset:S,count:I}));Be.context={model:xe,ecModel:V,api:z,useClearVisual:U.isVisual&&!U.isLayout,plan:U.plan,reset:U.reset,scheduler:F},L(F,xe,Be)}var ve=F._pipelineMap;Q.each(function(xe,_e){ve.get(_e)||(xe.dispose(),Q.removeKey(_e))})}function p(F,U,K,V,z){var Q=K.overallTask=K.overallTask||c({reset:g});Q.context={ecModel:V,api:z,overallReset:U.overallReset,scheduler:F};var Z=Q.agentStubMap=Q.agentStubMap||w(),le=U.seriesType,ne=U.getTargetSeries,ve=!0,xe=U.modifyOutputEnd;le?V.eachRawSeriesByType(le,_e):ne?ne(V,z).each(_e):(ve=!1,E(V.getSeries(),_e));function _e(me){var Fe=me.uid,ie=Z.get(Fe);ie||(ie=Z.set(Fe,c({reset:v,onDirty:x})),Q.dirty()),ie.context={model:me,overallProgress:ve,modifyOutputEnd:xe},ie.agent=Q,ie.__block=ve,L(F,me,ie)}var Be=F._pipelineMap;Z.each(function(me,Fe){Be.get(Fe)||(me.dispose(),Q.dirty(),Z.removeKey(Fe))})}function g(F){F.overallReset(F.ecModel,F.api,F.payload)}function v(F,U){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 U=F.resetDefines=l(F.reset(F.model,F.ecModel,F.api,F.payload));return U.length>1?C(U,function(K,V){return O(V)}):b}var b=O(0);function O(F){return function(U,K){var V=K.data,z=K.resetDefines[F];if(z&&z.dataEach)for(var Q=U.start;Q<U.end;Q++)z.dataEach(V,Q);else z&&z.progress&&z.progress(U,V)}}function I(F){return F.data.count()}function L(F,U,K){var V=U.uid,z=F._pipelineMap.get(V);!z.head&&(z.head=K),z.tail&&z.tail.pipe(K),z.tail=K,K.__idxInPipeline=z.count++,K.__pipeline=z}t.wrapStageHandler=function(F,U){return A(F)&&(F={overallReset:F,seriesType:N(F)}),F.uid=r("stageHandler"),U&&(F.visualType=U),F};function N(F){k=null;try{F(D,R)}catch(U){}return k}var D={},R={},k;M(D,i),M(R,n),D.eachSeriesByType=D.eachRawSeriesByType=function(F){k=F},D.eachComponent=function(F){F.mainType==="series"&&F.subType&&(k=F.subType)};function M(F,U){for(var K in U.prototype)F[K]=m}var j=t;H.exports=j},akwb:function(H,B,d){var _=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 _(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],l=o[n];i+=A.dist(e,l),r.push(i)}if(i===0)return;for(var n=0;n<r.length;n++)r[n]/=i;this._offsets=r,this._length=i},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,l;if(o<this._lastFramePercent){var t=Math.min(e+1,n-1);for(l=t;l>=0&&!(i[l]<=o);l--);l=Math.min(l,n-2)}else{for(var l=e;l<n&&!(i[l]>o);l++);l=Math.min(l-1,n-2)}A.lerp(c.position,r[l],r[l+1],(o-i[l])/(i[l+1]-i[l]));var a=r[l+1][0]-r[l][0],s=r[l+1][1]-r[l][1];c.rotation=-Math.atan2(s,a)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=o,c.ignore=!1},E.inherits(w,C);var f=w;H.exports=f},apAg:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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,l,t,a){var s=l.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=s.polar,h=u.getOtherAxis(s),p=h.getExtent(),g;g=s["dataTo"+_.capitalFirst(s.dim)](e);var v=t.get("type");if(v&&v!=="none"){var y=A.buildElStyle(t),x=r[v](s,u,g,p,y);x.style=y,n.graphicKey=x.type,n.pointer=x}var T=t.get("label.margin"),S=o(e,l,t,u,T);A.buildLabelElOption(n,l,t,a,S)}});function o(n,e,l,t,a){var s=e.axis,u=s.dataToCoord(n),h=t.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var p=t.getRadiusAxis().getExtent(),g,v,y;if(s.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 O=t.cx,I=t.cy;v=Math.abs(g[0]-O)/b<.3?"center":g[0]>O?"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,l,t,a){return n.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([t[0],l]),e.coordToPoint([t[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(n,e,l,t,a){var s=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,t[0],t[1],(-l-s/2)*u,(-l+s/2)*u)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,l-s/2,l+s/2,0,Math.PI*2)}}};f.registerAxisPointerClass("PolarAxisPointer",c);var i=c;H.exports=i},b56q:function(H,B,d){},b80e:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("bYtY"),E=_.each,C="\0_ec_hist_store";function A(o,r){var i=c(o);E(r,function(n,e){for(var l=i.length-1;l>=0;l--){var t=i[l];if(t[e])break}if(l<0){var a=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var s=a.getPercentRange();i[0][e]={dataZoomId:e,start:s[0],end:s[1]}}}}),i.push(r)}function w(o){var r=c(o),i=r[r.length-1];r.length>1&&r.pop();var n={};return E(i,function(e,l){for(var t=r.length-1;t>=0;t--){var e=r[t][l];if(e){n[l]=e;break}}}),n}function 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 _=d("Tghj"),E=_.__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 l=new w(e.model,{position:[r.cx,r.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A.each(n,function(e){A.each(f,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var r=o.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=o.get("shape"),e=o.getModel("splitLine"),l=o.getModel("splitArea"),t=e.getModel("lineStyle"),a=l.getModel("areaStyle"),s=e.get("show"),u=l.get("show"),h=t.get("color"),p=a.get("color");h=A.isArray(h)?h:[h],p=A.isArray(p)?p:[p];var g=[],v=[];function y(j,F,U){var K=U%F.length;return j[K]=j[K]||[],K}if(n==="circle")for(var x=i[0].getTicksCoords(),T=r.cx,S=r.cy,b=0;b<x.length;b++){if(s){var O=y(g,h,b);g[O].push(new m.Circle({shape:{cx:T,cy:S,r:x[b].coord}}))}if(u&&b<x.length-1){var O=y(v,p,b);v[O].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(j,F){var U=j.getTicksCoords();return I=I==null?U.length-1:Math.min(U.length-1,I),A.map(U,function(K){return r.coordToPoint(K.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()),s){var O=y(g,h,b);g[O].push(new m.Polyline({shape:{points:D}}))}if(u&&N){var O=y(v,p,b-1);v[O].push(new m.Polygon({shape:{points:D.concat(N)}}))}N=D.slice().reverse()}var k=t.getLineStyle(),M=a.getAreaStyle();A.each(v,function(j,F){this.group.add(m.mergePath(j,{style:A.defaults({stroke:"none",fill:p[F%p.length]},M),silent:!0}))},this),A.each(g,function(j,F){this.group.add(m.mergePath(j,{style:A.defaults({fill:"none",stroke:h[F%h.length]},k),silent:!0}))},this)}});H.exports=c},bBL8:function(H,B,d){var _=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var E=d("UnoB"),C=d("cbJ4"),A=d("0/Rx");_.registerLayout(E),_.registerVisual(C),_.registerProcessor(A("themeRiver"))},bE4E:function(H,B,d){},bE4q:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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"),l=d("H84U"),t=function(N,D){var R={};for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&D.indexOf(k)<0&&(R[k]=N[k]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(N);M<k.length;M++)D.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(N,k[M])&&(R[k[M]]=N[k[M]]);return R},a=function(D){var R=D.prefixCls,k=D.separator,M=k===void 0?"/":k,j=D.children,F=D.overlay,U=D.dropdownProps,K=t(D,["prefixCls","separator","children","overlay","dropdownProps"]),V=f.useContext(l.b),z=V.getPrefixCls,Q=z("breadcrumb",R),Z=function(ve){return F?f.createElement(e.a,E()({overlay:F,placement:"bottomCenter"},U),f.createElement("span",{className:"".concat(Q,"-overlay-link")},ve,f.createElement(n.a,null))):ve},le;return"href"in K?le=f.createElement("a",E()({className:"".concat(Q,"-link")},K),j):le=f.createElement("span",E()({className:"".concat(Q,"-link")},K),j),le=Z(le),j?f.createElement("span",null,le,M&&M!==""&&f.createElement("span",{className:"".concat(Q,"-separator")},M)):null};a.__ANT_BREADCRUMB_ITEM=!0;var s=a,u=function(D){var R=D.children,k=f.useContext(l.b),M=k.getPrefixCls,j=M("breadcrumb");return f.createElement("span",{className:"".concat(j,"-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 k in N)Object.prototype.hasOwnProperty.call(N,k)&&D.indexOf(k)<0&&(R[k]=N[k]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(N);M<k.length;M++)D.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(N,k[M])&&(R[k[M]]=N[k[M]]);return R};function x(N,D){if(!N.breadcrumbName)return null;var R=Object.keys(D).join("|"),k=N.breadcrumbName.replace(new RegExp(":(".concat(R,")"),"g"),function(M,j){return D[j]||M});return k}function T(N,D,R,k){var M=R.indexOf(N)===R.length-1,j=x(N,D);return M?f.createElement("span",null,j):f.createElement("a",{href:"#/".concat(k.join("/"))},j)}var S=function(D,R){return D=(D||"").replace(/^\//,""),Object.keys(R).forEach(function(k){D=D.replace(":".concat(k),R[k])}),D},b=function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",k=arguments.length>2?arguments[2]:void 0,M=m()(D),j=S(R,k);return j&&M.push(j),M},O=function(D){var R=D.prefixCls,k=D.separator,M=k===void 0?"/":k,j=D.style,F=D.className,U=D.routes,K=D.children,V=D.itemRender,z=V===void 0?T:V,Q=D.params,Z=Q===void 0?{}:Q,le=y(D,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ne=f.useContext(l.b),ve=ne.getPrefixCls,xe=ne.direction,_e,Be=ve("breadcrumb",R);if(U&&U.length>0){var me=[];_e=U.map(function(ie){var te=S(ie.path,Z);te&&me.push(te);var Ge;return ie.children&&ie.children.length&&(Ge=f.createElement(p.a,null,ie.children.map(function(oe){return f.createElement(p.a.Item,{key:oe.path||oe.breadcrumbName},z(oe,Z,U,b(me,oe.path,Z)))}))),f.createElement(s,{overlay:Ge,separator:M,key:te||ie.breadcrumbName},z(ie,Z,U,me))})}else K&&(_e=Object(r.a)(K).map(function(ie,te){return ie&&(Object(g.a)(ie.type&&(ie.type.__ANT_BREADCRUMB_ITEM===!0||ie.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(v.a)(ie,{separator:M,key:te}))}));var Fe=o()(F,Be,A()({},"".concat(Be,"-rtl"),xe==="rtl"));return f.createElement("div",E()({className:Fe,style:j},le),_e)};O.Item=s,O.Separator=h;var I=O,L=B.a=I},bKJz:function(H,B,d){},bLfw:function(H,B,d){var _=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,s,u){E.call(this,t,a,s,u),this.uid=C.getUID("ec_cpt_model")},init:function(t,a,s,u){this.mergeDefaultAndTheme(t,s)},mergeDefaultAndTheme:function(t,a){var s=this.layoutMode,u=s?o.getLayoutParams(t):{},h=a.getTheme();_.merge(t,h.get(this.mainType)),_.merge(t,this.getDefaultOption()),s&&o.mergeLayoutParam(t,u,s)},mergeOption:function(t,a){_.merge(this.option,t,!0);var s=this.layoutMode;s&&o.mergeLayoutParam(this.option,t,s)},optionUpdated:function(t,a){},getDefaultOption:function(){var t=i(this);if(!t.defaultOption){for(var a=[],s=this.constructor;s;){var u=s.prototype.defaultOption;u&&a.push(u),s=s.superClass}for(var h={},p=a.length-1;p>=0;p--)h=_.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 _.each(n.getClassesByMainType(t),function(s){a=a.concat(s.prototype.dependencies||[])}),a=_.map(a,function(s){return m(s).main}),t!=="dataset"&&_.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}_.mixin(n,r);var l=n;H.exports=l},bMXI:function(H,B,d){var _=d("bYtY"),E=d("QBsz"),C=d("Fofx"),A=d("mFDi"),w=d("DN4a"),m=E.applyTransform;function f(){w.call(this)}_.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,l){return this._rect=new A(i,n,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(i,n,e,l){this.transformTo(i,n,e,l),this._viewRect=new A(i,n,e,l)},transformTo:function(i,n,e,l){var t=this.getBoundingRect(),a=this._rawTransformable;a.transform=t.calculateTransform(new A(i,n,e,l)),a.decomposeTransform(),this._updateTransform()},setCenter:function(i){if(!i)return;this._center=i,this._updateCenterAndZoom()},setZoom:function(i){i=i||1;var n=this.zoomLimit;n&&(n.max!=null&&(i=Math.min(n.max,i)),n.min!=null&&(i=Math.max(n.min,i))),this._zoom=i,this._updateCenterAndZoom()},getDefaultCenter:function(){var i=this.getBoundingRect(),n=i.x+i.width/2,e=i.y+i.height/2;return[n,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var i=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),t=this.getZoom();l=E.applyTransform([],l,i),e=E.applyTransform([],e,i),n.origin=l,n.position=[e[0]-l[0],e[1]-l[1]],n.scale=[t,t],this._updateTransform()},_updateTransform:function(){var i=this._roamTransformable,n=this._rawTransformable;n.parent=i,i.updateTransform(),n.updateTransform(),C.copy(this.transform||(this.transform=[]),n.transform||C.create()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],C.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var i=this._roamTransformable.transform,n=this._rawTransformable;return{roamTransform:i?_.slice(i):C.create(),rawScale:_.slice(n.scale),rawPosition:_.slice(n.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var i=this.getBoundingRect().clone();return i.applyTransform(this.transform),i},dataToPoint:function(i,n,e){var l=n?this._rawTransform:this.transform;return e=e||[],l?m(e,i,l):E.copy(e,i)},pointToData:function(i){var n=this.invTransform;return n?m([],i,n):[i[0],i[1]]},convertToPixel:_.curry(o,"dataToPoint"),convertFromPixel:_.curry(o,"pointToData"),containPoint:function(i){return this.getViewRectAfterRoam().contain(i[0],i[1])}},_.mixin(c,w);function o(i,n,e,l){var t=e.seriesModel,a=t?t.coordinateSystem:null;return a===this?a[i](l):null}var r=c;H.exports=r},bNin:function(H,B,d){var _=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"),l=e.__DEV__,t=d("OELB"),a=t.parsePercent,s=E.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(T,S){var b=S.childPoints,O=b.length,I=S.parentPoint,L=b[0],N=b[O-1];if(O===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,k=1-R,M=a(S.forkPosition,1),j=[];j[R]=I[R],j[k]=I[k]+(N[k]-I[k])*M,T.moveTo(I[0],I[1]),T.lineTo(j[0],j[1]),T.moveTo(L[0],L[1]),j[R]=L[R],T.lineTo(j[0],j[1]),j[R]=N[R],T.lineTo(j[0],j[1]),T.lineTo(N[0],N[1]);for(var F=1;F<O-1;F++){var U=b[F];T.moveTo(U[0],U[1]),j[R]=U[R],T.lineTo(j[0],j[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,O){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,k={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,k)}).update(function(M,j){var F=R.getItemGraphicEl(j);if(!h(I,M)){F&&y(R,j,F,N,T,k);return}g(I,M,F,N,T,k)}).remove(function(M){var j=R.getItemGraphicEl(M);j&&y(R,M,j,N,T,k)}).execute(),this._nodeScaleRatio=T.get("nodeScaleRatio"),this._updateNodeAndLinkScale(T),k.expandAndCollapse===!0&&I.eachItemGraphicEl(function(M,j){M.off("click").on("click",function(){b.dispatchAction({type:"treeExpandAndCollapse",seriesId:T.id,dataIndex:j})})}),this._data=I},_updateViewCoordSys:function(T){var S=T.getData(),b=[];S.each(function(R){var k=S.getItemLayout(R);k&&!isNaN(k.x)&&!isNaN(k.y)&&b.push([+k.x,+k.y])});var O=[],I=[];f.fromPoints(b,O,I);var L=this._min,N=this._max;I[0]-O[0]===0&&(O[0]=L?L[0]:O[0]-1,I[0]=N?N[0]:I[0]+1),I[1]-O[1]===0&&(O[1]=L?L[1]:O[1]-1,I[1]=N?N[1]:I[1]+1);var D=T.coordinateSystem=new c;D.zoomLimit=T.get("scaleLimit"),D.setBoundingRect(O[0],O[1],I[0]-O[0],I[1]-O[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=O,this._max=I},_updateController:function(T,S,b){var O=this._controller,I=this._controllerHost,L=this.group;O.setPointerChecker(function(N,D,R){var k=L.getBoundingRect();return k.applyTransform(L.transform),k.contain(D,R)&&!n(N,b,T)}),O.enable(T.get("roam")),I.zoomLimit=T.get("scaleLimit"),I.zoom=T.coordinateSystem.getZoom(),O.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),O=[b,b];S.eachItemGraphicEl(function(I,L){I.attr("scale",O)})},_getNodeGlobalScale:function(T){var S=T.coordinateSystem;if(S.type!=="view")return 1;var b=this._nodeScaleRatio,O=S.scale,I=O&&O[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,O,I,L){var N=!b,D=T.tree.getNodeByDataIndex(S),R=D.getModel(),L=p(D,R,L),k=T.tree.root,M=D.parentNode===k?D:D.parentNode||D,j=T.getItemGraphicEl(M.dataIndex),F=M.getLayout(),U=j?{x:j.position[0],y:j.position[1],rawX:j.__radialOldRawX,rawY:j.__radialOldRawY}:F,K=D.getLayout();N?(b=new C(T,S,L),b.attr("position",[U.x,U.y])):b.updateData(T,S,L),b.__radialOldRawX=b.__radialRawX,b.__radialOldRawY=b.__radialRawY,b.__radialRawX=K.rawX,b.__radialRawY=K.rawY,O.add(b),T.setItemGraphicEl(S,b),E.updateProps(b,{position:[K.x,K.y]},I);var V=b.getSymbolPath();if(L.layout==="radial"){var z=k.children[0],Q=z.getLayout(),Z=z.children.length,le,ne;if(K.x===Q.x&&D.isExpand===!0){var ve={};ve.x=(z.children[0].getLayout().x+z.children[Z-1].getLayout().x)/2,ve.y=(z.children[0].getLayout().y+z.children[Z-1].getLayout().y)/2,le=Math.atan2(ve.y-Q.y,ve.x-Q.x),le<0&&(le=Math.PI*2+le),ne=ve.x<Q.x,ne&&(le=le-Math.PI)}else le=Math.atan2(K.y-Q.y,K.x-Q.x),le<0&&(le=Math.PI*2+le),D.children.length===0||D.children.length!==0&&D.isExpand===!1?(ne=K.x<Q.x,ne&&(le=le-Math.PI)):(ne=K.x>Q.x,ne||(le=le-Math.PI));var xe=ne?"left":"right",_e=L.labelModel.get("rotate"),Be=_e*(Math.PI/180);V.setStyle({textPosition:L.labelModel.get("position")||xe,textRotation:_e==null?-le:Be,textOrigin:"center",verticalAlign:"middle"})}v(I,D,k,b,U,F,K,O,L)}function v(T,S,b,O,I,L,N,D,R){var k=R.edgeShape,M=O.__edge;if(k==="curve")S.parentNode&&S.parentNode!==b&&(M||(M=O.__edge=new E.BezierCurve({shape:x(R,I,I),style:_.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),E.updateProps(M,{shape:x(R,L,N),style:{opacity:1}},T));else if(k==="polyline"&&(R.layout==="orthogonal"&&(S!==b&&S.children&&S.children.length!==0&&S.isExpand===!0))){for(var j=S.children,F=[],U=0;U<j.length;U++){var K=j[U].getLayout();F.push([K.x,K.y])}M||(M=O.__edge=new s({shape:{parentPoint:[N.x,N.y],childPoints:[[N.x,N.y]],orient:R.orient,forkPosition:R.edgeForkPosition},style:_.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,O,I,L){for(var N=T.tree.getNodeByDataIndex(S),D=T.tree.root,R=N.getModel(),L=p(N,R,L),k=N.parentNode===D?N:N.parentNode||N,M=L.edgeShape,j;j=k.getLayout(),j==null;)k=k.parentNode===D?k:k.parentNode||k;E.updateProps(b,{position:[j.x+1,j.y+1]},I,function(){O.remove(b),T.setItemGraphicEl(S,null)}),b.fadeOut(null,{keepLabel:!0});var F=T.getItemGraphicEl(k.dataIndex),U=F.__edge,K=b.__edge||(k.isExpand===!1||k.children.length===1?U:void 0),M=L.edgeShape;K&&(M==="curve"?E.updateProps(K,{shape:x(L,j,j),style:{opacity:0}},I,function(){O.remove(K)}):M==="polyline"&&L.layout==="orthogonal"&&E.updateProps(K,{shape:{parentPoint:[j.x,j.y],childPoints:[[j.x,j.y]]},style:{opacity:0}},I,function(){O.remove(K)}))}function x(T,S,b){var O,I,L,N,D=T.orient,R,k,M,j;if(T.layout==="radial"){R=S.rawX,M=S.rawY,k=b.rawX,j=b.rawY;var F=w(R,M),U=w(R,M+(j-M)*T.curvature),K=w(k,j+(M-j)*T.curvature),V=w(k,j);return{x1:F.x,y1:F.y,x2:V.x,y2:V.y,cpx1:U.x,cpy1:U.y,cpx2:K.x,cpy2:K.y}}else R=S.x,M=S.y,k=b.x,j=b.y,(D==="LR"||D==="RL")&&(O=R+(k-R)*T.curvature,I=M,L=k+(R-k)*T.curvature,N=j),(D==="TB"||D==="BT")&&(O=R,I=M+(j-M)*T.curvature,L=k,N=j+(M-j)*T.curvature);return{x1:R,y1:M,x2:k,y2:j,cpx1:O,cpy1:I,cpx2:L,cpy2:N}}H.exports=u},bQjk:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return function(E){var C=_,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})}}}(),_.format.Hex})},bT9E:function(H,B,d){"use strict";d.d(B,"a",function(){return E});var _=d("VTBJ");function E(C,A){var w=Object(_.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 _=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(_.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},_={"[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(ie,te){ie==="createCanvas"&&(s=null),o[ie]=te}function i(ie){if(ie==null||typeof ie!="object")return ie;var te=ie,Ge=E.call(ie);if(Ge==="[object Array]"){if(!xe(ie)){te=[];for(var oe=0,Y=ie.length;oe<Y;oe++)te[oe]=i(ie[oe])}}else if(_[Ge]){if(!xe(ie)){var G=ie.constructor;if(ie.constructor.from)te=G.from(ie);else{te=new G(ie.length);for(var oe=0,Y=ie.length;oe<Y;oe++)te[oe]=i(ie[oe])}}}else if(!d[Ge]&&!xe(ie)&&!j(ie)){te={};for(var X in ie)ie.hasOwnProperty(X)&&(te[X]=i(ie[X]))}return te}function n(ie,te,Ge){if(!R(te)||!R(ie))return Ge?i(te):ie;for(var oe in te)if(te.hasOwnProperty(oe)){var Y=ie[oe],G=te[oe];R(G)&&R(Y)&&!L(G)&&!L(Y)&&!j(G)&&!j(Y)&&!k(G)&&!k(Y)&&!xe(G)&&!xe(Y)?n(Y,G,Ge):(Ge||!(oe in ie))&&(ie[oe]=i(te[oe],!0))}return ie}function e(ie,te){for(var Ge=ie[0],oe=1,Y=ie.length;oe<Y;oe++)Ge=n(Ge,ie[oe],te);return Ge}function l(ie,te){for(var Ge in te)te.hasOwnProperty(Ge)&&(ie[Ge]=te[Ge]);return ie}function t(ie,te,Ge){for(var oe in te)te.hasOwnProperty(oe)&&(Ge?te[oe]!=null:ie[oe]==null)&&(ie[oe]=te[oe]);return ie}var a=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var s;function u(){return s||(s=a().getContext("2d")),s}function h(ie,te){if(ie){if(ie.indexOf)return ie.indexOf(te);for(var Ge=0,oe=ie.length;Ge<oe;Ge++)if(ie[Ge]===te)return Ge}return-1}function p(ie,te){var Ge=ie.prototype;function oe(){}oe.prototype=te.prototype,ie.prototype=new oe;for(var Y in Ge)Ge.hasOwnProperty(Y)&&(ie.prototype[Y]=Ge[Y]);ie.prototype.constructor=ie,ie.superClass=te}function g(ie,te,Ge){ie="prototype"in ie?ie.prototype:ie,te="prototype"in te?te.prototype:te,t(ie,te,Ge)}function v(ie){return ie?typeof ie=="string"?!1:typeof ie.length=="number":void 0}function y(ie,te,Ge){if(!(ie&&te))return;if(ie.forEach&&ie.forEach===A)ie.forEach(te,Ge);else if(ie.length===+ie.length)for(var oe=0,Y=ie.length;oe<Y;oe++)te.call(Ge,ie[oe],oe,ie);else for(var G in ie)ie.hasOwnProperty(G)&&te.call(Ge,ie[G],G,ie)}function x(ie,te,Ge){if(!(ie&&te))return;if(ie.map&&ie.map===f)return ie.map(te,Ge);for(var oe=[],Y=0,G=ie.length;Y<G;Y++)oe.push(te.call(Ge,ie[Y],Y,ie));return oe}function T(ie,te,Ge,oe){if(!(ie&&te))return;if(ie.reduce&&ie.reduce===c)return ie.reduce(te,Ge,oe);for(var Y=0,G=ie.length;Y<G;Y++)Ge=te.call(oe,Ge,ie[Y],Y,ie);return Ge}function S(ie,te,Ge){if(!(ie&&te))return;if(ie.filter&&ie.filter===w)return ie.filter(te,Ge);for(var oe=[],Y=0,G=ie.length;Y<G;Y++)te.call(Ge,ie[Y],Y,ie)&&oe.push(ie[Y]);return oe}function b(ie,te,Ge){if(!(ie&&te))return;for(var oe=0,Y=ie.length;oe<Y;oe++)if(te.call(Ge,ie[oe],oe,ie))return ie[oe]}function O(ie,te){var Ge=m.call(arguments,2);return function(){return ie.apply(te,Ge.concat(m.call(arguments)))}}function I(ie){var te=m.call(arguments,1);return function(){return ie.apply(this,te.concat(m.call(arguments)))}}function L(ie){return E.call(ie)==="[object Array]"}function N(ie){return typeof ie=="function"}function D(ie){return E.call(ie)==="[object String]"}function R(ie){var te=typeof ie;return te==="function"||!!ie&&te==="object"}function k(ie){return!!d[E.call(ie)]}function M(ie){return!!_[E.call(ie)]}function j(ie){return typeof ie=="object"&&typeof ie.nodeType=="number"&&typeof ie.ownerDocument=="object"}function F(ie){return ie!==ie}function U(ie){for(var te=0,Ge=arguments.length;te<Ge;te++)if(arguments[te]!=null)return arguments[te]}function K(ie,te){return ie!=null?ie:te}function V(ie,te,Ge){return ie!=null?ie:te!=null?te:Ge}function z(){return Function.call.apply(m,arguments)}function Q(ie){if(typeof ie=="number")return[ie,ie,ie,ie];var te=ie.length;return te===2?[ie[0],ie[1],ie[0],ie[1]]:te===3?[ie[0],ie[1],ie[2],ie[1]]:ie}function Z(ie,te){if(!ie)throw new Error(te)}function le(ie){return ie==null?null:typeof ie.trim=="function"?ie.trim():ie.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ne="__ec_primitive__";function ve(ie){ie[ne]=!0}function xe(ie){return ie[ne]}function _e(ie){var te=L(ie);this.data={};var Ge=this;ie instanceof _e?ie.each(oe):ie&&y(ie,oe);function oe(Y,G){te?Ge.set(Y,G):Ge.set(G,Y)}}_e.prototype={constructor:_e,get:function(te){return this.data.hasOwnProperty(te)?this.data[te]:null},set:function(te,Ge){return this.data[te]=Ge},each:function(te,Ge){Ge!==void 0&&(te=O(te,Ge));for(var oe in this.data)this.data.hasOwnProperty(oe)&&te(this.data[oe],oe)},removeKey:function(te){delete this.data[te]}};function Be(ie){return new _e(ie)}function me(ie,te){for(var Ge=new ie.constructor(ie.length+te.length),oe=0;oe<ie.length;oe++)Ge[oe]=ie[oe];var Y=ie.length;for(oe=0;oe<te.length;oe++)Ge[oe+Y]=te[oe];return Ge}function Fe(){}B.$override=r,B.clone=i,B.merge=n,B.mergeAll=e,B.extend=l,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=O,B.curry=I,B.isArray=L,B.isFunction=N,B.isString=D,B.isObject=R,B.isBuiltInObject=k,B.isTypedArray=M,B.isDom=j,B.eqNaN=F,B.retrieve=U,B.retrieve2=K,B.retrieve3=V,B.slice=z,B.normalizeCssArray=Q,B.assert=Z,B.trim=le,B.setAsPrimitive=ve,B.isPrimitive=xe,B.createHashMap=Be,B.concatArray=me,B.noop=Fe},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 _(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=_},bahg:function(H,B){function d(_){return _.split("")}H.exports=d},bbsP:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("CWI+"),A=d.n(C)},bogI:function(H,B,d){"use strict";d.d(B,"a",function(){return _});var _=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 _={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=_},bx4M:function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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 O=0,b=Object.getOwnPropertySymbols(x);O<b.length;O++)T.indexOf(b[O])<0&&Object.prototype.propertyIsEnumerable.call(x,b[O])&&(S[b[O]]=x[b[O]]);return S},i=function(T){return w.createElement(o.a,null,function(S){var b=S.getPrefixCls,O=T.prefixCls,I=T.className,L=T.hoverable,N=L===void 0?!0:L,D=r(T,["prefixCls","className","hoverable"]),R=b("card",O),k=f()("".concat(R,"-grid"),I,E()({},"".concat(R,"-grid-hoverable"),N));return w.createElement("div",A()({},D,{className:k}))})},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 O=0,b=Object.getOwnPropertySymbols(x);O<b.length;O++)T.indexOf(b[O])<0&&Object.prototype.propertyIsEnumerable.call(x,b[O])&&(S[b[O]]=x[b[O]]);return S},l=function(T){return w.createElement(o.a,null,function(S){var b=S.getPrefixCls,O=T.prefixCls,I=T.className,L=T.avatar,N=T.title,D=T.description,R=e(T,["prefixCls","className","avatar","title","description"]),k=b("card",O),M=f()("".concat(k,"-meta"),I),j=L?w.createElement("div",{className:"".concat(k,"-meta-avatar")},L):null,F=N?w.createElement("div",{className:"".concat(k,"-meta-title")},N):null,U=D?w.createElement("div",{className:"".concat(k,"-meta-description")},D):null,K=F||U?w.createElement("div",{className:"".concat(k,"-meta-detail")},F,U):null;return w.createElement("div",A()({},R,{className:M}),j,K)})},t=l,a=d("ZTPi"),s=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 O=0,b=Object.getOwnPropertySymbols(x);O<b.length;O++)T.indexOf(b[O])<0&&Object.prototype.propertyIsEnumerable.call(x,b[O])&&(S[b[O]]=x[b[O]]);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,O=w.useContext(o.b),I=O.getPrefixCls,L=O.direction,N=w.useContext(h.b),D=function(Ut){T.onTabChange&&T.onTabChange(Ut)},R=function(){var Ut;return w.Children.forEach(T.children,function(Bt){Bt&&Bt.type&&Bt.type===n&&(Ut=!0)}),Ut},k=T.prefixCls,M=T.className,j=T.extra,F=T.headStyle,U=F===void 0?{}:F,K=T.bodyStyle,V=K===void 0?{}:K,z=T.title,Q=T.loading,Z=T.bordered,le=Z===void 0?!0:Z,ne=T.size,ve=T.type,xe=T.cover,_e=T.actions,Be=T.tabList,me=T.children,Fe=T.activeTabKey,ie=T.defaultActiveTabKey,te=T.tabBarExtraContent,Ge=T.hoverable,oe=T.tabProps,Y=oe===void 0?{}:oe,G=p(T,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),X=I("card",k),fe=V.padding===0||V.padding==="0px"?{padding:24}:void 0,de=w.createElement("div",{className:"".concat(X,"-loading-block")}),Ce=w.createElement("div",{className:"".concat(X,"-loading-content"),style:fe},w.createElement(s.a,{gutter:8},w.createElement(u.a,{span:22},de)),w.createElement(s.a,{gutter:8},w.createElement(u.a,{span:8},de),w.createElement(u.a,{span:15},de)),w.createElement(s.a,{gutter:8},w.createElement(u.a,{span:6},de),w.createElement(u.a,{span:18},de)),w.createElement(s.a,{gutter:8},w.createElement(u.a,{span:13},de),w.createElement(u.a,{span:9},de)),w.createElement(s.a,{gutter:8},w.createElement(u.a,{span:4},de),w.createElement(u.a,{span:3},de),w.createElement(u.a,{span:16},de))),Me=Fe!==void 0,ue=A()(A()({},Y),(S={},E()(S,Me?"activeKey":"defaultActiveKey",Me?Fe:ie),E()(S,"tabBarExtraContent",te),S)),Ae,Te=Be&&Be.length?w.createElement(a.a,A()({size:"large"},ue,{className:"".concat(X,"-head-tabs"),onChange:D}),Be.map(function(Et){return w.createElement(a.a.TabPane,{tab:Et.tab,disabled:Et.disabled,key:Et.key})})):null;(z||j||Te)&&(Ae=w.createElement("div",{className:"".concat(X,"-head"),style:U},w.createElement("div",{className:"".concat(X,"-head-wrapper")},z&&w.createElement("div",{className:"".concat(X,"-head-title")},z),j&&w.createElement("div",{className:"".concat(X,"-extra")},j)),Te));var Je=xe?w.createElement("div",{className:"".concat(X,"-cover")},xe):null,At=w.createElement("div",{className:"".concat(X,"-body"),style:V},Q?Ce:me),qe=_e&&_e.length?w.createElement("ul",{className:"".concat(X,"-actions")},g(_e)):null,Re=Object(c.default)(G,["onTabChange"]),Lt=ne||N,$e=f()(X,M,(b={},E()(b,"".concat(X,"-loading"),Q),E()(b,"".concat(X,"-bordered"),le),E()(b,"".concat(X,"-hoverable"),Ge),E()(b,"".concat(X,"-contain-grid"),R()),E()(b,"".concat(X,"-contain-tabs"),Be&&Be.length),E()(b,"".concat(X,"-").concat(Lt),Lt),E()(b,"".concat(X,"-type-").concat(ve),!!ve),E()(b,"".concat(X,"-rtl"),L==="rtl"),b));return w.createElement("div",A()({},Re,{className:$e}),Ae,Je,At,qe)};v.Grid=n,v.Meta=t;var y=B.a=v},c2i1:function(H,B,d){var _=d("Tghj"),E=_.__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,l){e=e==null?""+l:""+e;var t=this._nodesMap;if(t[m(e)])return;var a=new o(e,l);return a.hostGraph=this,this.nodes.push(a),t[m(e)]=a,a},c.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},c.getNodeById=function(e){return this._nodesMap[m(e)]},c.addEdge=function(e,l,t){var a=this._nodesMap,s=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),o.isInstance(e)||(e=a[m(e)]),o.isInstance(l)||(l=a[m(l)]),!e||!l)return;var u=e.id+"-"+l.id;if(s[u])return;var h=new r(e,l,t);return h.hostGraph=this,this._directed&&(e.outEdges.push(h),l.inEdges.push(h)),e.edges.push(h),e!==l&&l.edges.push(h),this.edges.push(h),s[u]=h,h},c.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},c.getEdge=function(e,l){o.isInstance(e)&&(e=e.id),o.isInstance(l)&&(l=l.id);var t=this._edgesMap;return this._directed?t[e+"-"+l]:t[e+"-"+l]||t[l+"-"+e]},c.eachNode=function(e,l){for(var t=this.nodes,a=t.length,s=0;s<a;s++)t[s].dataIndex>=0&&e.call(l,t[s],s)},c.eachEdge=function(e,l){for(var t=this.edges,a=t.length,s=0;s<a;s++)t[s].dataIndex>=0&&t[s].node1.dataIndex>=0&&t[s].node2.dataIndex>=0&&e.call(l,t[s],s)},c.breadthFirstTraverse=function(e,l,t,a){if(o.isInstance(l)||(l=this._nodesMap[m(l)]),!l)return;for(var s=t==="out"?"outEdges":t==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(e.call(a,l,null))return;for(var h=[l];h.length;)for(var p=h.shift(),g=p[s],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,l=this.edgeData,t=this.nodes,a=this.edges,s=0,u=t.length;s<u;s++)t[s].dataIndex=-1;for(var s=0,u=e.count();s<u;s++)t[e.getRawIndex(s)].dataIndex=s;l.filterSelf(function(h){var p=a[l.getRawIndex(h)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var s=0,u=a.length;s<u;s++)a[s].dataIndex=-1;for(var s=0,u=l.count();s<u;s++)a[l.getRawIndex(s)].dataIndex=s},c.clone=function(){for(var e=new f(this._directed),l=this.nodes,t=this.edges,a=0;a<l.length;a++)e.addNode(l[a].id,l[a].dataIndex);for(var a=0;a<t.length;a++){var s=t[a];e.addEdge(s.node1.id,s.node2.id,s.dataIndex)}return e};function o(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,t=l.data.getItemModel(this.dataIndex);return t.getModel(e)}};function r(e,l,t){this.node1=e,this.node2=l,this.dataIndex=t==null?-1:t}r.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,t=l.edgeData.getItemModel(this.dataIndex);return t.getModel(e)};var i=function(e,l){return{getValue:function(t){var a=this[e][l];return a.get(a.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,t,a)},getVisual:function(t,a){return this[e][l].getItemVisual(this.dataIndex,t,a)},setLayout:function(t,a){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[e][l].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][l].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][l].getRawIndex(this.dataIndex)}}};C.mixin(o,i("hostGraph","data")),C.mixin(r,i("hostGraph","edgeData")),f.Node=o,f.Edge=r,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 l});var _=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 s(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),s(v,"".concat(h).concat(y," > "))})}s(t)}function o(t){function a(s){var u=Object(A.a)(s);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]:[],s=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(_.a)(g?g.isStart:[]),[y===0]),isEnd:[].concat(Object(_.a)(g?g.isEnd:[]),[y===p.length-1])});return u.push(S),a===!0||s.has(T)?S.children=h(v.children||[],S):S.children=[],S})}return h(t),u}function i(t,a,s){var u;s?typeof s=="string"?u=function(g){return g[s]}:typeof s=="function"&&(u=function(g){return s(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,O){h(b,O,{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]:{},s=a.initWrapper,u=a.processEntity,h=a.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,g={},v={},y={posEntities:g,keyEntities:v};return s&&(y=s(y)||y),i(t,function(x){var T=x.node,S=x.index,b=x.pos,O=x.key,I=x.parentPos,L=x.level,N={node:T,index:S,key:O,pos:b,level:L},D=f(O,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 s=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:s.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 l(t){var a=t.data,s=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,O=Object(E.a)(Object(E.a)({},a),{},{expanded:s,selected:u,checked:h,loaded:p,loading:g,halfChecked:v,dragOver:y,dragOverGapTop:x,dragOverGapBottom:T,pos:S,active:b});return"props"in O||Object.defineProperty(O,"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}}),O}},c5Ni:function(H,B,d){},c5fP:function(H,B,d){"use strict";function _($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Ut){return typeof Ut}:_=function(Ut){return Ut&&typeof Symbol=="function"&&Ut.constructor===Symbol&&Ut!==Symbol.prototype?"symbol":typeof Ut},_($e)}Object.defineProperty(B,"__esModule",{value:!0}),B._tr_init=Je,B._tr_stored_block=At,B._tr_flush_block=Re,B._tr_tally=Lt,B._tr_align=qe;var E=A(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var $e=new WeakMap;return C=function(){return $e},$e}function A($e){if($e&&$e.__esModule)return $e;if($e===null||_($e)!=="object"&&typeof $e!="function")return{default:$e};var Et=C();if(Et&&Et.has($e))return Et.get($e);var Ut={},Bt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _t in $e)if(Object.prototype.hasOwnProperty.call($e,_t)){var jt=Bt?Object.getOwnPropertyDescriptor($e,_t):null;jt&&(jt.get||jt.set)?Object.defineProperty(Ut,_t,jt):Ut[_t]=$e[_t]}return Ut.default=$e,Et&&Et.set($e,Ut),Ut}var w=4,m=0,f=1,c=2;function o($e){for(var Et=$e.length;--Et>=0;)$e[Et]=0}var r=0,i=1,n=2,e=3,l=258,t=29,a=256,s=a+1+t,u=30,h=19,p=2*s+1,g=15,v=16,y=7,x=256,T=16,S=17,b=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],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((s+2)*2);o(R);var k=new Array(u*2);o(k);var M=new Array(D);o(M);var j=new Array(l-e+1);o(j);var F=new Array(t);o(F);var U=new Array(u);o(U);function K($e,Et,Ut,Bt,_t){this.static_tree=$e,this.extra_bits=Et,this.extra_base=Ut,this.elems=Bt,this.max_length=_t,this.has_stree=$e&&$e.length}var V,z,Q;function Z($e,Et){this.dyn_tree=$e,this.max_code=0,this.stat_desc=Et}function le($e){return $e<256?M[$e]:M[256+($e>>>7)]}function ne($e,Et){$e.pending_buf[$e.pending++]=Et&255,$e.pending_buf[$e.pending++]=Et>>>8&255}function ve($e,Et,Ut){$e.bi_valid>v-Ut?($e.bi_buf|=Et<<$e.bi_valid&65535,ne($e,$e.bi_buf),$e.bi_buf=Et>>v-$e.bi_valid,$e.bi_valid+=Ut-v):($e.bi_buf|=Et<<$e.bi_valid&65535,$e.bi_valid+=Ut)}function xe($e,Et,Ut){ve($e,Ut[Et*2],Ut[Et*2+1])}function _e($e,Et){var Ut=0;do Ut|=$e&1,$e>>>=1,Ut<<=1;while(--Et>0);return Ut>>>1}function Be($e){$e.bi_valid===16?(ne($e,$e.bi_buf),$e.bi_buf=0,$e.bi_valid=0):$e.bi_valid>=8&&($e.pending_buf[$e.pending++]=$e.bi_buf&255,$e.bi_buf>>=8,$e.bi_valid-=8)}function me($e,Et){var Ut=Et.dyn_tree,Bt=Et.max_code,_t=Et.stat_desc.static_tree,jt=Et.stat_desc.has_stree,He=Et.stat_desc.extra_bits,se=Et.stat_desc.extra_base,J=Et.stat_desc.max_length,Ue,Le,ee,ct,Mt,ot,Yt=0;for(ct=0;ct<=g;ct++)$e.bl_count[ct]=0;for(Ut[$e.heap[$e.heap_max]*2+1]=0,Ue=$e.heap_max+1;Ue<p;Ue++){if(Le=$e.heap[Ue],ct=Ut[Ut[Le*2+1]*2+1]+1,ct>J&&(ct=J,Yt++),Ut[Le*2+1]=ct,Le>Bt)continue;$e.bl_count[ct]++,Mt=0,Le>=se&&(Mt=He[Le-se]),ot=Ut[Le*2],$e.opt_len+=ot*(ct+Mt),jt&&($e.static_len+=ot*(_t[Le*2+1]+Mt))}if(Yt===0)return;do{for(ct=J-1;$e.bl_count[ct]===0;)ct--;$e.bl_count[ct]--,$e.bl_count[ct+1]+=2,$e.bl_count[J]--,Yt-=2}while(Yt>0);for(ct=J;ct!==0;ct--)for(Le=$e.bl_count[ct];Le!==0;){if(ee=$e.heap[--Ue],ee>Bt)continue;Ut[ee*2+1]!==ct&&($e.opt_len+=(ct-Ut[ee*2+1])*Ut[ee*2],Ut[ee*2+1]=ct),Le--}}function Fe($e,Et,Ut){var Bt=new Array(g+1),_t=0,jt,He;for(jt=1;jt<=g;jt++)Bt[jt]=_t=_t+Ut[jt-1]<<1;for(He=0;He<=Et;He++){var se=$e[He*2+1];if(se===0)continue;$e[He*2]=_e(Bt[se]++,se)}}function ie(){var $e,Et,Ut,Bt,_t,jt=new Array(g+1);for(Ut=0,Bt=0;Bt<t-1;Bt++)for(F[Bt]=Ut,$e=0;$e<1<<O[Bt];$e++)j[Ut++]=Bt;for(j[Ut-1]=Bt,_t=0,Bt=0;Bt<16;Bt++)for(U[Bt]=_t,$e=0;$e<1<<I[Bt];$e++)M[_t++]=Bt;for(_t>>=7;Bt<u;Bt++)for(U[Bt]=_t<<7,$e=0;$e<1<<I[Bt]-7;$e++)M[256+_t++]=Bt;for(Et=0;Et<=g;Et++)jt[Et]=0;for($e=0;$e<=143;)R[$e*2+1]=8,$e++,jt[8]++;for(;$e<=255;)R[$e*2+1]=9,$e++,jt[9]++;for(;$e<=279;)R[$e*2+1]=7,$e++,jt[7]++;for(;$e<=287;)R[$e*2+1]=8,$e++,jt[8]++;for(Fe(R,s+1,jt),$e=0;$e<u;$e++)k[$e*2+1]=5,k[$e*2]=_e($e,5);V=new K(R,O,a+1,s,g),z=new K(k,I,0,u,g),Q=new K(new Array(0),L,0,h,y)}function te($e){var Et;for(Et=0;Et<s;Et++)$e.dyn_ltree[Et*2]=0;for(Et=0;Et<u;Et++)$e.dyn_dtree[Et*2]=0;for(Et=0;Et<h;Et++)$e.bl_tree[Et*2]=0;$e.dyn_ltree[x*2]=1,$e.opt_len=$e.static_len=0,$e.last_lit=$e.matches=0}function Ge($e){$e.bi_valid>8?ne($e,$e.bi_buf):$e.bi_valid>0&&($e.pending_buf[$e.pending++]=$e.bi_buf),$e.bi_buf=0,$e.bi_valid=0}function oe($e,Et,Ut,Bt){Ge($e),Bt&&(ne($e,Ut),ne($e,~Ut)),E.arraySet($e.pending_buf,$e.window,Et,Ut,$e.pending),$e.pending+=Ut}function Y($e,Et,Ut,Bt){var _t=Et*2,jt=Ut*2;return $e[_t]<$e[jt]||$e[_t]===$e[jt]&&Bt[Et]<=Bt[Ut]}function G($e,Et,Ut){for(var Bt=$e.heap[Ut],_t=Ut<<1;_t<=$e.heap_len&&!(_t<$e.heap_len&&Y(Et,$e.heap[_t+1],$e.heap[_t],$e.depth)&&_t++,Y(Et,Bt,$e.heap[_t],$e.depth));)$e.heap[Ut]=$e.heap[_t],Ut=_t,_t<<=1;$e.heap[Ut]=Bt}function X($e,Et,Ut){var Bt,_t,jt=0,He,se;if($e.last_lit!==0)do Bt=$e.pending_buf[$e.d_buf+jt*2]<<8|$e.pending_buf[$e.d_buf+jt*2+1],_t=$e.pending_buf[$e.l_buf+jt],jt++,Bt===0?xe($e,_t,Et):(He=j[_t],xe($e,He+a+1,Et),se=O[He],se!==0&&(_t-=F[He],ve($e,_t,se)),Bt--,He=le(Bt),xe($e,He,Ut),se=I[He],se!==0&&(Bt-=U[He],ve($e,Bt,se)));while(jt<$e.last_lit);xe($e,x,Et)}function fe($e,Et){var Ut=Et.dyn_tree,Bt=Et.stat_desc.static_tree,_t=Et.stat_desc.has_stree,jt=Et.stat_desc.elems,He,se,J=-1,Ue;for($e.heap_len=0,$e.heap_max=p,He=0;He<jt;He++)Ut[He*2]!==0?($e.heap[++$e.heap_len]=J=He,$e.depth[He]=0):Ut[He*2+1]=0;for(;$e.heap_len<2;)Ue=$e.heap[++$e.heap_len]=J<2?++J:0,Ut[Ue*2]=1,$e.depth[Ue]=0,$e.opt_len--,_t&&($e.static_len-=Bt[Ue*2+1]);for(Et.max_code=J,He=$e.heap_len>>1;He>=1;He--)G($e,Ut,He);Ue=jt;do He=$e.heap[1],$e.heap[1]=$e.heap[$e.heap_len--],G($e,Ut,1),se=$e.heap[1],$e.heap[--$e.heap_max]=He,$e.heap[--$e.heap_max]=se,Ut[Ue*2]=Ut[He*2]+Ut[se*2],$e.depth[Ue]=($e.depth[He]>=$e.depth[se]?$e.depth[He]:$e.depth[se])+1,Ut[He*2+1]=Ut[se*2+1]=Ue,$e.heap[1]=Ue++,G($e,Ut,1);while($e.heap_len>=2);$e.heap[--$e.heap_max]=$e.heap[1],me($e,Et),Fe(Ut,J,$e.bl_count)}function de($e,Et,Ut){var Bt,_t=-1,jt,He=Et[0*2+1],se=0,J=7,Ue=4;for(He===0&&(J=138,Ue=3),Et[(Ut+1)*2+1]=65535,Bt=0;Bt<=Ut;Bt++){if(jt=He,He=Et[(Bt+1)*2+1],++se<J&&jt===He)continue;se<Ue?$e.bl_tree[jt*2]+=se:jt!==0?(jt!==_t&&$e.bl_tree[jt*2]++,$e.bl_tree[T*2]++):se<=10?$e.bl_tree[S*2]++:$e.bl_tree[b*2]++,se=0,_t=jt,He===0?(J=138,Ue=3):jt===He?(J=6,Ue=3):(J=7,Ue=4)}}function Ce($e,Et,Ut){var Bt,_t=-1,jt,He=Et[0*2+1],se=0,J=7,Ue=4;for(He===0&&(J=138,Ue=3),Bt=0;Bt<=Ut;Bt++){if(jt=He,He=Et[(Bt+1)*2+1],++se<J&&jt===He)continue;if(se<Ue)do xe($e,jt,$e.bl_tree);while(--se!==0);else jt!==0?(jt!==_t&&(xe($e,jt,$e.bl_tree),se--),xe($e,T,$e.bl_tree),ve($e,se-3,2)):se<=10?(xe($e,S,$e.bl_tree),ve($e,se-3,3)):(xe($e,b,$e.bl_tree),ve($e,se-11,7));se=0,_t=jt,He===0?(J=138,Ue=3):jt===He?(J=6,Ue=3):(J=7,Ue=4)}}function Me($e){var Et;for(de($e,$e.dyn_ltree,$e.l_desc.max_code),de($e,$e.dyn_dtree,$e.d_desc.max_code),fe($e,$e.bl_desc),Et=h-1;Et>=3&&!($e.bl_tree[N[Et]*2+1]!==0);Et--);return $e.opt_len+=3*(Et+1)+5+5+4,Et}function ue($e,Et,Ut,Bt){var _t;for(ve($e,Et-257,5),ve($e,Ut-1,5),ve($e,Bt-4,4),_t=0;_t<Bt;_t++)ve($e,$e.bl_tree[N[_t]*2+1],3);Ce($e,$e.dyn_ltree,Et-1),Ce($e,$e.dyn_dtree,Ut-1)}function Ae($e){var Et=4093624447,Ut;for(Ut=0;Ut<=31;Ut++,Et>>>=1)if(Et&1&&$e.dyn_ltree[Ut*2]!==0)return m;if($e.dyn_ltree[9*2]!==0||$e.dyn_ltree[10*2]!==0||$e.dyn_ltree[13*2]!==0)return f;for(Ut=32;Ut<a;Ut++)if($e.dyn_ltree[Ut*2]!==0)return f;return m}var Te=!1;function Je($e){Te||(ie(),Te=!0),$e.l_desc=new Z($e.dyn_ltree,V),$e.d_desc=new Z($e.dyn_dtree,z),$e.bl_desc=new Z($e.bl_tree,Q),$e.bi_buf=0,$e.bi_valid=0,te($e)}function At($e,Et,Ut,Bt){ve($e,(r<<1)+(Bt?1:0),3),oe($e,Et,Ut,!0)}function qe($e){ve($e,i<<1,3),xe($e,x,R),Be($e)}function Re($e,Et,Ut,Bt){var _t,jt,He=0;$e.level>0?($e.strm.data_type===c&&($e.strm.data_type=Ae($e)),fe($e,$e.l_desc),fe($e,$e.d_desc),He=Me($e),_t=$e.opt_len+3+7>>>3,jt=$e.static_len+3+7>>>3,jt<=_t&&(_t=jt)):_t=jt=Ut+5,Ut+4<=_t&&Et!==-1?At($e,Et,Ut,Bt):$e.strategy===w||jt===_t?(ve($e,(i<<1)+(Bt?1:0),3),X($e,R,k)):(ve($e,(n<<1)+(Bt?1:0),3),ue($e,$e.l_desc.max_code+1,$e.d_desc.max_code+1,He+1),X($e,$e.dyn_ltree,$e.dyn_dtree)),te($e),Bt&&Ge($e)}function Lt($e,Et,Ut){return $e.pending_buf[$e.d_buf+$e.last_lit*2]=Et>>>8&255,$e.pending_buf[$e.d_buf+$e.last_lit*2+1]=Et&255,$e.pending_buf[$e.l_buf+$e.last_lit]=Ut&255,$e.last_lit++,Et===0?$e.dyn_ltree[Ut*2]++:($e.matches++,Et--,$e.dyn_ltree[(j[Ut]+a+1)*2]++,$e.dyn_dtree[le(Et)*2]++),$e.last_lit===$e.lit_bufsize-1}},c8qY:function(H,B,d){var _=d("IwbS"),E=d("fls0");function C(n){this._ctor=n||E,this.group=new _.Group}var A=C.prototype;A.isPersistent=function(){return!0},A.updateData=function(n){var e=this,l=e.group,t=e._lineData;e._lineData=n,t||l.removeAll();var a=c(n);n.diff(t).add(function(s){w(e,n,s,a)}).update(function(s,u){m(e,t,n,u,s,a)}).remove(function(s){l.remove(t.getItemGraphicEl(s))}).execute()};function w(n,e,l,t){var a=e.getItemLayout(l);if(!r(a))return;var s=new n._ctor(e,l,t);e.setItemGraphicEl(l,s),n.group.add(s)}function m(n,e,l,t,a,s){var u=e.getItemGraphicEl(t);if(!r(l.getItemLayout(a))){n.group.remove(u);return}u?u.updateData(l,a,s):u=new n._ctor(l,a,s),l.setItemGraphicEl(a,u),n.group.add(u)}A.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(e,l){e.updateLayout(n,l)},this)},A.incrementalPrepareUpdate=function(n){this._seriesScope=c(n),this._lineData=null,this.group.removeAll()};function f(n){return n.animators&&n.animators.length>0}A.incrementalUpdate=function(n,e){function l(u){!u.isGroup&&!f(u)&&(u.incremental=u.useHoverLayer=!0)}for(var t=n.start;t<n.end;t++){var a=e.getItemLayout(t);if(r(a)){var s=new this._ctor(e,t,this._seriesScope);s.traverse(l),this.group.add(s),e.setItemGraphicEl(t,s)}}};function c(n){var e=n.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}A.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},A._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};function o(n){return isNaN(n[0])||isNaN(n[1])}function r(n){return!o(n[0])&&!o(n[1])}var i=C;H.exports=i},cCMj:function(H,B,d){var _=d("bYtY"),E={updateSelectedMap:function(C){this._targetList=_.isArray(C)?C.slice():[],this._selectTargetMap=_.reduce(C||[],function(A,w){return A.set(w.name,w),A},_.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 _=d("MT78"),E=w(_),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 _=d("cIOH"),E=d.n(_),C=d("oIFs"),A=d.n(C)},ca2m:function(H,B,d){var _=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=_.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},E),C.valueAxis=_.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=_.defaults({scale:!0,min:"dataMin",max:"dataMax"},C.valueAxis),C.logAxis=_.defaults({scale:!0,logBase:10},C.valueAxis);var A=C;H.exports=A},cbJ4:function(H,B,d){var _=d("bYtY"),E=_.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 _=1,E=function(){return"".concat(_++)};B.default=E},cpOr:function(H,B,d){var _=d("Tghj"),E=_.__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 l(s){var u=s.data;u&&u[0]&&u[0][0]&&u[0][0].coord&&(s.data=c(u,function(h){var p=[h[0].coord,h[1].coord],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(s){s.data=s.data||[],l(s);var u=this._processFlatCoordsArray(s.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(s.data=new Float32Array(u.count)),t.superApply(this,"init",arguments)},mergeOption:function(s){if(s.data=s.data||[],l(s),s.data){var u=this._processFlatCoordsArray(s.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(s.data=new Float32Array(u.count))}t.superApply(this,"mergeOption",arguments)},appendData:function(s){var u=this._processFlatCoordsArray(s.data);u.flatCoords&&(this._flatCoords?(this._flatCoords=m(this._flatCoords,u.flatCoords),this._flatCoordsOffset=m(this._flatCoordsOffset,u.flatCoordsOffset)):(this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset),s.data=new Float32Array(u.count)),this.getRawData().appendData(s.data)},_getCoordsFromItemModel:function(s){var u=this.getData().getItemModel(s),h=u.option instanceof Array?u.option:u.getShallow("coords");return h},getLineCoordsCount:function(s){return this._flatCoordsOffset?this._flatCoordsOffset[s*2+1]:this._getCoordsFromItemModel(s).length},getLineCoords:function(s,u){if(this._flatCoordsOffset){for(var h=this._flatCoordsOffset[s*2],p=this._flatCoordsOffset[s*2+1],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(s),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(s){var u=0;if(this._flatCoords&&(u=this._flatCoords.length),typeof s[0]=="number"){for(var h=s.length,p=new n(h),g=new e(h),v=0,y=0,x=0,T=0;T<h;){x++;var S=s[T++];p[y++]=v+u,p[y++]=S;for(var b=0;b<S;b++){var O=s[T++],I=s[T++];g[v++]=O,g[v++]=I,T>h}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:g,count:x}}return{flatCoordsOffset:null,flatCoords:null,count:s.length}},getInitialData:function(s,u){var h=new A(["value"],this);return h.hasItemOption=!1,h.initData(s.data,[],function(p,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(s){var u=this.getData(),h=u.getItemModel(s),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 s=this.option.progressive;return s==null?this.option.large?1e4:this.get("progressive"):s},getProgressiveThreshold:function(){var s=this.option.progressiveThreshold;return s==null?this.option.large?2e4:this.get("progressiveThreshold"):s},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),a=t;H.exports=a},crZl:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("7aKB"),w=d("+TT/"),m=d("XxSj"),f=_.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(c,o){this.ecModel=c,this.api=o,this.visualMapModel},render:function(c,o,r,i){if(this.visualMapModel=c,c.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(c){var o=this.visualMapModel,r=A.normalizeCssArray(o.get("padding")||0),i=c.getBoundingRect();c.add(new C.Rect({z2:-1,silent:!0,shape:{x:i.x-r[3],y:i.y-r[0],width:i.width+r[3]+r[1],height:i.height+r[0]+r[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(c,o,r){r=r||{};var i=r.forceState,n=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=n.get("itemSymbol")),o==="color"){var l=n.get("contentColor");e.color=l}function t(h){return e[h]}function a(h,p){e[h]=p}var s=n.controllerVisuals[i||n.getValueState(c)],u=m.prepareVisualTypes(s);return E.each(u,function(h){var p=s[h];r.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=s.__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 _={},E=function(nt,at,rr,Pt,xt){var Kt=_[at]||(_[at]=URL.createObjectURL(new Blob([nt],{type:"text/javascript"}))),yt=new Worker(Kt);return yt.onerror=function(kt){return xt(kt.error,null)},yt.onmessage=function(kt){return xt(null,kt.data)},yt.postMessage(rr,Pt),yt},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(nt,at){for(var rr=new A(31),Pt=0;Pt<31;++Pt)rr[Pt]=at+=1<<nt[Pt-1];for(var xt=new w(rr[30]),Pt=1;Pt<30;++Pt)for(var Kt=rr[Pt];Kt<rr[Pt+1];++Kt)xt[Kt]=Kt-rr[Pt]<<5|Pt;return[rr,xt]},r=o(m,2),i=r[0],n=r[1];i[28]=258,n[258]=28;for(var e=o(f,0),l=e[0],t=e[1],a=new A(32768),s=0;s<32768;++s){var u=(s&43690)>>>1|(s&21845)<<1;u=(u&52428)>>>2|(u&13107)<<2,u=(u&61680)>>>4|(u&3855)<<4,a[s]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var h=function(nt,at,rr){for(var Pt=nt.length,xt=0,Kt=new A(at);xt<Pt;++xt)++Kt[nt[xt]-1];var yt=new A(at);for(xt=0;xt<at;++xt)yt[xt]=yt[xt-1]+Kt[xt-1]<<1;var kt;if(rr){kt=new A(1<<at);var Sr=15-at;for(xt=0;xt<Pt;++xt)if(nt[xt])for(var hr=xt<<4|nt[xt],gr=at-nt[xt],Jr=yt[nt[xt]-1]++<<gr,$r=Jr|(1<<gr)-1;Jr<=$r;++Jr)kt[a[Jr]>>>Sr]=hr}else for(kt=new A(Pt),xt=0;xt<Pt;++xt)kt[xt]=a[yt[nt[xt]-1]++]>>>15-nt[xt];return kt},p=new C(288),s=0;s<144;++s)p[s]=8;for(var s=144;s<256;++s)p[s]=9;for(var s=256;s<280;++s)p[s]=7;for(var s=280;s<288;++s)p[s]=8;for(var g=new C(32),s=0;s<32;++s)g[s]=5;var v=h(p,9,0),y=h(p,9,1),x=h(g,5,0),T=h(g,5,1),S=function(nt){for(var at=nt[0],rr=1;rr<nt.length;++rr)nt[rr]>at&&(at=nt[rr]);return at},b=function(nt,at,rr){var Pt=at/8>>0;return(nt[Pt]|nt[Pt+1]<<8)>>>(at&7)&rr},O=function(nt,at){var rr=at/8>>0;return(nt[rr]|nt[rr+1]<<8|nt[rr+2]<<16)>>>(at&7)},I=function(nt){return(nt/8>>0)+(nt&7&&1)},L=function(nt,at,rr){(at==null||at<0)&&(at=0),(rr==null||rr>nt.length)&&(rr=nt.length);var Pt=new(nt instanceof A?A:nt instanceof w?w:C)(rr-at);return Pt.set(nt.subarray(at,rr)),Pt},N=function(nt,at,rr){var Pt=nt.length,xt=!at||rr,Kt=!rr||rr.i;rr||(rr={}),at||(at=new C(Pt*3));var yt=function(Sn){var Dt=at.length;if(Sn>Dt){var ft=new C(Math.max(Dt*2,Sn));ft.set(at),at=ft}},kt=rr.f||0,Sr=rr.p||0,hr=rr.b||0,gr=rr.l,Jr=rr.d,$r=rr.m,kn=rr.n,Dn=Pt*8;do{if(!gr){rr.f=kt=b(nt,Sr,1);var Zn=b(nt,Sr+1,3);if(Sr+=3,Zn)if(Zn==1)gr=y,Jr=T,$r=9,kn=5;else if(Zn==2){var Qe=b(nt,Sr,31)+257,Se=b(nt,Sr+10,15)+4,Ne=Qe+b(nt,Sr+5,31)+1;Sr+=14;for(var je=new C(Ne),Xe=new C(19),ze=0;ze<Se;++ze)Xe[c[ze]]=b(nt,Sr+ze*3,7);Sr+=Se*3;var Ze=S(Xe),wt=(1<<Ze)-1;if(!Kt&&Sr+Ne*(Ze+7)>Dn)break;for(var st=h(Xe,Ze,1),ze=0;ze<Ne;){var Jt=st[b(nt,Sr,wt)];Sr+=Jt&15;var li=Jt>>>4;if(li<16)je[ze++]=li;else{var Rr=0,Ir=0;for(li==16?(Ir=3+b(nt,Sr,3),Sr+=2,Rr=je[ze-1]):li==17?(Ir=3+b(nt,Sr,7),Sr+=3):li==18&&(Ir=11+b(nt,Sr,127),Sr+=7);Ir--;)je[ze++]=Rr}}var Xr=je.subarray(0,Qe),er=je.subarray(Qe);$r=S(Xr),kn=S(er),gr=h(Xr,$r,1),Jr=h(er,kn,1)}else throw"invalid block type";else{var li=I(Sr)+4,Ai=nt[li-4]|nt[li-3]<<8,Ii=li+Ai;if(Ii>Pt){if(Kt)throw"unexpected EOF";break}xt&&yt(hr+Ai),at.set(nt.subarray(li,Ii),hr),rr.b=hr+=Ai,rr.p=Sr=Ii*8;continue}if(Sr>Dn)throw"unexpected EOF"}xt&&yt(hr+131072);for(var pn=(1<<$r)-1,fr=(1<<kn)-1,mn=$r+kn+18;Kt||Sr+mn<Dn;){var Rr=gr[O(nt,Sr)&pn],en=Rr>>>4;if(Sr+=Rr&15,Sr>Dn)throw"unexpected EOF";if(!Rr)throw"invalid length/literal";if(en<256)at[hr++]=en;else if(en==256){gr=null;break}else{var Mr=en-254;if(en>264){var ze=en-257,Gn=m[ze];Mr=b(nt,Sr,(1<<Gn)-1)+i[ze],Sr+=Gn}var di=Jr[O(nt,Sr)&fr],_i=di>>>4;if(!di)throw"invalid distance";Sr+=di&15;var er=l[_i];if(_i>3){var Gn=f[_i];er+=O(nt,Sr)&(1<<Gn)-1,Sr+=Gn}if(Sr>Dn)throw"unexpected EOF";xt&&yt(hr+131072);for(var Br=hr+Mr;hr<Br;hr+=4)at[hr]=at[hr-er],at[hr+1]=at[hr+1-er],at[hr+2]=at[hr+2-er],at[hr+3]=at[hr+3-er];hr=Br}}rr.l=gr,rr.p=Sr,rr.b=hr,gr&&(kt=1,rr.m=$r,rr.d=Jr,rr.n=kn)}while(!kt);return hr==at.length?at:L(at,0,hr)},D=function(nt,at,rr){rr<<=at&7;var Pt=at/8>>0;nt[Pt]|=rr,nt[Pt+1]|=rr>>>8},R=function(nt,at,rr){rr<<=at&7;var Pt=at/8>>0;nt[Pt]|=rr,nt[Pt+1]|=rr>>>8,nt[Pt+2]|=rr>>>16},k=function(nt,at){for(var rr=[],Pt=0;Pt<nt.length;++Pt)nt[Pt]&&rr.push({s:Pt,f:nt[Pt]});var xt=rr.length,Kt=rr.slice();if(!xt)return[new C(0),0];if(xt==1){var yt=new C(rr[0].s+1);return yt[rr[0].s]=1,[yt,1]}rr.sort(function(Ne,je){return Ne.f-je.f}),rr.push({s:-1,f:25001});var kt=rr[0],Sr=rr[1],hr=0,gr=1,Jr=2;for(rr[0]={s:-1,f:kt.f+Sr.f,l:kt,r:Sr};gr!=xt-1;)kt=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:kt.f+Sr.f,l:kt,r:Sr};for(var $r=Kt[0].s,Pt=1;Pt<xt;++Pt)Kt[Pt].s>$r&&($r=Kt[Pt].s);var kn=new A($r+1),Dn=M(rr[gr-1],kn,0);if(Dn>at){var Pt=0,Zn=0,li=Dn-at,Ai=1<<li;for(Kt.sort(function(je,Xe){return kn[Xe.s]-kn[je.s]||je.f-Xe.f});Pt<xt;++Pt){var Ii=Kt[Pt].s;if(kn[Ii]>at)Zn+=Ai-(1<<Dn-kn[Ii]),kn[Ii]=at;else break}for(Zn>>>=li;Zn>0;){var Qe=Kt[Pt].s;kn[Qe]<at?Zn-=1<<at-kn[Qe]++-1:++Pt}for(;Pt>=0&&Zn;--Pt){var Se=Kt[Pt].s;kn[Se]==at&&(--kn[Se],++Zn)}Dn=at}return[new C(kn),Dn]},M=function It(nt,at,rr){return nt.s==-1?Math.max(It(nt.l,at,rr+1),It(nt.r,at,rr+1)):at[nt.s]=rr},j=function(nt){for(var at=nt.length;at&&!nt[--at];);for(var rr=new A(++at),Pt=0,xt=nt[0],Kt=1,yt=function(hr){rr[Pt++]=hr},kt=1;kt<=at;++kt)if(nt[kt]==xt&&kt!=at)++Kt;else{if(!xt&&Kt>2){for(;Kt>138;Kt-=138)yt(32754);Kt>2&&(yt(Kt>10?Kt-11<<5|28690:Kt-3<<5|12305),Kt=0)}else if(Kt>3){for(yt(xt),--Kt;Kt>6;Kt-=6)yt(8304);Kt>2&&(yt(Kt-3<<5|8208),Kt=0)}for(;Kt--;)yt(xt);Kt=1,xt=nt[kt]}return[rr.subarray(0,Pt),at]},F=function(nt,at){for(var rr=0,Pt=0;Pt<at.length;++Pt)rr+=nt[Pt]*at[Pt];return rr},U=function(nt,at,rr){var Pt=rr.length,xt=I(at+2);nt[xt]=Pt&255,nt[xt+1]=Pt>>>8,nt[xt+2]=nt[xt]^255,nt[xt+3]=nt[xt+1]^255;for(var Kt=0;Kt<Pt;++Kt)nt[xt+Kt+4]=rr[Kt];return(xt+4+Pt)*8},K=function(nt,at,rr,Pt,xt,Kt,yt,kt,Sr,hr,gr){D(at,gr++,rr),++xt[256];for(var Jr=k(xt,15),$r=Jr[0],kn=Jr[1],Dn=k(Kt,15),Zn=Dn[0],li=Dn[1],Ai=j($r),Ii=Ai[0],Qe=Ai[1],Se=j(Zn),Ne=Se[0],je=Se[1],Xe=new A(19),ze=0;ze<Ii.length;++ze)Xe[Ii[ze]&31]++;for(var ze=0;ze<Ne.length;++ze)Xe[Ne[ze]&31]++;for(var Ze=k(Xe,7),wt=Ze[0],st=Ze[1],Jt=19;Jt>4&&!wt[c[Jt-1]];--Jt);var Rr=hr+5<<3,Ir=F(xt,p)+F(Kt,g)+yt,Xr=F(xt,$r)+F(Kt,Zn)+yt+14+3*Jt+F(Xe,wt)+(2*Xe[16]+3*Xe[17]+7*Xe[18]);if(Rr<=Ir&&Rr<=Xr)return U(at,gr,nt.subarray(Sr,Sr+hr));var er,pn,fr,mn;if(D(at,gr,1+(Xr<Ir)),gr+=2,Xr<Ir){er=h($r,kn,0),pn=$r,fr=h(Zn,li,0),mn=Zn;var en=h(wt,st,0);D(at,gr,Qe-257),D(at,gr+5,je-1),D(at,gr+10,Jt-4),gr+=14;for(var ze=0;ze<Jt;++ze)D(at,gr+3*ze,wt[c[ze]]);gr+=3*Jt;for(var Mr=[Ii,Ne],Gn=0;Gn<2;++Gn)for(var di=Mr[Gn],ze=0;ze<di.length;++ze){var _i=di[ze]&31;D(at,gr,en[_i]),gr+=wt[_i],_i>15&&(D(at,gr,di[ze]>>>5&127),gr+=di[ze]>>>12)}}else er=v,pn=p,fr=x,mn=g;for(var ze=0;ze<kt;++ze)if(Pt[ze]>255){var _i=Pt[ze]>>>18&31;R(at,gr,er[_i+257]),gr+=pn[_i+257],_i>7&&(D(at,gr,Pt[ze]>>>23&31),gr+=m[_i]);var Br=Pt[ze]&31;R(at,gr,fr[Br]),gr+=mn[Br],Br>3&&(R(at,gr,Pt[ze]>>>5&8191),gr+=f[Br])}else R(at,gr,er[Pt[ze]]),gr+=pn[Pt[ze]];return R(at,gr,er[256]),gr+pn[256]},V=new w([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new C(0),Q=function(nt,at,rr,Pt,xt,Kt){var yt=nt.length,kt=new C(Pt+yt+5*(1+Math.floor(yt/7e3))+xt),Sr=kt.subarray(Pt,kt.length-xt),hr=0;if(!at||yt<8)for(var gr=0;gr<=yt;gr+=65535){var Jr=gr+65535;Jr<yt?hr=U(Sr,hr,nt.subarray(gr,Jr)):(Sr[gr]=Kt,hr=U(Sr,hr,nt.subarray(gr,yt)))}else{for(var $r=V[at-1],kn=$r>>>13,Dn=$r&8191,Zn=(1<<rr)-1,li=new A(32768),Ai=new A(Zn+1),Ii=Math.ceil(rr/3),Qe=2*Ii,Se=function(tr){return(nt[tr]^nt[tr+1]<<Ii^nt[tr+2]<<Qe)&Zn},Ne=new w(25e3),je=new A(288),Xe=new A(32),ze=0,Ze=0,gr=0,wt=0,st=0,Jt=0;gr<yt;++gr){var Rr=Se(gr),Ir=gr&32767,Xr=Ai[Rr];if(li[Ir]=Xr,Ai[Rr]=Ir,st<=gr){var er=yt-gr;if((ze>7e3||wt>24576)&&er>423){hr=K(nt,Sr,0,Ne,je,Xe,Ze,wt,Jt,gr-Jt,hr),wt=ze=Ze=0,Jt=gr;for(var pn=0;pn<286;++pn)je[pn]=0;for(var pn=0;pn<30;++pn)Xe[pn]=0}var fr=2,mn=0,en=Dn,Mr=Ir-Xr&32767;if(er>2&&Rr==Se(gr-Mr))for(var Gn=Math.min(kn,er)-1,di=Math.min(32767,gr),_i=Math.min(258,er);Mr<=di&&--en&&Ir!=Xr;){if(nt[gr+fr]==nt[gr+fr-Mr]){for(var Br=0;Br<_i&&nt[gr+Br]==nt[gr+Br-Mr];++Br);if(Br>fr){if(fr=Br,mn=Mr,Br>Gn)break;for(var sn=Math.min(Mr,Br-2),Sn=0,pn=0;pn<sn;++pn){var Dt=gr-Mr+pn+32768&32767,ft=li[Dt],St=Dt-ft+32768&32767;St>Sn&&(Sn=St,Xr=Dt)}}}Ir=Xr,Xr=li[Ir],Mr+=Ir-Xr+32768&32767}if(mn){Ne[wt++]=268435456|n[fr]<<18|t[mn];var Ct=n[fr]&31,Nt=t[mn]&31;Ze+=m[Ct]+f[Nt],++je[257+Ct],++Xe[Nt],st=gr+fr,++ze}else Ne[wt++]=nt[gr],++je[nt[gr]]}}hr=K(nt,Sr,Kt,Ne,je,Xe,Ze,wt,Jt,gr-Jt,hr),Kt||(hr=U(Sr,hr,z))}return L(kt,0,Pt+I(hr)+xt)},Z=function(){for(var It=new w(256),nt=0;nt<256;++nt){for(var at=nt,rr=9;--rr;)at=(at&1&&3988292384)^at>>>1;It[nt]=at}return It}(),le=function(){var nt=4294967295;return{p:function(rr){for(var Pt=nt,xt=0;xt<rr.length;++xt)Pt=Z[Pt&255^rr[xt]]^Pt>>>8;nt=Pt},d:function(){return nt^4294967295}}},ne=function(){var nt=1,at=0;return{p:function(Pt){for(var xt=nt,Kt=at,yt=Pt.length,kt=0;kt!=yt;){for(var Sr=Math.min(kt+5552,yt);kt<Sr;++kt)xt+=Pt[kt],Kt+=xt;xt%=65521,Kt%=65521}nt=xt,at=Kt},d:function(){return(nt>>>8<<16|(at&255)<<8|at>>>8)+((nt&255)<<23)*2}}},ve=function(nt,at,rr,Pt,xt){return Q(nt,at.level==null?6:at.level,at.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(nt.length)))*1.5):12+at.mem,rr,Pt,!xt)},xe=function(nt,at){var rr={};for(var Pt in nt)rr[Pt]=nt[Pt];for(var Pt in at)rr[Pt]=at[Pt];return rr},_e=function(nt,at,rr){for(var Pt=nt(),xt=nt.toString(),Kt=xt.slice(xt.indexOf("[")+1,xt.lastIndexOf("]")).replace(/ /g,"").split(","),yt=0;yt<Pt.length;++yt){var kt=Pt[yt],Sr=Kt[yt];if(typeof kt=="function"){at+=";"+Sr+"=";var hr=kt.toString();if(kt.prototype)if(hr.indexOf("[native code]")!=-1){var gr=hr.indexOf(" ",8)+1;at+=hr.slice(gr,hr.indexOf("(",gr))}else{at+=hr;for(var Jr in kt.prototype)at+=";"+Sr+".prototype."+Jr+"="+kt.prototype[Jr].toString()}else at+=hr}else rr[Sr]=kt}return[at,rr]},Be=[],me=function(nt){var at=[];for(var rr in nt)(nt[rr]instanceof C||nt[rr]instanceof A||nt[rr]instanceof w)&&at.push((nt[rr]=new nt[rr].constructor(nt[rr])).buffer);return at},Fe=function(nt,at,rr,Pt){var xt;if(!Be[rr]){for(var Kt="",yt={},kt=nt.length-1,Sr=0;Sr<kt;++Sr)xt=_e(nt[Sr],Kt,yt),Kt=xt[0],yt=xt[1];Be[rr]=_e(nt[kt],Kt,yt)}var hr=xe({},Be[rr][1]);return E(Be[rr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+at.toString()+"}",rr,hr,me(hr),Pt)},ie=function(){return[C,A,w,m,f,c,i,l,y,T,a,h,S,b,O,I,L,N,Ue,X,fe]},te=function(){return[C,A,w,m,f,c,n,t,v,p,x,g,a,V,z,h,D,R,k,M,j,F,U,K,I,L,Q,ve,jt,X]},Ge=function(){return[Je,Re,Te,le,Z]},oe=function(){return[At,qe]},Y=function(){return[Lt,Te,ne]},G=function(){return[$e]},X=function(nt){return postMessage(nt,[nt.buffer])},fe=function(nt){return nt&&nt.size&&new C(nt.size)},de=function(nt,at,rr,Pt,xt,Kt){var yt=Fe(rr,Pt,xt,function(kt,Sr){yt.terminate(),Kt(kt,Sr)});return at.consume||(nt=new C(nt)),yt.postMessage([nt,at],[nt.buffer]),function(){yt.terminate()}},Ce=function(nt){return nt.ondata=function(at,rr){return postMessage([at,rr],[at.buffer])},function(at){return nt.push(at.data[0],at.data[1])}},Me=function(nt,at,rr,Pt,xt){var Kt,yt=Fe(nt,Pt,xt,function(kt,Sr){kt?(yt.terminate(),at.ondata.call(at,kt)):(Sr[1]&&yt.terminate(),at.ondata.call(at,kt,Sr[0],Sr[1]))});yt.postMessage(rr),at.push=function(kt,Sr){if(Kt)throw"stream finished";if(!at.ondata)throw"no stream handler";yt.postMessage([kt,Kt=Sr],[kt.buffer])},at.terminate=function(){yt.terminate()}},ue=function(nt,at){return nt[at]|nt[at+1]<<8},Ae=function(nt,at){return(nt[at]|nt[at+1]<<8|nt[at+2]<<16)+(nt[at+3]<<23)*2},Te=function(nt,at,rr){for(;rr;++at)nt[at]=rr,rr>>>=8},Je=function(nt,at){var rr=at.filename;if(nt[0]=31,nt[1]=139,nt[2]=8,nt[8]=at.level<2?4:at.level==9?2:0,nt[9]=3,at.mtime!=0&&Te(nt,4,Math.floor(new Date(at.mtime||Date.now())/1e3)),rr){nt[3]=8;for(var Pt=0;Pt<=rr.length;++Pt)nt[Pt+10]=rr.charCodeAt(Pt)}},At=function(nt){if(nt[0]!=31||nt[1]!=139||nt[2]!=8)throw"invalid gzip data";var at=nt[3],rr=10;at&4&&(rr+=nt[10]|(nt[11]<<8)+2);for(var Pt=(at>>3&1)+(at>>4&1);Pt>0;Pt-=!nt[rr++]);return rr+(at&2)},qe=function(nt){var at=nt.length;return(nt[at-4]|nt[at-3]<<8|nt[at-2]<<16)+2*(nt[at-1]<<23)},Re=function(nt){return 10+(nt.filename&&nt.filename.length+1||0)},Lt=function(nt,at){var rr=at.level,Pt=rr==0?0:rr<6?1:rr==9?3:2;nt[0]=120,nt[1]=Pt<<6|(Pt?32-2*Pt:1)},$e=function(nt){if((nt[0]&15)!=8||nt[0]>>>4>7||(nt[0]<<8|nt[1])%31)throw"invalid zlib data";if(nt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function Et(It,nt){return!nt&&typeof It=="function"&&(nt=It,It={}),this.ondata=nt,It}var Ut=function(){function It(nt,at){!at&&typeof nt=="function"&&(at=nt,nt={}),this.ondata=at,this.o=nt||{}}return It.prototype.p=function(nt,at){this.ondata(ve(nt,this.o,0,0,!at),at)},It.prototype.push=function(nt,at){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=at,this.p(nt,at||!1)},It}(),Bt=function(){function It(nt,at){Me([te,function(){return[Ce,Ut]}],this,Et.call(this,nt,at),function(rr){var Pt=new Ut(rr.data);onmessage=Ce(Pt)},6)}return It}();function _t(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return de(It,nt,[te],function(rr){return X(jt(rr.data[0],rr.data[1]))},0,at)}function jt(It,nt){return nt===void 0&&(nt={}),ve(It,nt,0,0)}var He=function(){function It(nt){this.s={},this.p=new C(0),this.ondata=nt}return It.prototype.e=function(nt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var at=this.p.length,rr=new C(at+nt.length);rr.set(this.p),rr.set(nt,at),this.p=rr},It.prototype.c=function(nt){this.d=this.s.i=nt||!1;var at=this.s.b,rr=N(this.p,this.o,this.s);this.ondata(L(rr,at,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},It.prototype.push=function(nt,at){this.e(nt),this.c(at)},It}(),se=function(){function It(nt){this.ondata=nt,Me([ie,function(){return[Ce,He]}],this,0,function(){var at=new He;onmessage=Ce(at)},7)}return It}();function J(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return de(It,nt,[ie],function(rr){return X(Ue(rr.data[0],fe(rr.data[1])))},1,at)}function Ue(It,nt){return N(It,nt)}var Le=function(){function It(nt,at){this.c=le(),this.l=0,this.v=1,Ut.call(this,nt,at)}return It.prototype.push=function(nt,at){Ut.prototype.push.call(this,nt,at)},It.prototype.p=function(nt,at){this.c.p(nt),this.l+=nt.length;var rr=ve(nt,this.o,this.v&&Re(this.o),at&&8,!at);this.v&&(Je(rr,this.o),this.v=0),at&&(Te(rr,rr.length-8,this.c.d()),Te(rr,rr.length-4,this.l)),this.ondata(rr,at)},It}(),ee=function(){function It(nt,at){Me([te,Ge,function(){return[Ce,Ut,Le]}],this,Et.call(this,nt,at),function(rr){var Pt=new Le(rr.data);onmessage=Ce(Pt)},8)}return It}();function ct(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return de(It,nt,[te,Ge,function(){return[Mt]}],function(rr){return X(Mt(rr.data[0],rr.data[1]))},2,at)}function Mt(It,nt){nt===void 0&&(nt={});var at=le(),rr=It.length;at.p(It);var Pt=ve(It,nt,Re(nt),8),xt=Pt.length;return Je(Pt,nt),Te(Pt,xt-8,at.d()),Te(Pt,xt-4,rr),Pt}var ot=function(){function It(nt){this.v=1,He.call(this,nt)}return It.prototype.push=function(nt,at){if(He.prototype.e.call(this,nt),this.v){var rr=At(this.p);if(rr>=this.p.length&&!at)return;this.p=this.p.subarray(rr),this.v=0}if(at){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}He.prototype.c.call(this,at)},It}(),Yt=function(){function It(nt){this.ondata=nt,Me([ie,oe,function(){return[Ce,He,ot]}],this,0,function(){var at=new ot;onmessage=Ce(at)},9)}return It}();function or(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return de(It,nt,[ie,oe,function(){return[Zr]}],function(rr){return X(Zr(rr.data[0]))},3,at)}function Zr(It,nt){return N(It.subarray(At(It),-8),nt||new C(qe(It)))}var ir=function(){function It(nt,at){this.c=ne(),this.v=1,Ut.call(this,nt,at)}return It.prototype.push=function(nt,at){Ut.prototype.push.call(this,nt,at)},It.prototype.p=function(nt,at){this.c.p(nt);var rr=ve(nt,this.o,this.v&&2,at&&4,!at);this.v&&(Lt(rr,this.o),this.v=0),at&&Te(rr,rr.length-4,this.c.d()),this.ondata(rr,at)},It}(),dr=function(){function It(nt,at){Me([te,Y,function(){return[Ce,Ut,ir]}],this,Et.call(this,nt,at),function(rr){var Pt=new ir(rr.data);onmessage=Ce(Pt)},10)}return It}();function qt(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return de(It,nt,[te,Y,function(){return[Ht]}],function(rr){return X(Ht(rr.data[0],rr.data[1]))},4,at)}function Ht(It,nt){nt===void 0&&(nt={});var at=ne();at.p(It);var rr=ve(It,nt,2,4);return Lt(rr,nt),Te(rr,rr.length-4,at.d()),rr}var lt=function(){function It(nt){this.v=1,He.call(this,nt)}return It.prototype.push=function(nt,at){if(He.prototype.e.call(this,nt),this.v){if(this.p.length<2&&!at)return;this.p=this.p.subarray(2),this.v=0}if(at){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}He.prototype.c.call(this,at)},It}(),Hr=function(){function It(nt){this.ondata=nt,Me([ie,G,function(){return[Ce,He,lt]}],this,0,function(){var at=new lt;onmessage=Ce(at)},11)}return It}();function dn(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return de(It,nt,[ie,G,function(){return[Nn]}],function(rr){return X(Nn(rr.data[0],fe(rr.data[1])))},5,at)}function Nn(It,nt){return N(($e(It),It.subarray(2,-4)),nt)}var Wn=function(){function It(nt){this.G=ot,this.I=He,this.Z=lt,this.ondata=nt}return It.prototype.push=function(nt,at){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(nt,at);else{if(this.p&&this.p.length){var rr=new C(this.p.length+nt.length);rr.set(this.p),rr.set(nt,this.p.length)}else this.p=nt;if(this.p.length>2){var Pt=this,xt=function(){Pt.ondata.apply(Pt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(xt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(xt):new this.Z(xt),this.s.push(this.p,at),this.p=null}}},It}(),gi=function(){function It(nt){this.G=Yt,this.I=se,this.Z=Hr,this.ondata=nt}return It.prototype.push=function(nt,at){Wn.prototype.push.call(this,nt,at)},It}();function yn(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";return It[0]==31&&It[1]==139&&It[2]==8?or(It,nt,at):(It[0]&15)!=8||It[0]>>4>7||(It[0]<<8|It[1])%31?J(It,nt,at):dn(It,nt,at)}function Mn(It,nt){return It[0]==31&&It[1]==139&&It[2]==8?Zr(It,nt):(It[0]&15)!=8||It[0]>>4>7||(It[0]<<8|It[1])%31?Ue(It,nt):Nn(It,nt)}var Ft=function It(nt,at,rr,Pt){for(var xt in nt){var Kt=nt[xt],yt=at+xt;Kt instanceof C?rr[yt]=[Kt,Pt]:Array.isArray(Kt)?rr[yt]=[Kt[0],xe(Pt,Kt[1])]:It(Kt,yt+"/",rr,Pt)}};function bt(It,nt){var at=It.length;if(!nt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(It);for(var rr=new C(It.length+(It.length>>>1)),Pt=0,xt=function(hr){rr[Pt++]=hr},Kt=0;Kt<at;++Kt){if(Pt+5>rr.length){var yt=new C(Pt+8+(at-Kt<<1));yt.set(rr),rr=yt}var kt=It.charCodeAt(Kt);kt<128||nt?xt(kt):kt<2048?(xt(192|kt>>>6),xt(128|kt&63)):kt>55295&&kt<57344?(kt=65536+(kt&1023<<10)|It.charCodeAt(++Kt)&1023,xt(240|kt>>>18),xt(128|kt>>>12&63),xt(128|kt>>>6&63),xt(128|kt&63)):(xt(224|kt>>>12),xt(128|kt>>>6&63),xt(128|kt&63))}return L(rr,0,Pt)}function Oe(It,nt){var at="";if(!nt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(It);for(var rr=0;rr<It.length;){var Pt=It[rr++];Pt<128||nt?at+=String.fromCharCode(Pt):Pt<224?at+=String.fromCharCode((Pt&31)<<6|It[rr++]&63):Pt<240?at+=String.fromCharCode((Pt&15)<<12|(It[rr++]&63)<<6|It[rr++]&63):(Pt=((Pt&15)<<18|(It[rr++]&63)<<12|(It[rr++]&63)<<6|It[rr++]&63)-65536,at+=String.fromCharCode(55296|Pt>>10,56320|Pt&1023))}return at}var Ee=function(nt,at){return at+30+ue(nt,at+26)+ue(nt,at+28)},Ie=function(nt,at,rr){var Pt=ue(nt,at+28),xt=Oe(nt.subarray(at+46,at+46+Pt),!(ue(nt,at+8)&2048)),Kt=at+46+Pt,yt=rr?Ye(nt,Kt):[Ae(nt,at+20),Ae(nt,at+24),Ae(nt,at+42)],kt=yt[0],Sr=yt[1],hr=yt[2];return[ue(nt,at+10),kt,Sr,xt,Kt+ue(nt,at+30)+ue(nt,at+32),hr]},Ye=function(nt,at){for(;ue(nt,at)!=1;at+=4+ue(nt,at+2));return[Ae(nt,at+12),Ae(nt,at+4),Ae(nt,at+20)]},rt=function(nt,at,rr,Pt,xt,Kt,yt,kt,Sr,hr){var gr=Kt.length,Jr=Pt.length;Te(nt,at,Sr!=null?33639248:67324752),at+=4,Sr!=null&&(nt[at]=20,at+=2),nt[at]=20,at+=2,nt[at++]=hr==8&&(kt.level==1?6:kt.level<6?4:kt.level==9?2:0),nt[at++]=yt&&8,nt[at]=hr,at+=2;var $r=new Date(kt.mtime||Date.now()),kn=$r.getFullYear()-1980;if(kn<0||kn>119)throw"date not in range 1980-2099";Te(nt,at,(kn<<24)*2|$r.getMonth()+1<<21|$r.getDate()<<16|$r.getHours()<<11|$r.getMinutes()<<5|$r.getSeconds()>>>1),at+=4,Te(nt,at,rr),Te(nt,at+4,Jr),Te(nt,at+8,xt),Te(nt,at+12,gr),at+=16,Sr!=null&&(Te(nt,at+=10,Sr),at+=4),nt.set(Kt,at),at+=gr,Sr==null&&nt.set(Pt,at)},ut=function(nt,at,rr,Pt,xt){Te(nt,at,101010256),Te(nt,at+8,rr),Te(nt,at+10,rr),Te(nt,at+12,Pt),Te(nt,at+16,xt)};function Ot(It,nt,at){if(at||(at=nt,nt={}),typeof at!="function")throw"no callback";var rr={};Ft(It,"",rr,nt);var Pt=Object.keys(rr),xt=Pt.length,Kt=0,yt=0,kt=xt,Sr=new Array(xt),hr=[],gr=function(){for(var Zn=0;Zn<hr.length;++Zn)hr[Zn]()},Jr=function(){var Zn=new C(yt+22),li=Kt,Ai=yt-Kt;yt=0;for(var Ii=0;Ii<kt;++Ii){var Qe=Sr[Ii];try{rt(Zn,yt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),rt(Zn,Kt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,yt,Qe.t),Kt+=46+Qe.n.length,yt+=30+Qe.n.length+Qe.d.length}catch(Se){return at(Se,null)}}ut(Zn,Kt,Sr.length,Ai,li),at(null,Zn)};xt||Jr();for(var $r=function(Zn){var li=Pt[Zn],Ai=rr[li],Ii=Ai[0],Qe=Ai[1],Se=le(),Ne=Ii.length;Se.p(Ii);var je=bt(li),Xe=je.length,ze=Qe.level==0?0:8,Ze=function(st,Jt){if(st)gr(),at(st,null);else{var Rr=Jt.length;Sr[Zn]={t:ze,d:Jt,m:Ne,c:Se.d(),u:li.length!=Rr,n:je,p:Qe},Kt+=30+Xe+Rr,yt+=76+2*Xe+Rr,--xt||Jr()}};if(je.length>65535&&Ze("filename too long",null),!ze)Ze(null,Ii);else if(Ne<16e4)try{Ze(null,jt(Ii,Qe))}catch(wt){Ze(wt,null)}else hr.push(_t(Ii,Qe,Ze))},kn=0;kn<kt;++kn)$r(kn);return gr}function Ar(It,nt){nt===void 0&&(nt={});var at={},rr=[];Ft(It,"",at,nt);var Pt=0,xt=0;for(var Kt in at){var yt=at[Kt],kt=yt[0],Sr=yt[1],hr=Sr.level==0?0:8,gr=bt(Kt),Jr=gr.length;if(gr.length>65535)throw"filename too long";var $r=hr?jt(kt,Sr):kt,kn=$r.length,Dn=le();Dn.p(kt),rr.push({t:hr,d:$r,m:kt.length,c:Dn.d(),u:Kt.length!=Jr,n:gr,o:Pt,p:Sr}),Pt+=30+Jr+kn,xt+=76+2*Jr+kn}for(var Zn=new C(xt+22),li=Pt,Ai=xt-Pt,Ii=0;Ii<rr.length;++Ii){var Qe=rr[Ii];rt(Zn,Qe.o,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),rt(Zn,Pt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,Qe.o,Qe.t),Pt+=46+Qe.n.length}return ut(Zn,Pt,rr.length,Ai,li),Zn}function Pr(It,nt){if(typeof nt!="function")throw"no callback";for(var at=[],rr=function(){for(var $r=0;$r<at.length;++$r)at[$r]()},Pt={},xt=It.length-22;Ae(It,xt)!=101010256;--xt)if(!xt||It.length-xt>65558){nt("invalid zip file",null);return}var Kt=ue(It,xt+8);Kt||nt(null,{});var yt=Kt,kt=Ae(It,xt+16),Sr=kt==4294967295;if(Sr){if(xt=Ae(It,xt-12),Ae(It,xt)!=101075792)throw"invalid zip file";yt=Kt=Ae(It,xt+32),kt=Ae(It,xt+48)}for(var hr=function($r){var kn=Ie(It,kt,Sr),Dn=kn[0],Zn=kn[1],li=kn[2],Ai=kn[3],Ii=kn[4],Qe=kn[5],Se=Ee(It,Qe);kt=Ii;var Ne=function(ze,Ze){ze?(rr(),nt(ze,null)):(Pt[Ai]=Ze,--Kt||nt(null,Pt))};if(!Dn)Ne(null,L(It,Se,Se+Zn));else if(Dn==8){var je=It.subarray(Se,Se+Zn);if(Zn<32e4)try{Ne(null,Ue(je,new C(li)))}catch(Xe){Ne(Xe,null)}else at.push(J(je,{size:li},Ne))}else Ne("unknown compression type "+Dn,null)},gr=0;gr<yt;++gr)hr(gr);return rr}function un(It){for(var nt={},at=It.length-22;Ae(It,at)!=101010256;--at)if(!at||It.length-at>65558)throw"invalid zip file";var rr=ue(It,at+8);if(!rr)return{};var Pt=Ae(It,at+16),xt=Pt==4294967295;if(xt){if(at=Ae(It,at-12),Ae(It,at)!=101075792)throw"invalid zip file";rr=Ae(It,at+32),Pt=Ae(It,at+48)}for(var Kt=0;Kt<rr;++Kt){var yt=Ie(It,Pt,xt),kt=yt[0],Sr=yt[1],hr=yt[2],gr=yt[3],Jr=yt[4],$r=yt[5],kn=Ee(It,$r);if(Pt=Jr,!kt)nt[gr]=L(It,kn,kn+Sr);else if(kt==8)nt[gr]=Ue(It.subarray(kn,kn+Sr),new C(hr));else throw"unknown compression type "+kt}return nt}},cv67:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(E){var C=_,A=C.lib,w=A.WordArray,m=A.Hasher,f=C.algo,c=[];(function(){for(var l=0;l<64;l++)c[l]=E.abs(E.sin(l+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 s=0;s<16;s++){var u=a+s,h=t[u];t[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var p=this._hash.words,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],O=t[a+7],I=t[a+8],L=t[a+9],N=t[a+10],D=t[a+11],R=t[a+12],k=t[a+13],M=t[a+14],j=t[a+15],F=p[0],U=p[1],K=p[2],V=p[3];F=r(F,U,K,V,g,7,c[0]),V=r(V,F,U,K,v,12,c[1]),K=r(K,V,F,U,y,17,c[2]),U=r(U,K,V,F,x,22,c[3]),F=r(F,U,K,V,T,7,c[4]),V=r(V,F,U,K,S,12,c[5]),K=r(K,V,F,U,b,17,c[6]),U=r(U,K,V,F,O,22,c[7]),F=r(F,U,K,V,I,7,c[8]),V=r(V,F,U,K,L,12,c[9]),K=r(K,V,F,U,N,17,c[10]),U=r(U,K,V,F,D,22,c[11]),F=r(F,U,K,V,R,7,c[12]),V=r(V,F,U,K,k,12,c[13]),K=r(K,V,F,U,M,17,c[14]),U=r(U,K,V,F,j,22,c[15]),F=i(F,U,K,V,v,5,c[16]),V=i(V,F,U,K,b,9,c[17]),K=i(K,V,F,U,D,14,c[18]),U=i(U,K,V,F,g,20,c[19]),F=i(F,U,K,V,S,5,c[20]),V=i(V,F,U,K,N,9,c[21]),K=i(K,V,F,U,j,14,c[22]),U=i(U,K,V,F,T,20,c[23]),F=i(F,U,K,V,L,5,c[24]),V=i(V,F,U,K,M,9,c[25]),K=i(K,V,F,U,x,14,c[26]),U=i(U,K,V,F,I,20,c[27]),F=i(F,U,K,V,k,5,c[28]),V=i(V,F,U,K,y,9,c[29]),K=i(K,V,F,U,O,14,c[30]),U=i(U,K,V,F,R,20,c[31]),F=n(F,U,K,V,S,4,c[32]),V=n(V,F,U,K,I,11,c[33]),K=n(K,V,F,U,D,16,c[34]),U=n(U,K,V,F,M,23,c[35]),F=n(F,U,K,V,v,4,c[36]),V=n(V,F,U,K,T,11,c[37]),K=n(K,V,F,U,O,16,c[38]),U=n(U,K,V,F,N,23,c[39]),F=n(F,U,K,V,k,4,c[40]),V=n(V,F,U,K,g,11,c[41]),K=n(K,V,F,U,x,16,c[42]),U=n(U,K,V,F,b,23,c[43]),F=n(F,U,K,V,L,4,c[44]),V=n(V,F,U,K,R,11,c[45]),K=n(K,V,F,U,j,16,c[46]),U=n(U,K,V,F,y,23,c[47]),F=e(F,U,K,V,g,6,c[48]),V=e(V,F,U,K,O,10,c[49]),K=e(K,V,F,U,M,15,c[50]),U=e(U,K,V,F,S,21,c[51]),F=e(F,U,K,V,R,6,c[52]),V=e(V,F,U,K,x,10,c[53]),K=e(K,V,F,U,N,15,c[54]),U=e(U,K,V,F,v,21,c[55]),F=e(F,U,K,V,I,6,c[56]),V=e(V,F,U,K,j,10,c[57]),K=e(K,V,F,U,b,15,c[58]),U=e(U,K,V,F,k,21,c[59]),F=e(F,U,K,V,T,6,c[60]),V=e(V,F,U,K,D,10,c[61]),K=e(K,V,F,U,y,15,c[62]),U=e(U,K,V,F,L,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+U|0,p[2]=p[2]+K|0,p[3]=p[3]+V|0},_doFinalize:function(){var t=this._data,a=t.words,s=this._nDataBytes*8,u=t.sigBytes*8;a[u>>>5]|=128<<24-u%32;var h=E.floor(s/4294967296),p=s;a[(u+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,a[(u+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,t.sigBytes=(a.length+1)*4,this._process();for(var 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(l,t,a,s,u,h,p){var g=l+(t&a|~t&s)+u+p;return(g<<h|g>>>32-h)+t}function i(l,t,a,s,u,h,p){var g=l+(t&s|a&~s)+u+p;return(g<<h|g>>>32-h)+t}function n(l,t,a,s,u,h,p){var g=l+(t^a^s)+u+p;return(g<<h|g>>>32-h)+t}function e(l,t,a,s,u,h,p){var g=l+(a^(t|~s))+u+p;return(g<<h|g>>>32-h)+t}C.MD5=m._createHelper(o),C.HmacMD5=m._createHmacHelper(o)}(Math),_.MD5})},czTT:function(H,B,d){},d4KN:function(H,B,d){var _=d("ProS"),E=d("bYtY");function C(A,w){E.each(w,function(m){m.update="updateView",_.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 _=d("ProS"),E=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),_.registerPreprocessor(E)},"dF/Y":function(H,B,d){"use strict";var _=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(_.a)(Object(_.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}},_=d;H.exports=_},diRs:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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 l=0,e=Object.getOwnPropertySymbols(r);l<e.length;l++)i.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(r,e[l])&&(n[e[l]]=r[e[l]]);return n},o=C.forwardRef(function(r,i){var n=r.prefixCls,e=r.title,l=r.content,t=c(r,["prefixCls","title","content"]),a=C.useContext(m.b),s=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)(l)))},h=s("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 _={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=_},dm2S:function(H,B,d){"use strict";d.d(B,"a",function(){return A});var _=d("ODXe"),E=d("q1tI"),C=d.n(E);function A(w){var m=E.useRef(!1),f=E.useState(w),c=Object(_.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 _=d("DEFe"),E=d("ProS"),C=E.extendComponentView({type:"geo",init:function(A,w){var m=new _(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 _=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 O=b.getBaseAxis();if(O.type==="category"){var I=O.dim+"_"+O.index;y[I]||(y[I]={categoryAxis:O,valueAxis:b.getOtherAxis(O),series:[]},T.push({axisDim:O.dim,axisIndex:O.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,O=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(O,function(j){return j}))});for(var N=[I.join(c)],D=0;D<L[0].length;D++){for(var R=[],k=0;k<L.length;k++)R.push(L[k][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,O=arguments[b-1],I=x.getName(O),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 l(v){var y=v.slice(0,v.indexOf(`
|
|
|
`));if(y.indexOf(c)>=0)return!0}var t=new RegExp("["+c+"]+","g");function a(v){for(var y=v.split(/\n+/g),x=e(y.shift()).split(t),T=[],S=E.map(x,function(L){return{name:L,data:[]}}),b=0;b<y.length;b++){var O=e(y[b]).split(t);T.push(O.shift());for(var I=0;I<O.length;I++)S[I]&&(S[I].data[b]=O[I])}return{series:S,categories:T}}function s(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),O="",I,L=!1;isNaN(b[0])?(L=!0,O=b[0],b=b.slice(1),T[S]={name:O,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(l(S)){var O=a(S),I=y[b],L=I.axisDim+"Axis";I&&(T[L]=T[L]||[],T[L][I.axisIndex]={data:O.categories},T.series=T.series.concat(O.series))}else{var O=s(S);T.series.push(O)}}),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"),O=T.get("lang")||[];b.innerHTML=O[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 k=N(y.getOption());typeof k=="string"?I.innerHTML=k:E.isDom(k)&&I.appendChild(k)}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,j=document.createElement("div");j.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",U=document.createElement("div"),K=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(U,"click",z),C.addEventListener(K,"click",function(){var Q;try{typeof D=="function"?Q=D(I,y.getOption()):Q=u(L.value,M)}catch(Z){throw z(),new Error("Data view format error "+Z)}Q&&y.dispatchAction({type:"changeDataView",newOption:Q}),z()}),U.innerHTML=O[1],K.innerHTML=O[2],K.style.cssText=F,U.style.cssText=F,!T.get("readOnly")&&j.appendChild(K),j.appendChild(U),S.appendChild(b),S.appendChild(I),S.appendChild(j),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),_.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 _=d("Gev7"),E=d("bYtY"),C=d("6GrX"),A=d("pzxd"),w=d("gut8"),m=w.ContextCachedBy,f=function(r){_.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,_);var c=f;H.exports=c},dt0z:function(H,B,d){var _=d("zoYe");function E(C){return C==null?"":_(C)}H.exports=E},dtIV:function(H,B,d){"use strict";d.r(B),function(_){d.d(B,"AcroForm",function(){return Le}),d.d(B,"AcroFormAppearance",function(){return J}),d.d(B,"AcroFormButton",function(){return Et}),d.d(B,"AcroFormCheckBox",function(){return jt}),d.d(B,"AcroFormChoiceField",function(){return qe}),d.d(B,"AcroFormComboBox",function(){return Lt}),d.d(B,"AcroFormEditBox",function(){return $e}),d.d(B,"AcroFormListBox",function(){return Re}),d.d(B,"AcroFormPasswordField",function(){return se}),d.d(B,"AcroFormPushButton",function(){return Ut}),d.d(B,"AcroFormRadioButton",function(){return Bt}),d.d(B,"AcroFormTextField",function(){return He}),d.d(B,"GState",function(){return k}),d.d(B,"ShadingPattern",function(){return j}),d.d(B,"TilingPattern",function(){return F}),d.d(B,"jsPDF",function(){return U});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 _!="undefined"?_: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(Qe,Se,Ne){var je=new XMLHttpRequest;je.open("GET",Qe),je.responseType="blob",je.onload=function(){e(je.response,Se,Ne)},je.onerror=function(){f.error("could not download file")},je.send()}function o(Qe){var Se=new XMLHttpRequest;Se.open("HEAD",Qe,!1);try{Se.send()}catch(Ne){}return Se.status>=200&&Se.status<=299}function r(Qe){try{Qe.dispatchEvent(new MouseEvent("click"))}catch(Ne){var Se=document.createEvent("MouseEvents");Se.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Qe.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(Qe,Se,Ne){var je=w.URL||w.webkitURL,Xe=document.createElement("a");Se=Se||Qe.name||"download",Xe.download=Se,Xe.rel="noopener",typeof Qe=="string"?(Xe.href=Qe,Xe.origin!==location.origin?o(Xe.href)?c(Qe,Se,Ne):r(Xe,Xe.target="_blank"):r(Xe)):(Xe.href=je.createObjectURL(Qe),setTimeout(function(){je.revokeObjectURL(Xe.href)},4e4),setTimeout(function(){r(Xe)},0))}:"msSaveOrOpenBlob"in navigator?function(Qe,Se,Ne){if(Se=Se||Qe.name||"download",typeof Qe=="string")if(o(Qe))c(Qe,Se,Ne);else{var je=document.createElement("a");je.href=Qe,je.target="_blank",setTimeout(function(){r(je)})}else navigator.msSaveOrOpenBlob(function(Xe,ze){return ze===void 0?ze={autoBom:!1}:C()(ze)!=="object"&&(f.warn("Deprecated: Expected third argument to be a object"),ze={autoBom:!ze}),ze.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Xe.type)?new Blob([String.fromCharCode(65279),Xe],{type:Xe.type}):Xe}(Qe,Ne),Se)}:function(Qe,Se,Ne,je){if((je=je||open("","_blank"))&&(je.document.title=je.document.body.innerText="downloading..."),typeof Qe=="string")return c(Qe,Se,Ne);var Xe=Qe.type==="application/octet-stream",ze=/constructor/i.test(w.HTMLElement)||w.safari,Ze=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ze||Xe&&ze)&&(typeof FileReader=="undefined"?"undefined":C()(FileReader))==="object"){var wt=new FileReader;wt.onloadend=function(){var Rr=wt.result;Rr=Ze?Rr:Rr.replace(/^data:[^;]*;/,"data:attachment/file;"),je?je.location.href=Rr:location=Rr,je=null},wt.readAsDataURL(Qe)}else{var st=w.URL||w.webkitURL,Jt=st.createObjectURL(Qe);je?je.location=Jt:location.href=Jt,je=null,setTimeout(function(){st.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 l(Qe){var Se;Qe=Qe||"",this.ok=!1,Qe.charAt(0)=="#"&&(Qe=Qe.substr(1,6)),Qe={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Qe=(Qe=Qe.replace(/ /g,"")).toLowerCase()]||Qe;for(var Ne=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(st){return[parseInt(st[1]),parseInt(st[2]),parseInt(st[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(st){return[parseInt(st[1],16),parseInt(st[2],16),parseInt(st[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(st){return[parseInt(st[1]+st[1],16),parseInt(st[2]+st[2],16),parseInt(st[3]+st[3],16)]}}],je=0;je<Ne.length;je++){var Xe=Ne[je].re,ze=Ne[je].process,Ze=Xe.exec(Qe);Ze&&(Se=ze(Ze),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 wt=this.r.toString(16),st=this.g.toString(16),Jt=this.b.toString(16);return wt.length==1&&(wt="0"+wt),st.length==1&&(st="0"+st),Jt.length==1&&(Jt="0"+Jt),"#"+wt+st+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(Qe,Se){var Ne=Qe[0],je=Qe[1],Xe=Qe[2],ze=Qe[3];Ne=s(Ne,je,Xe,ze,Se[0],7,-680876936),ze=s(ze,Ne,je,Xe,Se[1],12,-389564586),Xe=s(Xe,ze,Ne,je,Se[2],17,606105819),je=s(je,Xe,ze,Ne,Se[3],22,-1044525330),Ne=s(Ne,je,Xe,ze,Se[4],7,-176418897),ze=s(ze,Ne,je,Xe,Se[5],12,1200080426),Xe=s(Xe,ze,Ne,je,Se[6],17,-1473231341),je=s(je,Xe,ze,Ne,Se[7],22,-45705983),Ne=s(Ne,je,Xe,ze,Se[8],7,1770035416),ze=s(ze,Ne,je,Xe,Se[9],12,-1958414417),Xe=s(Xe,ze,Ne,je,Se[10],17,-42063),je=s(je,Xe,ze,Ne,Se[11],22,-1990404162),Ne=s(Ne,je,Xe,ze,Se[12],7,1804603682),ze=s(ze,Ne,je,Xe,Se[13],12,-40341101),Xe=s(Xe,ze,Ne,je,Se[14],17,-1502002290),Ne=u(Ne,je=s(je,Xe,ze,Ne,Se[15],22,1236535329),Xe,ze,Se[1],5,-165796510),ze=u(ze,Ne,je,Xe,Se[6],9,-1069501632),Xe=u(Xe,ze,Ne,je,Se[11],14,643717713),je=u(je,Xe,ze,Ne,Se[0],20,-373897302),Ne=u(Ne,je,Xe,ze,Se[5],5,-701558691),ze=u(ze,Ne,je,Xe,Se[10],9,38016083),Xe=u(Xe,ze,Ne,je,Se[15],14,-660478335),je=u(je,Xe,ze,Ne,Se[4],20,-405537848),Ne=u(Ne,je,Xe,ze,Se[9],5,568446438),ze=u(ze,Ne,je,Xe,Se[14],9,-1019803690),Xe=u(Xe,ze,Ne,je,Se[3],14,-187363961),je=u(je,Xe,ze,Ne,Se[8],20,1163531501),Ne=u(Ne,je,Xe,ze,Se[13],5,-1444681467),ze=u(ze,Ne,je,Xe,Se[2],9,-51403784),Xe=u(Xe,ze,Ne,je,Se[7],14,1735328473),Ne=h(Ne,je=u(je,Xe,ze,Ne,Se[12],20,-1926607734),Xe,ze,Se[5],4,-378558),ze=h(ze,Ne,je,Xe,Se[8],11,-2022574463),Xe=h(Xe,ze,Ne,je,Se[11],16,1839030562),je=h(je,Xe,ze,Ne,Se[14],23,-35309556),Ne=h(Ne,je,Xe,ze,Se[1],4,-1530992060),ze=h(ze,Ne,je,Xe,Se[4],11,1272893353),Xe=h(Xe,ze,Ne,je,Se[7],16,-155497632),je=h(je,Xe,ze,Ne,Se[10],23,-1094730640),Ne=h(Ne,je,Xe,ze,Se[13],4,681279174),ze=h(ze,Ne,je,Xe,Se[0],11,-358537222),Xe=h(Xe,ze,Ne,je,Se[3],16,-722521979),je=h(je,Xe,ze,Ne,Se[6],23,76029189),Ne=h(Ne,je,Xe,ze,Se[9],4,-640364487),ze=h(ze,Ne,je,Xe,Se[12],11,-421815835),Xe=h(Xe,ze,Ne,je,Se[15],16,530742520),Ne=p(Ne,je=h(je,Xe,ze,Ne,Se[2],23,-995338651),Xe,ze,Se[0],6,-198630844),ze=p(ze,Ne,je,Xe,Se[7],10,1126891415),Xe=p(Xe,ze,Ne,je,Se[14],15,-1416354905),je=p(je,Xe,ze,Ne,Se[5],21,-57434055),Ne=p(Ne,je,Xe,ze,Se[12],6,1700485571),ze=p(ze,Ne,je,Xe,Se[3],10,-1894986606),Xe=p(Xe,ze,Ne,je,Se[10],15,-1051523),je=p(je,Xe,ze,Ne,Se[1],21,-2054922799),Ne=p(Ne,je,Xe,ze,Se[8],6,1873313359),ze=p(ze,Ne,je,Xe,Se[15],10,-30611744),Xe=p(Xe,ze,Ne,je,Se[6],15,-1560198380),je=p(je,Xe,ze,Ne,Se[13],21,1309151649),Ne=p(Ne,je,Xe,ze,Se[4],6,-145523070),ze=p(ze,Ne,je,Xe,Se[11],10,-1120210379),Xe=p(Xe,ze,Ne,je,Se[2],15,718787259),je=p(je,Xe,ze,Ne,Se[9],21,-343485551),Qe[0]=O(Ne,Qe[0]),Qe[1]=O(je,Qe[1]),Qe[2]=O(Xe,Qe[2]),Qe[3]=O(ze,Qe[3])}function a(Qe,Se,Ne,je,Xe,ze){return Se=O(O(Se,Qe),O(je,ze)),O(Se<<Xe|Se>>>32-Xe,Ne)}function s(Qe,Se,Ne,je,Xe,ze,Ze){return a(Se&Ne|~Se&je,Qe,Se,Xe,ze,Ze)}function u(Qe,Se,Ne,je,Xe,ze,Ze){return a(Se&je|Ne&~je,Qe,Se,Xe,ze,Ze)}function h(Qe,Se,Ne,je,Xe,ze,Ze){return a(Se^Ne^je,Qe,Se,Xe,ze,Ze)}function p(Qe,Se,Ne,je,Xe,ze,Ze){return a(Ne^(Se|~je),Qe,Se,Xe,ze,Ze)}function g(Qe){var Se,Ne=Qe.length,je=[1732584193,-271733879,-1732584194,271733878];for(Se=64;Se<=Qe.length;Se+=64)t(je,v(Qe.substring(Se-64,Se)));Qe=Qe.substring(Se-64);var Xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Se=0;Se<Qe.length;Se++)Xe[Se>>2]|=Qe.charCodeAt(Se)<<(Se%4<<3);if(Xe[Se>>2]|=128<<(Se%4<<3),Se>55)for(t(je,Xe),Se=0;Se<16;Se++)Xe[Se]=0;return Xe[14]=8*Ne,t(je,Xe),je}function v(Qe){var Se,Ne=[];for(Se=0;Se<64;Se+=4)Ne[Se>>2]=Qe.charCodeAt(Se)+(Qe.charCodeAt(Se+1)<<8)+(Qe.charCodeAt(Se+2)<<16)+(Qe.charCodeAt(Se+3)<<24);return Ne}i=w.atob.bind(w),n=w.btoa.bind(w);var y="0123456789abcdef".split("");function x(Qe){for(var Se="",Ne=0;Ne<4;Ne++)Se+=y[Qe>>8*Ne+4&15]+y[Qe>>8*Ne&15];return Se}function T(Qe){return String.fromCharCode((255&Qe)>>0,(65280&Qe)>>8,(16711680&Qe)>>16,(4278190080&Qe)>>24)}function S(Qe){return g(Qe).map(T).join("")}var b=function(Qe){for(var Se=0;Se<Qe.length;Se++)Qe[Se]=x(Qe[Se]);return Qe.join("")}(g("hello"))!="5d41402abc4b2a76b9719d911017c592";function O(Qe,Se){if(b){var Ne=(65535&Qe)+(65535&Se);return(Qe>>16)+(Se>>16)+(Ne>>16)<<16|65535&Ne}return Qe+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(Qe,Se){var Ne,je,Xe,ze;if(Qe!==Ne){for(var Ze=(Xe=Qe,ze=1+(256/Qe.length>>0),new Array(ze+1).join(Xe)),wt=[],st=0;st<256;st++)wt[st]=st;var Jt=0;for(st=0;st<256;st++){var Rr=wt[st];Jt=(Jt+Rr+Ze.charCodeAt(st))%256,wt[st]=wt[Jt],wt[Jt]=Rr}Ne=Qe,je=wt}else wt=je;var Ir=Se.length,Xr=0,er=0,pn="";for(st=0;st<Ir;st++)er=(er+(Rr=wt[Xr=(Xr+1)%256]))%256,wt[Xr]=wt[er],wt[er]=Rr,Ze=wt[(wt[Xr]+wt[er])%256],pn+=String.fromCharCode(Se.charCodeAt(st)^Ze);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(Qe,Se,Ne,je){this.v=1,this.r=2;var Xe=192;Qe.forEach(function(wt){if(L.perm!==void 0)throw new Error("Invalid permission: "+wt);Xe+=L[wt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var ze=(Se+this.padding).substr(0,32),Ze=(Ne+this.padding).substr(0,32);this.O=this.processOwnerPassword(ze,Ze),this.P=-(1+(255^Xe)),this.encryptionKey=S(ze+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(je)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function D(Qe){if(/[^\u0000-\u00ff]/.test(Qe))throw new Error("Invalid PDF Name Object: "+Qe+", Only accept ASCII characters.");for(var Se="",Ne=Qe.length,je=0;je<Ne;je++){var Xe=Qe.charCodeAt(je);Xe<33||Xe===35||Xe===37||Xe===40||Xe===41||Xe===47||Xe===60||Xe===62||Xe===91||Xe===93||Xe===123||Xe===125||Xe>126?Se+="#"+("0"+Xe.toString(16)).slice(-2):Se+=Qe[je]}return Se}function R(Qe){if(C()(Qe)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Se={};this.subscribe=function(Ne,je,Xe){if(Xe=Xe||!1,typeof Ne!="string"||typeof je!="function"||typeof Xe!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Se.hasOwnProperty(Ne)||(Se[Ne]={});var ze=Math.random().toString(35);return Se[Ne][ze]=[je,!!Xe],ze},this.unsubscribe=function(Ne){for(var je in Se)if(Se[je][Ne])return delete Se[je][Ne],Object.keys(Se[je]).length===0&&delete Se[je],!0;return!1},this.publish=function(Ne){if(Se.hasOwnProperty(Ne)){var je=Array.prototype.slice.call(arguments,1),Xe=[];for(var ze in Se[Ne]){var Ze=Se[Ne][ze];try{Ze[0].apply(Qe,je)}catch(wt){w.console&&f.error("jsPDF PubSub Error",wt.message,wt)}Ze[1]&&Xe.push(ze)}Xe.length&&Xe.forEach(this.unsubscribe)}},this.getTopics=function(){return Se}}function k(Qe){if(!(this instanceof k))return new k(Qe);var Se="opacity,stroke-opacity".split(",");for(var Ne in Qe)Qe.hasOwnProperty(Ne)&&Se.indexOf(Ne)>=0&&(this[Ne]=Qe[Ne]);this.id="",this.objectNumber=-1}function M(Qe,Se){this.gState=Qe,this.matrix=Se,this.id="",this.objectNumber=-1}function j(Qe,Se,Ne,je,Xe){if(!(this instanceof j))return new j(Qe,Se,Ne,je,Xe);this.type=Qe==="axial"?2:3,this.coords=Se,this.colors=Ne,M.call(this,je,Xe)}function F(Qe,Se,Ne,je,Xe){if(!(this instanceof F))return new F(Qe,Se,Ne,je,Xe);this.boundingBox=Qe,this.xStep=Se,this.yStep=Ne,this.stream="",this.cloneIndex=0,M.call(this,je,Xe)}function U(Qe){var Se,Ne=typeof arguments[0]=="string"?arguments[0]:"p",je=arguments[1],Xe=arguments[2],ze=arguments[3],Ze=[],wt=1,st=16,Jt="S",Rr=null;C()(Qe=Qe||{})==="object"&&(Ne=Qe.orientation,je=Qe.unit||je,Xe=Qe.format||Xe,ze=Qe.compress||Qe.compressPdf||ze,(Rr=Qe.encryption||null)!==null&&(Rr.userPassword=Rr.userPassword||"",Rr.ownerPassword=Rr.ownerPassword||"",Rr.userPermissions=Rr.userPermissions||[]),wt=typeof Qe.userUnit=="number"?Math.abs(Qe.userUnit):1,Qe.precision!==void 0&&(Se=Qe.precision),Qe.floatPrecision!==void 0&&(st=Qe.floatPrecision),Jt=Qe.defaultPathOperation||"S"),Ze=Qe.filters||(ze===!0?["FlateEncode"]:Ze),je=je||"mm",Ne=(""+(Ne||"P")).toLowerCase();var Ir=Qe.putOnlyUsedFonts||!1,Xr={},er={internal:{},__private__:{}};er.__private__.PubSub=R;var pn="1.3",fr=er.__private__.getPdfVersion=function(){return pn};er.__private__.setPdfVersion=function(Tt){pn=Tt};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]};er.__private__.getPageFormats=function(){return mn};var en=er.__private__.getPageFormat=function(Tt){return mn[Tt]};Xe=Xe||"a4";var Mr={COMPAT:"compat",ADVANCED:"advanced"},Gn=Mr.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=Mr.ADVANCED}function _i(){this.restoreGraphicsState(),Jt="S",Gn=Mr.COMPAT}var Br=er.__private__.combineFontStyleAndFontWeight=function(Tt,Vt){if(Tt=="bold"&&Vt=="normal"||Tt=="bold"&&Vt==400||Tt=="normal"&&Vt=="italic"||Tt=="bold"&&Vt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Vt&&(Tt=Vt==400||Vt==="normal"?Tt==="italic"?"italic":"normal":Vt!=700&&Vt!=="bold"||Tt!=="normal"?(Vt==700?"bold":Vt)+""+Tt:"bold"),Tt};er.advancedAPI=function(Tt){var Vt=Gn===Mr.COMPAT;return Vt&&di.call(this),typeof Tt!="function"||(Tt(this),Vt&&_i.call(this)),this},er.compatAPI=function(Tt){var Vt=Gn===Mr.ADVANCED;return Vt&&_i.call(this),typeof Tt!="function"||(Tt(this),Vt&&di.call(this)),this},er.isAdvancedAPI=function(){return Gn===Mr.ADVANCED};var sn,Sn=function(Vt){if(Gn!==Mr.ADVANCED)throw new Error(Vt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Dt=er.roundToPrecision=er.__private__.roundToPrecision=function(Tt,Vt){var hn=Se||Vt;if(isNaN(Tt)||isNaN(hn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Tt.toFixed(hn).replace(/0+$/,"")};sn=er.hpf=er.__private__.hpf=typeof st=="number"?function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.hpf");return Dt(Tt,st)}:st==="smart"?function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.hpf");return Dt(Tt,Tt>-1&&Tt<1?16:5)}:function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.hpf");return Dt(Tt,16)};var ft=er.f2=er.__private__.f2=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.f2");return Dt(Tt,2)},St=er.__private__.f3=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.f3");return Dt(Tt,3)},Ct=er.scale=er.__private__.scale=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.scale");return Gn===Mr.COMPAT?Tt*vr:Gn===Mr.ADVANCED?Tt:void 0},Nt=function(Vt){return Gn===Mr.COMPAT?ts()-Vt:Gn===Mr.ADVANCED?Vt:void 0},gt=function(Vt){return Ct(Nt(Vt))};er.__private__.setPrecision=er.setPrecision=function(Tt){typeof parseInt(Tt,10)=="number"&&(Se=parseInt(Tt,10))};var Qt,tr="00000000000000000000000000000000",ar=er.__private__.getFileId=function(){return tr},yr=er.__private__.setFileId=function(Tt){return tr=Tt!==void 0&&/^[a-fA-F0-9]{32}$/.test(Tt)?Tt.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};er.setFileId=function(Tt){return yr(Tt),this},er.getFileId=function(){return ar()};var xn=er.__private__.convertDateToPDFDate=function(Tt){var Vt=Tt.getTimezoneOffset(),hn=Vt<0?"+":"-",Vn=Math.floor(Math.abs(Vt/60)),pt=Math.abs(Vt%60),ae=[hn,ln(Vn),"'",ln(pt),"'"].join("");return["D:",Tt.getFullYear(),ln(Tt.getMonth()+1),ln(Tt.getDate()),ln(Tt.getHours()),ln(Tt.getMinutes()),ln(Tt.getSeconds()),ae].join("")},vn=er.__private__.convertPDFDateToDate=function(Tt){var Vt=parseInt(Tt.substr(2,4),10),hn=parseInt(Tt.substr(6,2),10)-1,Vn=parseInt(Tt.substr(8,2),10),pt=parseInt(Tt.substr(10,2),10),ae=parseInt(Tt.substr(12,2),10),pe=parseInt(Tt.substr(14,2),10);return new Date(Vt,hn,Vn,pt,ae,pe,0)},zn=er.__private__.setCreationDate=function(Tt){var Vt;if(Tt===void 0&&(Tt=new Date),Tt instanceof Date)Vt=xn(Tt);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(Tt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Vt=Tt}return Qt=Vt},Yr=er.__private__.getCreationDate=function(Tt){var Vt=Qt;return Tt==="jsDate"&&(Vt=vn(Qt)),Vt};er.setCreationDate=function(Tt){return zn(Tt),this},er.getCreationDate=function(Tt){return Yr(Tt)};var xr,ln=er.__private__.padd2=function(Tt){return("0"+parseInt(Tt)).slice(-2)},On=er.__private__.padd2Hex=function(Tt){return("00"+(Tt=Tt.toString())).substr(Tt.length)},In=0,Un=[],ti=[],ui=0,si=[],ki=[],zi=!1,Ri=ti,Yi=function(){In=0,ui=0,ti=[],Un=[],si=[],ra=ta(),pa=ta()};er.__private__.setCustomOutputDestination=function(Tt){zi=!0,Ri=Tt};var $n=function(Vt){zi||(Ri=Vt)};er.__private__.resetCustomOutputDestination=function(){zi=!1,Ri=ti};var gn=er.__private__.out=function(Tt){return Tt=Tt.toString(),ui+=Tt.length+1,Ri.push(Tt),Ri},mi=er.__private__.write=function(Tt){return gn(arguments.length===1?Tt.toString():Array.prototype.join.call(arguments," "))},Hi=er.__private__.getArrayBuffer=function(Tt){for(var Vt=Tt.length,hn=new ArrayBuffer(Vt),Vn=new Uint8Array(hn);Vt--;)Vn[Vt]=Tt.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]];er.__private__.getStandardFonts=function(){return Li};var Bi=Qe.fontSize||16;er.__private__.setFontSize=er.setFontSize=function(Tt){return Bi=Gn===Mr.ADVANCED?Tt/vr:Tt,this};var wr,lr=er.__private__.getFontSize=er.getFontSize=function(){return Gn===Mr.COMPAT?Bi:Bi*vr},on=Qe.R2L||!1;er.__private__.setR2L=er.setR2L=function(Tt){return on=Tt,this},er.__private__.getR2L=er.getR2L=function(){return on};var Zt,br=er.__private__.setZoomMode=function(Tt){var Vt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Tt))wr=Tt;else if(isNaN(Tt)){if(Vt.indexOf(Tt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Tt+'" is not recognized.');wr=Tt}else wr=parseInt(Tt,10)};er.__private__.getZoomMode=function(){return wr};var Or,Wr=er.__private__.setPageMode=function(Tt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Tt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Tt+'" is not recognized.');Zt=Tt};er.__private__.getPageMode=function(){return Zt};var An=er.__private__.setLayoutMode=function(Tt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Tt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Tt+'" is not recognized.');Or=Tt};er.__private__.getLayoutMode=function(){return Or},er.__private__.setDisplayMode=er.setDisplayMode=function(Tt,Vt,hn){return br(Tt),An(Vt),Wr(hn),this};var vt={title:"",subject:"",author:"",keywords:"",creator:""};er.__private__.getDocumentProperty=function(Tt){if(Object.keys(vt).indexOf(Tt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return vt[Tt]},er.__private__.getDocumentProperties=function(){return vt},er.__private__.setDocumentProperties=er.setProperties=er.setDocumentProperties=function(Tt){for(var Vt in vt)vt.hasOwnProperty(Vt)&&Tt[Vt]&&(vt[Vt]=Tt[Vt]);return this},er.__private__.setDocumentProperty=function(Tt,Vt){if(Object.keys(vt).indexOf(Tt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return vt[Tt]=Vt};var mr,vr,Fr,nn,cn,tn={},Ln={},Tn=[],Xn={},ci={},Jn={},pi={},Si=null,Ni=0,xi=[],yi=new R(er),vi=Qe.hotfixes||[],Ti={},Ui={},$i=[],Di=function Tt(Vt,hn,Vn,pt,ae,pe){if(!(this instanceof Tt))return new Tt(Vt,hn,Vn,pt,ae,pe);isNaN(Vt)&&(Vt=1),isNaN(hn)&&(hn=0),isNaN(Vn)&&(Vn=0),isNaN(pt)&&(pt=1),isNaN(ae)&&(ae=0),isNaN(pe)&&(pe=0),this._matrix=[Vt,hn,Vn,pt,ae,pe]};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(Tt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(sn).join(Tt)},Di.prototype.multiply=function(Tt){var Vt=Tt.sx*this.sx+Tt.shy*this.shx,hn=Tt.sx*this.shy+Tt.shy*this.sy,Vn=Tt.shx*this.sx+Tt.sy*this.shx,pt=Tt.shx*this.shy+Tt.sy*this.sy,ae=Tt.tx*this.sx+Tt.ty*this.shx+this.tx,pe=Tt.tx*this.shy+Tt.ty*this.sy+this.ty;return new Di(Vt,hn,Vn,pt,ae,pe)},Di.prototype.decompose=function(){var Tt=this.sx,Vt=this.shy,hn=this.shx,Vn=this.sy,pt=this.tx,ae=this.ty,pe=Math.sqrt(Tt*Tt+Vt*Vt),be=(Tt/=pe)*hn+(Vt/=pe)*Vn;hn-=Tt*be,Vn-=Vt*be;var Ke=Math.sqrt(hn*hn+Vn*Vn);return be/=Ke,Tt*(Vn/=Ke)<Vt*(hn/=Ke)&&(Tt=-Tt,Vt=-Vt,be=-be,pe=-pe),{scale:new Di(pe,0,0,Ke,0,0),translate:new Di(1,0,0,1,pt,ae),rotate:new Di(Tt,Vt,-Vt,Tt,0,0),skew:new Di(1,0,be,1,0,0)}},Di.prototype.toString=function(Tt){return this.join(" ")},Di.prototype.inversed=function(){var Tt=this.sx,Vt=this.shy,hn=this.shx,Vn=this.sy,pt=this.tx,ae=this.ty,pe=1/(Tt*Vn-Vt*hn),be=Vn*pe,Ke=-Vt*pe,mt=-hn*pe,Gt=Tt*pe;return new Di(be,Ke,mt,Gt,-be*pt-mt*ae,-Ke*pt-Gt*ae)},Di.prototype.applyToPoint=function(Tt){var Vt=Tt.x*this.sx+Tt.y*this.shx+this.tx,hn=Tt.x*this.shy+Tt.y*this.sy+this.ty;return new ws(Vt,hn)},Di.prototype.applyToRectangle=function(Tt){var Vt=this.applyToPoint(Tt),hn=this.applyToPoint(new ws(Tt.x+Tt.w,Tt.y+Tt.h));return new qo(Vt.x,Vt.y,hn.x-Vt.x,hn.y-Vt.y)},Di.prototype.clone=function(){var Tt=this.sx,Vt=this.shy,hn=this.shx,Vn=this.sy,pt=this.tx,ae=this.ty;return new Di(Tt,Vt,hn,Vn,pt,ae)},er.Matrix=Di;var ua=er.matrixMult=function(Tt,Vt){return Vt.multiply(Tt)},aa=new Di(1,0,0,1,0,0);er.unitMatrix=er.identityMatrix=aa;var Gi=function(Vt,hn){if(!ci[Vt]){var Vn=(hn instanceof j?"Sh":"P")+(Object.keys(Xn).length+1).toString(10);hn.id=Vn,ci[Vt]=Vn,Xn[Vn]=hn,yi.publish("addPattern",hn)}};er.ShadingPattern=j,er.TilingPattern=F,er.addShadingPattern=function(Tt,Vt){return Sn("addShadingPattern()"),Gi(Tt,Vt),this},er.beginTilingPattern=function(Tt){Sn("beginTilingPattern()"),_s(Tt.boundingBox[0],Tt.boundingBox[1],Tt.boundingBox[2]-Tt.boundingBox[0],Tt.boundingBox[3]-Tt.boundingBox[1],Tt.matrix)},er.endTilingPattern=function(Tt,Vt){Sn("endTilingPattern()"),Vt.stream=ki[xr].join(`
|
|
|
`),Gi(Tt,Vt),yi.publish("endTilingPattern",Vt),$i.pop().restore()};var Vi=er.__private__.newObject=function(){var Tt=ta();return Xi(Tt,!0),Tt},ta=er.__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=er.__private__.newAdditionalObject=function(){var Tt={objId:ta(),content:""};return si.push(Tt),Tt},ra=ta(),pa=ta(),_a=er.__private__.decodeColorString=function(Tt){var Vt=Tt.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 Vn="#",pt=0;pt<3;pt++)Vn+=("0"+Math.floor(255*parseFloat(Vt[pt])).toString(16)).slice(-2);return Vn},Da=er.__private__.encodeColorString=function(Tt){var Vt;typeof Tt=="string"&&(Tt={ch1:Tt});var hn=Tt.ch1,Vn=Tt.ch2,pt=Tt.ch3,ae=Tt.ch4,pe=Tt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof hn=="string"&&hn.charAt(0)!=="#"){var be=new l(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,Vn=Ke>>8&255,pt=255&Ke}if(Vn===void 0||ae===void 0&&hn===Vn&&Vn===pt)if(typeof hn=="string")Vt=hn+" "+pe[0];else switch(Tt.precision){case 2:Vt=ft(hn/255)+" "+pe[0];break;case 3:default:Vt=St(hn/255)+" "+pe[0]}else if(ae===void 0||C()(ae)==="object"){if(ae&&!isNaN(ae.a)&&ae.a===0)return Vt=["1.","1.","1.",pe[1]].join(" ");if(typeof hn=="string")Vt=[hn,Vn,pt,pe[1]].join(" ");else switch(Tt.precision){case 2:Vt=[ft(hn/255),ft(Vn/255),ft(pt/255),pe[1]].join(" ");break;default:case 3:Vt=[St(hn/255),St(Vn/255),St(pt/255),pe[1]].join(" ")}}else if(typeof hn=="string")Vt=[hn,Vn,pt,ae,pe[2]].join(" ");else switch(Tt.precision){case 2:Vt=[ft(hn),ft(Vn),ft(pt),ft(ae),pe[2]].join(" ");break;case 3:default:Vt=[St(hn),St(Vn),St(pt),St(ae),pe[2]].join(" ")}return Vt},Ra=er.__private__.getFilters=function(){return Ze},Ao=er.__private__.putStream=function(Tt){var Vt=(Tt=Tt||{}).data||"",hn=Tt.filters||Ra(),Vn=Tt.alreadyAppliedFilters||[],pt=Tt.addLength1||!1,ae=Vt.length,pe=Tt.objectId,be=function(Qn){return Qn};if(Rr!==null&&pe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Rr!==null&&(be=Ji.encryptor(pe,0));var Ke={};hn===!0&&(hn=["FlateEncode"]);var mt=Tt.additionalKeyValues||[],Gt=(Ke=U.API.processDataByFilters!==void 0?U.API.processDataByFilters(Vt,hn):{data:Vt,reverseChain:[]}).reverseChain+(Array.isArray(Vn)?Vn.join(" "):Vn.toString());if(Ke.data.length!==0&&(mt.push({key:"Length",value:Ke.data.length}),pt===!0&&mt.push({key:"Length1",value:ae})),Gt.length!=0)if(Gt.split("/").length-1==1)mt.push({key:"Filter",value:Gt});else{mt.push({key:"Filter",value:"["+Gt+"]"});for(var Dr=0;Dr<mt.length;Dr+=1)if(mt[Dr].key==="DecodeParms"){for(var Gr=[],fn=0;fn<Ke.reverseChain.split("/").length-1;fn+=1)Gr.push("null");Gr.push(mt[Dr].value),mt[Dr].value="["+Gr.join(" ")+"]"}}gn("<<");for(var Kn=0;Kn<mt.length;Kn++)gn("/"+mt[Kn].key+" "+mt[Kn].value);gn(">>"),Ke.data.length!==0&&(gn("stream"),gn(be(Ke.data)),gn("endstream"))},ja=er.__private__.putPage=function(Tt){var Vt=Tt.number,hn=Tt.data,Vn=Tt.objId,pt=Tt.contentsObjId;Xi(Vn,!0),gn("<</Type /Page"),gn("/Parent "+Tt.rootDictionaryObjId+" 0 R"),gn("/Resources "+Tt.resourceDictionaryObjId+" 0 R"),gn("/MediaBox ["+parseFloat(sn(Tt.mediaBox.bottomLeftX))+" "+parseFloat(sn(Tt.mediaBox.bottomLeftY))+" "+sn(Tt.mediaBox.topRightX)+" "+sn(Tt.mediaBox.topRightY)+"]"),Tt.cropBox!==null&&gn("/CropBox ["+sn(Tt.cropBox.bottomLeftX)+" "+sn(Tt.cropBox.bottomLeftY)+" "+sn(Tt.cropBox.topRightX)+" "+sn(Tt.cropBox.topRightY)+"]"),Tt.bleedBox!==null&&gn("/BleedBox ["+sn(Tt.bleedBox.bottomLeftX)+" "+sn(Tt.bleedBox.bottomLeftY)+" "+sn(Tt.bleedBox.topRightX)+" "+sn(Tt.bleedBox.topRightY)+"]"),Tt.trimBox!==null&&gn("/TrimBox ["+sn(Tt.trimBox.bottomLeftX)+" "+sn(Tt.trimBox.bottomLeftY)+" "+sn(Tt.trimBox.topRightX)+" "+sn(Tt.trimBox.topRightY)+"]"),Tt.artBox!==null&&gn("/ArtBox ["+sn(Tt.artBox.bottomLeftX)+" "+sn(Tt.artBox.bottomLeftY)+" "+sn(Tt.artBox.topRightX)+" "+sn(Tt.artBox.topRightY)+"]"),typeof Tt.userUnit=="number"&&Tt.userUnit!==1&&gn("/UserUnit "+Tt.userUnit),yi.publish("putPage",{objId:Vn,pageContext:xi[Vt],pageNumber:Vt,page:hn}),gn("/Contents "+pt+" 0 R"),gn(">>"),gn("endobj");var ae=hn.join(`
|
|
|
`);return Gn===Mr.ADVANCED&&(ae+=`
|
|
|
Q`),Xi(pt,!0),Ao({data:ae,filters:Ra(),objectId:pt}),gn("endobj"),Vn},Ya=er.__private__.putPages=function(){var Tt,Vt,hn=[];for(Tt=1;Tt<=Ni;Tt++)xi[Tt].objId=ta(),xi[Tt].contentsObjId=ta();for(Tt=1;Tt<=Ni;Tt++)hn.push(ja({number:Tt,data:ki[Tt],objId:xi[Tt].objId,contentsObjId:xi[Tt].contentsObjId,mediaBox:xi[Tt].mediaBox,cropBox:xi[Tt].cropBox,bleedBox:xi[Tt].bleedBox,trimBox:xi[Tt].trimBox,artBox:xi[Tt].artBox,userUnit:xi[Tt].userUnit,rootDictionaryObjId:ra,resourceDictionaryObjId:pa}));Xi(ra,!0),gn("<</Type /Pages");var Vn="/Kids [";for(Vt=0;Vt<Ni;Vt++)Vn+=hn[Vt]+" 0 R ";gn(Vn+"]"),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 Vn=Vt.pages[1].join(`
|
|
|
`);Ao({data:Vn,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 Vn,pt=[],ae=1/(hn-1);for(Vn=0;Vn<1;Vn+=ae)pt.push(Vn);if(pt.push(1),Vt[0].offset!=0){var pe={offset:0,color:Vt[0].color};Vt.unshift(pe)}if(Vt[Vt.length-1].offset!=1){var be={offset:1,color:Vt[Vt.length-1].color};Vt.push(be)}for(var Ke="",mt=0,Gt=0;Gt<pt.length;Gt++){for(Vn=pt[Gt];Vn>Vt[mt+1].offset;)mt++;var Dr=Vt[mt].offset,Gr=(Vn-Dr)/(Vt[mt+1].offset-Dr),fn=Vt[mt].color,Kn=Vt[mt+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 Vn=Vi(),pt=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:pt,additionalKeyValues:ae,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Vn}),gn("endobj"),Vt.objectNumber=Vi(),gn("<< /ShadingType "+Vt.type),gn("/ColorSpace /DeviceRGB");var pe="/Coords ["+sn(parseFloat(Vt.coords[0]))+" "+sn(parseFloat(Vt.coords[1]))+" ";Vt.type===2?pe+=sn(parseFloat(Vt.coords[2]))+" "+sn(parseFloat(Vt.coords[3])):pe+=sn(parseFloat(Vt.coords[2]))+" "+sn(parseFloat(Vt.coords[3]))+" "+sn(parseFloat(Vt.coords[4]))+" "+sn(parseFloat(Vt.coords[5])),gn(pe+="]"),Vt.matrix&&gn("/Matrix ["+Vt.matrix.toString()+"]"),gn("/Function "+Vn+" 0 R"),gn("/Extend [true true]"),gn(">>"),gn("endobj")},Ga=function(Vt,hn){var Vn=ta(),pt=Vi();hn.push({resourcesOid:Vn,objectOid:pt}),Vt.objectNumber=pt;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:Vn+" 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 j?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 "+ft(Vt[hn]));break;case"stroke-opacity":gn("/CA "+ft(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 j&&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 er.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")},tt=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},kr=function(Vt,hn,Vn,pt,ae){var pe={id:"F"+(Object.keys(tn).length+1).toString(10),postScriptName:Vt,fontName:hn,fontStyle:Vn,encoding:pt,isStandardFont:ae||!1,metadata:{}};return yi.publish("addFont",{font:pe,instance:this}),tn[pe.id]=pe,cr(pe),pe.id},Lr=function(Vt){for(var hn=0,Vn=Li.length;hn<Vn;hn++){var pt=kr.call(this,Vt[hn][0],Vt[hn][1],Vt[hn][2],Li[hn][3],!0);Ir===!1&&(Xr[pt]=!0);var ae=Vt[hn][0].split("-");cr({id:pt,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(pt){var hn=pt.stack||"";~hn.indexOf(" at ")&&(hn=hn.split(" at ")[1]);var Vn="Error in function "+hn.split(`
|
|
|
`)[0].split("<")[0]+": "+pt.message;if(!w.console)throw new Error(Vn);w.console.error(Vn,pt),w.alert&&alert(Vn)}},Vt.foo.bar=Vt,Vt.foo},Vr=function(Vt,hn){var Vn,pt,ae,pe,be,Ke,mt,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&&(pe=tn[mr].metadata[ae].encoding,!be&&tn[mr].encoding&&(be=tn[mr].encoding),!be&&pe.codePages&&(be=pe.codePages[0]),typeof be=="string"&&(be=pe[be]),be)){for(mt=!1,Ke=[],Vn=0,pt=Vt.length;Vn<pt;Vn++)(Gt=be[Vt.charCodeAt(Vn)])?Ke.push(String.fromCharCode(Gt)):Ke.push(Vt[Vn]),Ke[Vn].charCodeAt(0)>>8&&(mt=!0);Vt=Ke.join("")}for(Vn=Vt.length;mt===void 0&&Vn!==0;)Vt.charCodeAt(Vn-1)>>8&&(mt=!0),Vn--;if(!mt)return Vt;for(Ke=hn.noBOM?[]:[254,255],Vn=0,pt=Vt.length;Vn<pt;Vn++){if((Dr=(Gt=Vt.charCodeAt(Vn))>>8)>>8)throw new Error("Character at position "+Vn+" 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=er.__private__.pdfEscape=er.pdfEscape=function(Tt,Vt){return Vr(Tt,Vt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pn=er.__private__.beginPage=function(Tt){ki[++Ni]=[],xi[Ni]={objId:0,contentsObjId:0,userUnit:Number(wt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Tt[0]),topRightY:Number(Tt[1])}},jn(Ni),$n(ki[xr])},Ur=function(Vt,hn){var Vn,pt,ae;switch(Ne=hn||Ne,typeof Vt=="string"&&(Vn=en(Vt.toLowerCase()),Array.isArray(Vn)&&(pt=Vn[0],ae=Vn[1])),Array.isArray(Vt)&&(pt=Vt[0]*vr,ae=Vt[1]*vr),isNaN(pt)&&(pt=Xe[0],ae=Xe[1]),(pt>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"),pt=Math.min(14400,pt),ae=Math.min(14400,ae)),Xe=[pt,ae],Ne.substr(0,1)){case"l":ae>pt&&(Xe=[ae,pt]);break;case"p":pt>ae&&(Xe=[ae,pt])}Pn(Xe),Po(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&&(ki.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=er.__private__.getNumberOfPages=er.getNumberOfPages=function(){return ki.length-1},Bn=function(Vt,hn,Vn){var pt,ae=void 0;return Vn=Vn||{},Vt=Vt!==void 0?Vt:tn[mr].fontName,hn=hn!==void 0?hn:tn[mr].fontStyle,pt=Vt.toLowerCase(),Ln[pt]!==void 0&&Ln[pt][hn]!==void 0?ae=Ln[pt][hn]:Ln[Vt]!==void 0&&Ln[Vt][hn]!==void 0?ae=Ln[Vt][hn]:Vn.disableWarning===!1&&f.warn("Unable to look up font label for font '"+Vt+"', '"+hn+"'. Refer to getFontList() for available fonts."),ae||Vn.noFallback||(ae=Ln.times[hn])==null&&(ae=Ln.times.normal),ae},ri=er.__private__.putInfo=function(){var Tt=Vi(),Vt=function(pt){return pt};for(var hn in Rr!==null&&(Vt=Ji.encryptor(Tt,0)),gn("<<"),gn("/Producer ("+_r(Vt("jsPDF "+U.version))+")"),vt)vt.hasOwnProperty(hn)&&vt[hn]&&gn("/"+hn.substr(0,1).toUpperCase()+hn.substr(1)+" ("+_r(Vt(vt[hn]))+")");gn("/CreationDate ("+_r(Vt(Qt))+")"),gn(">>"),gn("endobj")},Yn=er.__private__.putCatalog=function(Tt){var Vt=(Tt=Tt||{}).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 "+ft(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=er.__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=er.__private__.putHeader=function(){gn("%PDF-"+pn),gn("%\xBA\xDF\xAC\xE0")},Pi=er.__private__.putXRef=function(){var Tt="0000000000";gn("xref"),gn("0 "+(In+1)),gn("0000000000 65535 f ");for(var Vt=1;Vt<=In;Vt++)typeof Un[Vt]=="function"?gn((Tt+Un[Vt]()).slice(-10)+" 00000 n "):Un[Vt]!==void 0?gn((Tt+Un[Vt]).slice(-10)+" 00000 n "):gn("0000000000 00000 n ")},bi=er.__private__.buildDocument=function(){Yi(),$n(ti),yi.publish("buildDocument"),ai(),Ya(),tt(),ha(),Rr!==null&&Ro(),ri(),Yn();var Tt=ui;return Pi(),ii(),gn("startxref"),gn(""+Tt),gn("%%EOF"),$n(ki[xr]),ti.join(`
|
|
|
`)},Ki=er.__private__.getBlob=function(Tt){return new Blob([Hi(Tt)],{type:"application/pdf"})},Aa=er.output=er.__private__.output=_n(function(Tt,Vt){switch(typeof(Vt=Vt||{})=="string"?Vt={filename:Vt}:Vt.filename=Vt.filename||"generated.pdf",Tt){case void 0:return bi();case"save":er.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="",Vn=bi();try{hn=n(Vn)}catch(fn){hn=n(unescape(encodeURIComponent(Vn)))}return"data:application/pdf;filename="+Vt.filename+";base64,"+hn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(w)==="[object Window]"){var pt="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&&(pt=Vt.pdfObjectUrl,ae="");var pe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+pt+'"'+ae+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Vt)+");</script></body></html>",be=w.open();return be!==null&&be.document.write(pe),be}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(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>',mt=w.open();if(mt!==null){mt.document.write(Ke);var Gt=this;mt.document.documentElement.querySelector("#pdfViewer").onload=function(){mt.document.title=Vt.filename,mt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Gt.output("bloburl"))}}return mt}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;zn(),yr();var sa=function(Vt){return Rr!==null?Ji.encryptor(Vt,0):function(hn){return hn}},fa=er.__private__.getPageInfo=er.getPageInfo=function(Tt){if(isNaN(Tt)||Tt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:xi[Tt].objId,pageNumber:Tt,pageContext:xi[Tt]}},xo=er.__private__.getPageInfoByObjId=function(Tt){if(isNaN(Tt)||Tt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Vt in xi)if(xi[Vt].objId===Tt)break;return fa(Vt)},Qa=er.__private__.getCurrentPageInfo=er.getCurrentPageInfo=function(){return{objId:xi[xr].objId,pageNumber:xr,pageContext:xi[xr]}};er.addPage=function(){return Ur.apply(this,arguments),this},er.setPage=function(){return jn.apply(this,arguments),$n.call(this,ki[xr]),this},er.insertPage=function(Tt){return this.addPage(),this.movePage(xr,Tt),this},er.movePage=function(Tt,Vt){var hn,Vn;if(Tt>Vt){hn=ki[Tt],Vn=xi[Tt];for(var pt=Tt;pt>Vt;pt--)ki[pt]=ki[pt-1],xi[pt]=xi[pt-1];ki[Vt]=hn,xi[Vt]=Vn,this.setPage(Vt)}else if(Tt<Vt){hn=ki[Tt],Vn=xi[Tt];for(var ae=Tt;ae<Vt;ae++)ki[ae]=ki[ae+1],xi[ae]=xi[ae+1];ki[Vt]=hn,xi[Vt]=Vn,this.setPage(Vt)}return this},er.deletePage=function(){return En.apply(this,arguments),this},er.__private__.text=er.text=function(Tt,Vt,hn,Vn,pt){var ae,pe,be,Ke,mt,Gt,Dr,Gr,fn,Kn=(Vn=Vn||{}).scope||this;if(typeof Tt=="number"&&typeof Vt=="number"&&(typeof hn=="string"||Array.isArray(hn))){var qn=hn;hn=Vt,Vt=Tt,Tt=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),Vn={flags:Dr,angle:be,align:Ke})):(Sn("The transform parameter of text() with a Matrix value"),fn=pt),isNaN(Vt)||isNaN(hn)||Tt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Tt.length===0)return Kn;var Qn="",Ei=!1,Fi=typeof Vn.lineHeightFactor=="number"?Vn.lineHeightFactor:Ba,va=Kn.internal.scaleFactor;function Oa(Ns){return Ns=Ns.split(" ").join(Array(Vn.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 Tt=="string")lo=!0;else if(Array.isArray(Tt)){var Vo=Tt.concat();pe=[];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. "'+Tt+'" is not recognized.');typeof Tt=="string"&&(Tt=Tt.match(/[\r?\n]/)?Tt.split(/\r\n|\r|\n/g):[Tt]);var Ka=Bi/Kn.internal.scaleFactor,is=Ka*(Fi-1);switch(Vn.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=Vn.maxWidth||0)>0&&(typeof Tt=="string"?Tt=Kn.splitTextToSize(Tt,Gt):Object.prototype.toString.call(Tt)==="[object Array]"&&(Tt=Tt.reduce(function(Ns,ys){return Ns.concat(Kn.splitTextToSize(ys,Gt))},[]))),ae={text:Tt,x:Vt,y:hn,options:Vn,mutex:{pdfEscape:_r,activeFontKey:mr,fonts:tn,activeFontSize:Bi}},yi.publish("preProcessText",ae),Tt=ae.text,be=(Vn=ae.options).angle,fn instanceof Di==!1&&be&&typeof be=="number"){be*=Math.PI/180,Vn.rotationDirection===0&&(be=-be),Gn===Mr.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!==Mr.ADVANCED||fn||(fn=aa),(mt=Vn.charSpace||Es)!==void 0&&(Qn+=sn(Ct(mt))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Gr=Vn.horizontalScale)!==void 0&&(Qn+=sn(100*Gr)+` Tz
|
|
|
`),Vn.lang;var la=-1,Vs=Vn.renderingMode!==void 0?Vn.renderingMode:Vn.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=Vn.align||"left";var as,Ss=Bi*Fi,xl=Kn.internal.pageSize.getWidth(),vl=tn[mr];mt=Vn.charSpace||Es,Gt=Vn.maxWidth||0,Dr=Object.assign({autoencode:!0,noBOM:!0},Vn.flags);var zs=[];if(Object.prototype.toString.call(Tt)==="[object Array]"){var Zo;pe=fo(Tt),Ke!=="left"&&(as=pe.map(function(Ns){return Kn.getStringUnitWidth(Ns,{font:vl,charSpace:mt,fontSize:Bi,doKerning:!1})*Bi/va}));var As,nl=0;if(Ke==="right"){Vt-=as[0],Tt=[],ao=pe.length;for(var ks=0;ks<ao;ks++)ks===0?(As=ho(Vt),Zo=bo(hn)):(As=Ct(nl-as[ks]),Zo=-Ss),Tt.push([pe[ks],As,Zo]),nl=as[ks]}else if(Ke==="center"){Vt-=as[0]/2,Tt=[],ao=pe.length;for(var po=0;po<ao;po++)po===0?(As=ho(Vt),Zo=bo(hn)):(As=Ct((nl-as[po])/2),Zo=-Ss),Tt.push([pe[po],As,Zo]),nl=as[po]}else if(Ke==="left"){Tt=[],ao=pe.length;for(var Wa=0;Wa<ao;Wa++)Tt.push(pe[Wa])}else{if(Ke!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Tt=[],ao=pe.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(Ct((Gt-as[Eo])/(pe[Eo].split(" ").length-1)))):zs.push(0),Tt.push([pe[Eo],As,Zo])}}var Xo=typeof Vn.R2L=="boolean"?Vn.R2L:on;Xo===!0&&(Tt=wo(Tt,function(Ns,ys,Ds){return[Ns.split("").reverse().join(""),ys,Ds]})),ae={text:Tt,x:Vt,y:hn,options:Vn,mutex:{pdfEscape:_r,activeFontKey:mr,fonts:tn,activeFontSize:Bi}},yi.publish("postProcessText",ae),Tt=ae.text,Ei=ae.mutex.isHex||!1;var $o=tn[mr].encoding;$o!=="WinAnsiEncoding"&&$o!=="StandardEncoding"||(Tt=wo(Tt,function(Ns,ys,Ds){return[Oa(Ns),ys,Ds]})),pe=fo(Tt),Tt=[];for(var Co,rs,os,Fs=0,ol=1,Zs=Array.isArray(pe[0])?ol:Fs,dl="",hl=function(ys,Ds,xs){var Xs="";return xs instanceof Di?(xs=typeof Vn.angle=="number"?ua(xs,new Di(1,0,0,1,ys,Ds)):ua(new Di(1,0,0,1,ys,Ds),xs),Gn===Mr.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<pe.length;sl++){switch(dl="",Zs){case ol:os=(Ei?"<":"(")+pe[sl][0]+(Ei?">":")"),Co=parseFloat(pe[sl][1]),rs=parseFloat(pe[sl][2]);break;case Fs:os=(Ei?"<":"(")+pe[sl]+(Ei?">":")"),Co=ho(Vt),rs=bo(hn)}zs!==void 0&&zs[sl]!==void 0&&(dl=zs[sl]+` Tw
|
|
|
`),sl===0?Tt.push(dl+hl(Co,rs,fn)+os):Zs===Fs?Tt.push(dl+os):Zs===ol&&Tt.push(dl+hl(Co,rs,fn)+os)}Tt=Zs===Fs?Tt.join(` Tj
|
|
|
T* `):Tt.join(` Tj
|
|
|
`),Tt+=` Tj
|
|
|
`;var yl=`BT
|
|
|
/`;return yl+=mr+" "+Bi+` Tf
|
|
|
`,yl+=sn(Bi*Fi)+` TL
|
|
|
`,yl+=es+`
|
|
|
`,yl+=Qn,yl+=Tt,gn(yl+="ET"),Xr[mr]=!0,Kn};var Wi=er.__private__.clip=er.clip=function(Tt){return gn(Tt==="evenodd"?"W*":"W"),this};er.clipEvenOdd=function(){return Wi("evenodd")},er.__private__.discardPath=er.discardPath=function(){return gn("n"),this};var qi=er.__private__.isValidStyle=function(Tt){var Vt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Tt)!==-1&&(Vt=!0),Vt};er.__private__.setDefaultPathOperation=er.setDefaultPathOperation=function(Tt){return qi(Tt)&&(Jt=Tt),this};var ca=er.__private__.getStyle=er.getStyle=function(Tt){var Vt=Jt;switch(Tt){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=Tt}return Vt},ma=er.close=function(){return gn("h"),this};er.stroke=function(){return gn("S"),this},er.fill=function(Tt){return Pa("f",Tt),this},er.fillEvenOdd=function(Tt){return Pa("f*",Tt),this},er.fillStroke=function(Tt){return Pa("B",Tt),this},er.fillStrokeEvenOdd=function(Tt){return Pa("B*",Tt),this};var Pa=function(Vt,hn){C()(hn)==="object"?eo(hn,Vt):gn(Vt)},La=function(Vt){Vt===null||Gn===Mr.ADVANCED&&Vt===void 0||(Vt=ca(Vt),gn(Vt))};function Za(Tt,Vt,hn,Vn,pt){var ae=new F(Vt||this.boundingBox,hn||this.xStep,Vn||this.yStep,this.gState,pt||this.matrix);ae.stream=this.stream;var pe=Tt+"$$"+this.cloneIndex+++"$$";return Gi(pe,ae),ae}var eo=function(Vt,hn){var Vn=ci[Vt.key],pt=Xn[Vn];if(pt instanceof j)gn("q"),gn(ko(hn)),pt.gState&&er.setGState(pt.gState),gn(Vt.matrix.toString()+" cm"),gn("/"+Vn+" sh"),gn("Q");else if(pt instanceof F){var ae=new Di(1,0,0,-1,0,ts());Vt.matrix&&(ae=ae.multiply(Vt.matrix||aa),Vn=Za.call(pt,Vt.key,Vt.boundingBox,Vt.xStep,Vt.yStep,ae).id),gn("q"),gn("/Pattern cs"),gn("/"+Vn+" scn"),pt.gState&&er.setGState(pt.gState),gn(hn),gn("Q")}},ko=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=er.moveTo=function(Tt,Vt){return gn(sn(Ct(Tt))+" "+sn(gt(Vt))+" m"),this},cs=er.lineTo=function(Tt,Vt){return gn(sn(Ct(Tt))+" "+sn(gt(Vt))+" l"),this},Mo=er.curveTo=function(Tt,Vt,hn,Vn,pt,ae){return gn([sn(Ct(Tt)),sn(gt(Vt)),sn(Ct(hn)),sn(gt(Vn)),sn(Ct(pt)),sn(gt(ae)),"c"].join(" ")),this};er.__private__.line=er.line=function(Tt,Vt,hn,Vn,pt){if(isNaN(Tt)||isNaN(Vt)||isNaN(hn)||isNaN(Vn)||!qi(pt))throw new Error("Invalid arguments passed to jsPDF.line");return Gn===Mr.COMPAT?this.lines([[hn-Tt,Vn-Vt]],Tt,Vt,[1,1],pt||"S"):this.lines([[hn-Tt,Vn-Vt]],Tt,Vt,[1,1]).stroke()},er.__private__.lines=er.lines=function(Tt,Vt,hn,Vn,pt,ae){var pe,be,Ke,mt,Gt,Dr,Gr,fn,Kn,qn,Qn,Ei;if(typeof Tt=="number"&&(Ei=hn,hn=Vt,Vt=Tt,Tt=Ei),Vn=Vn||[1,1],ae=ae||!1,isNaN(Vt)||isNaN(hn)||!Array.isArray(Tt)||!Array.isArray(Vn)||!qi(pt)||typeof ae!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(jo(Vt,hn),pe=Vn[0],be=Vn[1],mt=Tt.length,qn=Vt,Qn=hn,Ke=0;Ke<mt;Ke++)(Gt=Tt[Ke]).length===2?(qn=Gt[0]*pe+qn,Qn=Gt[1]*be+Qn,cs(qn,Qn)):(Dr=Gt[0]*pe+qn,Gr=Gt[1]*be+Qn,fn=Gt[2]*pe+qn,Kn=Gt[3]*be+Qn,qn=Gt[4]*pe+qn,Qn=Gt[5]*be+Qn,Mo(Dr,Gr,fn,Kn,qn,Qn));return ae&&ma(),La(pt),this},er.path=function(Tt){for(var Vt=0;Vt<Tt.length;Vt++){var hn=Tt[Vt],Vn=hn.c;switch(hn.op){case"m":jo(Vn[0],Vn[1]);break;case"l":cs(Vn[0],Vn[1]);break;case"c":Mo.apply(this,Vn);break;case"h":ma()}}return this},er.__private__.rect=er.rect=function(Tt,Vt,hn,Vn,pt){if(isNaN(Tt)||isNaN(Vt)||isNaN(hn)||isNaN(Vn)||!qi(pt))throw new Error("Invalid arguments passed to jsPDF.rect");return Gn===Mr.COMPAT&&(Vn=-Vn),gn([sn(Ct(Tt)),sn(gt(Vt)),sn(Ct(hn)),sn(Ct(Vn)),"re"].join(" ")),La(pt),this},er.__private__.triangle=er.triangle=function(Tt,Vt,hn,Vn,pt,ae,pe){if(isNaN(Tt)||isNaN(Vt)||isNaN(hn)||isNaN(Vn)||isNaN(pt)||isNaN(ae)||!qi(pe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[hn-Tt,Vn-Vt],[pt-hn,ae-Vn],[Tt-pt,Vt-ae]],Tt,Vt,[1,1],pe,!0),this},er.__private__.roundedRect=er.roundedRect=function(Tt,Vt,hn,Vn,pt,ae,pe){if(isNaN(Tt)||isNaN(Vt)||isNaN(hn)||isNaN(Vn)||isNaN(pt)||isNaN(ae)||!qi(pe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var be=4/3*(Math.SQRT2-1);return pt=Math.min(pt,.5*hn),ae=Math.min(ae,.5*Vn),this.lines([[hn-2*pt,0],[pt*be,0,pt,ae-ae*be,pt,ae],[0,Vn-2*ae],[0,ae*be,-pt*be,ae,-pt,ae],[2*pt-hn,0],[-pt*be,0,-pt,-ae*be,-pt,-ae],[0,2*ae-Vn],[0,-ae*be,pt*be,-ae,pt,-ae]],Tt+pt,Vt,[1,1],pe,!0),this},er.__private__.ellipse=er.ellipse=function(Tt,Vt,hn,Vn,pt){if(isNaN(Tt)||isNaN(Vt)||isNaN(hn)||isNaN(Vn)||!qi(pt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ae=4/3*(Math.SQRT2-1)*hn,pe=4/3*(Math.SQRT2-1)*Vn;return jo(Tt+hn,Vt),Mo(Tt+hn,Vt-pe,Tt+ae,Vt-Vn,Tt,Vt-Vn),Mo(Tt-ae,Vt-Vn,Tt-hn,Vt-pe,Tt-hn,Vt),Mo(Tt-hn,Vt+pe,Tt-ae,Vt+Vn,Tt,Vt+Vn),Mo(Tt+ae,Vt+Vn,Tt+hn,Vt+pe,Tt+hn,Vt),La(pt),this},er.__private__.circle=er.circle=function(Tt,Vt,hn,Vn){if(isNaN(Tt)||isNaN(Vt)||isNaN(hn)||!qi(Vn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Tt,Vt,hn,hn,Vn)},er.setFont=function(Tt,Vt,hn){return hn&&(Vt=Br(Vt,hn)),mr=Bn(Tt,Vt,{disableWarning:!1}),this};var Lo=er.__private__.getFont=er.getFont=function(){return tn[Bn.apply(er,arguments)]};er.__private__.getFontList=er.getFontList=function(){var Tt,Vt,hn={};for(Tt in Ln)if(Ln.hasOwnProperty(Tt))for(Vt in hn[Tt]=[],Ln[Tt])Ln[Tt].hasOwnProperty(Vt)&&hn[Tt].push(Vt);return hn},er.addFont=function(Tt,Vt,hn,Vn,pt){var ae=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ae.indexOf(arguments[3])!==-1?pt=arguments[3]:arguments[3]&&ae.indexOf(arguments[3])==-1&&(hn=Br(hn,Vn)),pt=pt||"Identity-H",kr.call(this,Tt,Vt,hn,pt)};var Ba,za=Qe.lineWidth||.200025,Ta=er.__private__.getLineWidth=er.getLineWidth=function(){return za},Po=er.__private__.setLineWidth=er.setLineWidth=function(Tt){return za=Tt,gn(sn(Ct(Tt))+" w"),this};er.__private__.setLineDash=U.API.setLineDash=U.API.setLineDashPattern=function(Tt,Vt){if(Tt=Tt||[],Vt=Vt||0,isNaN(Vt)||!Array.isArray(Tt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Tt=Tt.map(function(hn){return sn(Ct(hn))}).join(" "),Vt=sn(Ct(Vt)),gn("["+Tt+"] "+Vt+" d"),this};var Qo=er.__private__.getLineHeight=er.getLineHeight=function(){return Bi*Ba};er.__private__.getLineHeight=er.getLineHeight=function(){return Bi*Ba};var so=er.__private__.setLineHeightFactor=er.setLineHeightFactor=function(Tt){return typeof(Tt=Tt||1.15)=="number"&&(Ba=Tt),this},Os=er.__private__.getLineHeightFactor=er.getLineHeightFactor=function(){return Ba};so(Qe.lineHeight);var ho=er.__private__.getHorizontalCoordinate=function(Tt){return Ct(Tt)},bo=er.__private__.getVerticalCoordinate=function(Tt){return Gn===Mr.ADVANCED?Tt:xi[xr].mediaBox.topRightY-xi[xr].mediaBox.bottomLeftY-Ct(Tt)},ds=er.__private__.getHorizontalCoordinateString=er.getHorizontalCoordinateString=function(Tt){return sn(ho(Tt))},Ho=er.__private__.getVerticalCoordinateString=er.getVerticalCoordinateString=function(Tt){return sn(bo(Tt))},zo=Qe.strokeColor||"0 G";er.__private__.getStrokeColor=er.getDrawColor=function(){return _a(zo)},er.__private__.setStrokeColor=er.setDrawColor=function(Tt,Vt,hn,Vn){return zo=Da({ch1:Tt,ch2:Vt,ch3:hn,ch4:Vn,pdfColorType:"draw",precision:2}),gn(zo),this};var rn=Qe.fillColor||"0 g";er.__private__.getFillColor=er.getFillColor=function(){return _a(rn)},er.__private__.setFillColor=er.setFillColor=function(Tt,Vt,hn,Vn){return rn=Da({ch1:Tt,ch2:Vt,ch3:hn,ch4:Vn,pdfColorType:"fill",precision:2}),gn(rn),this};var es=Qe.textColor||"0 g",Js=er.__private__.getTextColor=er.getTextColor=function(){return _a(es)};er.__private__.setTextColor=er.setTextColor=function(Tt,Vt,hn,Vn){return es=Da({ch1:Tt,ch2:Vt,ch3:hn,ch4:Vn,pdfColorType:"text",precision:3}),this};var Es=Qe.charSpace,gs=er.__private__.getCharSpace=er.getCharSpace=function(){return parseFloat(Es||0)};er.__private__.setCharSpace=er.setCharSpace=function(Tt){if(isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Es=Tt,this};var Ko=0;er.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},er.__private__.setLineCap=er.setLineCap=function(Tt){var Vt=er.CapJoinStyles[Tt];if(Vt===void 0)throw new Error("Line cap style of '"+Tt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ko=Vt,gn(Vt+" J"),this};var hs=0;er.__private__.setLineJoin=er.setLineJoin=function(Tt){var Vt=er.CapJoinStyles[Tt];if(Vt===void 0)throw new Error("Line join style of '"+Tt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hs=Vt,gn(Vt+" j"),this},er.__private__.setLineMiterLimit=er.__private__.setMiterLimit=er.setLineMiterLimit=er.setMiterLimit=function(Tt){if(Tt=Tt||0,isNaN(Tt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return gn(sn(Ct(Tt))+" M"),this},er.GState=k,er.setGState=function(Tt){(Tt=typeof Tt=="string"?Jn[pi[Tt]]:bs(null,Tt)).equals(Si)||(gn("/"+Tt.id+" gs"),Si=Tt)};var bs=function(Vt,hn){if(!Vt||!pi[Vt]){var Vn=!1;for(var pt in Jn)if(Jn.hasOwnProperty(pt)&&Jn[pt].equals(hn)){Vn=!0;break}if(Vn)hn=Jn[pt];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}};er.addGState=function(Tt,Vt){return bs(Tt,Vt),this},er.saveGraphicsState=function(){return gn("q"),Tn.push({key:mr,size:Bi,color:es}),this},er.restoreGraphicsState=function(){gn("Q");var Tt=Tn.pop();return mr=Tt.key,Bi=Tt.size,es=Tt.color,Si=null,this},er.setCurrentTransformationMatrix=function(Tt){return gn(Tt.toString()+" cm"),this},er.comment=function(Tt){return gn("#"+Tt),this};var ws=function(Vt,hn){var Vn=Vt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Vn},set:function(be){isNaN(be)||(Vn=parseFloat(be))}});var pt=hn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return pt},set:function(be){isNaN(be)||(pt=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,Vn,pt){ws.call(this,Vt,hn),this.type="rect";var ae=Vn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ae},set:function(Ke){isNaN(Ke)||(ae=parseFloat(Ke))}});var pe=pt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pe},set:function(Ke){isNaN(Ke)||(pe=parseFloat(Ke))}}),this},us=function(){this.page=Ni,this.currentPage=xr,this.pages=ki.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,ki=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,Vn,pt,ae){$i.push(new us),Ni=xr=0,ki=[],Fr=Vt,nn=hn,cn=ae,Pn([Vn,pt])},vs=function(Vt){if(Ui[Vt])$i.pop().restore();else{var hn=new us,Vn="Xo"+(Object.keys(Ti).length+1).toString(10);hn.id=Vn,Ui[Vt]=Vn,Ti[Vn]=hn,yi.publish("addFormObject",hn),$i.pop().restore()}};for(var vo in er.beginFormObject=function(Tt,Vt,hn,Vn,pt){return _s(Tt,Vt,hn,Vn,pt),this},er.endFormObject=function(Tt){return vs(Tt),this},er.doFormObject=function(Tt,Vt){var hn=Ti[Ui[Tt]];return gn("q"),gn(Vt.toString()+" cm"),gn("/"+hn.id+" Do"),gn("Q"),this},er.getFormObject=function(Tt){var Vt=Ti[Ui[Tt]];return{x:Vt.x,y:Vt.y,width:Vt.width,height:Vt.height,matrix:Vt.matrix}},er.save=function(Tt,Vt){return Tt=Tt||"generated.pdf",(Vt=Vt||{}).returnPromise=Vt.returnPromise||!1,Vt.returnPromise===!1?(e(Ki(bi()),Tt),typeof e.unload=="function"&&w.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(hn,Vn){try{var pt=e(Ki(bi()),Tt);typeof e.unload=="function"&&w.setTimeout&&setTimeout(e.unload,911),hn(pt)}catch(ae){Vn(ae.message)}})},U.API)U.API.hasOwnProperty(vo)&&(vo==="events"&&U.API.events.length?function(Tt,Vt){var hn,Vn,pt;for(pt=Vt.length-1;pt!==-1;pt--)hn=Vt[pt][0],Vn=Vt[pt][1],Tt.subscribe.apply(Tt,[hn].concat(typeof Vn=="function"?[Vn]:Vn))}(yi,U.API.events):er[vo]=U.API[vo]);var to=er.getPageWidth=function(Tt){return(xi[Tt=Tt||xr].mediaBox.topRightX-xi[Tt].mediaBox.bottomLeftX)/vr},Jo=er.setPageWidth=function(Tt,Vt){xi[Tt].mediaBox.topRightX=Vt*vr+xi[Tt].mediaBox.bottomLeftX},ts=er.getPageHeight=function(Tt){return(xi[Tt=Tt||xr].mediaBox.topRightY-xi[Tt].mediaBox.bottomLeftY)/vr},Ha=er.setPageHeight=function(Tt,Vt){xi[Tt].mediaBox.topRightY=Vt*vr+xi[Tt].mediaBox.bottomLeftY};return er.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:ki,out:gn,f2:ft,f3:St,getPageInfo:fa,getPageInfoByObjId:xo,getCurrentPageInfo:Qa,getPDFVersion:fr,Point:ws,Rectangle:qo,Matrix:Di,hasHotfix:ea},Object.defineProperty(er.internal.pageSize,"width",{get:function(){return to(xr)},set:function(Vt){Jo(xr,Vt)},enumerable:!0,configurable:!0}),Object.defineProperty(er.internal.pageSize,"height",{get:function(){return ts(xr)},set:function(Vt){Ha(xr,Vt)},enumerable:!0,configurable:!0}),Lr.call(er,Li),mr="F1",Ur(Xe,Ne),yi.publish("initialized"),er}N.prototype.lsbFirstWord=function(Qe){return String.fromCharCode(Qe>>0&255,Qe>>8&255,Qe>>16&255,Qe>>24&255)},N.prototype.toHexString=function(Qe){return Qe.split("").map(function(Se){return("0"+(255&Se.charCodeAt(0)).toString(16)).slice(-2)}).join("")},N.prototype.hexToBytes=function(Qe){for(var Se=[],Ne=0;Ne<Qe.length;Ne+=2)Se.push(String.fromCharCode(parseInt(Qe.substr(Ne,2),16)));return Se.join("")},N.prototype.processOwnerPassword=function(Qe,Se){return I(S(Se).substr(0,5),Qe)},N.prototype.encryptor=function(Qe,Se){var Ne=S(this.encryptionKey+String.fromCharCode(255&Qe,Qe>>8&255,Qe>>16&255,255&Se,Se>>8&255)).substr(0,10);return function(je){return I(Ne,je)}},k.prototype.equals=function(Qe){var Se,Ne="id,objectNumber,equals";if(!Qe||C()(Qe)!==C()(this))return!1;var je=0;for(Se in this)if(!(Ne.indexOf(Se)>=0)){if(this.hasOwnProperty(Se)&&!Qe.hasOwnProperty(Se))return!1;if(this[Se]!==Qe[Se])return!1;je++}for(Se in Qe)Qe.hasOwnProperty(Se)&&Ne.indexOf(Se)<0&&je--;return je===0},U.API={events:[]},U.version="2.5.1";var K=U.API,V=1,z=function(Se){return Se.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Q=function(Se){return Se.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Z=function(Se){return Se.toFixed(2)},le=function(Se){return Se.toFixed(5)};K.__acroform__={};var ne=function(Se,Ne){Se.prototype=Object.create(Ne.prototype),Se.prototype.constructor=Se},ve=function(Se){return Se*V},xe=function(Se){var Ne=new Te,je=J.internal.getHeight(Se)||0,Xe=J.internal.getWidth(Se)||0;return Ne.BBox=[0,0,Number(Z(Xe)),Number(Z(je))],Ne},_e=K.__acroform__.setBit=function(Qe,Se){if(Qe=Qe||0,Se=Se||0,isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Qe|=1<<Se},Be=K.__acroform__.clearBit=function(Qe,Se){if(Qe=Qe||0,Se=Se||0,isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Qe&=~(1<<Se)},me=K.__acroform__.getBit=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Qe&1<<Se)==0?0:1},Fe=K.__acroform__.getBitForPdf=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return me(Qe,Se-1)},ie=K.__acroform__.setBitForPdf=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return _e(Qe,Se-1)},te=K.__acroform__.clearBitForPdf=function(Qe,Se){if(isNaN(Qe)||isNaN(Se))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Be(Qe,Se-1)},Ge=K.__acroform__.calculateCoordinates=function(Qe,Se){var Ne=Se.internal.getHorizontalCoordinate,je=Se.internal.getVerticalCoordinate,Xe=Qe[0],ze=Qe[1],Ze=Qe[2],wt=Qe[3],st={};return st.lowerLeft_X=Ne(Xe)||0,st.lowerLeft_Y=je(ze+wt)||0,st.upperRight_X=Ne(Xe+Ze)||0,st.upperRight_Y=je(ze)||0,[Number(Z(st.lowerLeft_X)),Number(Z(st.lowerLeft_Y)),Number(Z(st.upperRight_X)),Number(Z(st.upperRight_Y))]},oe=function(Se){if(Se.appearanceStreamContent)return Se.appearanceStreamContent;if(Se.V||Se.DV){var Ne=[],je=Se._V||Se.DV,Xe=Y(Se,je),ze=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id;Ne.push("/Tx BMC"),Ne.push("q"),Ne.push("BT"),Ne.push(Se.scope.__private__.encodeColorString(Se.color)),Ne.push("/"+ze+" "+Z(Xe.fontSize)+" Tf"),Ne.push("1 0 0 1 0 0 Tm"),Ne.push(Xe.text),Ne.push("ET"),Ne.push("Q"),Ne.push("EMC");var Ze=xe(Se);return Ze.scope=Se.scope,Ze.stream=Ne.join(`
|
|
|
`),Ze}},Y=function(Se,Ne){var je=Se.fontSize===0?Se.maxFontSize:Se.fontSize,Xe={text:"",fontSize:""},ze=(Ne=(Ne=Ne.substr(0,1)=="("?Ne.substr(1):Ne).substr(Ne.length-1)==")"?Ne.substr(0,Ne.length-1):Ne).split(" ");ze=Se.multiline?ze.map(function(Ct){return Ct.split(`
|
|
|
`)}):ze.map(function(Ct){return[Ct]});var Ze=je,wt=J.internal.getHeight(Se)||0;wt=wt<0?-wt:wt;var st=J.internal.getWidth(Se)||0;st=st<0?-st:st;var Jt=function(Nt,gt,Qt){if(Nt+1<ze.length){var tr=gt+" "+ze[Nt+1][0];return G(tr,Se,Qt).width<=st-4}return!1};Ze++;e:for(;Ze>0;){Ne="",Ze--;var Rr,Ir,Xr=G("3",Se,Ze).height,er=Se.multiline?wt-Ze:(wt-Xr)/2,pn=er+=2,fr=0,mn=0,en=0;if(Ze<=0){Ne=`(...) Tj
|
|
|
`,Ne+="% Width of Text: "+G(Ne,Se,Ze=12).width+", FieldWidth:"+st+`
|
|
|
`;break}for(var Mr="",Gn=0,di=0;di<ze.length;di++)if(ze.hasOwnProperty(di)){var _i=!1;if(ze[di].length!==1&&en!==ze[di].length-1){if((Xr+2)*(Gn+2)+2>wt)continue e;Mr+=ze[di][en],_i=!0,mn=di,di--}else{Mr=(Mr+=ze[di][en]+" ").substr(Mr.length-1)==" "?Mr.substr(0,Mr.length-1):Mr;var Br=parseInt(di),sn=Jt(Br,Mr,Ze),Sn=di>=ze.length-1;if(sn&&!Sn){Mr+=" ",en=0;continue}if(sn||Sn){if(Sn)mn=Br;else if(Se.multiline&&(Xr+2)*(Gn+2)+2>wt)continue e}else{if(!Se.multiline)continue e;if((Xr+2)*(Gn+2)+2>wt)continue e;mn=Br}}for(var Dt="",ft=fr;ft<=mn;ft++){var St=ze[ft];if(Se.multiline){if(ft===mn){Dt+=St[en]+" ",en=(en+1)%St.length;continue}if(ft===fr){Dt+=St[St.length-1]+" ";continue}}Dt+=St[0]+" "}switch(Dt=Dt.substr(Dt.length-1)==" "?Dt.substr(0,Dt.length-1):Dt,Ir=G(Dt,Se,Ze).width,Se.textAlign){case"right":Rr=st-Ir-2;break;case"center":Rr=(st-Ir)/2;break;case"left":default:Rr=2}Ne+=Z(Rr)+" "+Z(pn)+` Td
|
|
|
`,Ne+="("+z(Dt)+`) Tj
|
|
|
`,Ne+=-Z(Rr)+` 0 Td
|
|
|
`,pn=-(Ze+2),Ir=0,fr=_i?mn:mn+1,Gn++,Mr=""}break}return Xe.text=Ne,Xe.fontSize=Ze,Xe},G=function(Se,Ne,je){var Xe=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle),ze=Ne.scope.getStringUnitWidth(Se,{font:Xe,fontSize:parseFloat(je),charSpace:0})*parseFloat(je);return{height:Ne.scope.getStringUnitWidth("3",{font:Xe,fontSize:parseFloat(je),charSpace:0})*parseFloat(je)*1.5,width:ze}},X={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fe=function(Se,Ne){var je={type:"reference",object:Se};Ne.internal.getPageInfo(Se.page).pageContext.annotations.find(function(Xe){return Xe.type===je.type&&Xe.object===je.object})===void 0&&Ne.internal.getPageInfo(Se.page).pageContext.annotations.push(je)},de=function(Se,Ne){for(var je in Se)if(Se.hasOwnProperty(je)){var Xe=je,ze=Se[je];Ne.internal.newObjectDeferredBegin(ze.objId,!0),C()(ze)==="object"&&typeof ze.putStream=="function"&&ze.putStream(),delete Se[Xe]}},Ce=function(Se,Ne){if(Ne.scope=Se,Se.internal!==void 0&&(Se.internal.acroformPlugin===void 0||Se.internal.acroformPlugin.isInitialized===!1)){if(At.FieldNum=0,Se.internal.acroformPlugin=JSON.parse(JSON.stringify(X)),Se.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");V=Se.internal.scaleFactor,Se.internal.acroformPlugin.acroFormDictionaryRoot=new Je,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 Xe=je.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ze in Xe)if(Xe.hasOwnProperty(ze)){var Ze=Xe[ze];Ze.objId=void 0,Ze.hasAnnotation&&fe(Ze,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(Xe,ze){var Ze=!Xe;for(var wt in Xe||(ze.internal.newObjectDeferredBegin(ze.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ze.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Xe=Xe||ze.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Xe.hasOwnProperty(wt)){var st=Xe[wt],Jt=[],Rr=st.Rect;if(st.Rect&&(st.Rect=Ge(st.Rect,ze)),ze.internal.newObjectDeferredBegin(st.objId,!0),st.DA=J.createDefaultAppearanceStream(st),C()(st)==="object"&&typeof st.getKeyValueListForStream=="function"&&(Jt=st.getKeyValueListForStream()),st.Rect=Rr,st.hasAppearanceStream&&!st.appearanceStreamContent){var Ir=oe(st);Jt.push({key:"AP",value:"<</N "+Ir+">>"}),ze.internal.acroformPlugin.xForms.push(Ir)}if(st.appearanceStreamContent){var Xr="";for(var er in st.appearanceStreamContent)if(st.appearanceStreamContent.hasOwnProperty(er)){var pn=st.appearanceStreamContent[er];if(Xr+="/"+er+" ",Xr+="<<",Object.keys(pn).length>=1||Array.isArray(pn)){for(var wt in pn)if(pn.hasOwnProperty(wt)){var fr=pn[wt];typeof fr=="function"&&(fr=fr.call(ze,st)),Xr+="/"+wt+" "+fr+" ",ze.internal.acroformPlugin.xForms.indexOf(fr)>=0||ze.internal.acroformPlugin.xForms.push(fr)}}else typeof(fr=pn)=="function"&&(fr=fr.call(ze,st)),Xr+="/"+wt+" "+fr,ze.internal.acroformPlugin.xForms.indexOf(fr)>=0||ze.internal.acroformPlugin.xForms.push(fr);Xr+=">>"}Jt.push({key:"AP",value:`<<
|
|
|
`+Xr+">>"})}ze.internal.putStream({additionalKeyValues:Jt,objectId:st.objId}),ze.internal.out("endobj")}Ze&&de(ze.internal.acroformPlugin.xForms,ze)}(je,Se)}),Se.internal.acroformPlugin.isInitialized=!0}},Me=K.__acroform__.arrayToPdfArray=function(Qe,Se,Ne){var je=function(wt){return wt};if(Array.isArray(Qe)){for(var Xe="[",ze=0;ze<Qe.length;ze++)switch(ze!==0&&(Xe+=" "),C()(Qe[ze])){case"boolean":case"number":case"object":Xe+=Qe[ze].toString();break;case"string":Qe[ze].substr(0,1)!=="/"?(Se!==void 0&&Ne&&(je=Ne.internal.getEncryptor(Se)),Xe+="("+z(je(Qe[ze].toString()))+")"):Xe+=Qe[ze].toString()}return Xe+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ue=function(Se,Ne,je){var Xe=function(Ze){return Ze};return Ne!==void 0&&je&&(Xe=je.internal.getEncryptor(Ne)),(Se=Se||"").toString(),Se="("+z(Xe(Se))+")"},Ae=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Ne){this._objId=Ne}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ae.prototype.toString=function(){return this.objId+" 0 R"},Ae.prototype.putStream=function(){var Qe=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Qe,objectId:this.objId}),this.scope.internal.out("endobj")},Ae.prototype.getKeyValueListForStream=function(){var Qe=[],Se=Object.getOwnPropertyNames(this).filter(function(ze){return ze!="content"&&ze!="appearanceStreamContent"&&ze!="scope"&&ze!="objId"&&ze.substring(0,1)!="_"});for(var Ne in Se)if(Object.getOwnPropertyDescriptor(this,Se[Ne]).configurable===!1){var je=Se[Ne],Xe=this[je];Xe&&(Array.isArray(Xe)?Qe.push({key:je,value:Me(Xe,this.objId,this.scope)}):Xe instanceof Ae?(Xe.scope=this.scope,Qe.push({key:je,value:Xe.objId+" 0 R"})):typeof Xe!="function"&&Qe.push({key:je,value:Xe}))}return Qe};var Te=function(){Ae.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,Ne=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Ne},set:function(Xe){Ne=Xe}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Xe){Se=Xe.trim()},get:function(){return Se||null}})};ne(Te,Ae);var Je=function(){Ae.call(this);var Se,Ne=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Ne.length>0?Ne:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Ne}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Se){var Xe=function(Ze){return Ze};return this.scope&&(Xe=this.scope.internal.getEncryptor(this.objId)),"("+z(Xe(Se))+")"}},set:function(Xe){Se=Xe}})};ne(Je,Ae);var At=function Qe(){Ae.call(this);var Se=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Mr){if(isNaN(Mr))throw new Error('Invalid value "'+Mr+'" for attribute F supplied.');Se=Mr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(Se,3))},set:function(Mr){Boolean(Mr)===!0?this.F=ie(Se,3):this.F=te(Se,3)}});var Ne=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(Mr){if(isNaN(Mr))throw new Error('Invalid value "'+Mr+'" for attribute Ff supplied.');Ne=Mr}});var je=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(je.length!==0)return je},set:function(Mr){je=Mr!==void 0?Mr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[0])?0:je[0]},set:function(Mr){je[0]=Mr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[1])?0:je[1]},set:function(Mr){je[1]=Mr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[2])?0:je[2]},set:function(Mr){je[2]=Mr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!je||isNaN(je[3])?0:je[3]},set:function(Mr){je[3]=Mr}});var Xe="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Xe},set:function(Mr){switch(Mr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Xe=Mr;break;default:throw new Error('Invalid value "'+Mr+'" for attribute FT supplied.')}}});var ze=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!ze||ze.length<1){if(this instanceof _t)return;ze="FieldObject"+Qe.FieldNum++}var Mr=function(di){return di};return this.scope&&(Mr=this.scope.internal.getEncryptor(this.objId)),"("+z(Mr(ze))+")"},set:function(Mr){ze=Mr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return ze},set:function(Mr){ze=Mr}});var Ze="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Ze},set:function(Mr){Ze=Mr}});var wt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return wt},set:function(Mr){wt=Mr}});var st=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return st},set:function(Mr){st=Mr}});var Jt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Jt===void 0?50/V:Jt},set:function(Mr){Jt=Mr}});var Rr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Rr},set:function(Mr){Rr=Mr}});var Ir="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Ir||this instanceof _t||this instanceof He))return ue(Ir,this.objId,this.scope)},set:function(Mr){Mr=Mr.toString(),Ir=Mr}});var Xr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Xr)return this instanceof Et==!1?ue(Xr,this.objId,this.scope):Xr},set:function(Mr){Mr=Mr.toString(),Xr=this instanceof Et==!1?Mr.substr(0,1)==="("?Q(Mr.substr(1,Mr.length-2)):Q(Mr):Mr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Et==!0?Q(Xr.substr(1,Xr.length-1)):Xr},set:function(Mr){Mr=Mr.toString(),Xr=this instanceof Et==!0?"/"+Mr:Mr}});var er=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(er)return er},set:function(Mr){this.V=Mr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(er)return this instanceof Et==!1?ue(er,this.objId,this.scope):er},set:function(Mr){Mr=Mr.toString(),er=this instanceof Et==!1?Mr.substr(0,1)==="("?Q(Mr.substr(1,Mr.length-2)):Q(Mr):Mr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Et==!0?Q(er.substr(1,er.length-1)):er},set:function(Mr){Mr=Mr.toString(),er=this instanceof Et==!0?"/"+Mr:Mr}}),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(Mr){Mr=Boolean(Mr),fr=Mr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(pn)return pn},set:function(Mr){pn=Mr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,1))},set:function(Mr){Boolean(Mr)===!0?this.Ff=ie(this.Ff,1):this.Ff=te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,2))},set:function(Mr){Boolean(Mr)===!0?this.Ff=ie(this.Ff,2):this.Ff=te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,3))},set:function(Mr){Boolean(Mr)===!0?this.Ff=ie(this.Ff,3):this.Ff=te(this.Ff,3)}});var mn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(mn!==null)return mn},set:function(Mr){if([0,1,2].indexOf(Mr)===-1)throw new Error('Invalid value "'+Mr+'" for attribute Q supplied.');mn=Mr}}),Object.defineProperty(this,"textAlign",{get:function(){var Mr;switch(mn){case 0:default:Mr="left";break;case 1:Mr="center";break;case 2:Mr="right"}return Mr},configurable:!0,enumerable:!0,set:function(Mr){switch(Mr){case"right":case 2:mn=2;break;case"center":case 1:mn=1;break;case"left":case 0:default:mn=0}}})};ne(At,Ae);var qe=function(){At.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(Xe){Se=Xe}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Se},set:function(Xe){Se=Xe}});var Ne=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Me(Ne,this.objId,this.scope)},set:function(Xe){var ze,Ze;Ze=[],typeof(ze=Xe)=="string"&&(Ze=function(wt,st,Jt){Jt||(Jt=1);for(var Rr,Ir=[];Rr=st.exec(wt);)Ir.push(Rr[Jt]);return Ir}(ze,/\((.*?)\)/g)),Ne=Ze}}),this.getOptions=function(){return Ne},this.setOptions=function(je){Ne=je,this.sort&&Ne.sort()},this.addOption=function(je){je=(je=je||"").toString(),Ne.push(je),this.sort&&Ne.sort()},this.removeOption=function(je,Xe){for(Xe=Xe||!1,je=(je=je||"").toString();Ne.indexOf(je)!==-1&&(Ne.splice(Ne.indexOf(je),1),Xe!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,18))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,18):this.Ff=te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,19))},set:function(Xe){this.combo===!0&&(Boolean(Xe)===!0?this.Ff=ie(this.Ff,19):this.Ff=te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,20))},set:function(Xe){Boolean(Xe)===!0?(this.Ff=ie(this.Ff,20),Ne.sort()):this.Ff=te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,22))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,22):this.Ff=te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,27))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,27):this.Ff=te(this.Ff,27)}}),this.hasAppearanceStream=!1};ne(qe,At);var Re=function(){qe.call(this),this.fontName="helvetica",this.combo=!1};ne(Re,qe);var Lt=function(){Re.call(this),this.combo=!0};ne(Lt,Re);var $e=function(){Lt.call(this),this.edit=!0};ne($e,Lt);var Et=function(){At.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,15))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,15):this.Ff=te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,16))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,16):this.Ff=te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,17))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,17):this.Ff=te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(Xe){Boolean(Xe)===!0?this.Ff=ie(this.Ff,26):this.Ff=te(this.Ff,26)}});var Se,Ne={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Xe=function(st){return st};if(this.scope&&(Xe=this.scope.internal.getEncryptor(this.objId)),Object.keys(Ne).length!==0){var ze,Ze=[];for(ze in Ze.push("<<"),Ne)Ze.push("/"+ze+" ("+z(Xe(Ne[ze]))+")");return Ze.push(">>"),Ze.join(`
|
|
|
`)}},set:function(Xe){C()(Xe)==="object"&&(Ne=Xe)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ne.CA||""},set:function(Xe){typeof Xe=="string"&&(Ne.CA=Xe)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Xe){Se=Xe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Se.substr(1,Se.length-1)},set:function(Xe){Se="/"+Xe}})};ne(Et,At);var Ut=function(){Et.call(this),this.pushButton=!0};ne(Ut,Et);var Bt=function(){Et.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(Bt,Et);var _t=function(){var Se,Ne;At.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Se},set:function(Ze){Se=Ze}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Ne},set:function(Ze){Ne=Ze}});var je,Xe={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ze=function(Rr){return Rr};this.scope&&(Ze=this.scope.internal.getEncryptor(this.objId));var wt,st=[];for(wt in st.push("<<"),Xe)st.push("/"+wt+" ("+z(Ze(Xe[wt]))+")");return st.push(">>"),st.join(`
|
|
|
`)},set:function(Ze){C()(Ze)==="object"&&(Xe=Ze)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Xe.CA||""},set:function(Ze){typeof Ze=="string"&&(Xe.CA=Ze)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return je},set:function(Ze){je=Ze}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return je.substr(1,je.length-1)},set:function(Ze){je="/"+Ze}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=J.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ne(_t,At),Bt.prototype.setAppearance=function(Qe){if(!("createAppearanceStream"in Qe)||!("getCA"in Qe))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Se in this.Kids)if(this.Kids.hasOwnProperty(Se)){var Ne=this.Kids[Se];Ne.appearanceStreamContent=Qe.createAppearanceStream(Ne.optionName),Ne.caption=Qe.getCA()}},Bt.prototype.createOption=function(Qe){var Se=new _t;return Se.Parent=this,Se.optionName=Qe,this.Kids.push(Se),Ue.call(this.scope,Se),Se};var jt=function(){Et.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=J.CheckBox.createAppearanceStream()};ne(jt,Et);var He=function(){At.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,13))},set:function(je){Boolean(je)===!0?this.Ff=ie(this.Ff,13):this.Ff=te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,21))},set:function(je){Boolean(je)===!0?this.Ff=ie(this.Ff,21):this.Ff=te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,23))},set:function(je){Boolean(je)===!0?this.Ff=ie(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,24))},set:function(je){Boolean(je)===!0?this.Ff=ie(this.Ff,24):this.Ff=te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,25))},set:function(je){Boolean(je)===!0?this.Ff=ie(this.Ff,25):this.Ff=te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,26))},set:function(je){Boolean(je)===!0?this.Ff=ie(this.Ff,26):this.Ff=te(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(He,At);var se=function(){He.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Fe(this.Ff,14))},set:function(Ne){Boolean(Ne)===!0?this.Ff=ie(this.Ff,14):this.Ff=te(this.Ff,14)}}),this.password=!0};ne(se,He);var J={CheckBox:{createAppearanceStream:function(){return{N:{On:J.CheckBox.YesNormal},D:{On:J.CheckBox.YesPushDown,Off:J.CheckBox.OffPushDown}}},YesPushDown:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[],Xe=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,ze=Se.scope.__private__.encodeColorString(Se.color),Ze=Y(Se,Se.caption);return je.push("0.749023 g"),je.push("0 0 "+Z(J.internal.getWidth(Se))+" "+Z(J.internal.getHeight(Se))+" re"),je.push("f"),je.push("BMC"),je.push("q"),je.push("0 0 1 rg"),je.push("/"+Xe+" "+Z(Ze.fontSize)+" Tf "+ze),je.push("BT"),je.push(Ze.text),je.push("ET"),je.push("Q"),je.push("EMC"),Ne.stream=je.join(`
|
|
|
`),Ne},YesNormal:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,Xe=Se.scope.__private__.encodeColorString(Se.color),ze=[],Ze=J.internal.getHeight(Se),wt=J.internal.getWidth(Se),st=Y(Se,Se.caption);return ze.push("1 g"),ze.push("0 0 "+Z(wt)+" "+Z(Ze)+" re"),ze.push("f"),ze.push("q"),ze.push("0 0 1 rg"),ze.push("0 0 "+Z(wt-1)+" "+Z(Ze-1)+" re"),ze.push("W"),ze.push("n"),ze.push("0 g"),ze.push("BT"),ze.push("/"+je+" "+Z(st.fontSize)+" Tf "+Xe),ze.push(st.text),ze.push("ET"),ze.push("Q"),Ne.stream=ze.join(`
|
|
|
`),Ne},OffPushDown:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[];return je.push("0.749023 g"),je.push("0 0 "+Z(J.internal.getWidth(Se))+" "+Z(J.internal.getHeight(Se))+" re"),je.push("f"),Ne.stream=je.join(`
|
|
|
`),Ne}},RadioButton:{Circle:{createAppearanceStream:function(Se){var Ne={D:{Off:J.RadioButton.Circle.OffPushDown},N:{}};return Ne.N[Se]=J.RadioButton.Circle.YesNormal,Ne.D[Se]=J.RadioButton.Circle.YesPushDown,Ne},getCA:function(){return"l"},YesNormal:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[],Xe=J.internal.getWidth(Se)<=J.internal.getHeight(Se)?J.internal.getWidth(Se)/4:J.internal.getHeight(Se)/4;Xe=Number((.9*Xe).toFixed(5));var ze=J.internal.Bezier_C,Ze=Number((Xe*ze).toFixed(5));return je.push("q"),je.push("1 0 0 1 "+le(J.internal.getWidth(Se)/2)+" "+le(J.internal.getHeight(Se)/2)+" cm"),je.push(Xe+" 0 m"),je.push(Xe+" "+Ze+" "+Ze+" "+Xe+" 0 "+Xe+" c"),je.push("-"+Ze+" "+Xe+" -"+Xe+" "+Ze+" -"+Xe+" 0 c"),je.push("-"+Xe+" -"+Ze+" -"+Ze+" -"+Xe+" 0 -"+Xe+" c"),je.push(Ze+" -"+Xe+" "+Xe+" -"+Ze+" "+Xe+" 0 c"),je.push("f"),je.push("Q"),Ne.stream=je.join(`
|
|
|
`),Ne},YesPushDown:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[],Xe=J.internal.getWidth(Se)<=J.internal.getHeight(Se)?J.internal.getWidth(Se)/4:J.internal.getHeight(Se)/4;Xe=Number((.9*Xe).toFixed(5));var ze=Number((2*Xe).toFixed(5)),Ze=Number((ze*J.internal.Bezier_C).toFixed(5)),wt=Number((Xe*J.internal.Bezier_C).toFixed(5));return je.push("0.749023 g"),je.push("q"),je.push("1 0 0 1 "+le(J.internal.getWidth(Se)/2)+" "+le(J.internal.getHeight(Se)/2)+" cm"),je.push(ze+" 0 m"),je.push(ze+" "+Ze+" "+Ze+" "+ze+" 0 "+ze+" c"),je.push("-"+Ze+" "+ze+" -"+ze+" "+Ze+" -"+ze+" 0 c"),je.push("-"+ze+" -"+Ze+" -"+Ze+" -"+ze+" 0 -"+ze+" c"),je.push(Ze+" -"+ze+" "+ze+" -"+Ze+" "+ze+" 0 c"),je.push("f"),je.push("Q"),je.push("0 g"),je.push("q"),je.push("1 0 0 1 "+le(J.internal.getWidth(Se)/2)+" "+le(J.internal.getHeight(Se)/2)+" cm"),je.push(Xe+" 0 m"),je.push(Xe+" "+wt+" "+wt+" "+Xe+" 0 "+Xe+" c"),je.push("-"+wt+" "+Xe+" -"+Xe+" "+wt+" -"+Xe+" 0 c"),je.push("-"+Xe+" -"+wt+" -"+wt+" -"+Xe+" 0 -"+Xe+" c"),je.push(wt+" -"+Xe+" "+Xe+" -"+wt+" "+Xe+" 0 c"),je.push("f"),je.push("Q"),Ne.stream=je.join(`
|
|
|
`),Ne},OffPushDown:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[],Xe=J.internal.getWidth(Se)<=J.internal.getHeight(Se)?J.internal.getWidth(Se)/4:J.internal.getHeight(Se)/4;Xe=Number((.9*Xe).toFixed(5));var ze=Number((2*Xe).toFixed(5)),Ze=Number((ze*J.internal.Bezier_C).toFixed(5));return je.push("0.749023 g"),je.push("q"),je.push("1 0 0 1 "+le(J.internal.getWidth(Se)/2)+" "+le(J.internal.getHeight(Se)/2)+" cm"),je.push(ze+" 0 m"),je.push(ze+" "+Ze+" "+Ze+" "+ze+" 0 "+ze+" c"),je.push("-"+Ze+" "+ze+" -"+ze+" "+Ze+" -"+ze+" 0 c"),je.push("-"+ze+" -"+Ze+" -"+Ze+" -"+ze+" 0 -"+ze+" c"),je.push(Ze+" -"+ze+" "+ze+" -"+Ze+" "+ze+" 0 c"),je.push("f"),je.push("Q"),Ne.stream=je.join(`
|
|
|
`),Ne}},Cross:{createAppearanceStream:function(Se){var Ne={D:{Off:J.RadioButton.Cross.OffPushDown},N:{}};return Ne.N[Se]=J.RadioButton.Cross.YesNormal,Ne.D[Se]=J.RadioButton.Cross.YesPushDown,Ne},getCA:function(){return"8"},YesNormal:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[],Xe=J.internal.calculateCross(Se);return je.push("q"),je.push("1 1 "+Z(J.internal.getWidth(Se)-2)+" "+Z(J.internal.getHeight(Se)-2)+" re"),je.push("W"),je.push("n"),je.push(Z(Xe.x1.x)+" "+Z(Xe.x1.y)+" m"),je.push(Z(Xe.x2.x)+" "+Z(Xe.x2.y)+" l"),je.push(Z(Xe.x4.x)+" "+Z(Xe.x4.y)+" m"),je.push(Z(Xe.x3.x)+" "+Z(Xe.x3.y)+" l"),je.push("s"),je.push("Q"),Ne.stream=je.join(`
|
|
|
`),Ne},YesPushDown:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=J.internal.calculateCross(Se),Xe=[];return Xe.push("0.749023 g"),Xe.push("0 0 "+Z(J.internal.getWidth(Se))+" "+Z(J.internal.getHeight(Se))+" re"),Xe.push("f"),Xe.push("q"),Xe.push("1 1 "+Z(J.internal.getWidth(Se)-2)+" "+Z(J.internal.getHeight(Se)-2)+" re"),Xe.push("W"),Xe.push("n"),Xe.push(Z(je.x1.x)+" "+Z(je.x1.y)+" m"),Xe.push(Z(je.x2.x)+" "+Z(je.x2.y)+" l"),Xe.push(Z(je.x4.x)+" "+Z(je.x4.y)+" m"),Xe.push(Z(je.x3.x)+" "+Z(je.x3.y)+" l"),Xe.push("s"),Xe.push("Q"),Ne.stream=Xe.join(`
|
|
|
`),Ne},OffPushDown:function(Se){var Ne=xe(Se);Ne.scope=Se.scope;var je=[];return je.push("0.749023 g"),je.push("0 0 "+Z(J.internal.getWidth(Se))+" "+Z(J.internal.getHeight(Se))+" re"),je.push("f"),Ne.stream=je.join(`
|
|
|
`),Ne}}},createDefaultAppearanceStream:function(Se){var Ne=Se.scope.internal.getFont(Se.fontName,Se.fontStyle).id,je=Se.scope.__private__.encodeColorString(Se.color);return"/"+Ne+" "+Se.fontSize+" Tf "+je}};J.internal={Bezier_C:.551915024494,calculateCross:function(Se){var Ne=J.internal.getWidth(Se),je=J.internal.getHeight(Se),Xe=Math.min(Ne,je);return{x1:{x:(Ne-Xe)/2,y:(je-Xe)/2+Xe},x2:{x:(Ne-Xe)/2+Xe,y:(je-Xe)/2},x3:{x:(Ne-Xe)/2,y:(je-Xe)/2},x4:{x:(Ne-Xe)/2+Xe,y:(je-Xe)/2+Xe}}}},J.internal.getWidth=function(Qe){var Se=0;return C()(Qe)==="object"&&(Se=ve(Qe.Rect[2])),Se},J.internal.getHeight=function(Qe){var Se=0;return C()(Qe)==="object"&&(Se=ve(Qe.Rect[3])),Se};var Ue=K.addField=function(Qe){if(Ce(this,Qe),!(Qe instanceof At))throw new Error("Invalid argument passed to jsPDF.addField.");var Se;return(Se=Qe).scope.internal.acroformPlugin.printedOut&&(Se.scope.internal.acroformPlugin.printedOut=!1,Se.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Se.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Se),Qe.page=Qe.scope.internal.getCurrentPageInfo().pageNumber,this};K.AcroFormChoiceField=qe,K.AcroFormListBox=Re,K.AcroFormComboBox=Lt,K.AcroFormEditBox=$e,K.AcroFormButton=Et,K.AcroFormPushButton=Ut,K.AcroFormRadioButton=Bt,K.AcroFormCheckBox=jt,K.AcroFormTextField=He,K.AcroFormPasswordField=se,K.AcroFormAppearance=J,K.AcroForm={ChoiceField:qe,ListBox:Re,ComboBox:Lt,EditBox:$e,Button:Et,PushButton:Ut,RadioButton:Bt,CheckBox:jt,TextField:He,PasswordField:se,Appearance:J},U.AcroForm={ChoiceField:qe,ListBox:Re,ComboBox:Lt,EditBox:$e,Button:Et,PushButton:Ut,RadioButton:Bt,CheckBox:jt,TextField:He,PasswordField:se,Appearance:J};var Le=U.AcroForm;function ee(Qe){return Qe.reduce(function(Se,Ne,je){return Se[Ne]=je,Se},{})}!function(Qe){Qe.__addimage__={};var Se="UNKNOWN",Ne={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},je=Qe.__addimage__.getImageFileTypeByImageData=function(St,Ct){var Nt,gt,Qt,tr,ar,yr=Se;if((Ct=Ct||Se)==="RGBA"||St.data!==void 0&&St.data instanceof Uint8ClampedArray&&"height"in St&&"width"in St)return"RGBA";if(Br(St))for(ar in Ne)for(Qt=Ne[ar],Nt=0;Nt<Qt.length;Nt+=1){for(tr=!0,gt=0;gt<Qt[Nt].length;gt+=1)if(Qt[Nt][gt]!==void 0&&Qt[Nt][gt]!==St[gt]){tr=!1;break}if(tr===!0){yr=ar;break}}else for(ar in Ne)for(Qt=Ne[ar],Nt=0;Nt<Qt.length;Nt+=1){for(tr=!0,gt=0;gt<Qt[Nt].length;gt+=1)if(Qt[Nt][gt]!==void 0&&Qt[Nt][gt]!==St.charCodeAt(gt)){tr=!1;break}if(tr===!0){yr=ar;break}}return yr===Se&&Ct!==Se&&(yr=Ct),yr},Xe=function St(Ct){for(var Nt=this.internal.write,gt=this.internal.putStream,Qt=(0,this.internal.getFilters)();Qt.indexOf("FlateEncode")!==-1;)Qt.splice(Qt.indexOf("FlateEncode"),1);Ct.objectId=this.internal.newObject();var tr=[];if(tr.push({key:"Type",value:"/XObject"}),tr.push({key:"Subtype",value:"/Image"}),tr.push({key:"Width",value:Ct.width}),tr.push({key:"Height",value:Ct.height}),Ct.colorSpace===mn.INDEXED?tr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ct.palette.length/3-1)+" "+("sMask"in Ct&&Ct.sMask!==void 0?Ct.objectId+2:Ct.objectId+1)+" 0 R]"}):(tr.push({key:"ColorSpace",value:"/"+Ct.colorSpace}),Ct.colorSpace===mn.DEVICE_CMYK&&tr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),tr.push({key:"BitsPerComponent",value:Ct.bitsPerComponent}),"decodeParameters"in Ct&&Ct.decodeParameters!==void 0&&tr.push({key:"DecodeParms",value:"<<"+Ct.decodeParameters+">>"}),"transparency"in Ct&&Array.isArray(Ct.transparency)){for(var ar="",yr=0,xn=Ct.transparency.length;yr<xn;yr++)ar+=Ct.transparency[yr]+" "+Ct.transparency[yr]+" ";tr.push({key:"Mask",value:"["+ar+"]"})}Ct.sMask!==void 0&&tr.push({key:"SMask",value:Ct.objectId+1+" 0 R"});var vn=Ct.filter!==void 0?["/"+Ct.filter]:void 0;if(gt({data:Ct.data,additionalKeyValues:tr,alreadyAppliedFilters:vn,objectId:Ct.objectId}),Nt("endobj"),"sMask"in Ct&&Ct.sMask!==void 0){var zn="/Predictor "+Ct.predictor+" /Colors 1 /BitsPerComponent "+Ct.bitsPerComponent+" /Columns "+Ct.width,Yr={width:Ct.width,height:Ct.height,colorSpace:"DeviceGray",bitsPerComponent:Ct.bitsPerComponent,decodeParameters:zn,data:Ct.sMask};"filter"in Ct&&(Yr.filter=Ct.filter),St.call(this,Yr)}if(Ct.colorSpace===mn.INDEXED){var xr=this.internal.newObject();gt({data:Sn(new Uint8Array(Ct.palette)),objectId:xr}),Nt("endobj")}},ze=function(){var Ct=this.internal.collections.addImage_images;for(var Nt in Ct)Xe.call(this,Ct[Nt])},Ze=function(){var Ct,Nt=this.internal.collections.addImage_images,gt=this.internal.write;for(var Qt in Nt)gt("/I"+(Ct=Nt[Qt]).index,Ct.objectId,"0","R")},wt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",ze),this.internal.events.subscribe("putXobjectDict",Ze))},st=function(){var Ct=this.internal.collections.addImage_images;return wt.call(this),Ct},Jt=function(){return Object.keys(this.internal.collections.addImage_images).length},Rr=function(Ct){return typeof Qe["process"+Ct.toUpperCase()]=="function"},Ir=function(Ct){return C()(Ct)==="object"&&Ct.nodeType===1},Xr=function(Ct,Nt){if(Ct.nodeName==="IMG"&&Ct.hasAttribute("src")){var gt=""+Ct.getAttribute("src");if(gt.indexOf("data:image/")===0)return i(unescape(gt).split("base64,").pop());var Qt=Qe.loadFile(gt,!0);if(Qt!==void 0)return Qt}if(Ct.nodeName==="CANVAS"){if(Ct.width===0||Ct.height===0)throw new Error("Given canvas must have data. Canvas width: "+Ct.width+", height: "+Ct.height);var tr;switch(Nt){case"PNG":tr="image/png";break;case"WEBP":tr="image/webp";break;case"JPEG":case"JPG":default:tr="image/jpeg"}return i(Ct.toDataURL(tr,1).split("base64,").pop())}},er=function(Ct){var Nt=this.internal.collections.addImage_images;if(Nt){for(var gt in Nt)if(Ct===Nt[gt].alias)return Nt[gt]}},pn=function(Ct,Nt,gt){return Ct||Nt||(Ct=-96,Nt=-96),Ct<0&&(Ct=-1*gt.width*72/Ct/this.internal.scaleFactor),Nt<0&&(Nt=-1*gt.height*72/Nt/this.internal.scaleFactor),Ct===0&&(Ct=Nt*gt.width/gt.height),Nt===0&&(Nt=Ct*gt.height/gt.width),[Ct,Nt]},fr=function(Ct,Nt,gt,Qt,tr,ar){var yr=pn.call(this,gt,Qt,tr),xn=this.internal.getCoordinateString,vn=this.internal.getVerticalCoordinateString,zn=st.call(this);if(gt=yr[0],Qt=yr[1],zn[tr.index]=tr,ar){ar*=Math.PI/180;var Yr=Math.cos(ar),xr=Math.sin(ar),ln=function(Un){return Un.toFixed(4)},On=[ln(Yr),ln(xr),ln(-1*xr),ln(Yr),0,0,"cm"]}this.internal.write("q"),ar?(this.internal.write([1,"0","0",1,xn(Ct),vn(Nt+Qt),"cm"].join(" ")),this.internal.write(On.join(" ")),this.internal.write([xn(gt),"0","0",xn(Qt),"0","0","cm"].join(" "))):this.internal.write([xn(gt),"0","0",xn(Qt),xn(Ct),vn(Nt+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=Qe.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Qe.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var en=Qe.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Mr=Qe.__addimage__.sHashCode=function(St){var Ct,Nt,gt=0;if(typeof St=="string")for(Nt=St.length,Ct=0;Ct<Nt;Ct++)gt=(gt<<5)-gt+St.charCodeAt(Ct),gt|=0;else if(Br(St))for(Nt=St.byteLength/2,Ct=0;Ct<Nt;Ct++)gt=(gt<<5)-gt+St[Ct],gt|=0;return gt},Gn=Qe.__addimage__.validateStringAsBase64=function(St){(St=St||"").toString().trim();var Ct=!0;return St.length===0&&(Ct=!1),St.length%4!=0&&(Ct=!1),/^[A-Za-z0-9+/]+$/.test(St.substr(0,St.length-2))===!1&&(Ct=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(St.substr(-2))===!1&&(Ct=!1),Ct},di=Qe.__addimage__.extractImageFromDataUrl=function(St){var Ct=(St=St||"").split("base64,"),Nt=null;if(Ct.length===2){var gt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Ct[0]);Array.isArray(gt)&&(Nt={mimeType:gt[1],charset:gt[2],data:Ct[1]})}return Nt},_i=Qe.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Qe.__addimage__.isArrayBuffer=function(St){return _i()&&St instanceof ArrayBuffer};var Br=Qe.__addimage__.isArrayBufferView=function(St){return _i()&&typeof Uint32Array!="undefined"&&(St instanceof Int8Array||St instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&St instanceof Uint8ClampedArray||St instanceof Int16Array||St instanceof Uint16Array||St instanceof Int32Array||St instanceof Uint32Array||St instanceof Float32Array||St instanceof Float64Array)},sn=Qe.__addimage__.binaryStringToUint8Array=function(St){for(var Ct=St.length,Nt=new Uint8Array(Ct),gt=0;gt<Ct;gt++)Nt[gt]=St.charCodeAt(gt);return Nt},Sn=Qe.__addimage__.arrayBufferToBinaryString=function(St){for(var Ct="",Nt=Br(St)?St:new Uint8Array(St),gt=0;gt<Nt.length;gt+=8192)Ct+=String.fromCharCode.apply(null,Nt.subarray(gt,gt+8192));return Ct};Qe.addImage=function(){var St,Ct,Nt,gt,Qt,tr,ar,yr,xn;if(typeof arguments[1]=="number"?(Ct=Se,Nt=arguments[1],gt=arguments[2],Qt=arguments[3],tr=arguments[4],ar=arguments[5],yr=arguments[6],xn=arguments[7]):(Ct=arguments[1],Nt=arguments[2],gt=arguments[3],Qt=arguments[4],tr=arguments[5],ar=arguments[6],yr=arguments[7],xn=arguments[8]),C()(St=arguments[0])==="object"&&!Ir(St)&&"imageData"in St){var vn=St;St=vn.imageData,Ct=vn.format||Ct||Se,Nt=vn.x||Nt||0,gt=vn.y||gt||0,Qt=vn.w||vn.width||Qt,tr=vn.h||vn.height||tr,ar=vn.alias||ar,yr=vn.compression||yr,xn=vn.rotation||vn.angle||xn}var zn=this.internal.getFilters();if(yr===void 0&&zn.indexOf("FlateEncode")!==-1&&(yr="SLOW"),isNaN(Nt)||isNaN(gt))throw new Error("Invalid coordinates passed to jsPDF.addImage");wt.call(this);var Yr=Dt.call(this,St,Ct,ar,yr);return fr.call(this,Nt,gt,Qt,tr,Yr,xn),this};var Dt=function(Ct,Nt,gt,Qt){var tr,ar,yr;if(typeof Ct=="string"&&je(Ct)===Se){Ct=unescape(Ct);var xn=ft(Ct,!1);(xn!==""||(xn=Qe.loadFile(Ct,!0))!==void 0)&&(Ct=xn)}if(Ir(Ct)&&(Ct=Xr(Ct,Nt)),Nt=je(Ct,Nt),!Rr(Nt))throw new Error("addImage does not support files of type '"+Nt+"', please ensure that a plugin for '"+Nt+"' support is added.");if(((yr=gt)==null||yr.length===0)&&(gt=function(vn){return typeof vn=="string"||Br(vn)?Mr(vn):Br(vn.data)?Mr(vn.data):null}(Ct)),(tr=er.call(this,gt))||(_i()&&(Ct instanceof Uint8Array||Nt==="RGBA"||(ar=Ct,Ct=sn(Ct))),tr=this["process"+Nt.toUpperCase()](Ct,Jt.call(this),gt,function(vn){return vn&&typeof vn=="string"&&(vn=vn.toUpperCase()),vn in Qe.image_compression?vn:en.NONE}(Qt),ar)),!tr)throw new Error("An unknown error occurred whilst processing the image.");return tr},ft=Qe.__addimage__.convertBase64ToBinaryString=function(St,Ct){var Nt;Ct=typeof Ct!="boolean"||Ct;var gt,Qt="";if(typeof St=="string"){gt=(Nt=di(St))!==null?Nt.data:St;try{Qt=i(gt)}catch(tr){if(Ct)throw Gn(gt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+tr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Qt};Qe.getImageProperties=function(St){var Ct,Nt,gt="";if(Ir(St)&&(St=Xr(St)),typeof St=="string"&&je(St)===Se&&((gt=ft(St,!1))===""&&(gt=Qe.loadFile(St)||""),St=gt),Nt=je(St),!Rr(Nt))throw new Error("addImage does not support files of type '"+Nt+"', please ensure that a plugin for '"+Nt+"' support is added.");if(!_i()||St instanceof Uint8Array||(St=sn(St)),!(Ct=this["process"+Nt.toUpperCase()](St)))throw new Error("An unknown error occurred whilst processing the image");return Ct.fileType=Nt,Ct}}(U.API),function(Qe){var Se=function(je){if(je!==void 0&&je!="")return!0};U.API.events.push(["addPage",function(Ne){this.internal.getPageInfo(Ne.pageNumber).pageContext.annotations=[]}]),Qe.events.push(["putPage",function(Ne){for(var je,Xe,ze,Ze=this.internal.getCoordinateString,wt=this.internal.getVerticalCoordinateString,st=this.internal.getPageInfoByObjId(Ne.objId),Jt=Ne.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 er=this.internal.pdfEscape,pn=this.internal.getEncryptor(Ne.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),Mr=je.title||"Note";ze="<</Type /Annot /Subtype /Text "+(Xe="/Rect ["+Ze(je.bounds.x)+" "+wt(je.bounds.y+je.bounds.h)+" "+Ze(je.bounds.x+je.bounds.w)+" "+wt(je.bounds.y)+"] ")+"/Contents ("+er(en(je.contents))+")",ze+=" /Popup "+mn.objId+" 0 R",ze+=" /P "+st.objId+" 0 R",ze+=" /T ("+er(en(Mr))+") >>",fr.content=ze;var Gn=fr.objId+" 0 R";ze="<</Type /Annot /Subtype /Popup "+(Xe="/Rect ["+Ze(je.bounds.x+30)+" "+wt(je.bounds.y+je.bounds.h)+" "+Ze(je.bounds.x+je.bounds.w+30)+" "+wt(je.bounds.y)+"] ")+" /Parent "+Gn,je.open&&(ze+=" /Open true"),ze+=" >>",mn.content=ze,this.internal.write(fr.objId,"0 R",mn.objId,"0 R");break;case"freetext":Xe="/Rect ["+Ze(je.bounds.x)+" "+wt(je.bounds.y)+" "+Ze(je.bounds.x+je.bounds.w)+" "+wt(je.bounds.y+je.bounds.h)+"] ";var di=je.color||"#000000";ze="<</Type /Annot /Subtype /FreeText "+Xe+"/Contents ("+er(pn(je.contents))+")",ze+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+di+")",ze+=" /Border [0 0 0]",ze+=" >>",this.internal.write(ze);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(Xe="/Rect ["+je.finalBounds.x+" "+je.finalBounds.y+" "+je.finalBounds.w+" "+je.finalBounds.h+"] ",ze="",je.options.url)ze="<</Type /Annot /Subtype /Link "+Xe+"/Border [0 0 0] /A <</S /URI /URI ("+er(pn(je.options.url))+") >>";else if(je.options.pageNumber)switch(ze="<</Type /Annot /Subtype /Link "+Xe+"/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":ze+=" /Fit]";break;case"FitH":ze+=" /FitH "+je.options.top+"]";break;case"FitV":je.options.left=je.options.left||0,ze+=" /FitV "+je.options.left+"]";break;case"XYZ":default:var Br=wt(je.options.top);je.options.left=je.options.left||0,je.options.zoom===void 0&&(je.options.zoom=0),ze+=" /XYZ "+je.options.left+" "+Br+" "+je.options.zoom+"]"}ze!=""&&(ze+=" >>",this.internal.write(ze))}}this.internal.write("]")}}]),Qe.createAnnotation=function(Ne){var je=this.internal.getCurrentPageInfo();switch(Ne.type){case"link":this.link(Ne.bounds.x,Ne.bounds.y,Ne.bounds.w,Ne.bounds.h,Ne);break;case"text":case"freetext":je.pageContext.annotations.push(Ne)}},Qe.link=function(Ne,je,Xe,ze,Ze){var wt=this.internal.getCurrentPageInfo(),st=this.internal.getCoordinateString,Jt=this.internal.getVerticalCoordinateString;wt.pageContext.annotations.push({finalBounds:{x:st(Ne),y:Jt(je),w:st(Ne+Xe),h:Jt(je+ze)},options:Ze,type:"link"})},Qe.textWithLink=function(Ne,je,Xe,ze){var Ze,wt,st=this.getTextWidth(Ne),Jt=this.internal.getLineHeight()/this.internal.scaleFactor;if(ze.maxWidth!==void 0){wt=ze.maxWidth;var Rr=this.splitTextToSize(Ne,wt).length;Ze=Math.ceil(Jt*Rr)}else wt=st,Ze=Jt;return this.text(Ne,je,Xe,ze),Xe+=.2*Jt,ze.align==="center"&&(je-=st/2),ze.align==="right"&&(je-=st),this.link(je,Xe-Jt,wt,Ze,ze),st},Qe.getTextWidth=function(Ne){var je=this.internal.getFontSize();return this.getStringUnitWidth(Ne)*je/this.internal.scaleFactor}}(U.API),function(Qe){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]},Ne={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},je={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Xe=[1570,1571,1573,1575];Qe.__arabicParser__={};var ze=Qe.__arabicParser__.isInArabicSubstitutionA=function(fr){return Se[fr.charCodeAt(0)]!==void 0},Ze=Qe.__arabicParser__.isArabicLetter=function(fr){return typeof fr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(fr)},wt=Qe.__arabicParser__.isArabicEndLetter=function(fr){return Ze(fr)&&ze(fr)&&Se[fr.charCodeAt(0)].length<=2},st=Qe.__arabicParser__.isArabicAlfLetter=function(fr){return Ze(fr)&&Xe.indexOf(fr.charCodeAt(0))>=0};Qe.__arabicParser__.arabicLetterHasIsolatedForm=function(fr){return Ze(fr)&&ze(fr)&&Se[fr.charCodeAt(0)].length>=1};var Jt=Qe.__arabicParser__.arabicLetterHasFinalForm=function(fr){return Ze(fr)&&ze(fr)&&Se[fr.charCodeAt(0)].length>=2};Qe.__arabicParser__.arabicLetterHasInitialForm=function(fr){return Ze(fr)&&ze(fr)&&Se[fr.charCodeAt(0)].length>=3};var Rr=Qe.__arabicParser__.arabicLetterHasMedialForm=function(fr){return Ze(fr)&&ze(fr)&&Se[fr.charCodeAt(0)].length==4},Ir=Qe.__arabicParser__.resolveLigatures=function(fr){var mn=0,en=Ne,Mr="",Gn=0;for(mn=0;mn<fr.length;mn+=1)en[fr.charCodeAt(mn)]!==void 0?(Gn++,typeof(en=en[fr.charCodeAt(mn)])=="number"&&(Mr+=String.fromCharCode(en),en=Ne,Gn=0),mn===fr.length-1&&(en=Ne,Mr+=fr.charAt(mn-(Gn-1)),mn-=Gn-1,Gn=0)):(en=Ne,Mr+=fr.charAt(mn-Gn),mn-=Gn,Gn=0);return Mr};Qe.__arabicParser__.isArabicDiacritic=function(fr){return fr!==void 0&&je[fr.charCodeAt(0)]!==void 0};var Xr=Qe.__arabicParser__.getCorrectForm=function(fr,mn,en){return Ze(fr)?ze(fr)===!1?-1:!Jt(fr)||!Ze(mn)&&!Ze(en)||!Ze(en)&&wt(mn)||wt(fr)&&!Ze(mn)||wt(fr)&&st(mn)||wt(fr)&&wt(mn)?0:Rr(fr)&&Ze(mn)&&!wt(mn)&&Ze(en)&&Jt(en)?3:wt(fr)||!Ze(en)?1:2:-1},er=function(mn){var en=0,Mr=0,Gn=0,di="",_i="",Br="",sn=(mn=mn||"").split("\\s+"),Sn=[];for(en=0;en<sn.length;en+=1){for(Sn.push(""),Mr=0;Mr<sn[en].length;Mr+=1)di=sn[en][Mr],_i=sn[en][Mr-1],Br=sn[en][Mr+1],Ze(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=Qe.__arabicParser__.processArabic=Qe.processArabic=function(){var fr,mn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,en=[];if(Array.isArray(mn)){var Mr=0;for(en=[],Mr=0;Mr<mn.length;Mr+=1)Array.isArray(mn[Mr])?en.push([er(mn[Mr][0]),mn[Mr][1],mn[Mr][2]]):en.push([er(mn[Mr])]);fr=en}else fr=er(mn);return typeof arguments[0]=="string"?fr:(arguments[0].text=fr,arguments[0])};Qe.events.push(["preProcessText",pn])}(U.API),U.API.autoPrint=function(Qe){var Se;switch((Qe=Qe||{}).variant=Qe.variant||"non-conform",Qe.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){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(Qe){var Se=function(){var je=void 0;Object.defineProperty(this,"pdf",{get:function(){return je},set:function(Jt){je=Jt}});var Xe=150;Object.defineProperty(this,"width",{get:function(){return Xe},set:function(Jt){Xe=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?150:Jt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Xe+1)}});var ze=300;Object.defineProperty(this,"height",{get:function(){return ze},set:function(Jt){ze=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?300:Jt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ze+1)}});var Ze=[];Object.defineProperty(this,"childNodes",{get:function(){return Ze},set:function(Jt){Ze=Jt}});var wt={};Object.defineProperty(this,"style",{get:function(){return wt},set:function(Jt){wt=Jt}}),Object.defineProperty(this,"parentNode",{})};Se.prototype.getContext=function(Ne,je){var Xe;if((Ne=Ne||"2d")!=="2d")return null;for(Xe in je)this.pdf.context2d.hasOwnProperty(Xe)&&(this.pdf.context2d[Xe]=je[Xe]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Se.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Qe.events.push(["initialized",function(){this.canvas=new Se,this.canvas.pdf=this}])}(U.API),function(Qe){var Se={left:0,top:0,bottom:0,right:0},Ne=!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(),Xe.call(this))},Xe=function(){this.internal.__cell__.lastCell=new ze,this.internal.__cell__.pages=1},ze=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 er=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return er},set:function(en){er=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};ze.prototype.clone=function(){return new ze(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ze.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Qe.setHeaderFunction=function(st){return je.call(this),this.internal.__cell__.headerFunction=typeof st=="function"?st:void 0,this},Qe.getTextDimensions=function(st,Jt){je.call(this);var Rr=(Jt=Jt||{}).fontSize||this.getFontSize(),Ir=Jt.font||this.getFont(),Xr=Jt.scaleFactor||this.internal.scaleFactor,er=0,pn=0,fr=0,mn=this;if(!Array.isArray(st)&&typeof st!="string"){if(typeof st!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");st=String(st)}var en=Jt.maxWidth;en>0?typeof st=="string"?st=this.splitTextToSize(st,en):Object.prototype.toString.call(st)==="[object Array]"&&(st=st.reduce(function(Gn,di){return Gn.concat(mn.splitTextToSize(di,en))},[])):st=Array.isArray(st)?st:[st];for(var Mr=0;Mr<st.length;Mr++)er<(fr=this.getStringUnitWidth(st[Mr],{font:Ir})*Rr)&&(er=fr);return er!==0&&(pn=st.length),{w:er/=Xr,h:Math.max((pn*Rr*this.getLineHeightFactor()-Rr*(this.getLineHeightFactor()-1))/Xr,0)}},Qe.cellAddPage=function(){je.call(this),this.addPage();var st=this.internal.__cell__.margins||Se;return this.internal.__cell__.lastCell=new ze(st.left,st.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Ze=Qe.cell=function(){var st;st=arguments[0]instanceof ze?arguments[0]:new ze(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,er=this.internal.__cell__.printHeaders;return Jt.lineNumber!==void 0&&(Jt.lineNumber===st.lineNumber?(st.x=(Jt.x||0)+(Jt.width||0),st.y=Jt.y||0):Jt.y+Jt.height+st.height+Ir.bottom>this.getPageHeight()?(this.cellAddPage(),st.y=Ir.top,er&&Xr&&(this.printHeaderRow(st.lineNumber,!0),st.y+=Xr[0].height)):st.y=Jt.y+Jt.height||st.y),st.text[0]!==void 0&&(this.rect(st.x,st.y,st.width,st.height,Ne===!0?"FD":void 0),st.align==="right"?this.text(st.text,st.x+st.width-Rr,st.y+Rr,{align:"right",baseline:"top"}):st.align==="center"?this.text(st.text,st.x+st.width/2,st.y+Rr,{align:"center",baseline:"top",maxWidth:st.width-Rr-Rr}):this.text(st.text,st.x+Rr,st.y+Rr,{align:"left",baseline:"top",maxWidth:st.width-Rr-Rr})),this.internal.__cell__.lastCell=st,this};Qe.table=function(st,Jt,Rr,Ir,Xr){if(je.call(this),!Rr)throw new Error("No data for PDF table.");var er,pn,fr,mn,en=[],Mr=[],Gn=[],di={},_i={},Br=[],sn=[],Sn=(Xr=Xr||{}).autoSize||!1,Dt=Xr.printHeaders!==!1,ft=Xr.css&&Xr.css["font-size"]!==void 0?16*Xr.css["font-size"]:Xr.fontSize||12,St=Xr.margins||Object.assign({width:this.getPageWidth()},Se),Ct=typeof Xr.padding=="number"?Xr.padding:3,Nt=Xr.headerBackgroundColor||"#c8c8c8",gt=Xr.headerTextColor||"#000";if(Xe.call(this),this.internal.__cell__.printHeaders=Dt,this.internal.__cell__.margins=St,this.internal.__cell__.table_font_size=ft,this.internal.__cell__.padding=Ct,this.internal.__cell__.headerBackgroundColor=Nt,this.internal.__cell__.headerTextColor=gt,this.setFontSize(ft),Ir==null)Mr=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}),Mr=Ir.map(function(vn){return vn.prompt||vn.name||""}),Gn=Ir.map(function(vn){return vn.align||"left"}),er=0;er<Ir.length;er+=1)_i[Ir[er].name]=Ir[er].width*(19.049976/25.4);else Array.isArray(Ir)&&typeof Ir[0]=="string"&&(Mr=en=Ir,Gn=en.map(function(){return"left"}));if(Sn||Array.isArray(Ir)&&typeof Ir[0]=="string")for(er=0;er<en.length;er+=1){for(di[mn=en[er]]=Rr.map(function(vn){return vn[mn]}),this.setFont(void 0,"bold"),Br.push(this.getTextDimensions(Mr[er],{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)+Ct+Ct,Br=[]}if(Dt){var Qt={};for(er=0;er<en.length;er+=1)Qt[en[er]]={},Qt[en[er]].text=Mr[er],Qt[en[er]].align=Gn[er];var tr=wt.call(this,Qt,_i);sn=en.map(function(vn){return new ze(st,Jt,_i[vn],tr,Qt[vn].text,void 0,Qt[vn].align)}),this.setTableHeaderRow(sn),this.printHeaderRow(1,!1)}var ar=Ir.reduce(function(vn,zn){return vn[zn.name]=zn.align,vn},{});for(er=0;er<Rr.length;er+=1){"rowStart"in Xr&&Xr.rowStart instanceof Function&&Xr.rowStart({row:er,data:Rr[er]},this);var yr=wt.call(this,Rr[er],_i);for(fr=0;fr<en.length;fr+=1){var xn=Rr[er][en[fr]];"cellStart"in Xr&&Xr.cellStart instanceof Function&&Xr.cellStart({row:er,col:fr,data:xn},this),Ze.call(this,new ze(st,Jt,_i[en[fr]],yr,xn,er+2,ar[en[fr]]))}}return this.internal.__cell__.table_x=st,this.internal.__cell__.table_y=Jt,this};var wt=function(Jt,Rr){var Ir=this.internal.__cell__.padding,Xr=this.internal.__cell__.table_font_size,er=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/er+Ir+Ir},this).reduce(function(pn,fr){return Math.max(pn,fr)},0)};Qe.setTableHeaderRow=function(st){je.call(this),this.internal.__cell__.tableHeaderRow=st},Qe.printHeaderRow=function(st,Jt){if(je.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Rr;if(Ne=!0,typeof this.internal.__cell__.headerFunction=="function"){var Ir=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new ze(Ir[0],Ir[1],Ir[2],Ir[3],void 0,-1)}this.setFont(void 0,"bold");for(var Xr=[],er=0;er<this.internal.__cell__.tableHeaderRow.length;er+=1){Rr=this.internal.__cell__.tableHeaderRow[er].clone(),Jt&&(Rr.y=this.internal.__cell__.margins.top||0,Xr.push(Rr)),Rr.lineNumber=st;var pn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Ze.call(this,Rr),this.setTextColor(pn)}Xr.length>0&&this.setTableHeaderRow(Xr),this.setFont(void 0,"normal"),Ne=!1}}(U.API);var ct={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Mt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ot=ee(Mt),Yt=[100,200,300,400,500,600,700,800,900],or=ee(Yt);function Zr(Qe){var Se=Qe.family.replace(/"|'/g,"").toLowerCase(),Ne=function(ze){return ct[ze=ze||"normal"]?ze:"normal"}(Qe.style),je=function(ze){if(!ze)return 400;if(typeof ze=="number")return ze>=100&&ze<=900&&ze%100==0?ze:400;if(/^\d00$/.test(ze))return parseInt(ze);switch(ze){case"bold":return 700;case"normal":default:return 400}}(Qe.weight),Xe=function(ze){return typeof ot[ze=ze||"normal"]=="number"?ze:"normal"}(Qe.stretch);return{family:Se,style:Ne,weight:je,stretch:Xe,src:Qe.src||[],ref:Qe.ref||{name:Se,style:[Xe,Ne,je].join(" ")}}}function ir(Qe,Se,Ne,je){var Xe;for(Xe=Ne;Xe>=0&&Xe<Se.length;Xe+=je)if(Qe[Se[Xe]])return Qe[Se[Xe]];for(Xe=Ne;Xe>=0&&Xe<Se.length;Xe-=je)if(Qe[Se[Xe]])return Qe[Se[Xe]]}var dr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ht(Qe){return[Qe.stretch,Qe.style,Qe.weight,Qe.family].join(" ")}function lt(Qe,Se,Ne){for(var je=(Ne=Ne||{}).defaultFontFamily||"times",Xe=Object.assign({},dr,Ne.genericFontFamilies||{}),ze=null,Ze=null,wt=0;wt<Se.length;++wt)if(Xe[(ze=Zr(Se[wt])).family]&&(ze.family=Xe[ze.family]),Qe.hasOwnProperty(ze.family)){Ze=Qe[ze.family];break}if(!(Ze=Ze||Qe[je]))throw new Error("Could not find a font-family for the rule '"+Ht(ze)+"' and default family '"+je+"'.");if(Ze=function(st,Jt){if(Jt[st])return Jt[st];var Rr=ot[st],Ir=Rr<=ot.normal?-1:1,Xr=ir(Jt,Mt,Rr,Ir);if(!Xr)throw new Error("Could not find a matching font-stretch value for "+st);return Xr}(ze.stretch,Ze),Ze=function(st,Jt){if(Jt[st])return Jt[st];for(var Rr=ct[st],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 "+st)}(ze.style,Ze),!(Ze=function(st,Jt){if(Jt[st])return Jt[st];if(st===400&&Jt[500])return Jt[500];if(st===500&&Jt[400])return Jt[400];var Rr=or[st],Ir=ir(Jt,Yt,Rr,st<400?-1:1);if(!Ir)throw new Error("Could not find a matching font-weight for value "+st);return Ir}(ze.weight,Ze)))throw new Error("Failed to resolve a font for the rule '"+Ht(ze)+"'.");return Ze}function Hr(Qe){return Qe.trimLeft()}function dn(Qe,Se){for(var Ne=0;Ne<Qe.length;){if(Qe.charAt(Ne)===Se)return[Qe.substring(0,Ne),Qe.substring(Ne+1)];Ne+=1}return null}function Nn(Qe){var Se=Qe.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Se===null?null:[Se[0],Qe.substring(Se[0].length)]}var Wn,gi,yn,Mn=["times"];!function(Qe){var Se,Ne,je,Xe,ze,Ze,wt,st,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 st,this.globalCompositeOperation=xr.globalCompositeOperation||"normal",this.globalAlpha=xr.globalAlpha||1,this.clip_path=xr.clip_path||[],this.currentPoint=xr.currentPoint||new Ze,this.miterLimit=xr.miterLimit||10,this.lastPoint=xr.lastPoint||new Ze,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};Qe.events.push(["initialized",function(){this.context2d=new Ir(this),Se=this.internal.f2,Ne=this.internal.getCoordinateString,je=this.internal.getVerticalCoordinateString,Xe=this.internal.getHorizontalCoordinate,ze=this.internal.getVerticalCoordinate,Ze=this.internal.Point,wt=this.internal.Rectangle,st=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 ki=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ki},set:function(mi){ki=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 qt)return[qt[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=lt(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"},vt=0;vt<Zt.length;vt++){if(this.pdf.internal.getFont(Zt[vt],Or,{noFallback:!0,disableWarning:!0})!==void 0){Wr=Zt[vt];break}if(Or==="bolditalic"&&this.pdf.internal.getFont(Zt[vt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Wr=Zt[vt],Or="bold";else if(this.pdf.internal.getFont(Zt[vt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Wr=Zt[vt],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,zn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(mi){this.ctx.lineDash=mi,zn.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 Ze(Yr,xr));this.path.push({type:"mt",x:ln.x,y:ln.y}),this.ctx.lastPoint=new Ze(Yr,xr)},Ir.prototype.closePath=function(){var Yr=new Ze(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 Ze(this.path[xr+1].x,this.path[xr+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Ze(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 Ze(Yr,xr));this.path.push({type:"lt",x:ln.x,y:ln.y}),this.ctx.lastPoint=new Ze(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 Ze(ln,On)),Un=this.ctx.transform.applyToPoint(new Ze(Yr,xr));this.path.push({type:"qct",x1:Un.x,y1:Un.y,x:In.x,y:In.y}),this.ctx.lastPoint=new Ze(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 Ze(In,Un)),ui=this.ctx.transform.applyToPoint(new Ze(Yr,xr)),si=this.ctx.transform.applyToPoint(new Ze(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 Ze(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 Ze(Yr,xr));Yr=ti.x,xr=ti.y;var ui=this.ctx.transform.applyToPoint(new Ze(0,ln)),si=this.ctx.transform.applyToPoint(new Ze(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(!er.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 l(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}},er=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,!er.call(this)){var In=yr(this.ctx.transform.rotation),Un=this.ctx.transform.scaleX;Ct.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;Ct.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 st(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 st(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 st(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 st(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 st(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 ki=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=ki.width/On*ui/On,Ri=ki.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=ki.width,si=ki.height);for(var gn,mi=this.ctx.transform.decompose(),Hi=yr(mi.rotate.shx),Li=new st,Bi=(Li=(Li=(Li=Li.multiply(mi.translate)).multiply(mi.skew)).multiply(mi.scale)).applyToRectangle(new wt(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],vt=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:vt+(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=Mr(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=Mr([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},Mr=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,ki=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=ki,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=Mr(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=Mr(In,this.posX+this.margin[3],-Wr+Zt+this.ctx.prevPageLastElemOffset),ln===!1||lr===0){var vt=(lr>Bi||lr<wr)&&fr.call(this);vt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],on,Or,null).clip().discardPath()),_i.call(this,xr,ln),vt&&this.pdf.restoreGraphicsState()}this.lineWidth=si}else this.lineWidth=ki,_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||!er.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 ki=Un.length;if(ti[ui-1]&&!isNaN(ti[ui-1].x)&&(On=[si.x-ti[ui-1].x,si.y-ti[ui-1].y],ki>0)){for(;ki>=0;ki--)if(Un[ki-1].close!==!0&&Un[ki-1].begin!==!0){Un[ki-1].deltas.push(On),Un[ki-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):Nt.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;gt.call(this,Un[Li].deltas,on,Zt),Hi=!0}In&&Dt.call(this,In),ln&&ft.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,ki){for(var zi=tr.call(this,On,In,Un,ti),Ri=0;Ri<zi.length;Ri++){var Yi=zi[Ri];Ri===0&&(ki?St.call(this,Yi.x1+xr,Yi.y1+ln):Nt.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?ft.call(this):Dt.call(this,ui)},Dt=function(xr){switch(xr){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ft=function(){this.pdf.clip(),this.pdf.discardPath()},St=function(xr,ln){this.pdf.internal.out(Ne(xr)+" "+je(ln)+" m")},Ct=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 Ze(xr.x,In)),ui=this.ctx.transform.decompose(),si=new st;si=(si=(si=si.multiply(ui.translate)).multiply(ui.skew)).multiply(ui.scale);for(var ki,zi,Ri,Yi=this.ctx.transform.applyToRectangle(new wt(xr.x,In,On.w,On.h)),$n=si.applyToRectangle(new wt(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 vt=this.path;ki=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Mr(ki,this.posX+this.margin[3],-1*An+lr),_i.call(this,"fill",!0),this.path=vt}var mr=Mr([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=Mr([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)},Nt=function(xr,ln,On,In){On=On||0,In=In||0,this.pdf.internal.out(Ne(xr+On)+" "+je(ln+In)+" l")},gt=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(Xe(On+xr)),Se(ze(In+ln)),Se(Xe(Un+xr)),Se(ze(ti+ln)),Se(Xe(ui+xr)),Se(ze(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=[],ki=In?-1:1,zi=ln;ui>1e-5;){var Ri=zi+ki*Math.min(ui,ti);si.push(ar.call(this,xr,zi,Ri)),ui-=Math.abs(Ri-zi),zi=Ri}return si},ar=function(xr,ln,On){var In=(On-ln)/2,Un=xr*Math.cos(In),ti=xr*Math.sin(In),ui=Un,si=-ti,ki=ui*ui+si*si,zi=ki+ui*Un+si*ti,Ri=4/3*(Math.sqrt(2*ki*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),ki=Un+.5*(On-Un),zi=ti+.5*(In-ti),Ri=Math.min(xr,Un,ui,ki),Yi=Math.max(xr,Un,ui,ki),$n=Math.min(ln,ti,si,zi),gn=Math.max(ln,ti,si,zi);return new wt(Ri,$n,Yi-Ri,gn-$n)},vn=function(xr,ln,On,In,Un,ti,ui,si){var ki,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,vt=ui-Un,mr=si-ti;for(zi=0;zi<41;zi++)Li=(mi=(Ri=xr+(ki=zi/40)*br)+ki*(($n=On+ki*Wr)-Ri))+ki*($n+ki*(Un+ki*vt-$n)-mi),Bi=(Hi=(Yi=ln+ki*Or)+ki*((gn=In+ki*An)-Yi))+ki*(gn+ki*(ti+ki*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 wt(Math.round(wr),Math.round(lr),Math.round(on-wr),Math.round(Zt-lr))},zn=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)}}}(U.API),function(Qe){var Se=function(Ze){var wt,st,Jt,Rr,Ir,Xr,er,pn,fr,mn;for(/[^\x00-\xFF]/.test(Ze),st=[],Jt=0,Rr=(Ze+=wt="\0\0\0\0".slice(Ze.length%4||4)).length;Rr>Jt;Jt+=4)(Ir=(Ze.charCodeAt(Jt)<<24)+(Ze.charCodeAt(Jt+1)<<16)+(Ze.charCodeAt(Jt+2)<<8)+Ze.charCodeAt(Jt+3))!==0?(Xr=(Ir=((Ir=((Ir=((Ir=(Ir-(mn=Ir%85))/85)-(fr=Ir%85))/85)-(pn=Ir%85))/85)-(er=Ir%85))/85)%85,st.push(Xr+33,er+33,pn+33,fr+33,mn+33)):st.push(122);return function(en,Mr){for(var Gn=Mr;Gn>0;Gn--)en.pop()}(st,wt.length),String.fromCharCode.apply(String,st)+"~>"},Ne=function(Ze){var wt,st,Jt,Rr,Ir,Xr=String,er="length",pn=255,fr="charCodeAt",mn="slice",en="replace";for(Ze[mn](-2),Ze=Ze[mn](0,-2)[en](/\s/g,"")[en]("z","!!!!!"),Jt=[],Rr=0,Ir=(Ze+=wt="uuuuu"[mn](Ze[er]%5||5))[er];Ir>Rr;Rr+=5)st=52200625*(Ze[fr](Rr)-33)+614125*(Ze[fr](Rr+1)-33)+7225*(Ze[fr](Rr+2)-33)+85*(Ze[fr](Rr+3)-33)+(Ze[fr](Rr+4)-33),Jt.push(pn&st>>24,pn&st>>16,pn&st>>8,pn&st);return function(Mr,Gn){for(var di=Gn;di>0;di--)Mr.pop()}(Jt,wt[er]),Xr.fromCharCode.apply(Xr,Jt)},je=function(Ze){var wt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Ze=Ze.replace(/\s/g,"")).indexOf(">")!==-1&&(Ze=Ze.substr(0,Ze.indexOf(">"))),Ze.length%2&&(Ze+="0"),wt.test(Ze)===!1)return"";for(var st="",Jt=0;Jt<Ze.length;Jt+=2)st+=String.fromCharCode("0x"+(Ze[Jt]+Ze[Jt+1]));return st},Xe=function(Ze){for(var wt=new Uint8Array(Ze.length),st=Ze.length;st--;)wt[st]=Ze.charCodeAt(st);return Ze=(wt=Object(A.b)(wt)).reduce(function(Jt,Rr){return Jt+String.fromCharCode(Rr)},"")};Qe.processDataByFilters=function(ze,Ze){var wt=0,st=ze||"",Jt=[];for(typeof(Ze=Ze||[])=="string"&&(Ze=[Ze]),wt=0;wt<Ze.length;wt+=1)switch(Ze[wt]){case"ASCII85Decode":case"/ASCII85Decode":st=Ne(st),Jt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":st=Se(st),Jt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":st=je(st),Jt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":st=st.split("").map(function(Rr){return("0"+Rr.charCodeAt().toString(16)).slice(-2)}).join("")+">",Jt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":st=Xe(st),Jt.push("/FlateDecode");break;default:throw new Error('The filter: "'+Ze[wt]+'" is not implemented')}return{data:st,reverseChain:Jt.reverse().join(" ")}}}(U.API),function(Qe){Qe.loadFile=function(Se,Ne,je){return function(Xe,ze,Ze){ze=ze!==!1,Ze=typeof Ze=="function"?Ze:function(){};var wt=void 0;try{wt=function(st,Jt,Rr){var Ir=new XMLHttpRequest,Xr=0,er=function(fr){var mn=fr.length,en=[],Mr=String.fromCharCode;for(Xr=0;Xr<mn;Xr+=1)en.push(Mr(255&fr.charCodeAt(Xr)));return en.join("")};if(Ir.open("GET",st,!Jt),Ir.overrideMimeType("text/plain; charset=x-user-defined"),Jt===!1&&(Ir.onload=function(){Ir.status===200?Rr(er(this.responseText)):Rr(void 0)}),Ir.send(null),Jt&&Ir.status===200)return er(Ir.responseText)}(Xe,ze,Ze)}catch(st){}return wt}(Se,Ne,je)},Qe.loadImageFile=Qe.loadFile}(U.API),function(Qe){function Se(){return(w.html2canvas?Promise.resolve(w.html2canvas):Promise.resolve().then(d.t.bind(null,"wOnQ",7))).catch(function(Ze){return Promise.reject(new Error("Could not load html2canvas: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze})}function Ne(){return(w.DOMPurify?Promise.resolve(w.DOMPurify):d.e(246).then(d.t.bind(null,"qZ2Q",7))).catch(function(Ze){return Promise.reject(new Error("Could not load dompurify: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze})}var je=function(wt){var st=C()(wt);return st==="undefined"?"undefined":st==="string"||wt instanceof String?"string":st==="number"||wt instanceof Number?"number":st==="function"||wt instanceof Function?"function":wt&&wt.constructor===Array?"array":wt&&wt.nodeType===1?"element":st==="object"?"object":"unknown"},Xe=function(wt,st){var Jt=document.createElement(wt);for(var Rr in st.className&&(Jt.className=st.className),st.innerHTML&&st.dompurify&&(Jt.innerHTML=st.dompurify.sanitize(st.innerHTML)),st.style)Jt.style[Rr]=st.style[Rr];return Jt},ze=function Ze(wt){var st=Object.assign(Ze.convert(Promise.resolve()),JSON.parse(JSON.stringify(Ze.template))),Jt=Ze.convert(Promise.resolve(),st);return Jt=(Jt=Jt.setProgress(1,Ze,1,[Ze])).set(wt)};(ze.prototype=Object.create(Promise.prototype)).constructor=ze,ze.convert=function(Ze,wt){return Ze.__proto__=wt||ze.prototype,Ze},ze.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},ze.prototype.from=function(Ze,wt){return this.then(function(){switch(wt=wt||function(st){switch(je(st)){case"string":return"string";case"element":return st.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Ze)){case"string":return this.then(Ne).then(function(st){return this.set({src:Xe("div",{innerHTML:Ze,dompurify:st})})});case"element":return this.set({src:Ze});case"canvas":return this.set({canvas:Ze});case"img":return this.set({img:Ze});default:return this.error("Unknown source type.")}})},ze.prototype.to=function(Ze){switch(Ze){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},ze.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var Ze={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},wt=function st(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(st(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);wt.tagName==="BODY"&&(Ze.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Xe("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Xe("div",{className:"html2pdf__container",style:Ze}),this.prop.container.appendChild(wt),this.prop.container.firstChild.appendChild(Xe("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},ze.prototype.toCanvas=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(Se).then(function(wt){var st=Object.assign({},this.opt.html2canvas);return delete st.onrendered,wt(this.prop.container,st)}).then(function(wt){(this.opt.html2canvas.onrendered||function(){})(wt),this.prop.canvas=wt,document.body.removeChild(this.prop.overlay)})},ze.prototype.toContext2d=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(Se).then(function(wt){var st=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,st.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,st.context2d.posX=this.opt.x,st.context2d.posY=this.opt.y,st.context2d.margin=this.opt.margin,st.context2d.fontFaces=Jt,Jt)for(var Xr=0;Xr<Jt.length;++Xr){var er=Jt[Xr],pn=er.src.find(function(fr){return fr.format==="truetype"});pn&&st.addFont(pn.url,er.ref.name,er.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,st.context2d.save(!0),wt(this.prop.container,Ir)}).then(function(wt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(wt),this.prop.canvas=wt,document.body.removeChild(this.prop.overlay)})},ze.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Ze=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ze})},ze.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},ze.prototype.output=function(Ze,wt,st){return(st=st||"pdf").toLowerCase()==="img"||st.toLowerCase()==="image"?this.outputImg(Ze,wt):this.outputPdf(Ze,wt)},ze.prototype.outputPdf=function(Ze,wt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Ze,wt)})},ze.prototype.outputImg=function(Ze){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Ze){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Ze+'" is not supported.'}})},ze.prototype.save=function(Ze){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Ze?{filename:Ze}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ze.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},ze.prototype.set=function(Ze){if(je(Ze)!=="object")return this;var wt=Object.keys(Ze||{}).map(function(st){if(st in ze.template.prop)return function(){this.prop[st]=Ze[st]};switch(st){case"margin":return this.setMargin.bind(this,Ze.margin);case"jsPDF":return function(){return this.opt.jsPDF=Ze.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Ze.pageSize);default:return function(){this.opt[st]=Ze[st]}}},this);return this.then(function(){return this.thenList(wt)})},ze.prototype.get=function(Ze,wt){return this.then(function(){var st=Ze in ze.template.prop?this.prop[Ze]:this.opt[Ze];return wt?wt(st):st})},ze.prototype.setMargin=function(Ze){return this.then(function(){switch(je(Ze)){case"number":Ze=[Ze,Ze,Ze,Ze];case"array":if(Ze.length===2&&(Ze=[Ze[0],Ze[1],Ze[0],Ze[1]]),Ze.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Ze}).then(this.setPageSize)},ze.prototype.setPageSize=function(Ze){function wt(st,Jt){return Math.floor(st*Jt/72*96)}return this.then(function(){(Ze=Ze||U.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Ze.inner={width:Ze.width-this.opt.margin[1]-this.opt.margin[3],height:Ze.height-this.opt.margin[0]-this.opt.margin[2]},Ze.inner.px={width:wt(Ze.inner.width,Ze.k),height:wt(Ze.inner.height,Ze.k)},Ze.inner.ratio=Ze.inner.height/Ze.inner.width),this.prop.pageSize=Ze})},ze.prototype.setProgress=function(Ze,wt,st,Jt){return Ze!=null&&(this.progress.val=Ze),wt!=null&&(this.progress.state=wt),st!=null&&(this.progress.n=st),Jt!=null&&(this.progress.stack=Jt),this.progress.ratio=this.progress.val/this.progress.state,this},ze.prototype.updateProgress=function(Ze,wt,st,Jt){return this.setProgress(Ze?this.progress.val+Ze:null,wt||null,st?this.progress.n+st:null,Jt?this.progress.stack.concat(Jt):null)},ze.prototype.then=function(Ze,wt){var st=this;return this.thenCore(Ze,wt,function(Jt,Rr){return st.updateProgress(null,null,1,[Jt]),Promise.prototype.then.call(this,function(Ir){return st.updateProgress(null,Jt),Ir}).then(Jt,Rr).then(function(Ir){return st.updateProgress(1),Ir})})},ze.prototype.thenCore=function(Ze,wt,st){st=st||Promise.prototype.then,Ze&&(Ze=Ze.bind(this)),wt&&(wt=wt.bind(this));var Jt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:ze.convert(Object.assign({},this),Promise.prototype),Rr=st.call(Jt,Ze,wt);return ze.convert(Rr,this.__proto__)},ze.prototype.thenExternal=function(Ze,wt){return Promise.prototype.then.call(this,Ze,wt)},ze.prototype.thenList=function(Ze){var wt=this;return Ze.forEach(function(st){wt=wt.thenCore(st)}),wt},ze.prototype.catch=function(Ze){Ze&&(Ze=Ze.bind(this));var wt=Promise.prototype.catch.call(this,Ze);return ze.convert(wt,this)},ze.prototype.catchExternal=function(Ze){return Promise.prototype.catch.call(this,Ze)},ze.prototype.error=function(Ze){return this.then(function(){throw new Error(Ze)})},ze.prototype.using=ze.prototype.set,ze.prototype.saveAs=ze.prototype.save,ze.prototype.export=ze.prototype.output,ze.prototype.run=ze.prototype.then,U.getPageSize=function(Ze,wt,st){if(C()(Ze)==="object"){var Jt=Ze;Ze=Jt.orientation,wt=Jt.unit||wt,st=Jt.format||st}wt=wt||"mm",st=st||"a4",Ze=(""+(Ze||"P")).toLowerCase();var Rr,Ir=(""+st).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(wt){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: "+wt}var er,pn=0,fr=0;if(Xr.hasOwnProperty(Ir))pn=Xr[Ir][1]/Rr,fr=Xr[Ir][0]/Rr;else try{pn=st[1],fr=st[0]}catch(mn){throw new Error("Invalid format: "+st)}if(Ze==="p"||Ze==="portrait")Ze="p",fr>pn&&(er=fr,fr=pn,pn=er);else{if(Ze!=="l"&&Ze!=="landscape")throw"Invalid orientation: "+Ze;Ze="l",pn>fr&&(er=fr,fr=pn,pn=er)}return{width:fr,height:pn,unit:wt,k:Rr,orientation:Ze}},Qe.html=function(Ze,wt){(wt=wt||{}).callback=wt.callback||function(){},wt.html2canvas=wt.html2canvas||{},wt.html2canvas.canvas=wt.html2canvas.canvas||this.canvas,wt.jsPDF=wt.jsPDF||this,wt.fontFaces=wt.fontFaces?wt.fontFaces.map(Zr):null;var st=new ze(wt);return wt.worker?st:st.from(Ze).doCallback()}}(U.API),U.API.addJS=function(Qe){return yn=Qe,this.internal.events.subscribe("postPutResources",function(){Wn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Wn+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 ("+yn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Wn!==void 0&&gi!==void 0&&this.internal.out("/Names <</JavaScript "+Wn+" 0 R>>")}),this},function(Qe){var Se;Qe.events.push(["postPutResources",function(){var Ne=this,je=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Xe=Ne.outline.render().split(/\r\n/),ze=0;ze<Xe.length;ze++){var Ze=Xe[ze],wt=je.exec(Ze);if(wt!=null){var st=wt[1];Ne.internal.newObjectDeferredBegin(st,!1)}Ne.internal.write(Ze)}if(this.outline.createNamedDestinations){var Jt=this.internal.pages.length,Rr=[];for(ze=0;ze<Jt;ze++){var Ir=Ne.internal.newObject();Rr.push(Ir);var Xr=Ne.internal.getPageInfo(ze+1);Ne.internal.write("<< /D["+Xr.objId+" 0 R /XYZ null null null]>> endobj")}var er=Ne.internal.newObject();for(Ne.internal.write("<< /Names [ "),ze=0;ze<Rr.length;ze++)Ne.internal.write("(page_"+(ze+1)+")"+Rr[ze]+" 0 R");Ne.internal.write(" ] >>","endobj"),Se=Ne.internal.newObject(),Ne.internal.write("<< /Dests "+er+" 0 R"),Ne.internal.write(">>","endobj")}}]),Qe.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+Se+" 0 R"))}]),Qe.events.push(["initialized",function(){var Ne=this;Ne.outline={createNamedDestinations:!1,root:{children:[]}},Ne.outline.add=function(je,Xe,ze){var Ze={title:Xe,options:ze,children:[]};return je==null&&(je=this.root),je.children.push(Ze),Ze},Ne.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ne,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ne.outline.genIds_r=function(je){je.id=Ne.internal.newObjectDeferred();for(var Xe=0;Xe<je.children.length;Xe++)this.genIds_r(je.children[Xe])},Ne.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()},Ne.outline.renderItems=function(je){for(var Xe=this.ctx.pdf.internal.getVerticalCoordinateString,ze=0;ze<je.children.length;ze++){var Ze=je.children[ze];this.objStart(Ze),this.line("/Title "+this.makeString(Ze.title)),this.line("/Parent "+this.makeRef(je)),ze>0&&this.line("/Prev "+this.makeRef(je.children[ze-1])),ze<je.children.length-1&&this.line("/Next "+this.makeRef(je.children[ze+1])),Ze.children.length>0&&(this.line("/First "+this.makeRef(Ze.children[0])),this.line("/Last "+this.makeRef(Ze.children[Ze.children.length-1])));var wt=this.count=this.count_r({count:0},Ze);if(wt>0&&this.line("/Count "+wt),Ze.options&&Ze.options.pageNumber){var st=Ne.internal.getPageInfo(Ze.options.pageNumber);this.line("/Dest ["+st.objId+" 0 R /XYZ 0 "+Xe(0)+" 0]")}this.objEnd()}for(var Jt=0;Jt<je.children.length;Jt++)this.renderItems(je.children[Jt])},Ne.outline.line=function(je){this.ctx.val+=je+`\r
|
|
|
`},Ne.outline.makeRef=function(je){return je.id+" 0 R"},Ne.outline.makeString=function(je){return"("+Ne.internal.pdfEscape(je)+")"},Ne.outline.objStart=function(je){this.ctx.val+=`\r
|
|
|
`+je.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Ne.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Ne.outline.count_r=function(je,Xe){for(var ze=0;ze<Xe.children.length;ze++)je.count++,this.count_r(je,Xe.children[ze]);return je.count}}])}(U.API),function(Qe){var Se=[192,193,194,195,196,197,198,199];Qe.processJPEG=function(Ne,je,Xe,ze,Ze,wt){var st,Jt=this.decode.DCT_DECODE,Rr=null;if(typeof Ne=="string"||this.__addimage__.isArrayBuffer(Ne)||this.__addimage__.isArrayBufferView(Ne)){switch(Ne=Ze||Ne,Ne=this.__addimage__.isArrayBuffer(Ne)?new Uint8Array(Ne):Ne,(st=function(Ir){for(var Xr,er=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+=er,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}er=256*Ir.charCodeAt(mn+2)+Ir.charCodeAt(mn+3)}return fr}(Ne=this.__addimage__.isArrayBufferView(Ne)?this.__addimage__.arrayBufferToBinaryString(Ne):Ne)).numcomponents){case 1:wt=this.color_spaces.DEVICE_GRAY;break;case 4:wt=this.color_spaces.DEVICE_CMYK;break;case 3:wt=this.color_spaces.DEVICE_RGB}Rr={data:Ne,width:st.width,height:st.height,colorSpace:wt,bitsPerComponent:8,filter:Jt,index:je,alias:Xe}}return Rr}}(U.API);var Ft,bt,Oe,Ee,Ie,Ye=function(){var Qe,Se,Ne;function je(ze){var Ze,wt,st,Jt,Rr,Ir,Xr,er,pn,fr,mn,en,Mr,Gn;for(this.data=ze,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Ir=null;;){switch(Ze=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(Ze);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,Ze-=4),ze=(Ir!=null?Ir.data:void 0)||this.imgData,en=0;0<=Ze?en<Ze:en>Ze;0<=Ze?++en:--en)ze.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(st=this.palette.length/3,this.transparency.indexed=this.read(Ze),this.transparency.indexed.length>st)throw new Error("More transparent colors than palette size");if((fr=st-this.transparency.indexed.length)>0)for(Mr=0;0<=fr?Mr<fr:Mr>fr;0<=fr?++Mr:--Mr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Ze)[0];break;case 2:this.transparency.rgb=this.read(Ze)}break;case"tEXt":Xr=(mn=this.read(Ze)).indexOf(0),er=String.fromCharCode.apply(String,mn.slice(0,Xr)),this.text[er]=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,wt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*wt,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=Ze}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}je.prototype.read=function(ze){var Ze,wt;for(wt=[],Ze=0;0<=ze?Ze<ze:Ze>ze;0<=ze?++Ze:--Ze)wt.push(this.data[this.pos++]);return wt},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(ze){var Ze=this.pixelBitlength/8,wt=new Uint8Array(this.width*this.height*Ze),st=0,Jt=this;if(ze==null&&(ze=this.imgData),ze.length===0)return new Uint8Array(0);function Rr(Ir,Xr,er,pn){var fr,mn,en,Mr,Gn,di,_i,Br,sn,Sn,Dt,ft,St,Ct,Nt,gt,Qt,tr,ar,yr,xn,vn=Math.ceil((Jt.width-Ir)/er),zn=Math.ceil((Jt.height-Xr)/pn),Yr=Jt.width==vn&&Jt.height==zn;for(Ct=Ze*vn,ft=Yr?wt:new Uint8Array(Ct*zn),di=ze.length,St=0,mn=0;St<zn&&st<di;){switch(ze[st++]){case 0:for(Mr=Qt=0;Qt<Ct;Mr=Qt+=1)ft[mn++]=ze[st++];break;case 1:for(Mr=tr=0;tr<Ct;Mr=tr+=1)fr=ze[st++],Gn=Mr<Ze?0:ft[mn-Ze],ft[mn++]=(fr+Gn)%256;break;case 2:for(Mr=ar=0;ar<Ct;Mr=ar+=1)fr=ze[st++],en=(Mr-Mr%Ze)/Ze,Nt=St&&ft[(St-1)*Ct+en*Ze+Mr%Ze],ft[mn++]=(Nt+fr)%256;break;case 3:for(Mr=yr=0;yr<Ct;Mr=yr+=1)fr=ze[st++],en=(Mr-Mr%Ze)/Ze,Gn=Mr<Ze?0:ft[mn-Ze],Nt=St&&ft[(St-1)*Ct+en*Ze+Mr%Ze],ft[mn++]=(fr+Math.floor((Gn+Nt)/2))%256;break;case 4:for(Mr=xn=0;xn<Ct;Mr=xn+=1)fr=ze[st++],en=(Mr-Mr%Ze)/Ze,Gn=Mr<Ze?0:ft[mn-Ze],St===0?Nt=gt=0:(Nt=ft[(St-1)*Ct+en*Ze+Mr%Ze],gt=en&&ft[(St-1)*Ct+(en-1)*Ze+Mr%Ze]),_i=Gn+Nt-gt,Br=Math.abs(_i-Gn),Sn=Math.abs(_i-Nt),Dt=Math.abs(_i-gt),sn=Br<=Sn&&Br<=Dt?Gn:Sn<=Dt?Nt:gt,ft[mn++]=(fr+sn)%256;break;default:throw new Error("Invalid filter algorithm: "+ze[st-1])}if(!Yr){var xr=((Xr+St*pn)*Jt.width+Ir)*Ze,ln=St*Ct;for(Mr=0;Mr<vn;Mr+=1){for(var On=0;On<Ze;On+=1)wt[xr++]=ft[ln++];xr+=(er-1)*Ze}}St++}}return ze=Object(A.a)(ze),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),wt},je.prototype.decodePalette=function(){var ze,Ze,wt,st,Jt,Rr,Ir,Xr,er;for(wt=this.palette,Rr=this.transparency.indexed||[],Jt=new Uint8Array((Rr.length||0)+wt.length),st=0,ze=0,Ze=Ir=0,Xr=wt.length;Ir<Xr;Ze=Ir+=3)Jt[st++]=wt[Ze],Jt[st++]=wt[Ze+1],Jt[st++]=wt[Ze+2],Jt[st++]=(er=Rr[ze++])!=null?er:255;return Jt},je.prototype.copyToImageData=function(ze,Ze){var wt,st,Jt,Rr,Ir,Xr,er,pn,fr,mn,en;if(st=this.colors,fr=null,wt=this.hasAlphaChannel,this.palette.length&&(fr=(en=this._decodedPalette)!=null?en:this._decodedPalette=this.decodePalette(),st=4,wt=!0),pn=(Jt=ze.data||ze).length,Ir=fr||Ze,Rr=Xr=0,st===1)for(;Rr<pn;)er=fr?4*Ze[Rr/4]:Xr,mn=Ir[er++],Jt[Rr++]=mn,Jt[Rr++]=mn,Jt[Rr++]=mn,Jt[Rr++]=wt?Ir[er++]:255,Xr=er;else for(;Rr<pn;)er=fr?4*Ze[Rr/4]:Xr,Jt[Rr++]=Ir[er++],Jt[Rr++]=Ir[er++],Jt[Rr++]=Ir[er++],Jt[Rr++]=wt?Ir[er++]:255,Xr=er},je.prototype.decode=function(){var ze;return ze=new Uint8Array(this.width*this.height*4),this.copyToImageData(ze,this.decodePixels()),ze};var Xe=function(){if(Object.prototype.toString.call(w)==="[object Window]"){try{Se=w.document.createElement("canvas"),Ne=Se.getContext("2d")}catch(Ze){return!1}return!0}return!1};return Xe(),Qe=function(Ze){var wt;if(Xe()===!0)return Ne.width=Ze.width,Ne.height=Ze.height,Ne.clearRect(0,0,Ze.width,Ze.height),Ne.putImageData(Ze,0,0),(wt=new Image).src=Se.toDataURL(),wt;throw new Error("This method requires a Browser with Canvas-capability.")},je.prototype.decodeFrames=function(ze){var Ze,wt,st,Jt,Rr,Ir,Xr,er;if(this.animation){for(er=[],wt=Rr=0,Ir=(Xr=this.animation.frames).length;Rr<Ir;wt=++Rr)Ze=Xr[wt],st=ze.createImageData(Ze.width,Ze.height),Jt=this.decodePixels(new Uint8Array(Ze.data)),this.copyToImageData(st,Jt),Ze.imageData=st,er.push(Ze.image=Qe(st));return er}},je.prototype.renderFrame=function(ze,Ze){var wt,st,Jt;return wt=(st=this.animation.frames)[Ze],Jt=st[Ze-1],Ze===0&&ze.clearRect(0,0,this.width,this.height),(Jt!=null?Jt.disposeOp:void 0)===1?ze.clearRect(Jt.xOffset,Jt.yOffset,Jt.width,Jt.height):(Jt!=null?Jt.disposeOp:void 0)===2&&ze.putImageData(Jt.imageData,Jt.xOffset,Jt.yOffset),wt.blendOp===0&&ze.clearRect(wt.xOffset,wt.yOffset,wt.width,wt.height),ze.drawImage(wt.image,wt.xOffset,wt.yOffset)},je.prototype.animate=function(ze){var Ze,wt,st,Jt,Rr,Ir,Xr=this;return wt=0,Ir=this.animation,Jt=Ir.numFrames,st=Ir.frames,Rr=Ir.numPlays,(Ze=function(){var pn,fr;if(pn=wt++%Jt,fr=st[pn],Xr.renderFrame(ze,pn),Jt>1&&wt/Jt<Rr)return Xr.animation._timeout=setTimeout(Ze,fr.delay)})()},je.prototype.stopAnimation=function(){var ze;return clearTimeout((ze=this.animation)!=null?ze._timeout:void 0)},je.prototype.render=function(ze){var Ze,wt;return ze._png&&ze._png.stopAnimation(),ze._png=this,ze.width=this.width,ze.height=this.height,Ze=ze.getContext("2d"),this.animation?(this.decodeFrames(Ze),this.animate(Ze)):(wt=Ze.createImageData(this.width,this.height),this.copyToImageData(wt,this.decodePixels()),Ze.putImageData(wt,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 rt(Qe){var Se=0;if(Qe[Se++]!==71||Qe[Se++]!==73||Qe[Se++]!==70||Qe[Se++]!==56||(Qe[Se++]+1&253)!=56||Qe[Se++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ne=Qe[Se++]|Qe[Se++]<<8,je=Qe[Se++]|Qe[Se++]<<8,Xe=Qe[Se++],ze=Xe>>7,Ze=1<<(7&Xe)+1;Qe[Se++],Qe[Se++];var wt=null,st=null;ze&&(wt=Se,st=Ze,Se+=3*Ze);var Jt=!0,Rr=[],Ir=0,Xr=null,er=0,pn=null;for(this.width=Ne,this.height=je;Jt&&Se<Qe.length;)switch(Qe[Se++]){case 33:switch(Qe[Se++]){case 255:if(Qe[Se]!==11||Qe[Se+1]==78&&Qe[Se+2]==69&&Qe[Se+3]==84&&Qe[Se+4]==83&&Qe[Se+5]==67&&Qe[Se+6]==65&&Qe[Se+7]==80&&Qe[Se+8]==69&&Qe[Se+9]==50&&Qe[Se+10]==46&&Qe[Se+11]==48&&Qe[Se+12]==3&&Qe[Se+13]==1&&Qe[Se+16]==0)Se+=14,pn=Qe[Se++]|Qe[Se++]<<8,Se++;else for(Se+=12;;){if(!((St=Qe[Se++])>=0))throw Error("Invalid block size");if(St===0)break;Se+=St}break;case 249:if(Qe[Se++]!==4||Qe[Se+4]!==0)throw new Error("Invalid graphics extension block.");var fr=Qe[Se++];Ir=Qe[Se++]|Qe[Se++]<<8,Xr=Qe[Se++],(1&fr)==0&&(Xr=null),er=fr>>2&7,Se++;break;case 254:for(;;){if(!((St=Qe[Se++])>=0))throw Error("Invalid block size");if(St===0)break;Se+=St}break;default:throw new Error("Unknown graphic control label: 0x"+Qe[Se-1].toString(16))}break;case 44:var mn=Qe[Se++]|Qe[Se++]<<8,en=Qe[Se++]|Qe[Se++]<<8,Mr=Qe[Se++]|Qe[Se++]<<8,Gn=Qe[Se++]|Qe[Se++]<<8,di=Qe[Se++],_i=di>>6&1,Br=1<<(7&di)+1,sn=wt,Sn=st,Dt=!1;di>>7&&(Dt=!0,sn=Se,Sn=Br,Se+=3*Br);var ft=Se;for(Se++;;){var St;if(!((St=Qe[Se++])>=0))throw Error("Invalid block size");if(St===0)break;Se+=St}Rr.push({x:mn,y:en,width:Mr,height:Gn,has_local_palette:Dt,palette_offset:sn,palette_size:Sn,data_offset:ft,data_length:Se-ft,transparent_index:Xr,interlaced:!!_i,delay:Ir,disposal:er});break;case 59:Jt=!1;break;default:throw new Error("Unknown gif block: 0x"+Qe[Se-1].toString(16))}this.numFrames=function(){return Rr.length},this.loopCount=function(){return pn},this.frameInfo=function(Ct){if(Ct<0||Ct>=Rr.length)throw new Error("Frame index out of range.");return Rr[Ct]},this.decodeAndBlitFrameBGRA=function(Ct,Nt){var gt=this.frameInfo(Ct),Qt=gt.width*gt.height,tr=new Uint8Array(Qt);ut(Qe,gt.data_offset,tr,Qt);var ar=gt.palette_offset,yr=gt.transparent_index;yr===null&&(yr=256);var xn=gt.width,vn=Ne-xn,zn=xn,Yr=4*(gt.y*Ne+gt.x),xr=4*((gt.y+gt.height)*Ne+gt.x),ln=Yr,On=4*vn;gt.interlaced===!0&&(On+=4*Ne*7);for(var In=8,Un=0,ti=tr.length;Un<ti;++Un){var ui=tr[Un];if(zn===0&&(zn=xn,(ln+=On)>=xr&&(On=4*vn+4*Ne*(In-1),ln=Yr+(xn+vn)*(In<<1),In>>=1)),ui===yr)ln+=4;else{var si=Qe[ar+3*ui],ki=Qe[ar+3*ui+1],zi=Qe[ar+3*ui+2];Nt[ln++]=zi,Nt[ln++]=ki,Nt[ln++]=si,Nt[ln++]=255}--zn}},this.decodeAndBlitFrameRGBA=function(Ct,Nt){var gt=this.frameInfo(Ct),Qt=gt.width*gt.height,tr=new Uint8Array(Qt);ut(Qe,gt.data_offset,tr,Qt);var ar=gt.palette_offset,yr=gt.transparent_index;yr===null&&(yr=256);var xn=gt.width,vn=Ne-xn,zn=xn,Yr=4*(gt.y*Ne+gt.x),xr=4*((gt.y+gt.height)*Ne+gt.x),ln=Yr,On=4*vn;gt.interlaced===!0&&(On+=4*Ne*7);for(var In=8,Un=0,ti=tr.length;Un<ti;++Un){var ui=tr[Un];if(zn===0&&(zn=xn,(ln+=On)>=xr&&(On=4*vn+4*Ne*(In-1),ln=Yr+(xn+vn)*(In<<1),In>>=1)),ui===yr)ln+=4;else{var si=Qe[ar+3*ui],ki=Qe[ar+3*ui+1],zi=Qe[ar+3*ui+2];Nt[ln++]=si,Nt[ln++]=ki,Nt[ln++]=zi,Nt[ln++]=255}--zn}}}function ut(Qe,Se,Ne,je){for(var Xe=Qe[Se++],ze=1<<Xe,Ze=ze+1,wt=Ze+1,st=Xe+1,Jt=(1<<st)-1,Rr=0,Ir=0,Xr=0,er=Qe[Se++],pn=new Int32Array(4096),fr=null;;){for(;Rr<16&&er!==0;)Ir|=Qe[Se++]<<Rr,Rr+=8,er===1?er=Qe[Se++]:--er;if(Rr<st)break;var mn=Ir&Jt;if(Ir>>=st,Rr-=st,mn!==ze){if(mn===Ze)break;for(var en=mn<wt?mn:fr,Mr=0,Gn=en;Gn>ze;)Gn=pn[Gn]>>8,++Mr;var di=Gn;if(Xr+Mr+(en!==mn?1:0)>je)return void f.log("Warning, gif stream longer than expected.");Ne[Xr++]=di;var _i=Xr+=Mr;for(en!==mn&&(Ne[Xr++]=di),Gn=en;Mr--;)Gn=pn[Gn],Ne[--_i]=255&Gn,Gn>>=8;fr!==null&&wt<4096&&(pn[wt++]=fr<<8|di,wt>=Jt+1&&st<12&&(++st,Jt=Jt<<1|1)),fr=mn}else wt=Ze+1,Jt=(1<<(st=Xe+1))-1,fr=null}return Xr!==je&&f.log("Warning, gif stream shorter than expected."),Ne}/**
|
|
|
* @license
|
|
|
Copyright (c) 2008, Adobe Systems Incorporated
|
|
|
All rights reserved.
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
modification, are permitted provided that the following conditions are
|
|
|
met:
|
|
|
|
|
|
* Redistributions of source code must retain the above copyright notice,
|
|
|
this list of conditions and the following disclaimer.
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
documentation and/or other materials provided with the distribution.
|
|
|
|
|
|
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
|
contributors may be used to endorse or promote products derived from
|
|
|
this software without specific prior written permission.
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
|
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/function Ot(Qe){var Se,Ne,je,Xe,ze,Ze=Math.floor,wt=new Array(64),st=new Array(64),Jt=new Array(64),Rr=new Array(64),Ir=new Array(65535),Xr=new Array(65535),er=new Array(64),pn=new Array(64),fr=[],mn=0,en=7,Mr=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],Dt=[0,1,2,3,4,5,6,7,8,9,10,11],ft=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],St=[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],Ct=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nt=[0,1,2,3,4,5,6,7,8,9,10,11],gt=[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 ar(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,vt,mr,vr=0;for(vt=0;vt<8;++vt){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,vt=0;vt<8;++vt){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(vt=0;vt<64;++vt)mr=Li[vt]*Bi[vt],er[vt]=mr>0?mr+.5|0:mr-.5|0;return er}(Yr,xr),ki=0;ki<64;++ki)pn[sn[ki]]=si[ki];var zi=pn[0]-ln;ln=pn[0],zi==0?ar(On[0]):(ar(On[Xr[Un=32767+zi]]),ar(Ir[Un]));for(var Ri=63;Ri>0&&pn[Ri]==0;)Ri--;if(Ri==0)return ar(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)ar(ui);mi&=15}Un=32767+pn[$n],ar(In[(mi<<4)+Xr[Un]]),ar(Ir[Un]),$n++}return Ri!=63&&ar(ti),ln}function zn(Yr){(Yr=Math.min(Math.max(Yr,1),100),ze!=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=Ze((ln[On]*xr+50)/100);In=Math.min(Math.max(In,1),255),wt[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=Ze((Un[ti]*xr+50)/100);ui=Math.min(Math.max(ui,1),255),st[sn[ti]]=ui}for(var si=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ki=0,zi=0;zi<8;zi++)for(var Ri=0;Ri<8;Ri++)Jt[ki]=1/(wt[sn[ki]]*si[zi]*si[Ri]*8),Rr[ki]=1/(st[sn[ki]]*si[zi]*si[Ri]*8),ki++}(Yr<50?Math.floor(5e3/Yr):Math.floor(200-2*Yr)),ze=Yr)}this.encode=function(Yr,xr){xr&&zn(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(wt[lr]);yr(1);for(var on=0;on<64;on++)yr(st[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(Dt[on]);yr(16);for(var Zt=0;Zt<16;Zt++)yr(ft[Zt+1]);for(var br=0;br<=161;br++)yr(St[br]);yr(1);for(var Or=0;Or<16;Or++)yr(Ct[Or+1]);for(var Wr=0;Wr<=11;Wr++)yr(Nt[Wr]);yr(17);for(var An=0;An<16;An++)yr(gt[An+1]);for(var vt=0;vt<=161;vt++)yr(Qt[vt])}(),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,ki,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(ki=Li*Bi+Un,Ri=-1,Yi=0,$n=0;$n<64;$n++)zi=ki+(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++],Mr[$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(Mr,Jt,ln,Se,je),On=vn(Gn,Rr,On,Ne,Xe),In=vn(di,Rr,In,Ne,Xe),Un+=32}Bi+=8}if(en>=0){var wr=[];wr[1]=en+1,wr[0]=(1<<en+1)-1,ar(wr)}return xn(65497),new Uint8Array(fr)},Qe=Qe||50,function(){for(var Yr=String.fromCharCode,xr=0;xr<256;xr++)_i[xr]=Yr(xr)}(),Se=tr(Sn,Dt),Ne=tr(Ct,Nt),je=tr(ft,St),Xe=tr(gt,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}(),zn(Qe)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function Ar(Qe,Se){if(this.pos=0,this.buffer=Qe,this.datav=new DataView(Qe.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 Pr(Qe){function Se(Sn){if(!Sn)throw Error("assert :P")}function Ne(Sn,Dt,ft){for(var St=0;4>St;St++)if(Sn[Dt+St]!=ft.charCodeAt(St))return!0;return!1}function je(Sn,Dt,ft,St,Ct){for(var Nt=0;Nt<Ct;Nt++)Sn[Dt+Nt]=ft[St+Nt]}function Xe(Sn,Dt,ft,St){for(var Ct=0;Ct<St;Ct++)Sn[Dt+Ct]=ft}function ze(Sn){return new Int32Array(Sn)}function Ze(Sn,Dt){for(var ft=[],St=0;St<Sn;St++)ft.push(new Dt);return ft}function wt(Sn,Dt){var ft=[];return function St(Ct,Nt,gt){for(var Qt=gt[Nt],tr=0;tr<Qt&&(Ct.push(gt.length>Nt+1?[]:new Dt),!(gt.length<Nt+1));tr++)St(Ct[tr],Nt+1,gt)}(ft,0,Sn),ft}var st=function(){var Dt=this;function ft(ge,We){for(var dt=1<<We-1>>>0;ge&dt;)dt>>>=1;return dt?(ge&dt-1)+dt:ge}function St(ge,We,dt,nr,Tr){Se(!(nr%dt));do ge[We+(nr-=dt)]=Tr;while(0<nr)}function Ct(ge,We,dt,nr,Tr){if(Se(2328>=Tr),512>=Tr)var zr=ze(512);else if((zr=ze(Tr))==null)return 0;return function(De,q,ye,Ve,it,Rt){var zt,Xt,Nr=q,Qr=1<<ye,Cr=ze(16),Er=ze(16);for(Se(it!=0),Se(Ve!=null),Se(De!=null),Se(0<ye),Xt=0;Xt<it;++Xt){if(15<Ve[Xt])return 0;++Cr[Ve[Xt]]}if(Cr[0]==it)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(Xt=0;Xt<it;++Xt)zt=Ve[Xt],0<Ve[Xt]&&(Rt[Er[zt]++]=Xt);if(Er[15]==1)return(Ve=new Nt).g=0,Ve.value=Rt[0],St(De,Nr,1,Qr,Ve),Qr;var Kr,qr=-1,Cn=Qr-1,oi=0,hi=1,ji=1,Oi=1<<ye;for(Xt=0,zt=1,it=2;zt<=ye;++zt,it<<=1){if(hi+=ji<<=1,0>(ji-=Cr[zt]))return 0;for(;0<Cr[zt];--Cr[zt])(Ve=new Nt).g=zt,Ve.value=Rt[Xt++],St(De,Nr+oi,it,Oi,Ve),oi=ft(oi,zt)}for(zt=ye+1,it=2;15>=zt;++zt,it<<=1){if(hi+=ji<<=1,0>(ji-=Cr[zt]))return 0;for(;0<Cr[zt];--Cr[zt]){if(Ve=new Nt,(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),De[q+(qr=oi&Cn)].g=Kr+ye,De[q+qr].value=Nr-q-qr}Ve.g=zt-ye,Ve.value=Rt[Xt++],St(De,Nr+(oi>>ye),it,Oi,Ve),oi=ft(oi,zt)}}return hi!=2*Er[15]-1?0:Qr}(ge,We,dt,nr,Tr,zr)}function Nt(){this.value=this.g=0}function gt(){this.value=this.g=0}function Qt(){this.G=Ze(5,Nt),this.H=ze(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Ze(Ka,gt)}function tr(ge,We,dt,nr){Se(ge!=null),Se(We!=null),Se(2147483648>nr),ge.Ca=254,ge.I=0,ge.b=-8,ge.Ka=0,ge.oa=We,ge.pa=dt,ge.Jd=We,ge.Yc=dt+nr,ge.Zc=4<=nr?dt+nr-4+1:dt,ti(ge)}function ar(ge,We){for(var dt=0;0<We--;)dt|=si(ge,128)<<We;return dt}function yr(ge,We){var dt=ar(ge,We);return ui(ge)?-dt:dt}function xn(ge,We,dt,nr){var Tr,zr=0;for(Se(ge!=null),Se(We!=null),Se(4294967288>nr),ge.Sb=nr,ge.Ra=0,ge.u=0,ge.h=0,4<nr&&(nr=4),Tr=0;Tr<nr;++Tr)zr+=We[dt+Tr]<<8*Tr;ge.Ra=zr,ge.bb=nr,ge.oa=We,ge.pa=dt}function vn(ge){for(;8<=ge.u&&ge.bb<ge.Sb;)ge.Ra>>>=8,ge.Ra+=ge.oa[ge.pa+ge.bb]<<Go-8>>>0,++ge.bb,ge.u-=8;On(ge)&&(ge.h=1,ge.u=0)}function zn(ge,We){if(Se(0<=We),!ge.h&&We<=Is){var dt=ln(ge)&is[We];return ge.u+=We,vn(ge),dt}return ge.h=1,ge.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(ge){return ge.Ra>>>(ge.u&Go-1)>>>0}function On(ge){return Se(ge.bb<=ge.Sb),ge.h||ge.bb==ge.Sb&&ge.u>Go}function In(ge,We){ge.u=We,ge.h=On(ge)}function Un(ge){ge.u>=la&&(Se(ge.u>=la),vn(ge))}function ti(ge){Se(ge!=null&&ge.oa!=null),ge.pa<ge.Zc?(ge.I=(ge.oa[ge.pa++]|ge.I<<8)>>>0,ge.b+=8):(Se(ge!=null&&ge.oa!=null),ge.pa<ge.Yc?(ge.b+=8,ge.I=ge.oa[ge.pa++]|ge.I<<8):ge.Ka?ge.b=0:(ge.I<<=8,ge.b+=8,ge.Ka=1))}function ui(ge){return ar(ge,1)}function si(ge,We){var dt=ge.Ca;0>ge.b&&ti(ge);var nr=ge.b,Tr=dt*We>>>8,zr=(ge.I>>>nr>Tr)+0;for(zr?(dt-=Tr,ge.I-=Tr+1<<nr>>>0):dt=Tr+1,nr=dt,Tr=0;256<=nr;)Tr+=8,nr>>=8;return nr=7^Tr+Vs[nr],ge.b-=nr,ge.Ca=(dt<<nr)-1,zr}function ki(ge,We,dt){ge[We+0]=dt>>24&255,ge[We+1]=dt>>16&255,ge[We+2]=dt>>8&255,ge[We+3]=dt>>0&255}function zi(ge,We){return ge[We+0]<<0|ge[We+1]<<8}function Ri(ge,We){return zi(ge,We)|ge[We+2]<<16}function Yi(ge,We){return zi(ge,We)|zi(ge,We+2)<<16}function $n(ge,We){var dt=1<<We;return Se(ge!=null),Se(0<We),ge.X=ze(dt),ge.X==null?0:(ge.Mb=32-We,ge.Xa=We,1)}function gn(ge,We){Se(ge!=null),Se(We!=null),Se(ge.Xa==We.Xa),je(We.X,0,ge.X,0,1<<We.Xa)}function mi(){this.X=[],this.Xa=this.Mb=0}function Hi(ge,We,dt,nr){Se(dt!=null),Se(nr!=null);var Tr=dt[0],zr=nr[0];return Tr==0&&(Tr=(ge*zr+We/2)/We),zr==0&&(zr=(We*Tr+ge/2)/ge),0>=Tr||0>=zr?0:(dt[0]=Tr,nr[0]=zr,1)}function Li(ge,We){return ge+(1<<We)-1>>>We}function Bi(ge,We){return((4278255360&ge)+(4278255360&We)>>>0&4278255360)+((16711935&ge)+(16711935&We)>>>0&16711935)>>>0}function wr(ge,We){Dt[We]=function(dt,nr,Tr,zr,De,q,ye){var Ve;for(Ve=0;Ve<De;++Ve){var it=Dt[ge](q[ye+Ve-1],Tr,zr+Ve);q[ye+Ve]=Bi(dt[nr+Ve],it)}}}function lr(){this.ud=this.hd=this.jd=0}function on(ge,We){return((4278124286&(ge^We))>>>1)+(ge&We)>>>0}function Zt(ge){return 0<=ge&&256>ge?ge:0>ge?0:255<ge?255:void 0}function br(ge,We){return Zt(ge+(ge-We+.5>>1))}function Or(ge,We,dt){return Math.abs(We-dt)-Math.abs(ge-dt)}function Wr(ge,We,dt,nr,Tr,zr,De){for(nr=zr[De-1],dt=0;dt<Tr;++dt)zr[De+dt]=nr=Bi(ge[We+dt],nr)}function An(ge,We,dt,nr,Tr){var zr;for(zr=0;zr<dt;++zr){var De=ge[We+zr],q=De>>8&255,ye=16711935&(ye=(ye=16711935&De)+((q<<16)+q));nr[Tr+zr]=(4278255360&De)+ye>>>0}}function vt(ge,We){We.jd=ge>>0&255,We.hd=ge>>8&255,We.ud=ge>>16&255}function mr(ge,We,dt,nr,Tr,zr){var De;for(De=0;De<nr;++De){var q=We[dt+De],ye=q>>>8,Ve=q,it=255&(it=(it=q>>>16)+((ge.jd<<24>>24)*(ye<<24>>24)>>>5));Ve=255&(Ve=(Ve=Ve+((ge.hd<<24>>24)*(ye<<24>>24)>>>5))+((ge.ud<<24>>24)*(it<<24>>24)>>>5)),Tr[zr+De]=(4278255360&q)+(it<<16)+Ve}}function vr(ge,We,dt,nr,Tr){Dt[We]=function(zr,De,q,ye,Ve,it,Rt,zt,Xt){for(ye=Rt;ye<zt;++ye)for(Rt=0;Rt<Xt;++Rt)Ve[it++]=Tr(q[nr(zr[De++])])},Dt[ge]=function(zr,De,q,ye,Ve,it,Rt){var zt=8>>zr.b,Xt=zr.Ea,Nr=zr.K[0],Qr=zr.w;if(8>zt)for(zr=(1<<zr.b)-1,Qr=(1<<zt)-1;De<q;++De){var Cr,Er=0;for(Cr=0;Cr<Xt;++Cr)Cr&zr||(Er=nr(ye[Ve++])),it[Rt++]=Tr(Nr[Er&Qr]),Er>>=zt}else Dt["VP8LMapColor"+dt](ye,Ve,Nr,Qr,it,Rt,De,q,Xt)}}function Fr(ge,We,dt,nr,Tr){for(dt=We+dt;We<dt;){var zr=ge[We++];nr[Tr++]=zr>>16&255,nr[Tr++]=zr>>8&255,nr[Tr++]=zr>>0&255}}function nn(ge,We,dt,nr,Tr){for(dt=We+dt;We<dt;){var zr=ge[We++];nr[Tr++]=zr>>16&255,nr[Tr++]=zr>>8&255,nr[Tr++]=zr>>0&255,nr[Tr++]=zr>>24&255}}function cn(ge,We,dt,nr,Tr){for(dt=We+dt;We<dt;){var zr=(De=ge[We++])>>16&240|De>>12&15,De=De>>0&240|De>>28&15;nr[Tr++]=zr,nr[Tr++]=De}}function tn(ge,We,dt,nr,Tr){for(dt=We+dt;We<dt;){var zr=(De=ge[We++])>>16&248|De>>13&7,De=De>>5&224|De>>3&31;nr[Tr++]=zr,nr[Tr++]=De}}function Ln(ge,We,dt,nr,Tr){for(dt=We+dt;We<dt;){var zr=ge[We++];nr[Tr++]=zr>>0&255,nr[Tr++]=zr>>8&255,nr[Tr++]=zr>>16&255}}function Tn(ge,We,dt,nr,Tr,zr){if(zr==0)for(dt=We+dt;We<dt;)ki(nr,((zr=ge[We++])[0]>>24|zr[1]>>8&65280|zr[2]<<8&16711680|zr[3]<<24)>>>0),Tr+=32;else je(nr,Tr,ge,We,dt)}function Xn(ge,We){Dt[We][0]=Dt[ge+"0"],Dt[We][1]=Dt[ge+"1"],Dt[We][2]=Dt[ge+"2"],Dt[We][3]=Dt[ge+"3"],Dt[We][4]=Dt[ge+"4"],Dt[We][5]=Dt[ge+"5"],Dt[We][6]=Dt[ge+"6"],Dt[We][7]=Dt[ge+"7"],Dt[We][8]=Dt[ge+"8"],Dt[We][9]=Dt[ge+"9"],Dt[We][10]=Dt[ge+"10"],Dt[We][11]=Dt[ge+"11"],Dt[We][12]=Dt[ge+"12"],Dt[We][13]=Dt[ge+"13"],Dt[We][14]=Dt[ge+"0"],Dt[We][15]=Dt[ge+"0"]}function ci(ge){return ge==bu||ge==bl||ge==Fl||ge==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(ge){return alert("todo:WebPSamplerProcessPlane"),ge.T}function vi(ge,We){var dt=ge.T,nr=We.ba.f.RGBA,Tr=nr.eb,zr=nr.fb+ge.ka*nr.A,De=Io[We.ba.S],q=ge.y,ye=ge.O,Ve=ge.f,it=ge.N,Rt=ge.ea,zt=ge.W,Xt=We.cc,Nr=We.dc,Qr=We.Mc,Cr=We.Nc,Er=ge.ka,Kr=ge.ka+ge.T,qr=ge.U,Cn=qr+1>>1;for(Er==0?De(q,ye,null,null,Ve,it,Rt,zt,Ve,it,Rt,zt,Tr,zr,null,null,qr):(De(We.ec,We.fc,q,ye,Xt,Nr,Qr,Cr,Ve,it,Rt,zt,Tr,zr-nr.A,Tr,zr,qr),++dt);Er+2<Kr;Er+=2)Xt=Ve,Nr=it,Qr=Rt,Cr=zt,it+=ge.Rc,zt+=ge.Rc,zr+=2*nr.A,De(q,(ye+=2*ge.fa)-ge.fa,q,ye,Xt,Nr,Qr,Cr,Ve,it,Rt,zt,Tr,zr-nr.A,Tr,zr,qr);return ye+=ge.fa,ge.j+Kr<ge.o?(je(We.ec,We.fc,q,ye,qr),je(We.cc,We.dc,Ve,it,Cn),je(We.Mc,We.Nc,Rt,zt,Cn),dt--):1&Kr||De(q,ye,null,null,Ve,it,Rt,zt,Ve,it,Rt,zt,Tr,zr+nr.A,null,null,qr),dt}function Ti(ge,We,dt){var nr=ge.F,Tr=[ge.J];if(nr!=null){var zr=ge.U,De=We.ba.S,q=De==Qs||De==Fl;We=We.ba.f.RGBA;var ye=[0],Ve=ge.ka;ye[0]=ge.T,ge.Kb&&(Ve==0?--ye[0]:(--Ve,Tr[0]-=ge.width),ge.j+ge.ka+ge.T==ge.o&&(ye[0]=ge.o-ge.j-Ve));var it=We.eb;Ve=We.fb+Ve*We.A,ge=$s(nr,Tr[0],ge.width,zr,ye,it,Ve+(q?0:3),We.A),Se(dt==ye),ge&&ci(De)&&El(it,Ve,q,zr,ye,We.A)}return 0}function Ui(ge){var We=ge.ma,dt=We.ba.S,nr=11>dt,Tr=dt==du||dt==nu||dt==Qs||dt==iu||dt==12||ci(dt);if(We.memory=null,We.Ib=null,We.Jb=null,We.Nd=null,!Vo(We.Oa,ge,Tr?11:12))return 0;if(Tr&&ci(dt)&&Ke(),ge.da)alert("todo:use_scaling");else{if(nr){if(We.Ib=yi,ge.Kb){if(dt=ge.U+1>>1,We.memory=ze(ge.U+2*dt),We.memory==null)return 0;We.ec=We.memory,We.fc=0,We.cc=We.ec,We.dc=We.fc+ge.U,We.Mc=We.cc,We.Nc=We.dc+dt,We.Ib=vi,Ke()}}else alert("todo:EmitYUV");Tr&&(We.Jb=Ti,nr&&pe())}if(nr&&!Fu){for(ge=0;256>ge;++ge)ec[ge]=89858*(ge-128)+Yl>>Ks,Xu[ge]=-22014*(ge-128)+Yl,Gu[ge]=-45773*(ge-128),Bu[ge]=113618*(ge-128)+Yl>>Ks;for(ge=gu;ge<uu;++ge)We=76283*(ge-16)+Yl>>Ks,Yu[ge-gu]=Ja(We,255),Uu[ge-gu]=Ja(We+8>>4,15);Fu=1}return 1}function $i(ge){var We=ge.ma,dt=ge.U,nr=ge.T;return Se(!(1&ge.ka)),0>=dt||0>=nr?0:(dt=We.Ib(ge,We),We.Jb!=null&&We.Jb(ge,We,dt),We.Dc+=dt,1)}function Di(ge){ge.ma.memory=null}function ua(ge,We,dt,nr){return zn(ge,8)!=47?0:(We[0]=zn(ge,14)+1,dt[0]=zn(ge,14)+1,nr[0]=zn(ge,1),zn(ge,3)!=0?0:!ge.h)}function aa(ge,We){if(4>ge)return ge+1;var dt=ge-2>>1;return(2+(1&ge)<<dt)+zn(We,dt)+1}function Gi(ge,We){return 120<We?We-120:1<=(dt=((dt=ou[We-1])>>4)*ge+(8-(15&dt)))?dt:1;var dt}function Vi(ge,We,dt){var nr=ln(dt),Tr=ge[We+=255&nr].g-8;return 0<Tr&&(In(dt,dt.u+8),nr=ln(dt),We+=ge[We].value,We+=nr&(1<<Tr)-1),In(dt,dt.u+ge[We].g),ge[We].value}function ta(ge,We,dt){return dt.g+=ge.g,dt.value+=ge.value<<We>>>0,Se(8>=dt.g),ge.g}function Xi(ge,We,dt){var nr=ge.xc;return Se((We=nr==0?0:ge.vc[ge.md*(dt>>nr)+(We>>nr)])<ge.Wb),ge.Ya[We]}function ga(ge,We,dt,nr){var Tr=ge.ab,zr=ge.c*We,De=ge.C;We=De+We;var q=dt,ye=nr;for(nr=ge.Ta,dt=ge.Ua;0<Tr--;){var Ve=ge.gc[Tr],it=De,Rt=We,zt=q,Xt=ye,Nr=(ye=nr,q=dt,Ve.Ea);switch(Se(it<Rt),Se(Rt<=Ve.nc),Ve.hc){case 2:as(zt,Xt,(Rt-it)*Nr,ye,q);break;case 0:var Qr=it,Cr=Rt,Er=ye,Kr=q,qr=(Oi=Ve).Ea;Qr==0&&(Hs(zt,Xt,null,null,1,Er,Kr),Wr(zt,Xt+1,0,0,qr-1,Er,Kr+1),Xt+=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,Xt,Er,Kr-qr,1,Er,Kr);Ua<qr;){var Sa=(Ua&~oi)+Cn;Sa>qr&&(Sa=qr),(0,Zo[wa[Qi++]>>8&15])(zt,Xt+ +Ua,Er,Kr+Ua-qr,Sa-Ua,Er,Kr+Ua),Ua=Sa}Xt+=qr,Kr+=qr,++Qr&oi||(Oi+=hi)}Rt!=Ve.nc&&je(ye,q-Nr,ye,q+(Rt-it-1)*Nr,Nr);break;case 1:for(Nr=zt,Cr=Xt,qr=(zt=Ve.Ea)-(Kr=zt&~(Er=(Xt=1<<Ve.b)-1)),Qr=Li(zt,Ve.b),Cn=Ve.K,Ve=Ve.w+(it>>Ve.b)*Qr;it<Rt;){for(oi=Cn,hi=Ve,ji=new lr,Oi=Cr+Kr,wa=Cr+zt;Cr<Oi;)vt(oi[hi++],ji),As(ji,Nr,Cr,Xt,ye,q),Cr+=Xt,q+=Xt;Cr<wa&&(vt(oi[hi++],ji),As(ji,Nr,Cr,qr,ye,q),Cr+=qr,q+=qr),++it&Er||(Ve+=Qr)}break;case 3:if(zt==ye&&Xt==q&&0<Ve.b){for(Cr=ye,zt=Nr=q+(Rt-it)*Nr-(Kr=(Rt-it)*Li(Ve.Ea,Ve.b)),Xt=ye,Er=q,Qr=[],Kr=(qr=Kr)-1;0<=Kr;--Kr)Qr[Kr]=Xt[Er+Kr];for(Kr=qr-1;0<=Kr;--Kr)Cr[zt+Kr]=Qr[Kr];Ss(Ve,it,Rt,ye,Nr,ye,q)}else Ss(Ve,it,Rt,zt,Xt,ye,q)}q=nr,ye=dt}ye!=dt&&je(nr,dt,q,ye,zr)}function ra(ge,We){var dt=ge.V,nr=ge.Ba+ge.c*ge.C,Tr=We-ge.C;if(Se(We<=ge.l.o),Se(16>=Tr),0<Tr){var zr=ge.l,De=ge.Ta,q=ge.Ua,ye=zr.width;if(ga(ge,Tr,dt,nr),Tr=q=[q],Se((dt=ge.C)<(nr=We)),Se(zr.v<zr.va),nr>zr.o&&(nr=zr.o),dt<zr.j){var Ve=zr.j-dt;dt=zr.j,Tr[0]+=Ve*ye}if(dt>=nr?dt=0:(Tr[0]+=4*zr.v,zr.ka=dt-zr.j,zr.U=zr.va-zr.v,zr.T=nr-dt,dt=1),dt){if(q=q[0],11>(dt=ge.ca).S){var it=dt.f.RGBA,Rt=(nr=dt.S,Tr=zr.U,zr=zr.T,Ve=it.eb,it.A),zt=zr;for(it=it.fb+ge.Ma*it.A;0<zt--;){var Xt=De,Nr=q,Qr=Tr,Cr=Ve,Er=it;switch(nr){case kl:nl(Xt,Nr,Qr,Cr,Er);break;case du:ks(Xt,Nr,Qr,Cr,Er);break;case bu:ks(Xt,Nr,Qr,Cr,Er),El(Cr,Er,0,Qr,1,0);break;case ru:Eo(Xt,Nr,Qr,Cr,Er);break;case nu:Tn(Xt,Nr,Qr,Cr,Er,1);break;case bl:Tn(Xt,Nr,Qr,Cr,Er,1),El(Cr,Er,0,Qr,1,0);break;case Qs:Tn(Xt,Nr,Qr,Cr,Er,0);break;case Fl:Tn(Xt,Nr,Qr,Cr,Er,0),El(Cr,Er,1,Qr,1,0);break;case iu:po(Xt,Nr,Qr,Cr,Er);break;case Hl:po(Xt,Nr,Qr,Cr,Er),jl(Cr,Er,Qr,1,0);break;case au:Wa(Xt,Nr,Qr,Cr,Er);break;default:Se(0)}q+=ye,it+=Rt}ge.Ma+=zr}else alert("todo:EmitRescaledRowsYUVA");Se(ge.Ma<=dt.height)}}ge.C=We,Se(ge.C<=ge.i)}function pa(ge){var We;if(0<ge.ua)return 0;for(We=0;We<ge.Wb;++We){var dt=ge.Ya[We].G,nr=ge.Ya[We].H;if(0<dt[1][nr[1]+0].g||0<dt[2][nr[2]+0].g||0<dt[3][nr[3]+0].g)return 0}return 1}function _a(ge,We,dt,nr,Tr,zr){if(ge.Z!=0){var De=ge.qd,q=ge.rd;for(Se(ro[ge.Z]!=null);We<dt;++We)ro[ge.Z](De,q,nr,Tr,nr,Tr,zr),De=nr,q=Tr,Tr+=zr;ge.qd=De,ge.rd=q}}function Da(ge,We){var dt=ge.l.ma,nr=dt.Z==0||dt.Z==1?ge.l.j:ge.C;if(nr=ge.C<nr?nr:ge.C,Se(We<=ge.l.o),We>nr){var Tr=ge.l.width,zr=dt.ca,De=dt.tb+Tr*nr,q=ge.V,ye=ge.Ba+ge.c*nr,Ve=ge.gc;Se(ge.ab==1),Se(Ve[0].hc==3),vl(Ve[0],nr,We,q,ye,zr,De),_a(dt,nr,We,zr,De,Tr)}ge.C=ge.Ma=We}function Ra(ge,We,dt,nr,Tr,zr,De){var q=ge.$/nr,ye=ge.$%nr,Ve=ge.m,it=ge.s,Rt=dt+ge.$,zt=Rt;Tr=dt+nr*Tr;var Xt=dt+nr*zr,Nr=280+it.ua,Qr=ge.Pb?q:16777216,Cr=0<it.ua?it.Wa:null,Er=it.wc,Kr=Rt<Xt?Xi(it,ye,q):null;Se(ge.C<zr),Se(Xt<=Tr);var qr=!1;e:for(;;){for(;qr||Rt<Xt;){var Cn=0;if(q>=Qr){var oi=Rt-dt;Se((Qr=ge).Pb),Qr.wd=Qr.m,Qr.xd=oi,0<Qr.s.ua&&gn(Qr.s.Wa,Qr.s.vb),Qr=q+su}if(ye&Er||(Kr=Xi(it,ye,q)),Se(Kr!=null),Kr.Qb&&(We[Rt]=Kr.qb,qr=!0),!qr)if(Un(Ve),Kr.jc){Cn=Ve,oi=We;var hi=Rt,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],Ve);if(Ve.h)break;if(qr||256>Cn){if(!qr)if(Kr.nd)We[Rt]=(Kr.qb|Cn<<8)>>>0;else{if(Un(Ve),qr=Vi(Kr.G[1],Kr.H[1],Ve),Un(Ve),oi=Vi(Kr.G[2],Kr.H[2],Ve),hi=Vi(Kr.G[3],Kr.H[3],Ve),Ve.h)break;We[Rt]=(hi<<24|qr<<16|Cn<<8|oi)>>>0}if(qr=!1,++Rt,++ye>=nr&&(ye=0,++q,De!=null&&q<=zr&&!(q%16)&&De(ge,q),Cr!=null))for(;zt<Rt;)Cn=We[zt++],Cr.X[(506832829*Cn&4294967295)>>>Cr.Mb]=Cn}else if(280>Cn){if(Cn=aa(Cn-256,Ve),oi=Vi(Kr.G[4],Kr.H[4],Ve),Un(Ve),oi=Gi(nr,oi=aa(oi,Ve)),Ve.h)break;if(Rt-dt<oi||Tr-Rt<Cn)break e;for(hi=0;hi<Cn;++hi)We[Rt+hi]=We[Rt+hi-oi];for(Rt+=Cn,ye+=Cn;ye>=nr;)ye-=nr,++q,De!=null&&q<=zr&&!(q%16)&&De(ge,q);if(Se(Rt<=Tr),ye&Er&&(Kr=Xi(it,ye,q)),Cr!=null)for(;zt<Rt;)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<Rt;)Cn=We[zt++],Cr.X[(506832829*Cn&4294967295)>>>Cr.Mb]=Cn;Cn=Rt,Se(!(qr>>>(oi=Cr).Xa)),We[Cn]=oi.X[qr],qr=!0}qr||Se(Ve.h==On(Ve))}if(ge.Pb&&Ve.h&&Rt<Tr)Se(ge.m.h),ge.a=5,ge.m=ge.wd,ge.$=ge.xd,0<ge.s.ua&&gn(ge.s.vb,ge.s.Wa);else{if(Ve.h)break e;De!=null&&De(ge,q>zr?zr:q),ge.a=0,ge.$=Rt-dt}return 1}return ge.a=3,0}function Ao(ge){Se(ge!=null),ge.vc=null,ge.yc=null,ge.Ya=null;var We=ge.Wa;We!=null&&(We.X=null),ge.vb=null,Se(ge!=null)}function ja(){var ge=new to;return ge==null?null:(ge.a=0,ge.xb=Na,Xn("Predictor","VP8LPredictors"),Xn("Predictor","VP8LPredictors_C"),Xn("PredictorAdd","VP8LPredictorsAdd"),Xn("PredictorAdd","VP8LPredictorsAdd_C"),as=An,As=mr,nl=Fr,ks=nn,po=cn,Wa=tn,Eo=Ln,Dt.VP8LMapColor32b=xl,Dt.VP8LMapColor8b=zs,ge)}function Ya(ge,We,dt,nr,Tr){var zr=1,De=[ge],q=[We],ye=nr.m,Ve=nr.s,it=null,Rt=0;e:for(;;){if(dt)for(;zr&&zn(ye,1);){var zt=De,Xt=q,Nr=nr,Qr=1,Cr=Nr.m,Er=Nr.gc[Nr.ab],Kr=zn(Cr,2);if(Nr.Oc&1<<Kr)zr=0;else{switch(Nr.Oc|=1<<Kr,Er.hc=Kr,Er.Ea=zt[0],Er.nc=Xt[0],Er.K=[null],++Nr.ab,Se(4>=Nr.ab),Kr){case 0:case 1:Er.b=zn(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=zn(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=ze(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(De=De[0],q=q[0],zr&&zn(ye,1)&&!(zr=1<=(Rt=zn(ye,4))&&11>=Rt)){nr.a=3;break e}var So;if(So=zr)t:{var Fo,P,W,$=nr,re=De,ce=q,ke=Rt,ht=dt,Wt=$.m,sr=$.s,pr=[null],wn=1,Rn=0,ei=hu[ke];r:for(;;){if(ht&&zn(Wt,1)){var ni=zn(Wt,3)+2,Mi=Li(re,ni),Zi=Li(ce,ni),da=Mi*Zi;if(!Ya(Mi,Zi,0,$,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(P=0;5>P;++P){var na=Tu[P];!P&&0<ke&&(na+=1<<ke),Rn<na&&(Rn=na)}var xa=Ze(wn*ei,Nt),Ma=wn,To=Ze(Ma,Qt);if(To==null)var no=null;else Se(65536>=Ma),no=To;var Wo=ze(Rn);if(no==null||Wo==null||xa==null){$.a=1;break r}var ps=xa;for(Fo=W=0;Fo<wn;++Fo){var Us=no[Fo],Ts=Us.G,tl=Us.H,ul=0,Gs=1,cl=0;for(P=0;5>P;++P){na=Tu[P],Ts[P]=ps,tl[P]=W,!P&&0<ke&&(na+=1<<ke);i:{var rl,ya=na,Ms=$,Ls=Wo,Ws=ps,Lu=W,ns=0,Uo=Ms.m,Rl=zn(Uo,1);if(Xe(Ls,0,0,ya),Rl){var al=zn(Uo,1)+1,Nu=zn(Uo,1),Ql=zn(Uo,Nu==0?1:8);Ls[Ql]=1,al==2&&(Ls[Ql=zn(Uo,8)]=1);var Ml=1}else{var vu=ze(19),gl=zn(Uo,4)+4;if(19<gl){Ms.a=3;var Jl=0;break i}for(rl=0;rl<gl;++rl)vu[Cl[rl]]=zn(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=Ze(128,Nt);n:for(;Ct(bc,0,7,Ac,19);){if(zn(Du,1)){var Tc=2+2*zn(Du,3);if((ju=2+zn(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=zn(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=Ct(Ws,Lu,8,Ls,ya)),Ml&&ns!=0?Jl=ns:(Ms.a=3,Jl=0)}if(Jl==0)break r;if(Gs&&Cu[P]==1&&(Gs=ps[W].g==0),ul+=ps[W].g,W+=Jl,3>=P){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<Rt){if(Ve.ua=1<<Rt,!$n(Ve.Wa,Rt)){nr.a=1,zr=0;break e}}else Ve.ua=0;var cc=nr,xc=De,Ec=q,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,dt){nr.xb=Bo;break e}if((it=ze(De*q))==null){nr.a=1,zr=0;break e}zr=(zr=Ra(nr,it,0,De,q,q,null))&&!ye.h;break e}return zr?(Tr!=null?Tr[0]=it:(Se(it==null),Se(dt)),nr.$=0,dt||Ao(Ve)):Ao(Ve),zr}function Ia(ge,We){var dt=ge.c*ge.i,nr=dt+We+16*We;return Se(ge.c<=We),ge.V=ze(nr),ge.V==null?(ge.Ta=null,ge.Ua=0,ge.a=1,0):(ge.Ta=ge.V,ge.Ua=ge.Ba+dt+We,1)}function Va(ge,We){var dt=ge.C,nr=We-dt,Tr=ge.V,zr=ge.Ba+ge.c*dt;for(Se(We<=ge.l.o);0<nr;){var De=16<nr?16:nr,q=ge.l.ma,ye=ge.l.width,Ve=ye*De,it=q.ca,Rt=q.tb+ye*dt,zt=ge.Ta,Xt=ge.Ua;ga(ge,De,Tr,zr),Nl(zt,Xt,it,Rt,Ve),_a(q,dt,dt+De,it,Rt,ye),nr-=De,Tr+=De*ge.c,dt+=De}Se(dt==We),ge.C=ge.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=ze(4),this.Lb=ze(4)}function uo(){this.Yb=function(){var ge=[];return function We(dt,nr,Tr){for(var zr=Tr[nr],De=0;De<zr&&(dt.push(Tr.length>nr+1?[]:0),!(Tr.length<nr+1));De++)We(dt[De],nr+1,Tr)}(ge,0,[3,11]),ge}()}function Ga(){this.jb=ze(3),this.Wc=wt([4,8],uo),this.Xc=wt([4,17],uo)}function Oo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new ze(4),this.od=new ze(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=ze(384),this.Za=0,this.Ob=ze(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=ze(16),this.f=ze(8),this.ea=ze(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=Ze(8,Yr),this.ia=0,this.pb=Ze(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=wt([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(ge,We){return 0>ge?0:ge>We?We:ge}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 ge=new go;return ge!=null&&(ge.a=0,ge.sc="OK",ge.cb=0,ge.Xb=0,Bl||(Bl=Lr)),ge}function tt(ge,We,dt){return ge.a==0&&(ge.a=We,ge.sc=dt,ge.cb=0),0}function cr(ge,We,dt){return 3<=dt&&ge[We+0]==157&&ge[We+1]==1&&ge[We+2]==42}function kr(ge,We){if(ge==null)return 0;if(ge.a=0,ge.sc="OK",We==null)return tt(ge,2,"null VP8Io passed to VP8GetHeaders()");var dt=We.data,nr=We.w,Tr=We.ha;if(4>Tr)return tt(ge,7,"Truncated header.");var zr=dt[nr+0]|dt[nr+1]<<8|dt[nr+2]<<16,De=ge.Od;if(De.Rb=!(1&zr),De.td=zr>>1&7,De.yd=zr>>4&1,De.ub=zr>>5,3<De.td)return tt(ge,3,"Incorrect keyframe parameters.");if(!De.yd)return tt(ge,4,"Frame not displayable.");nr+=3,Tr-=3;var q=ge.Kc;if(De.Rb){if(7>Tr)return tt(ge,7,"cannot parse picture header");if(!cr(dt,nr,Tr))return tt(ge,3,"Bad code word");q.c=16383&(dt[nr+4]<<8|dt[nr+3]),q.Td=dt[nr+4]>>6,q.i=16383&(dt[nr+6]<<8|dt[nr+5]),q.Ud=dt[nr+6]>>6,nr+=7,Tr-=7,ge.za=q.c+15>>4,ge.Ub=q.i+15>>4,We.width=q.c,We.height=q.i,We.Da=0,We.j=0,We.v=0,We.va=We.width,We.o=We.height,We.da=0,We.ib=We.width,We.hb=We.height,We.U=We.width,We.T=We.height,Xe((zr=ge.Pa).jb,0,255,zr.jb.length),Se((zr=ge.Qa)!=null),zr.Cb=0,zr.Bb=0,zr.Fb=1,Xe(zr.Zb,0,0,zr.Zb.length),Xe(zr.Lb,0,0,zr.Lb)}if(De.ub>Tr)return tt(ge,7,"bad partition length");tr(zr=ge.m,dt,nr,De.ub),nr+=De.ub,Tr-=De.ub,De.Rb&&(q.Ld=ui(zr),q.Kd=ui(zr)),q=ge.Qa;var ye,Ve=ge.Pa;if(Se(zr!=null),Se(q!=null),q.Cb=ui(zr),q.Cb){if(q.Bb=ui(zr),ui(zr)){for(q.Fb=ui(zr),ye=0;4>ye;++ye)q.Zb[ye]=ui(zr)?yr(zr,7):0;for(ye=0;4>ye;++ye)q.Lb[ye]=ui(zr)?yr(zr,6):0}if(q.Bb)for(ye=0;3>ye;++ye)Ve.jb[ye]=ui(zr)?ar(zr,8):255}else q.Bb=0;if(zr.Ka)return tt(ge,3,"cannot parse segment header");if((q=ge.ed).zd=ui(zr),q.Tb=ar(zr,6),q.wb=ar(zr,3),q.Pc=ui(zr),q.Pc&&ui(zr)){for(Ve=0;4>Ve;++Ve)ui(zr)&&(q.vd[Ve]=yr(zr,6));for(Ve=0;4>Ve;++Ve)ui(zr)&&(q.od[Ve]=yr(zr,6))}if(ge.L=q.Tb==0?0:q.zd?1:2,zr.Ka)return tt(ge,3,"cannot parse filter header");var it=Tr;if(Tr=ye=nr,nr=ye+it,q=it,ge.Xb=(1<<ar(ge.m,2))-1,it<3*(Ve=ge.Xb))dt=7;else{for(ye+=3*Ve,q-=3*Ve,it=0;it<Ve;++it){var Rt=dt[Tr+0]|dt[Tr+1]<<8|dt[Tr+2]<<16;Rt>q&&(Rt=q),tr(ge.Jc[+it],dt,ye,Rt),ye+=Rt,q-=Rt,Tr+=3}tr(ge.Jc[+Ve],dt,ye,q),dt=ye<nr?0:5}if(dt!=0)return tt(ge,dt,"cannot parse partitions");for(dt=ar(ye=ge.m,7),Tr=ui(ye)?yr(ye,4):0,nr=ui(ye)?yr(ye,4):0,q=ui(ye)?yr(ye,4):0,Ve=ui(ye)?yr(ye,4):0,ye=ui(ye)?yr(ye,4):0,it=ge.Qa,Rt=0;4>Rt;++Rt){if(it.Cb){var zt=it.Zb[Rt];it.Fb||(zt+=dt)}else{if(0<Rt){ge.pb[Rt]=ge.pb[0];continue}zt=dt}var Xt=ge.pb[Rt];Xt.Sc[0]=Rs[Ja(zt+Tr,127)],Xt.Sc[1]=el[Ja(zt+0,127)],Xt.Eb[0]=2*Rs[Ja(zt+nr,127)],Xt.Eb[1]=101581*el[Ja(zt+q,127)]>>16,8>Xt.Eb[1]&&(Xt.Eb[1]=8),Xt.Qc[0]=Rs[Ja(zt+Ve,117)],Xt.Qc[1]=el[Ja(zt+ye,127)],Xt.lc=zt+ye}if(!De.Rb)return tt(ge,4,"Not a key frame.");for(ui(zr),De=ge.Pa,dt=0;4>dt;++dt){for(Tr=0;8>Tr;++Tr)for(nr=0;3>nr;++nr)for(q=0;11>q;++q)Ve=si(zr,pu[dt][Tr][nr][q])?ar(zr,8):Kl[dt][Tr][nr][q],De.Wc[dt][Tr].Yb[nr][q]=Ve;for(Tr=0;17>Tr;++Tr)De.Xc[dt][Tr]=De.Wc[dt][mu[Tr]]}return ge.kc=ui(zr),ge.kc&&(ge.Bd=ar(zr,8)),ge.cb=1}function Lr(ge,We,dt,nr,Tr,zr,De){var q=We[Tr].Yb[dt];for(dt=0;16>Tr;++Tr){if(!si(ge,q[dt+0]))return Tr;for(;!si(ge,q[dt+1]);)if(q=We[++Tr].Yb[0],dt=0,Tr==16)return 16;var ye=We[Tr+1].Yb;if(si(ge,q[dt+2])){var Ve=ge,it=0;if(si(Ve,(zt=q)[(Rt=dt)+3]))if(si(Ve,zt[Rt+6])){for(q=0,Rt=2*(it=si(Ve,zt[Rt+8]))+(zt=si(Ve,zt[Rt+9+it])),it=0,zt=wu[Rt];zt[q];++q)it+=it+si(Ve,zt[q]);it+=3+(8<<Rt)}else si(Ve,zt[Rt+7])?(it=7+2*si(Ve,165),it+=si(Ve,145)):it=5+si(Ve,159);else it=si(Ve,zt[Rt+4])?3+si(Ve,zt[Rt+5]):2;q=ye[2]}else it=1,q=ye[1];ye=De+fu[Tr],0>(Ve=ge).b&&ti(Ve);var Rt,zt=Ve.b,Xt=(Rt=Ve.Ca>>1)-(Ve.I>>zt)>>31;--Ve.b,Ve.Ca+=Xt,Ve.Ca|=1,Ve.I-=(Rt+1&Xt)<<zt,zr[ye]=((it^Xt)-Xt)*nr[(0<Tr)+0]}return 16}function _n(ge){var We=ge.rb[ge.sb-1];We.la=0,We.Na=0,Xe(ge.zc,0,0,ge.zc.length),ge.ja=0}function Vr(ge,We){if(ge==null)return 0;if(We==null)return tt(ge,2,"NULL VP8Io parameter in VP8Decode().");if(!ge.cb&&!kr(ge,We))return 0;if(Se(ge.cb),We.ac==null||We.ac(We)){We.ob&&(ge.L=0);var dt=Ul[ge.L];if(ge.L==2?(ge.yb=0,ge.zb=0):(ge.yb=We.v-dt>>4,ge.zb=We.j-dt>>4,0>ge.yb&&(ge.yb=0),0>ge.zb&&(ge.zb=0)),ge.Va=We.o+15+dt>>4,ge.Hb=We.va+15+dt>>4,ge.Hb>ge.za&&(ge.Hb=ge.za),ge.Va>ge.Ub&&(ge.Va=ge.Ub),0<ge.L){var nr=ge.ed;for(dt=0;4>dt;++dt){var Tr;if(ge.Qa.Cb){var zr=ge.Qa.Lb[dt];ge.Qa.Fb||(zr+=nr.Tb)}else zr=nr.Tb;for(Tr=0;1>=Tr;++Tr){var De=ge.gd[dt][Tr],q=zr;if(nr.Pc&&(q+=nr.vd[0],Tr&&(q+=nr.od[0])),0<(q=0>q?0:63<q?63:q)){var ye=q;0<nr.wb&&(ye=4<nr.wb?ye>>2:ye>>1)>9-nr.wb&&(ye=9-nr.wb),1>ye&&(ye=1),De.dd=ye,De.tc=2*q+ye,De.ld=40<=q?2:15<=q?1:0}else De.tc=0;De.La=Tr}}}dt=0}else tt(ge,6,"Frame setup failed"),dt=ge.a;if(dt=dt==0){if(dt){ge.$c=0,0<ge.Aa||(ge.Ic=Wl);e:{dt=ge.Ic,nr=4*(ye=ge.za);var Ve=32*ye,it=ye+1,Rt=0<ge.L?ye*(0<ge.Aa?2:1):0,zt=(ge.Aa==2?2:1)*ye;if((De=nr+832+(Tr=3*(16*dt+Ul[ge.L])/2*Ve)+(zr=ge.Fa!=null&&0<ge.Fa.length?ge.Kc.c*ge.Kc.i:0))!=De)dt=0;else{if(De>ge.Vb){if(ge.Vb=0,ge.Ec=ze(De),ge.Fc=0,ge.Ec==null){dt=tt(ge,1,"no memory during frame initialization.");break e}ge.Vb=De}De=ge.Ec,q=ge.Fc,ge.Ac=De,ge.Bc=q,q+=nr,ge.Gd=Ze(Ve,_o),ge.Hd=0,ge.rb=Ze(it+1,qa),ge.sb=1,ge.wa=Rt?Ze(Rt,oa):null,ge.Y=0,ge.D.Nb=0,ge.D.wa=ge.wa,ge.D.Y=ge.Y,0<ge.Aa&&(ge.D.Y+=ye),Se(!0),ge.oc=De,ge.pc=q,q+=832,ge.ya=Ze(zt,Ro),ge.aa=0,ge.D.ya=ge.ya,ge.D.aa=ge.aa,ge.Aa==2&&(ge.D.aa+=ye),ge.R=16*ye,ge.B=8*ye,ye=(Ve=Ul[ge.L])*ge.R,Ve=Ve/2*ge.B,ge.sa=De,ge.ta=q+ye,ge.qa=ge.sa,ge.ra=ge.ta+16*dt*ge.R+Ve,ge.Ha=ge.qa,ge.Ia=ge.ra+8*dt*ge.B+Ve,ge.$c=0,q+=Tr,ge.mb=zr?De:null,ge.nb=zr?q:null,Se(q+zr<=ge.Fc+ge.Vb),_n(ge),Xe(ge.Ac,ge.Bc,0,nr),dt=1}}if(dt){if(We.ka=0,We.y=ge.sa,We.O=ge.ta,We.f=ge.qa,We.N=ge.ra,We.ea=ge.Ha,We.Vd=ge.Ia,We.fa=ge.R,We.Rc=ge.B,We.F=null,We.J=0,!tu){for(dt=-255;255>=dt;++dt)Pl[255+dt]=0>dt?-dt:dt;for(dt=-1020;1020>=dt;++dt)yu[1020+dt]=-128>dt?-128:127<dt?127:dt;for(dt=-112;112>=dt;++dt)cu[112+dt]=-16>dt?-16:15<dt?15:dt;for(dt=-255;510>=dt;++dt)eu[255+dt]=0>dt?0:255<dt?255:dt;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]=Pi,wl[2]=qi,wl[3]=ca,wl[4]=Pa,wl[5]=Za,wl[6]=La,wl[7]=eo,wl[8]=jo,wl[9]=ko,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]=Po,dt=1}else dt=0}dt&&(dt=function(Xt,Nr){for(Xt.M=0;Xt.M<Xt.Va;++Xt.M){var Qr,Cr=Xt.Jc[Xt.M&Xt.Xb],Er=Xt.m,Kr=Xt;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,Xe(oi,hi,Sa,4),Xe(ji,0,Sa,4);Oi.Dd=si(qr,142)?si(qr,114)?si(qr,183)?1:3:2:0}if(Kr.m.Ka)return tt(Xt,7,"Premature end-of-partition0 encountered.");for(;Xt.ja<Xt.za;++Xt.ja){if(Kr=Cr,qr=(Er=Xt).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,P;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,Xe(Cn,wa,0,384),ji.Za)var W=0,$=hi[3];else{So=ze(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}W=1,$=hi[0]}var ke=15&qr.la,ht=15&Qi.la;for(So=0;4>So;++So){var Wt=1&ht;for(ce=P=0;4>ce;++ce)ke=ke>>1|(Wt=(re=Bl(oi,$,re=Wt+(1&ke),Oi.Sc,W,Cn,wa))>W)<<7,P=P<<2|(3<re?3:1<re?2:Cn[wa+0]!=0),wa+=16;ke>>=4,ht=ht>>1|Wt<<7,Ua=(Ua<<8|P)>>>0}for($=ke,W=ht>>4,Fo=0;4>Fo;Fo+=2){for(P=0,ke=qr.la>>4+Fo,ht=Qi.la>>4+Fo,So=0;2>So;++So){for(Wt=1&ht,ce=0;2>ce;++ce)re=Wt+(1&ke),ke=ke>>1|(Wt=0<(re=Bl(oi,hi[2],re,Oi.Qc,0,Cn,wa)))<<3,P=P<<2|(3<re?3:1<re?2:Cn[wa+0]!=0),wa+=16;ke>>=2,ht=ht>>1|Wt<<5}Sa|=P<<4*Fo,$|=ke<<4<<Fo,W|=(240&ht)<<Fo}qr.la=$,Qi.la=W,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 tt(Xt,7,"Premature end-of-file encountered.")}if(_n(Xt),Er=Nr,Kr=1,Qr=(Cr=Xt).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=(P=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,ht=(ke=P.M)==0,Ua=ke>=Cr.Va-1,Cr.Aa==2&&lo(Cr,P),P.uc)for(Wt=(re=Cr).D.M,Se(re.D.uc),P=re.yb;P<re.Hb;++P){W=P,$=Wt;var sr=(pr=(na=re).D).Nb;Fo=na.R;var pr=pr.wa[pr.Y+W],wn=na.sa,Rn=na.ta+16*sr*Fo+16*W,ei=pr.dd,ni=pr.tc;if(ni!=0)if(Se(3<=ni),na.L==1)0<W&&xs(wn,Rn,Fo,ni+4),pr.La&&ll(wn,Rn,Fo,ni),0<$&&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*W,ia=na.Ha,na=na.Ia+8*sr*Mi+8*W;sr=pr.ld,0<W&&(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<$&&(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(P=16*ke,ke=16*(ke+1),ht?(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):(P-=Sa,Er.y=hi,Er.O=ji,Er.f=Oi,Er.N=Cn,Er.ea=wa,Er.W=Qi),Ua||(ke-=Sa),ke>Er.o&&(ke=Er.o),Er.F=null,Er.J=null,Cr.Fa!=null&&0<Cr.Fa.length&&P<ke&&(Er.J=Vt(Cr,Er,P,ke-P),Er.F=Cr.mb,Er.F==null&&Er.F.length==0)){Kr=tt(Cr,3,"Could not decode alpha data.");break e}P<Er.j&&(Sa=Er.j-P,P=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)),P<ke&&(Er.O+=Er.v,Er.N+=Er.v>>1,Er.W+=Er.v>>1,Er.F!=null&&(Er.J+=Er.v),Er.ka=P-Er.j,Er.U=Er.va-Er.v,Er.T=ke-P,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 tt(Xt,6,"Output aborted.")}return 1}(ge,We)),We.bc!=null&&We.bc(We),dt&=1}return dt?(ge.cb=0,dt):0}function _r(ge,We,dt,nr,Tr){Tr=ge[We+dt+32*nr]+(Tr>>3),ge[We+dt+32*nr]=-256&Tr?0>Tr?0:255:Tr}function Pn(ge,We,dt,nr,Tr,zr){_r(ge,We,0,dt,nr+Tr),_r(ge,We,1,dt,nr+zr),_r(ge,We,2,dt,nr-zr),_r(ge,We,3,dt,nr-Tr)}function Ur(ge){return(20091*ge>>16)+ge}function En(ge,We,dt,nr){var Tr,zr=0,De=ze(16);for(Tr=0;4>Tr;++Tr){var q=ge[We+0]+ge[We+8],ye=ge[We+0]-ge[We+8],Ve=(35468*ge[We+4]>>16)-Ur(ge[We+12]),it=Ur(ge[We+4])+(35468*ge[We+12]>>16);De[zr+0]=q+it,De[zr+1]=ye+Ve,De[zr+2]=ye-Ve,De[zr+3]=q-it,zr+=4,We++}for(Tr=zr=0;4>Tr;++Tr)q=(ge=De[zr+0]+4)+De[zr+8],ye=ge-De[zr+8],Ve=(35468*De[zr+4]>>16)-Ur(De[zr+12]),_r(dt,nr,0,0,q+(it=Ur(De[zr+4])+(35468*De[zr+12]>>16))),_r(dt,nr,1,0,ye+Ve),_r(dt,nr,2,0,ye-Ve),_r(dt,nr,3,0,q-it),zr++,nr+=32}function jn(ge,We,dt,nr){var Tr=ge[We+0]+4,zr=35468*ge[We+4]>>16,De=Ur(ge[We+4]),q=35468*ge[We+1]>>16;Pn(dt,nr,0,Tr+De,ge=Ur(ge[We+1]),q),Pn(dt,nr,1,Tr+zr,ge,q),Pn(dt,nr,2,Tr-zr,ge,q),Pn(dt,nr,3,Tr-De,ge,q)}function Hn(ge,We,dt,nr,Tr){En(ge,We,dt,nr),Tr&&En(ge,We+16,dt,nr+4)}function Bn(ge,We,dt,nr){$o(ge,We+0,dt,nr,1),$o(ge,We+32,dt,nr+128,1)}function ri(ge,We,dt,nr){var Tr;for(ge=ge[We+0]+4,Tr=0;4>Tr;++Tr)for(We=0;4>We;++We)_r(dt,nr,We,Tr,ge)}function Yn(ge,We,dt,nr){ge[We+0]&&os(ge,We+0,dt,nr),ge[We+16]&&os(ge,We+16,dt,nr+4),ge[We+32]&&os(ge,We+32,dt,nr+128),ge[We+48]&&os(ge,We+48,dt,nr+128+4)}function ii(ge,We,dt,nr){var Tr,zr=ze(16);for(Tr=0;4>Tr;++Tr){var De=ge[We+0+Tr]+ge[We+12+Tr],q=ge[We+4+Tr]+ge[We+8+Tr],ye=ge[We+4+Tr]-ge[We+8+Tr],Ve=ge[We+0+Tr]-ge[We+12+Tr];zr[0+Tr]=De+q,zr[8+Tr]=De-q,zr[4+Tr]=Ve+ye,zr[12+Tr]=Ve-ye}for(Tr=0;4>Tr;++Tr)De=(ge=zr[0+4*Tr]+3)+zr[3+4*Tr],q=zr[1+4*Tr]+zr[2+4*Tr],ye=zr[1+4*Tr]-zr[2+4*Tr],Ve=ge-zr[3+4*Tr],dt[nr+0]=De+q>>3,dt[nr+16]=Ve+ye>>3,dt[nr+32]=De-q>>3,dt[nr+48]=Ve-ye>>3,nr+=64}function ai(ge,We,dt){var nr,Tr=We-32,zr=il,De=255-ge[Tr-1];for(nr=0;nr<dt;++nr){var q,ye=zr,Ve=De+ge[We-1];for(q=0;q<dt;++q)ge[We+q]=ye[Ve+ge[Tr+q]];We+=32}}function Pi(ge,We){ai(ge,We,4)}function bi(ge,We){ai(ge,We,8)}function Ki(ge,We){ai(ge,We,16)}function Aa(ge,We){var dt;for(dt=0;16>dt;++dt)je(ge,We+32*dt,ge,We-32,16)}function ea(ge,We){var dt;for(dt=16;0<dt;--dt)Xe(ge,We,ge[We-1],16),We+=32}function Ji(ge,We,dt){var nr;for(nr=0;16>nr;++nr)Xe(We,dt+32*nr,ge,16)}function sa(ge,We){var dt,nr=16;for(dt=0;16>dt;++dt)nr+=ge[We-1+32*dt]+ge[We+dt-32];Ji(nr>>5,ge,We)}function fa(ge,We){var dt,nr=8;for(dt=0;16>dt;++dt)nr+=ge[We-1+32*dt];Ji(nr>>4,ge,We)}function xo(ge,We){var dt,nr=8;for(dt=0;16>dt;++dt)nr+=ge[We+dt-32];Ji(nr>>4,ge,We)}function Qa(ge,We){Ji(128,ge,We)}function Wi(ge,We,dt){return ge+2*We+dt+2>>2}function qi(ge,We){var dt,nr=We-32;for(nr=new Uint8Array([Wi(ge[nr-1],ge[nr+0],ge[nr+1]),Wi(ge[nr+0],ge[nr+1],ge[nr+2]),Wi(ge[nr+1],ge[nr+2],ge[nr+3]),Wi(ge[nr+2],ge[nr+3],ge[nr+4])]),dt=0;4>dt;++dt)je(ge,We+32*dt,nr,0,nr.length)}function ca(ge,We){var dt=ge[We-1],nr=ge[We-1+32],Tr=ge[We-1+64],zr=ge[We-1+96];ki(ge,We+0,16843009*Wi(ge[We-1-32],dt,nr)),ki(ge,We+32,16843009*Wi(dt,nr,Tr)),ki(ge,We+64,16843009*Wi(nr,Tr,zr)),ki(ge,We+96,16843009*Wi(Tr,zr,zr))}function ma(ge,We){var dt,nr=4;for(dt=0;4>dt;++dt)nr+=ge[We+dt-32]+ge[We-1+32*dt];for(nr>>=3,dt=0;4>dt;++dt)Xe(ge,We+32*dt,nr,4)}function Pa(ge,We){var dt=ge[We-1+0],nr=ge[We-1+32],Tr=ge[We-1+64],zr=ge[We-1-32],De=ge[We+0-32],q=ge[We+1-32],ye=ge[We+2-32],Ve=ge[We+3-32];ge[We+0+96]=Wi(nr,Tr,ge[We-1+96]),ge[We+1+96]=ge[We+0+64]=Wi(dt,nr,Tr),ge[We+2+96]=ge[We+1+64]=ge[We+0+32]=Wi(zr,dt,nr),ge[We+3+96]=ge[We+2+64]=ge[We+1+32]=ge[We+0+0]=Wi(De,zr,dt),ge[We+3+64]=ge[We+2+32]=ge[We+1+0]=Wi(q,De,zr),ge[We+3+32]=ge[We+2+0]=Wi(ye,q,De),ge[We+3+0]=Wi(Ve,ye,q)}function La(ge,We){var dt=ge[We+1-32],nr=ge[We+2-32],Tr=ge[We+3-32],zr=ge[We+4-32],De=ge[We+5-32],q=ge[We+6-32],ye=ge[We+7-32];ge[We+0+0]=Wi(ge[We+0-32],dt,nr),ge[We+1+0]=ge[We+0+32]=Wi(dt,nr,Tr),ge[We+2+0]=ge[We+1+32]=ge[We+0+64]=Wi(nr,Tr,zr),ge[We+3+0]=ge[We+2+32]=ge[We+1+64]=ge[We+0+96]=Wi(Tr,zr,De),ge[We+3+32]=ge[We+2+64]=ge[We+1+96]=Wi(zr,De,q),ge[We+3+64]=ge[We+2+96]=Wi(De,q,ye),ge[We+3+96]=Wi(q,ye,ye)}function Za(ge,We){var dt=ge[We-1+0],nr=ge[We-1+32],Tr=ge[We-1+64],zr=ge[We-1-32],De=ge[We+0-32],q=ge[We+1-32],ye=ge[We+2-32],Ve=ge[We+3-32];ge[We+0+0]=ge[We+1+64]=zr+De+1>>1,ge[We+1+0]=ge[We+2+64]=De+q+1>>1,ge[We+2+0]=ge[We+3+64]=q+ye+1>>1,ge[We+3+0]=ye+Ve+1>>1,ge[We+0+96]=Wi(Tr,nr,dt),ge[We+0+64]=Wi(nr,dt,zr),ge[We+0+32]=ge[We+1+96]=Wi(dt,zr,De),ge[We+1+32]=ge[We+2+96]=Wi(zr,De,q),ge[We+2+32]=ge[We+3+96]=Wi(De,q,ye),ge[We+3+32]=Wi(q,ye,Ve)}function eo(ge,We){var dt=ge[We+0-32],nr=ge[We+1-32],Tr=ge[We+2-32],zr=ge[We+3-32],De=ge[We+4-32],q=ge[We+5-32],ye=ge[We+6-32],Ve=ge[We+7-32];ge[We+0+0]=dt+nr+1>>1,ge[We+1+0]=ge[We+0+64]=nr+Tr+1>>1,ge[We+2+0]=ge[We+1+64]=Tr+zr+1>>1,ge[We+3+0]=ge[We+2+64]=zr+De+1>>1,ge[We+0+32]=Wi(dt,nr,Tr),ge[We+1+32]=ge[We+0+96]=Wi(nr,Tr,zr),ge[We+2+32]=ge[We+1+96]=Wi(Tr,zr,De),ge[We+3+32]=ge[We+2+96]=Wi(zr,De,q),ge[We+3+64]=Wi(De,q,ye),ge[We+3+96]=Wi(q,ye,Ve)}function ko(ge,We){var dt=ge[We-1+0],nr=ge[We-1+32],Tr=ge[We-1+64],zr=ge[We-1+96];ge[We+0+0]=dt+nr+1>>1,ge[We+2+0]=ge[We+0+32]=nr+Tr+1>>1,ge[We+2+32]=ge[We+0+64]=Tr+zr+1>>1,ge[We+1+0]=Wi(dt,nr,Tr),ge[We+3+0]=ge[We+1+32]=Wi(nr,Tr,zr),ge[We+3+32]=ge[We+1+64]=Wi(Tr,zr,zr),ge[We+3+64]=ge[We+2+64]=ge[We+0+96]=ge[We+1+96]=ge[We+2+96]=ge[We+3+96]=zr}function jo(ge,We){var dt=ge[We-1+0],nr=ge[We-1+32],Tr=ge[We-1+64],zr=ge[We-1+96],De=ge[We-1-32],q=ge[We+0-32],ye=ge[We+1-32],Ve=ge[We+2-32];ge[We+0+0]=ge[We+2+32]=dt+De+1>>1,ge[We+0+32]=ge[We+2+64]=nr+dt+1>>1,ge[We+0+64]=ge[We+2+96]=Tr+nr+1>>1,ge[We+0+96]=zr+Tr+1>>1,ge[We+3+0]=Wi(q,ye,Ve),ge[We+2+0]=Wi(De,q,ye),ge[We+1+0]=ge[We+3+32]=Wi(dt,De,q),ge[We+1+32]=ge[We+3+64]=Wi(nr,dt,De),ge[We+1+64]=ge[We+3+96]=Wi(Tr,nr,dt),ge[We+1+96]=Wi(zr,Tr,nr)}function cs(ge,We){var dt;for(dt=0;8>dt;++dt)je(ge,We+32*dt,ge,We-32,8)}function Mo(ge,We){var dt;for(dt=0;8>dt;++dt)Xe(ge,We,ge[We-1],8),We+=32}function Lo(ge,We,dt){var nr;for(nr=0;8>nr;++nr)Xe(We,dt+32*nr,ge,8)}function Ba(ge,We){var dt,nr=8;for(dt=0;8>dt;++dt)nr+=ge[We+dt-32]+ge[We-1+32*dt];Lo(nr>>4,ge,We)}function za(ge,We){var dt,nr=4;for(dt=0;8>dt;++dt)nr+=ge[We+dt-32];Lo(nr>>3,ge,We)}function Ta(ge,We){var dt,nr=4;for(dt=0;8>dt;++dt)nr+=ge[We-1+32*dt];Lo(nr>>3,ge,We)}function Po(ge,We){Lo(128,ge,We)}function Qo(ge,We,dt){var nr=ge[We-dt],Tr=ge[We+0],zr=3*(Tr-nr)+Vl[1020+ge[We-2*dt]-ge[We+dt]],De=Ys[112+(zr+4>>3)];ge[We-dt]=il[255+nr+Ys[112+(zr+3>>3)]],ge[We+0]=il[255+Tr-De]}function so(ge,We,dt,nr){var Tr=ge[We+0],zr=ge[We+dt];return fl[255+ge[We-2*dt]-ge[We-dt]]>nr||fl[255+zr-Tr]>nr}function Os(ge,We,dt,nr){return 4*fl[255+ge[We-dt]-ge[We+0]]+fl[255+ge[We-2*dt]-ge[We+dt]]<=nr}function ho(ge,We,dt,nr,Tr){var zr=ge[We-3*dt],De=ge[We-2*dt],q=ge[We-dt],ye=ge[We+0],Ve=ge[We+dt],it=ge[We+2*dt],Rt=ge[We+3*dt];return 4*fl[255+q-ye]+fl[255+De-Ve]>nr?0:fl[255+ge[We-4*dt]-zr]<=Tr&&fl[255+zr-De]<=Tr&&fl[255+De-q]<=Tr&&fl[255+Rt-it]<=Tr&&fl[255+it-Ve]<=Tr&&fl[255+Ve-ye]<=Tr}function bo(ge,We,dt,nr){var Tr=2*nr+1;for(nr=0;16>nr;++nr)Os(ge,We+nr,dt,Tr)&&Qo(ge,We+nr,dt)}function ds(ge,We,dt,nr){var Tr=2*nr+1;for(nr=0;16>nr;++nr)Os(ge,We+nr*dt,1,Tr)&&Qo(ge,We+nr*dt,1)}function Ho(ge,We,dt,nr){var Tr;for(Tr=3;0<Tr;--Tr)bo(ge,We+=4*dt,dt,nr)}function zo(ge,We,dt,nr){var Tr;for(Tr=3;0<Tr;--Tr)ds(ge,We+=4,dt,nr)}function rn(ge,We,dt,nr,Tr,zr,De,q){for(zr=2*zr+1;0<Tr--;){if(ho(ge,We,dt,zr,De))if(so(ge,We,dt,q))Qo(ge,We,dt);else{var ye=ge,Ve=We,it=dt,Rt=ye[Ve-2*it],zt=ye[Ve-it],Xt=ye[Ve+0],Nr=ye[Ve+it],Qr=ye[Ve+2*it],Cr=27*(Kr=Vl[1020+3*(Xt-zt)+Vl[1020+Rt-Nr]])+63>>7,Er=18*Kr+63>>7,Kr=9*Kr+63>>7;ye[Ve-3*it]=il[255+ye[Ve-3*it]+Kr],ye[Ve-2*it]=il[255+Rt+Er],ye[Ve-it]=il[255+zt+Cr],ye[Ve+0]=il[255+Xt-Cr],ye[Ve+it]=il[255+Nr-Er],ye[Ve+2*it]=il[255+Qr-Kr]}We+=nr}}function es(ge,We,dt,nr,Tr,zr,De,q){for(zr=2*zr+1;0<Tr--;){if(ho(ge,We,dt,zr,De))if(so(ge,We,dt,q))Qo(ge,We,dt);else{var ye=ge,Ve=We,it=dt,Rt=ye[Ve-it],zt=ye[Ve+0],Xt=ye[Ve+it],Nr=Ys[112+((Qr=3*(zt-Rt))+4>>3)],Qr=Ys[112+(Qr+3>>3)],Cr=Nr+1>>1;ye[Ve-2*it]=il[255+ye[Ve-2*it]+Cr],ye[Ve-it]=il[255+Rt+Qr],ye[Ve+0]=il[255+zt-Nr],ye[Ve+it]=il[255+Xt-Cr]}We+=nr}}function Js(ge,We,dt,nr,Tr,zr){rn(ge,We,dt,1,16,nr,Tr,zr)}function Es(ge,We,dt,nr,Tr,zr){rn(ge,We,1,dt,16,nr,Tr,zr)}function gs(ge,We,dt,nr,Tr,zr){var De;for(De=3;0<De;--De)es(ge,We+=4*dt,dt,1,16,nr,Tr,zr)}function Ko(ge,We,dt,nr,Tr,zr){var De;for(De=3;0<De;--De)es(ge,We+=4,1,dt,16,nr,Tr,zr)}function hs(ge,We,dt,nr,Tr,zr,De,q){rn(ge,We,Tr,1,8,zr,De,q),rn(dt,nr,Tr,1,8,zr,De,q)}function bs(ge,We,dt,nr,Tr,zr,De,q){rn(ge,We,1,Tr,8,zr,De,q),rn(dt,nr,1,Tr,8,zr,De,q)}function ws(ge,We,dt,nr,Tr,zr,De,q){es(ge,We+4*Tr,Tr,1,8,zr,De,q),es(dt,nr+4*Tr,Tr,1,8,zr,De,q)}function qo(ge,We,dt,nr,Tr,zr,De,q){es(ge,We+4,1,Tr,8,zr,De,q),es(dt,nr+4,1,Tr,8,zr,De,q)}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 Nt}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=Ze(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(ge,We,dt,nr,Tr,zr,De){for(ge=ge==null?0:ge[We+0],We=0;We<De;++We)Tr[zr+We]=ge+dt[nr+We]&255,ge=Tr[zr+We]}function Ha(ge,We,dt,nr,Tr,zr,De){var q;if(ge==null)ts(null,null,dt,nr,Tr,zr,De);else for(q=0;q<De;++q)Tr[zr+q]=ge[We+q]+dt[nr+q]&255}function Tt(ge,We,dt,nr,Tr,zr,De){if(ge==null)ts(null,null,dt,nr,Tr,zr,De);else{var q,ye=ge[We+0],Ve=ye,it=ye;for(q=0;q<De;++q)Ve=it+(ye=ge[We+q])-Ve,it=dt[nr+q]+(-256&Ve?0>Ve?0:255:Ve)&255,Ve=ye,Tr[zr+q]=it}}function Vt(ge,We,dt,nr){var Tr=We.width,zr=We.o;if(Se(ge!=null&&We!=null),0>dt||0>=nr||dt+nr>zr)return null;if(!ge.Cc){if(ge.ga==null){var De;if(ge.ga=new Jo,(De=ge.ga==null)||(De=We.width*We.o,Se(ge.Gb.length==0),ge.Gb=ze(De),ge.Uc=0,ge.Gb==null?De=0:(ge.mb=ge.Gb,ge.nb=ge.Uc,ge.rc=null,De=1),De=!De),!De){De=ge.ga;var q=ge.Fa,ye=ge.P,Ve=ge.qc,it=ge.mb,Rt=ge.nb,zt=ye+1,Xt=Ve-1,Nr=De.l;if(Se(q!=null&&it!=null&&We!=null),ro[0]=null,ro[1]=ts,ro[2]=Ha,ro[3]=Tt,De.ca=it,De.tb=Rt,De.c=We.width,De.i=We.height,Se(0<De.c&&0<De.i),1>=Ve)We=0;else if(De.$a=q[ye+0]>>0&3,De.Z=q[ye+0]>>2&3,De.Lc=q[ye+0]>>4&3,ye=q[ye+0]>>6&3,0>De.$a||1<De.$a||4<=De.Z||1<De.Lc||ye)We=0;else if(Nr.put=$i,Nr.ac=Ui,Nr.bc=Di,Nr.ma=De,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,De.$a)e:{Se(De.$a==1),We=ja();t:for(;;){if(We==null){We=0;break e}if(Se(De!=null),De.mc=We,We.c=De.c,We.i=De.i,We.l=De.l,We.l.ma=De,We.l.width=De.c,We.l.height=De.i,We.a=0,xn(We.m,q,zt,Xt),!Ya(De.c,De.i,1,We,null))break t;if(We.ab==1&&We.gc[0].hc==3&&pa(We.s)?(De.ic=1,q=We.c*We.i,We.Ta=null,We.Ua=0,We.V=ze(q),We.Ba=0,We.V==null?(We.a=1,We=0):We=1):(De.ic=0,We=Ia(We,De.c)),!We)break t;We=1;break e}De.mc=null,We=0}else We=Xt>=De.c*De.i;De=!We}if(De)return null;ge.ga.Lc!=1?ge.Ga=0:nr=zr-dt}Se(ge.ga!=null),Se(dt+nr<=zr);e:{if(We=(q=ge.ga).c,zr=q.l.o,q.$a==0){if(zt=ge.rc,Xt=ge.Vc,Nr=ge.Fa,ye=ge.P+1+dt*We,Ve=ge.mb,it=ge.nb+dt*We,Se(ye<=ge.P+ge.qc),q.Z!=0)for(Se(ro[q.Z]!=null),De=0;De<nr;++De)ro[q.Z](zt,Xt,Nr,ye,Ve,it,We),zt=Ve,Xt=it,it+=We,ye+=We;else for(De=0;De<nr;++De)je(Ve,it,Nr,ye,We),zt=Ve,Xt=it,it+=We,ye+=We;ge.rc=zt,ge.Vc=Xt}else{if(Se(q.mc!=null),We=dt+nr,Se((De=q.mc)!=null),Se(We<=De.i),De.C>=We)We=1;else if(q.ic||pe(),q.ic){q=De.V,zt=De.Ba,Xt=De.c;var Qr=De.i,Cr=(Nr=1,ye=De.$/Xt,Ve=De.$%Xt,it=De.m,Rt=De.s,De.$),Er=Xt*Qr,Kr=Xt*We,qr=Rt.wc,Cn=Cr<Kr?Xi(Rt,Ve,ye):null;Se(Cr<=Er),Se(We<=Qr),Se(pa(Rt));t:for(;;){for(;!it.h&&Cr<Kr;){if(Ve&qr||(Cn=Xi(Rt,Ve,ye)),Se(Cn!=null),Un(it),256>(Qr=Vi(Cn.G[0],Cn.H[0],it)))q[zt+Cr]=Qr,++Cr,++Ve>=Xt&&(Ve=0,++ye<=We&&!(ye%16)&&Da(De,ye));else{if(!(280>Qr)){Nr=0;break t}Qr=aa(Qr-256,it);var oi,hi=Vi(Cn.G[4],Cn.H[4],it);if(Un(it),!(Cr>=(hi=Gi(Xt,hi=aa(hi,it)))&&Er-Cr>=Qr)){Nr=0;break t}for(oi=0;oi<Qr;++oi)q[zt+Cr+oi]=q[zt+Cr+oi-hi];for(Cr+=Qr,Ve+=Qr;Ve>=Xt;)Ve-=Xt,++ye<=We&&!(ye%16)&&Da(De,ye);Cr<Kr&&Ve&qr&&(Cn=Xi(Rt,Ve,ye))}Se(it.h==On(it))}Da(De,ye>We?We:ye);break t}!Nr||it.h&&Cr<Er?(Nr=0,De.a=it.h?5:3):De.$=Cr,We=Nr}else We=Ra(De,De.V,De.Ba,De.c,De.i,We,Va);if(!We){nr=0;break e}}dt+nr>=zr&&(ge.Cc=1),nr=1}if(!nr)return null;if(ge.Cc&&((nr=ge.ga)!=null&&(nr.mc=null),ge.ga=null,0<ge.Ga))return alert("todo:WebPDequantizeLevels"),null}return ge.nb+dt*Tr}function hn(ge,We,dt,nr,Tr,zr){for(;0<Tr--;){var De,q=ge,ye=We+(dt?1:0),Ve=ge,it=We+(dt?0:3);for(De=0;De<nr;++De){var Rt=Ve[it+4*De];Rt!=255&&(Rt*=32897,q[ye+4*De+0]=q[ye+4*De+0]*Rt>>23,q[ye+4*De+1]=q[ye+4*De+1]*Rt>>23,q[ye+4*De+2]=q[ye+4*De+2]*Rt>>23)}We+=zr}}function Vn(ge,We,dt,nr,Tr){for(;0<nr--;){var zr;for(zr=0;zr<dt;++zr){var De=ge[We+2*zr+0],q=15&(Ve=ge[We+2*zr+1]),ye=4369*q,Ve=(240&Ve|Ve>>4)*ye>>16;ge[We+2*zr+0]=(240&De|De>>4)*ye>>16&240|(15&De|De<<4)*ye>>16>>4&15,ge[We+2*zr+1]=240&Ve|q}We+=Tr}}function pt(ge,We,dt,nr,Tr,zr,De,q){var ye,Ve,it=255;for(Ve=0;Ve<Tr;++Ve){for(ye=0;ye<nr;++ye){var Rt=ge[We+ye];zr[De+4*ye]=Rt,it&=Rt}We+=dt,De+=q}return it!=255}function ae(ge,We,dt,nr,Tr){var zr;for(zr=0;zr<Tr;++zr)dt[nr+zr]=ge[We+zr]>>8}function pe(){El=hn,jl=Vn,$s=pt,Nl=ae}function be(ge,We,dt){Dt[ge]=function(nr,Tr,zr,De,q,ye,Ve,it,Rt,zt,Xt,Nr,Qr,Cr,Er,Kr,qr){var Cn,oi=qr-1>>1,hi=q[ye+0]|Ve[it+0]<<16,ji=Rt[zt+0]|Xt[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[De+0],255&Oi,Oi>>16,Er,Kr)),Cn=1;Cn<=oi;++Cn){var wa=q[ye+Cn]|Ve[it+Cn]<<16,Qi=Rt[zt+Cn]|Xt[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)*dt),We(nr[Tr+2*Cn-0],255&hi,hi>>16,Qr,Cr+(2*Cn-0)*dt),zr!=null&&(Oi=Ua+ji>>1,hi=Sa+Qi>>1,We(zr[De+2*Cn-1],255&Oi,Oi>>16,Er,Kr+(2*Cn-1)*dt),We(zr[De+2*Cn+0],255&hi,hi>>16,Er,Kr+(2*Cn+0)*dt)),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)*dt),zr!=null&&(Oi=3*ji+hi+131074>>2,We(zr[De+qr-1],255&Oi,Oi>>16,Er,Kr+(qr-1)*dt)))}}function Ke(){Io[kl]=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 mt(ge){return ge&~Vu?0>ge?0:255:ge>>Ou}function Gt(ge,We){return mt((19077*ge>>8)+(26149*We>>8)-14234)}function Dr(ge,We,dt){return mt((19077*ge>>8)-(6419*We>>8)-(13320*dt>>8)+8708)}function Gr(ge,We){return mt((19077*ge>>8)+(33050*We>>8)-17685)}function fn(ge,We,dt,nr,Tr){nr[Tr+0]=Gt(ge,dt),nr[Tr+1]=Dr(ge,We,dt),nr[Tr+2]=Gr(ge,We)}function Kn(ge,We,dt,nr,Tr){nr[Tr+0]=Gr(ge,We),nr[Tr+1]=Dr(ge,We,dt),nr[Tr+2]=Gt(ge,dt)}function qn(ge,We,dt,nr,Tr){var zr=Dr(ge,We,dt);We=zr<<3&224|Gr(ge,We)>>3,nr[Tr+0]=248&Gt(ge,dt)|zr>>5,nr[Tr+1]=We}function Qn(ge,We,dt,nr,Tr){var zr=240&Gr(ge,We)|15;nr[Tr+0]=240&Gt(ge,dt)|Dr(ge,We,dt)>>4,nr[Tr+1]=zr}function Ei(ge,We,dt,nr,Tr){nr[Tr+0]=255,fn(ge,We,dt,nr,Tr+1)}function Fi(ge,We,dt,nr,Tr){Kn(ge,We,dt,nr,Tr),nr[Tr+3]=255}function va(ge,We,dt,nr,Tr){fn(ge,We,dt,nr,Tr),nr[Tr+3]=255}function Ja(ge,We){return 0>ge?0:ge>We?We:ge}function Oa(ge,We,dt){Dt[ge]=function(nr,Tr,zr,De,q,ye,Ve,it,Rt){for(var zt=it+(-2&Rt)*dt;it!=zt;)We(nr[Tr+0],zr[De+0],q[ye+0],Ve,it),We(nr[Tr+1],zr[De+0],q[ye+0],Ve,it+dt),Tr+=2,++De,++ye,it+=2*dt;1&Rt&&We(nr[Tr+0],zr[De+0],q[ye+0],Ve,it)}}function fo(ge,We,dt){return dt==0?ge==0?We==0?6:5:We==0?4:0:dt}function wo(ge,We,dt,nr,Tr){switch(ge>>>30){case 3:$o(We,dt,nr,Tr,0);break;case 2:Co(We,dt,nr,Tr);break;case 1:os(We,dt,nr,Tr)}}function lo(ge,We){var dt,nr,Tr=We.M,zr=We.Nb,De=ge.oc,q=ge.pc+40,ye=ge.oc,Ve=ge.pc+584,it=ge.oc,Rt=ge.pc+600;for(dt=0;16>dt;++dt)De[q+32*dt-1]=129;for(dt=0;8>dt;++dt)ye[Ve+32*dt-1]=129,it[Rt+32*dt-1]=129;for(0<Tr?De[q-1-32]=ye[Ve-1-32]=it[Rt-1-32]=129:(Xe(De,q-32-1,127,21),Xe(ye,Ve-32-1,127,9),Xe(it,Rt-32-1,127,9)),nr=0;nr<ge.za;++nr){var zt=We.ya[We.aa+nr];if(0<nr){for(dt=-1;16>dt;++dt)je(De,q+32*dt-4,De,q+32*dt+12,4);for(dt=-1;8>dt;++dt)je(ye,Ve+32*dt-4,ye,Ve+32*dt+4,4),je(it,Rt+32*dt-4,it,Rt+32*dt+4,4)}var Xt=ge.Gd,Nr=ge.Hd+nr,Qr=zt.ad,Cr=zt.Hc;if(0<Tr&&(je(De,q-32,Xt[Nr].y,0,16),je(ye,Ve-32,Xt[Nr].f,0,8),je(it,Rt-32,Xt[Nr].ea,0,8)),zt.Za){var Er=De,Kr=q-32+16;for(0<Tr&&(nr>=ge.za-1?Xe(Er,Kr,Xt[Nr].y[15],4):je(Er,Kr,Xt[Nr+1].y,0,4)),dt=0;4>dt;dt++)Er[Kr+128+dt]=Er[Kr+256+dt]=Er[Kr+384+dt]=Er[Kr+0+dt];for(dt=0;16>dt;++dt,Cr<<=2)Er=De,Kr=q+_u[dt],wl[zt.Ob[dt]](Er,Kr),wo(Cr,Qr,16*+dt,Er,Kr)}else if(Er=fo(nr,Tr,zt.Ob[0]),pl[Er](De,q),Cr!=0)for(dt=0;16>dt;++dt,Cr<<=2)wo(Cr,Qr,16*+dt,De,q+_u[dt]);for(dt=zt.Gc,Er=fo(nr,Tr,zt.Dd),Dl[Er](ye,Ve),Dl[Er](it,Rt),Cr=Qr,Er=ye,Kr=Ve,255&(zt=dt>>0)&&(170&zt?rs(Cr,256,Er,Kr):Fs(Cr,256,Er,Kr)),zt=it,Cr=Rt,255&(dt>>=8)&&(170&dt?rs(Qr,320,zt,Cr):Fs(Qr,320,zt,Cr)),Tr<ge.Ub-1&&(je(Xt[Nr].y,0,De,q+480,16),je(Xt[Nr].f,0,ye,Ve+224,8),je(Xt[Nr].ea,0,it,Rt+224,8)),dt=8*zr*ge.B,Xt=ge.sa,Nr=ge.ta+16*nr+16*zr*ge.R,Qr=ge.qa,zt=ge.ra+8*nr+dt,Cr=ge.Ha,Er=ge.Ia+8*nr+dt,dt=0;16>dt;++dt)je(Xt,Nr+dt*ge.R,De,q+32*dt,16);for(dt=0;8>dt;++dt)je(Qr,zt+dt*ge.B,ye,Ve+32*dt,8),je(Cr,Er+dt*ge.B,it,Rt+32*dt,8)}}function Yo(ge,We,dt,nr,Tr,zr,De,q,ye){var Ve=[0],it=[0],Rt=0,zt=ye!=null?ye.kd:0,Xt=ye!=null?ye:new _s;if(ge==null||12>dt)return 7;Xt.data=ge,Xt.w=We,Xt.ha=dt,We=[We],dt=[dt],Xt.gb=[Xt.gb];e:{var Nr=We,Qr=dt,Cr=Xt.gb;if(Se(ge!=null),Se(Qr!=null),Se(Cr!=null),Cr[0]=0,12<=Qr[0]&&!Ne(ge,Nr[0],"RIFF")){if(Ne(ge,Nr[0]+8,"WEBP")){Cr=3;break e}var Er=Yi(ge,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<Xt.gb[0],dt=dt[0];;){e:{var Kr=ge;Qr=We,Cr=dt;var qr=Ve,Cn=it,oi=Nr=[0];if((Oi=Rt=[Rt])[0]=0,8>Cr[0])Cr=7;else{if(!Ne(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(Rt=Rt[0],Nr=Nr[0],Cr!=0)return Cr;if(Qr=!!(2&Nr),!Er&&Rt)return 3;if(zr!=null&&(zr[0]=!!(16&Nr)),De!=null&&(De[0]=Qr),q!=null&&(q[0]=0),De=Ve[0],Nr=it[0],Rt&&Qr&&ye==null){Cr=0;break}if(4>dt){Cr=7;break}if(Er&&Rt||!Er&&!Rt&&!Ne(ge,We[0],"ALPH")){dt=[dt],Xt.na=[Xt.na],Xt.P=[Xt.P],Xt.Sa=[Xt.Sa];e:{hi=ge,Cr=We,Er=dt;var Oi=Xt.gb;qr=Xt.na,Cn=Xt.P,oi=Xt.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(!Ne(hi,Kr,"VP8 ")||!Ne(hi,Kr,"VP8L")){Cr=0;break e}if(wa[0]<Ua){Cr=7;break e}Ne(hi,Kr,"ALPH")||(qr[0]=hi,Cn[0]=Kr+8,oi[0]=Qi),Kr+=Ua,wa-=Ua}}if(dt=dt[0],Xt.na=Xt.na[0],Xt.P=Xt.P[0],Xt.Sa=Xt.Sa[0],Cr!=0)break}dt=[dt],Xt.Ja=[Xt.Ja],Xt.xa=[Xt.xa];e:if(Oi=ge,Cr=We,Er=dt,qr=Xt.gb[0],Cn=Xt.Ja,oi=Xt.xa,hi=Cr[0],Kr=!Ne(Oi,hi,"VP8 "),ji=!Ne(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(dt=dt[0],Xt.Ja=Xt.Ja[0],Xt.xa=Xt.xa[0],We=We[0],Cr!=0)break;if(4294967286<Xt.Ja)return 3;if(q==null||Qr||(q[0]=Xt.xa?2:1),De=[De],Nr=[Nr],Xt.xa){if(5>dt){Cr=7;break}q=De,zt=Nr,Qr=zr,ge==null||5>dt?ge=0:5<=dt&&ge[We+0]==47&&!(ge[We+4]>>5)?(Er=[0],Oi=[0],qr=[0],xn(Cn=new xr,ge,We,dt),ua(Cn,Er,Oi,qr)?(q!=null&&(q[0]=Er[0]),zt!=null&&(zt[0]=Oi[0]),Qr!=null&&(Qr[0]=qr[0]),ge=1):ge=0):ge=0}else{if(10>dt){Cr=7;break}q=Nr,ge==null||10>dt||!cr(ge,We+3,dt-3)?ge=0:(zt=ge[We+0]|ge[We+1]<<8|ge[We+2]<<16,Qr=16383&(ge[We+7]<<8|ge[We+6]),ge=16383&(ge[We+9]<<8|ge[We+8]),1&zt||3<(zt>>1&7)||!(zt>>4&1)||zt>>5>=Xt.Ja||!Qr||!ge?ge=0:(De&&(De[0]=Qr),q&&(q[0]=ge),ge=1))}if(!ge)return 3;if(De=De[0],Nr=Nr[0],Rt&&(Ve[0]!=De||it[0]!=Nr))return 3;ye!=null&&(ye[0]=Xt,ye.offset=We-ye.w,Se(4294967286>We-ye.w),Se(ye.offset==ye.ha-dt));break}return Cr==0||Cr==7&&Rt&&ye==null?(zr!=null&&(zr[0]|=Xt.na!=null&&0<Xt.na.length),nr!=null&&(nr[0]=De),Tr!=null&&(Tr[0]=Nr),0):Cr}function Vo(ge,We,dt){var nr=We.width,Tr=We.height,zr=0,De=0,q=nr,ye=Tr;if(We.Da=ge!=null&&0<ge.Da,We.Da&&(q=ge.cd,ye=ge.bd,zr=ge.v,De=ge.j,11>dt||(zr&=-2,De&=-2),0>zr||0>De||0>=q||0>=ye||zr+q>nr||De+ye>Tr))return 0;if(We.v=zr,We.j=De,We.va=zr+q,We.o=De+ye,We.U=q,We.T=ye,We.da=ge!=null&&0<ge.da,We.da){if(!Hi(q,ye,dt=[ge.ib],zr=[ge.hb]))return 0;We.ib=dt[0],We.hb=zr[0]}return We.ob=ge!=null&&ge.ob,We.Kb=ge==null||!ge.Sd,We.da&&(We.ob=We.ib<3*nr/4&&We.hb<3*Tr/4,We.Kb=0),1}function No(ge){if(ge==null)return 2;if(11>ge.S){var We=ge.f.RGBA;We.fb+=(ge.height-1)*We.A,We.A=-We.A}else We=ge.f.kb,ge=ge.height,We.O+=(ge-1)*We.fa,We.fa=-We.fa,We.N+=(ge-1>>1)*We.Ab,We.Ab=-We.Ab,We.W+=(ge-1>>1)*We.Db,We.Db=-We.Db,We.F!=null&&(We.J+=(ge-1)*We.lb,We.lb=-We.lb);return 0}function ao(ge,We,dt,nr){if(nr==null||0>=ge||0>=We)return 2;if(dt!=null){if(dt.Da){var Tr=dt.cd,zr=dt.bd,De=-2&dt.v,q=-2&dt.j;if(0>De||0>q||0>=Tr||0>=zr||De+Tr>ge||q+zr>We)return 2;ge=Tr,We=zr}if(dt.da){if(!Hi(ge,We,Tr=[dt.ib],zr=[dt.hb]))return 2;ge=Tr[0],We=zr[0]}}nr.width=ge,nr.height=We;e:{var ye=nr.width,Ve=nr.height;if(ge=nr.S,0>=ye||0>=Ve||!(ge>=kl&&13>ge))ge=2;else{if(0>=nr.Rd&&nr.sd==null){De=zr=Tr=We=0;var it=(q=ye*Su[ge])*Ve;if(11>ge||(zr=(Ve+1)/2*(We=(ye+1)/2),ge==12&&(De=(Tr=ye)*Ve)),(Ve=ze(it+2*zr+De))==null){ge=1;break e}nr.sd=Ve,11>ge?((ye=nr.f.RGBA).eb=Ve,ye.fb=0,ye.A=q,ye.size=it):((ye=nr.f.kb).y=Ve,ye.O=0,ye.fa=q,ye.Fd=it,ye.f=Ve,ye.N=0+it,ye.Ab=We,ye.Cd=zr,ye.ea=Ve,ye.W=0+it+zr,ye.Db=We,ye.Ed=zr,ge==12&&(ye.F=Ve,ye.J=0+it+2*zr),ye.Tc=De,ye.lb=Tr)}if(We=1,Tr=nr.S,zr=nr.width,De=nr.height,Tr>=kl&&13>Tr)if(11>Tr)ge=nr.f.RGBA,We&=(q=Math.abs(ge.A))*(De-1)+zr<=ge.size,We&=q>=zr*Su[Tr],We&=ge.eb!=null;else{ge=nr.f.kb,q=(zr+1)/2,it=(De+1)/2,ye=Math.abs(ge.fa),Ve=Math.abs(ge.Ab);var Rt=Math.abs(ge.Db),zt=Math.abs(ge.lb),Xt=zt*(De-1)+zr;We&=ye*(De-1)+zr<=ge.Fd,We&=Ve*(it-1)+q<=ge.Cd,We=(We&=Rt*(it-1)+q<=ge.Ed)&ye>=zr&Ve>=q&Rt>=q,We&=ge.y!=null,We&=ge.f!=null,We&=ge.ea!=null,Tr==12&&(We&=zt>=zr,We&=Xt<=ge.Tc,We&=ge.F!=null)}else We=0;ge=We?0:2}}return ge!=0||dt!=null&&dt.fd&&(ge=No(nr)),ge}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"),Dt.Predictor0=function(){return 4278190080},Dt.Predictor1=function(ge){return ge},Dt.Predictor2=function(ge,We,dt){return We[dt+0]},Dt.Predictor3=function(ge,We,dt){return We[dt+1]},Dt.Predictor4=function(ge,We,dt){return We[dt-1]},Dt.Predictor5=function(ge,We,dt){return on(on(ge,We[dt+1]),We[dt+0])},Dt.Predictor6=function(ge,We,dt){return on(ge,We[dt-1])},Dt.Predictor7=function(ge,We,dt){return on(ge,We[dt+0])},Dt.Predictor8=function(ge,We,dt){return on(We[dt-1],We[dt+0])},Dt.Predictor9=function(ge,We,dt){return on(We[dt+0],We[dt+1])},Dt.Predictor10=function(ge,We,dt){return on(on(ge,We[dt-1]),on(We[dt+0],We[dt+1]))},Dt.Predictor11=function(ge,We,dt){var nr=We[dt+0];return 0>=Or(nr>>24&255,ge>>24&255,(We=We[dt-1])>>24&255)+Or(nr>>16&255,ge>>16&255,We>>16&255)+Or(nr>>8&255,ge>>8&255,We>>8&255)+Or(255&nr,255&ge,255&We)?nr:ge},Dt.Predictor12=function(ge,We,dt){var nr=We[dt+0];return(Zt((ge>>24&255)+(nr>>24&255)-((We=We[dt-1])>>24&255))<<24|Zt((ge>>16&255)+(nr>>16&255)-(We>>16&255))<<16|Zt((ge>>8&255)+(nr>>8&255)-(We>>8&255))<<8|Zt((255&ge)+(255&nr)-(255&We)))>>>0},Dt.Predictor13=function(ge,We,dt){var nr=We[dt-1];return(br((ge=on(ge,We[dt+0]))>>24&255,nr>>24&255)<<24|br(ge>>16&255,nr>>16&255)<<16|br(ge>>8&255,nr>>8&255)<<8|br(ge>>0&255,nr>>0&255))>>>0};var Hs=Dt.PredictorAdd0;Dt.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=Dt.PredictorAdd2;vr("ColorIndexInverseTransform","MapARGB","32b",function(ge){return ge>>8&255},function(ge){return ge}),vr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(ge){return ge},function(ge){return ge>>8&255});var as,Ss=Dt.ColorIndexInverseTransform,xl=Dt.MapARGB,vl=Dt.VP8LColorIndexInverseTransformAlpha,zs=Dt.MapAlpha,Zo=Dt.VP8LPredictorsAdd=[];Zo.length=16,(Dt.VP8LPredictors=[]).length=16,(Dt.VP8LPredictorsAdd_C=[]).length=16,(Dt.VP8LPredictors_C=[]).length=16;var As,nl,ks,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,Pl=ze(511),yu=ze(2041),cu=ze(225),eu=ze(767),tu=0,Vl=yu,Ys=cu,il=eu,fl=Pl,kl=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=Dt.UpsampleRgbLinePair,Ol=Dt.UpsampleBgrLinePair,_l=Dt.UpsampleRgbaLinePair,ml=Dt.UpsampleBgraLinePair,Al=Dt.UpsampleArgbLinePair,Il=Dt.UpsampleRgba4444LinePair,Ll=Dt.UpsampleRgb565LinePair,Ks=16,Yl=1<<Ks-1,gu=-227,uu=482,Ou=6,Vu=(256<<Ou)-1,Fu=0,ec=ze(256),Bu=ze(256),Gu=ze(256),Xu=ze(256),Yu=ze(uu-gu),Uu=ze(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(ge,We,dt,nr,Tr){var zr=du,De=new us,q=new Si;De.ba=q,q.S=zr,q.width=[q.width],q.height=[q.height];var ye=q.width,Ve=q.height,it=new Ni;if(it==null||ge==null)var Rt=2;else Se(it!=null),Rt=Yo(ge,We,dt,it.width,it.height,it.Pd,it.Qd,it.format,null);if(Rt!=0?ye=0:(ye!=null&&(ye[0]=it.width[0]),Ve!=null&&(Ve[0]=it.height[0]),ye=1),ye){q.width=q.width[0],q.height=q.height[0],nr!=null&&(nr[0]=q.width),Tr!=null&&(Tr[0]=q.height);e:{if(nr=new Fa,(Tr=new _s).data=ge,Tr.w=We,Tr.ha=dt,Tr.kd=1,We=[0],Se(Tr!=null),((ge=Yo(Tr.data,Tr.w,Tr.ha,null,null,null,We,null,Tr))==0||ge==7)&&We[0]&&(ge=4),(We=ge)==0){if(Se(De!=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=De,Tr.xa){if((ge=ja())==null){De=1;break e}if(function(zt,Xt){var Nr=[0],Qr=[0],Cr=[0];t:for(;;){if(zt==null)return 0;if(Xt==null)return zt.a=2,0;if(zt.l=Xt,zt.a=0,xn(zt.m,Xt.data,Xt.w,Xt.ha),!ua(zt.m,Nr,Qr,Cr)){zt.a=3;break t}if(zt.xb=Na,Xt.width=Nr[0],Xt.height=Qr[0],!Ya(Nr[0],Qr[0],1,zt,null))break t;return 1}return Se(zt.a!=0),0}(ge,nr)){if(nr=(We=ao(nr.width,nr.height,De.Oa,De.ba))==0){t:{nr=ge;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((dt=nr.l)!=null),Se((Tr=dt.ma)!=null),nr.xb!=0){if(nr.ca=Tr.ba,nr.tb=Tr.tb,Se(nr.ca!=null),!Vo(Tr.Oa,dt,nu)){nr.a=2;break r}if(!Ia(nr,dt.width))break r;if(dt.da)break r;if((dt.da||ci(nr.ca.S))&&pe(),11>nr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),nr.ca.f.kb.F!=null&&pe()),nr.Pb&&0<nr.s.ua&&nr.s.vb.X==null&&!$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,dt.o,ra))break r;Tr.Dc=nr.Ma,nr=1;break t}Se(nr.a!=0),nr=0}nr=!nr}nr&&(We=ge.a)}else We=ge.a}else{if((ge=new ha)==null){De=1;break e}if(ge.Fa=Tr.na,ge.P=Tr.P,ge.qc=Tr.Sa,kr(ge,nr)){if((We=ao(nr.width,nr.height,De.Oa,De.ba))==0){if(ge.Aa=0,dt=De.Oa,Se((Tr=ge)!=null),dt!=null){if(0<(ye=0>(ye=dt.Md)?0:100<ye?255:255*ye/100)){for(Ve=it=0;4>Ve;++Ve)12>(Rt=Tr.pb[Ve]).lc&&(Rt.ia=ye*Iu[0>Rt.lc?0:Rt.lc]>>3),it|=Rt.ia;it&&(alert("todo:VP8InitRandom"),Tr.ia=1)}Tr.Ga=dt.Id,100<Tr.Ga?Tr.Ga=100:0>Tr.Ga&&(Tr.Ga=0)}Vr(ge,nr)||(We=ge.a)}}else We=ge.a}We==0&&De.Oa!=null&&De.Oa.fd&&(We=No(De.ba))}De=We}zr=De!=0?null:11>zr?q.f.RGBA.eb:q.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,Dt){for(var ft="",St=0;St<4;St++)ft+=String.fromCharCode(Sn[Dt++]);return ft}function Rr(Sn,Dt){return(Sn[Dt+0]<<0|Sn[Dt+1]<<8|Sn[Dt+2]<<16)>>>0}function Ir(Sn,Dt){return(Sn[Dt+0]<<0|Sn[Dt+1]<<8|Sn[Dt+2]<<16|Sn[Dt+3]<<24)>>>0}new st;var Xr=[0],er=[0],pn=[],fr=new st,mn=Qe,en=function(Sn,Dt){var ft={},St=0,Ct=!1,Nt=0,gt=0;if(ft.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,Dt,"RIFF",4)){var Qt,tr;for(Ir(Sn,Dt+=4),Dt+=8;Dt<Sn.length;){var ar=Jt(Sn,Dt),yr=Ir(Sn,Dt+=4);Dt+=4;var xn=yr+(1&yr);switch(ar){case"VP8 ":case"VP8L":ft.frames[St]===void 0&&(ft.frames[St]={}),(Yr=ft.frames[St]).src_off=Ct?gt:Dt-8,Yr.src_size=Nt+yr+8,St++,Ct&&(Ct=!1,Nt=0,gt=0);break;case"VP8X":(Yr=ft.header={}).feature_flags=Sn[Dt];var vn=Dt+4;Yr.canvas_width=1+Rr(Sn,vn),vn+=3,Yr.canvas_height=1+Rr(Sn,vn),vn+=3;break;case"ALPH":Ct=!0,Nt=xn+8,gt=Dt-8;break;case"ANIM":(Yr=ft.header).bgcolor=Ir(Sn,Dt),vn=Dt+4,Yr.loop_count=(Qt=Sn)[(tr=vn)+0]<<0|Qt[tr+1]<<8,vn+=2;break;case"ANMF":var zn,Yr;(Yr=ft.frames[St]={}).offset_x=2*Rr(Sn,Dt),Dt+=3,Yr.offset_y=2*Rr(Sn,Dt),Dt+=3,Yr.width=1+Rr(Sn,Dt),Dt+=3,Yr.height=1+Rr(Sn,Dt),Dt+=3,Yr.duration=Rr(Sn,Dt),Dt+=3,zn=Sn[Dt++],Yr.dispose=1&zn,Yr.blend=zn>>1&1}ar!="ANMF"&&(Dt+=xn)}return ft}}(mn,0);en.response=mn,en.rgbaoutput=!0,en.dataurl=!1;var Mr=en.header?en.header:null,Gn=en.frames?en.frames:null;if(Mr){Mr.loop_counter=Mr.loop_count,Xr=[Mr.canvas_height],er=[Mr.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,er,Xr);_i.rgba=Br,_i.imgwidth=er[0],_i.imgheight=Xr[0];for(var sn=0;sn<er[0]*Xr[0]*4;sn++)pn[sn]=Br[sn];return this.width=er,this.height=Xr,this.data=pn,this}!function(Qe){var Se=function(){return typeof A.b=="function"},Ne=function(er,pn,fr,mn){var en=4,Mr=Ze;switch(mn){case Qe.image_compression.FAST:en=1,Mr=ze;break;case Qe.image_compression.MEDIUM:en=6,Mr=wt;break;case Qe.image_compression.SLOW:en=9,Mr=st}er=je(er,pn,fr,Mr);var Gn=Object(A.b)(er,{level:en});return Qe.__addimage__.arrayBufferToBinaryString(Gn)},je=function(er,pn,fr,mn){for(var en,Mr,Gn,di=er.length/pn,_i=new Uint8Array(er.length+di),Br=Rr(),sn=0;sn<di;sn+=1){if(Gn=sn*pn,en=er.subarray(Gn,Gn+pn),mn)_i.set(mn(en,fr,Mr),Gn+sn);else{for(var Sn,Dt=Br.length,ft=[];Sn<Dt;Sn+=1)ft[Sn]=Br[Sn](en,fr,Mr);var St=Ir(ft.concat());_i.set(ft[St],Gn+sn)}Mr=en}return _i},Xe=function(er){var pn=Array.apply([],er);return pn.unshift(0),pn},ze=function(er,pn){var fr,mn=[],en=er.length;mn[0]=1;for(var Mr=0;Mr<en;Mr+=1)fr=er[Mr-pn]||0,mn[Mr+1]=er[Mr]-fr+256&255;return mn},Ze=function(er,pn,fr){var mn,en=[],Mr=er.length;en[0]=2;for(var Gn=0;Gn<Mr;Gn+=1)mn=fr&&fr[Gn]||0,en[Gn+1]=er[Gn]-mn+256&255;return en},wt=function(er,pn,fr){var mn,en,Mr=[],Gn=er.length;Mr[0]=3;for(var di=0;di<Gn;di+=1)mn=er[di-pn]||0,en=fr&&fr[di]||0,Mr[di+1]=er[di]+256-(mn+en>>>1)&255;return Mr},st=function(er,pn,fr){var mn,en,Mr,Gn,di=[],_i=er.length;di[0]=4;for(var Br=0;Br<_i;Br+=1)mn=er[Br-pn]||0,en=fr&&fr[Br]||0,Mr=fr&&fr[Br-pn]||0,Gn=Jt(mn,en,Mr),di[Br+1]=er[Br]-Gn+256&255;return di},Jt=function(er,pn,fr){if(er===pn&&pn===fr)return er;var mn=Math.abs(pn-fr),en=Math.abs(er-fr),Mr=Math.abs(er+pn-fr-fr);return mn<=en&&mn<=Mr?er:en<=Mr?pn:fr},Rr=function(){return[Xe,ze,Ze,wt,st]},Ir=function(er){var pn=er.map(function(fr){return fr.reduce(function(mn,en){return mn+Math.abs(en)},0)});return pn.indexOf(Math.min.apply(null,pn))};Qe.processPNG=function(Xr,er,pn,fr){var mn,en,Mr,Gn,di,_i,Br,sn,Sn,Dt,ft,St,Ct,Nt,gt,Qt=this.decode.FLATE_DECODE,tr="";if(this.__addimage__.isArrayBuffer(Xr)&&(Xr=new Uint8Array(Xr)),this.__addimage__.isArrayBufferView(Xr)){if(Xr=(Mr=new Ye(Xr)).imgData,en=Mr.bits,mn=Mr.colorSpace,di=Mr.colors,[4,6].indexOf(Mr.colorType)!==-1){if(Mr.bits===8){Sn=(sn=Mr.pixelBitlength==32?new Uint32Array(Mr.decodePixels().buffer):Mr.pixelBitlength==16?new Uint16Array(Mr.decodePixels().buffer):new Uint8Array(Mr.decodePixels().buffer)).length,ft=new Uint8Array(Sn*Mr.colors),Dt=new Uint8Array(Sn);var ar,yr=Mr.pixelBitlength-Mr.bits;for(Nt=0,gt=0;Nt<Sn;Nt++){for(Ct=sn[Nt],ar=0;ar<yr;)ft[gt++]=Ct>>>ar&255,ar+=Mr.bits;Dt[Nt]=Ct>>>ar&255}}if(Mr.bits===16){Sn=(sn=new Uint32Array(Mr.decodePixels().buffer)).length,ft=new Uint8Array(Sn*(32/Mr.pixelBitlength)*Mr.colors),Dt=new Uint8Array(Sn*(32/Mr.pixelBitlength)),St=Mr.colors>1,Nt=0,gt=0;for(var xn=0;Nt<Sn;)Ct=sn[Nt++],ft[gt++]=Ct>>>0&255,St&&(ft[gt++]=Ct>>>16&255,Ct=sn[Nt++],ft[gt++]=Ct>>>0&255),Dt[xn++]=Ct>>>16&255;en=8}fr!==Qe.image_compression.NONE&&Se()?(Xr=Ne(ft,Mr.width*Mr.colors,Mr.colors,fr),Br=Ne(Dt,Mr.width,1,fr)):(Xr=ft,Br=Dt,Qt=void 0)}if(Mr.colorType===3&&(mn=this.color_spaces.INDEXED,_i=Mr.palette,Mr.transparency.indexed)){var vn=Mr.transparency.indexed,zn=0;for(Nt=0,Sn=vn.length;Nt<Sn;++Nt)zn+=vn[Nt];if((zn/=255)===Sn-1&&vn.indexOf(0)!==-1)Gn=[vn.indexOf(0)];else if(zn!==Sn){for(sn=Mr.decodePixels(),Dt=new Uint8Array(sn.length),Nt=0,Sn=sn.length;Nt<Sn;Nt++)Dt[Nt]=vn[sn[Nt]];Br=Ne(Dt,Mr.width,1)}}var Yr=function(xr){var ln;switch(xr){case Qe.image_compression.FAST:ln=11;break;case Qe.image_compression.MEDIUM:ln=13;break;case Qe.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 "+Mr.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:er,filter:Qt,decodeParameters:tr,transparency:Gn,palette:_i,sMask:Br,predictor:Yr,width:Mr.width,height:Mr.height,bitsPerComponent:en,colorSpace:mn}}}}(U.API),function(Qe){Qe.processGIF89A=function(Se,Ne,je,Xe){var ze=new rt(Se),Ze=ze.width,wt=ze.height,st=[];ze.decodeAndBlitFrameRGBA(0,st);var Jt={data:st,width:Ze,height:wt},Rr=new Ot(100).encode(Jt,100);return Qe.processJPEG.call(this,Rr,Ne,je,Xe)},Qe.processGIF87A=Qe.processGIF89A}(U.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 Qe=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Qe);for(var Se=0;Se<Qe;Se++){var Ne=this.datav.getUint8(this.pos++,!0),je=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0);this.palette[Se]={red:Xe,green:je,blue:Ne,quad:ze}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ar.prototype.parseBGR=function(){this.pos=this.offset;try{var Qe="bit"+this.bitPP,Se=this.width*this.height*4;this.data=new Uint8Array(Se),this[Qe]()}catch(Ne){f.log("bit decode error:"+Ne)}},Ar.prototype.bit1=function(){var Qe,Se=Math.ceil(this.width/8),Ne=Se%4;for(Qe=this.height-1;Qe>=0;Qe--){for(var je=this.bottom_up?Qe:this.height-1-Qe,Xe=0;Xe<Se;Xe++)for(var ze=this.datav.getUint8(this.pos++,!0),Ze=je*this.width*4+8*Xe*4,wt=0;wt<8&&8*Xe+wt<this.width;wt++){var st=this.palette[ze>>7-wt&1];this.data[Ze+4*wt]=st.blue,this.data[Ze+4*wt+1]=st.green,this.data[Ze+4*wt+2]=st.red,this.data[Ze+4*wt+3]=255}Ne!==0&&(this.pos+=4-Ne)}},Ar.prototype.bit4=function(){for(var Qe=Math.ceil(this.width/2),Se=Qe%4,Ne=this.height-1;Ne>=0;Ne--){for(var je=this.bottom_up?Ne:this.height-1-Ne,Xe=0;Xe<Qe;Xe++){var ze=this.datav.getUint8(this.pos++,!0),Ze=je*this.width*4+2*Xe*4,wt=ze>>4,st=15&ze,Jt=this.palette[wt];if(this.data[Ze]=Jt.blue,this.data[Ze+1]=Jt.green,this.data[Ze+2]=Jt.red,this.data[Ze+3]=255,2*Xe+1>=this.width)break;Jt=this.palette[st],this.data[Ze+4]=Jt.blue,this.data[Ze+4+1]=Jt.green,this.data[Ze+4+2]=Jt.red,this.data[Ze+4+3]=255}Se!==0&&(this.pos+=4-Se)}},Ar.prototype.bit8=function(){for(var Qe=this.width%4,Se=this.height-1;Se>=0;Se--){for(var Ne=this.bottom_up?Se:this.height-1-Se,je=0;je<this.width;je++){var Xe=this.datav.getUint8(this.pos++,!0),ze=Ne*this.width*4+4*je;if(Xe<this.palette.length){var Ze=this.palette[Xe];this.data[ze]=Ze.red,this.data[ze+1]=Ze.green,this.data[ze+2]=Ze.blue,this.data[ze+3]=255}else this.data[ze]=255,this.data[ze+1]=255,this.data[ze+2]=255,this.data[ze+3]=255}Qe!==0&&(this.pos+=4-Qe)}},Ar.prototype.bit15=function(){for(var Qe=this.width%3,Se=parseInt("11111",2),Ne=this.height-1;Ne>=0;Ne--){for(var je=this.bottom_up?Ne:this.height-1-Ne,Xe=0;Xe<this.width;Xe++){var ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ze=(ze&Se)/Se*255|0,wt=(ze>>5&Se)/Se*255|0,st=(ze>>10&Se)/Se*255|0,Jt=ze>>15?255:0,Rr=je*this.width*4+4*Xe;this.data[Rr]=st,this.data[Rr+1]=wt,this.data[Rr+2]=Ze,this.data[Rr+3]=Jt}this.pos+=Qe}},Ar.prototype.bit16=function(){for(var Qe=this.width%3,Se=parseInt("11111",2),Ne=parseInt("111111",2),je=this.height-1;je>=0;je--){for(var Xe=this.bottom_up?je:this.height-1-je,ze=0;ze<this.width;ze++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var wt=(Ze&Se)/Se*255|0,st=(Ze>>5&Ne)/Ne*255|0,Jt=(Ze>>11)/Se*255|0,Rr=Xe*this.width*4+4*ze;this.data[Rr]=Jt,this.data[Rr+1]=st,this.data[Rr+2]=wt,this.data[Rr+3]=255}this.pos+=Qe}},Ar.prototype.bit24=function(){for(var Qe=this.height-1;Qe>=0;Qe--){for(var Se=this.bottom_up?Qe:this.height-1-Qe,Ne=0;Ne<this.width;Ne++){var je=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0),Ze=Se*this.width*4+4*Ne;this.data[Ze]=ze,this.data[Ze+1]=Xe,this.data[Ze+2]=je,this.data[Ze+3]=255}this.pos+=this.width%4}},Ar.prototype.bit32=function(){for(var Qe=this.height-1;Qe>=0;Qe--)for(var Se=this.bottom_up?Qe:this.height-1-Qe,Ne=0;Ne<this.width;Ne++){var je=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),ze=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),wt=Se*this.width*4+4*Ne;this.data[wt]=ze,this.data[wt+1]=Xe,this.data[wt+2]=je,this.data[wt+3]=Ze}},Ar.prototype.getData=function(){return this.data},function(Qe){Qe.processBMP=function(Se,Ne,je,Xe){var ze=new Ar(Se,!1),Ze=ze.width,wt=ze.height,st={data:ze.getData(),width:Ze,height:wt},Jt=new Ot(100).encode(st,100);return Qe.processJPEG.call(this,Jt,Ne,je,Xe)}}(U.API),Pr.prototype.getData=function(){return this.data},function(Qe){Qe.processWEBP=function(Se,Ne,je,Xe){var ze=new Pr(Se,!1),Ze=ze.width,wt=ze.height,st={data:ze.getData(),width:Ze,height:wt},Jt=new Ot(100).encode(st,100);return Qe.processJPEG.call(this,Jt,Ne,je,Xe)}}(U.API),U.API.processRGBA=function(Qe,Se,Ne){for(var je=Qe.data,Xe=je.length,ze=new Uint8Array(Xe/4*3),Ze=new Uint8Array(Xe/4),wt=0,st=0,Jt=0;Jt<Xe;Jt+=4){var Rr=je[Jt],Ir=je[Jt+1],Xr=je[Jt+2],er=je[Jt+3];ze[wt++]=Rr,ze[wt++]=Ir,ze[wt++]=Xr,Ze[st++]=er}var pn=this.__addimage__.arrayBufferToBinaryString(ze);return{alpha:this.__addimage__.arrayBufferToBinaryString(Ze),data:pn,index:Se,alias:Ne,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Qe.width,height:Qe.height}},U.API.setLanguage=function(Qe){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Qe]!==void 0&&(this.internal.languageSettings.languageCode=Qe,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ft=U.API,bt=Ft.getCharWidthsArray=function(Qe,Se){var Ne,je,Xe=(Se=Se||{}).font||this.internal.getFont(),ze=Se.fontSize||this.internal.getFontSize(),Ze=Se.charSpace||this.internal.getCharSpace(),wt=Se.widths?Se.widths:Xe.metadata.Unicode.widths,st=wt.fof?wt.fof:1,Jt=Se.kerning?Se.kerning:Xe.metadata.Unicode.kerning,Rr=Jt.fof?Jt.fof:1,Ir=Se.doKerning!==!1,Xr=0,er=Qe.length,pn=0,fr=wt[0]||st,mn=[];for(Ne=0;Ne<er;Ne++)je=Qe.charCodeAt(Ne),typeof Xe.metadata.widthOfString=="function"?mn.push((Xe.metadata.widthOfGlyph(Xe.metadata.characterToGlyph(je))+Ze*(1e3/ze)||0)/1e3):(Xr=Ir&&C()(Jt[je])==="object"&&!isNaN(parseInt(Jt[je][pn],10))?Jt[je][pn]/Rr:0,mn.push((wt[je]||fr)/st+Xr)),pn=je;return mn},Oe=Ft.getStringUnitWidth=function(Qe,Se){var Ne=(Se=Se||{}).fontSize||this.internal.getFontSize(),je=Se.font||this.internal.getFont(),Xe=Se.charSpace||this.internal.getCharSpace();return Ft.processArabic&&(Qe=Ft.processArabic(Qe)),typeof je.metadata.widthOfString=="function"?je.metadata.widthOfString(Qe,Ne,Xe)/Ne:bt.apply(this,arguments).reduce(function(ze,Ze){return ze+Ze},0)},Ee=function(Se,Ne,je,Xe){for(var ze=[],Ze=0,wt=Se.length,st=0;Ze!==wt&&st+Ne[Ze]<je;)st+=Ne[Ze],Ze++;ze.push(Se.slice(0,Ze));var Jt=Ze;for(st=0;Ze!==wt;)st+Ne[Ze]>Xe&&(ze.push(Se.slice(Jt,Ze)),st=0,Jt=Ze),st+=Ne[Ze],Ze++;return Jt!==Ze&&ze.push(Se.slice(Jt,Ze)),ze},Ie=function(Se,Ne,je){je||(je={});var Xe,ze,Ze,wt,st,Jt,Rr,Ir=[],Xr=[Ir],er=je.textIndent||0,pn=0,fr=0,mn=Se.split(" "),en=bt.apply(this,[" ",je])[0];if(Jt=je.lineIndent===-1?mn[0].length+2:je.lineIndent||0){var Mr=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=Oe.apply(this,[Mr,je])}for(Ze=0,wt=mn.length;Ze<wt;Ze++){var di=0;if(Xe=mn[Ze],Jt&&Xe[0]==`
|
|
|
`&&(Xe=Xe.substr(1),di=1),er+pn+(fr=(ze=bt.apply(this,[Xe,je])).reduce(function(_i,Br){return _i+Br},0))>Ne||di){if(fr>Ne){for(st=Ee.apply(this,[Xe,ze,Ne-(er+pn),Ne]),Ir.push(st.shift()),Ir=[st.pop()];st.length;)Xr.push([st.shift()]);fr=ze.slice(Xe.length-(Ir[0]?Ir[0].length:0)).reduce(function(_i,Br){return _i+Br},0)}else Ir=[Xe];Xr.push(Ir),er=fr+Jt,pn=en}else Ir.push(Xe),er+=pn+fr,pn=en}return Rr=Jt?function(_i,Br){return(Br?Mr:"")+_i.join(" ")}:function(_i){return _i.join(" ")},Xr.map(Rr)},Ft.splitTextToSize=function(Qe,Se,Ne){var je,Xe=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),ze=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,Ne);je=Array.isArray(Qe)?Qe:String(Qe).split(/\r?\n/);var Ze=1*this.internal.scaleFactor*Se/Xe;ze.textIndent=Ne.textIndent?1*Ne.textIndent*this.internal.scaleFactor/Xe:0,ze.lineIndent=Ne.lineIndent;var wt,st,Jt=[];for(wt=0,st=je.length;wt<st;wt++)Jt=Jt.concat(Ie.apply(this,[je[wt],Ze,ze]));return Jt},function(Qe){Qe.__fontmetrics__=Qe.__fontmetrics__||{};for(var Se="klmnopqrstuvwxyz",Ne={},je={},Xe=0;Xe<Se.length;Xe++)Ne[Se[Xe]]="0123456789abcdef"[Xe],je["0123456789abcdef"[Xe]]=Se[Xe];var ze=function(Xr){return"0x"+parseInt(Xr,10).toString(16)},Ze=Qe.__fontmetrics__.compress=function(Ir){var Xr,er,pn,fr,mn=["{"];for(var en in Ir){if(Xr=Ir[en],isNaN(parseInt(en,10))?er="'"+en+"'":(en=parseInt(en,10),er=(er=ze(en).slice(2)).slice(0,-1)+je[er.slice(-1)]),typeof Xr=="number")Xr<0?(pn=ze(Xr).slice(3),fr="-"):(pn=ze(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=Ze(Xr)}mn.push(er+pn)}return mn.push("}"),mn.join("")},wt=Qe.__fontmetrics__.uncompress=function(Ir){if(typeof Ir!="string")throw new Error("Invalid argument passed to uncompress.");for(var Xr,er,pn,fr,mn={},en=1,Mr=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([Mr,pn]),Mr={},pn=void 0):fr=="}"?((er=Gn.pop())[0][er[1]]=Mr,pn=void 0,Mr=er[0]):fr=="-"?en=-1:pn===void 0?Ne.hasOwnProperty(fr)?(di+=Ne[fr],pn=parseInt(di,16)*en,en=1,di=""):di+=fr:Ne.hasOwnProperty(fr)?(_i+=Ne[fr],Mr[pn]=parseInt(_i,16)*en,en=1,pn=void 0,_i=""):_i+=fr;return mn},st={codePages:["WinAnsiEncoding"],WinAnsiEncoding:wt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Jt={Unicode:{Courier:st,"Courier-Bold":st,"Courier-BoldOblique":st,"Courier-Oblique":st,Helvetica:st,"Helvetica-Bold":st,"Helvetica-BoldOblique":st,"Helvetica-Oblique":st,"Times-Roman":st,"Times-Bold":st,"Times-BoldItalic":st,"Times-Italic":st}},Rr={Unicode:{"Courier-Oblique":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":wt("{'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":wt("{'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:wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":wt("{'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:wt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:wt("{'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":wt("{'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:wt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":wt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":wt("{'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":wt("{'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":wt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Qe.events.push(["addFont",function(Ir){var Xr=Ir.font,er=Rr.Unicode[Xr.postScriptName];er&&(Xr.metadata.Unicode={},Xr.metadata.Unicode.widths=er.widths,Xr.metadata.Unicode.kerning=er.kerning);var pn=Jt.Unicode[Xr.postScriptName];pn&&(Xr.metadata.Unicode.encoding=pn,Xr.encoding=pn.codePages[0])}])}(U.API),function(Qe){var Se=function(je){for(var Xe=je.length,ze=new Uint8Array(Xe),Ze=0;Ze<Xe;Ze++)ze[Ze]=je.charCodeAt(Ze);return ze};Qe.API.events.push(["addFont",function(Ne){var je=void 0,Xe=Ne.font,ze=Ne.instance;if(!Xe.isStandardFont){if(ze===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Xe.postScriptName+"').");if(typeof(je=ze.existsFileInVFS(Xe.postScriptName)===!1?ze.loadFile(Xe.postScriptName):ze.getFileFromVFS(Xe.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Xe.postScriptName+"').");!function(Ze,wt){wt=/^\x00\x01\x00\x00/.test(wt)?Se(wt):Se(i(wt)),Ze.metadata=Qe.API.TTFFont.open(wt),Ze.metadata.Unicode=Ze.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Ze.metadata.glyIdsUsed=[0]}(Xe,je)}}])}(U),function(Qe){function Se(){return(w.canvg?Promise.resolve(w.canvg):Promise.all([d.e(0),d.e(241)]).then(d.bind(null,"DXPr"))).catch(function(Ne){return Promise.reject(new Error("Could not load canvg: "+Ne))}).then(function(Ne){return Ne.default?Ne.default:Ne})}U.API.addSvgAsImage=function(Ne,je,Xe,ze,Ze,wt,st,Jt){if(isNaN(je)||isNaN(Xe))throw f.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(ze)||isNaN(Ze))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=ze,Rr.height=Ze;var Ir=Rr.getContext("2d");Ir.fillStyle="#fff",Ir.fillRect(0,0,Rr.width,Rr.height);var Xr={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},er=this;return Se().then(function(pn){return pn.fromString(Ir,Ne,Xr)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(pn){return pn.render(Xr)}).then(function(){er.addImage(Rr.toDataURL("image/jpeg",1),je,Xe,ze,Ze,st,Jt)})}}(),U.API.putTotalPages=function(Qe){var Se,Ne=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Se=new RegExp(Qe,"g"),Ne=this.internal.getNumberOfPages()):(Se=new RegExp(this.pdfEscape16(Qe,this.internal.getFont()),"g"),Ne=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var je=1;je<=this.internal.getNumberOfPages();je++)for(var Xe=0;Xe<this.internal.pages[je].length;Xe++)this.internal.pages[je][Xe]=this.internal.pages[je][Xe].replace(Se,Ne);return this},U.API.viewerPreferences=function(Qe,Se){var Ne;Qe=Qe||{},Se=Se||!1;var je,Xe,ze,Ze={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},wt=Object.keys(Ze),st=[],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(Ze)),this.internal.viewerpreferences.isSubscribed=!1),Ne=this.internal.viewerpreferences.configuration,Qe==="reset"||Se===!0){var er=wt.length;for(Ir=0;Ir<er;Ir+=1)Ne[wt[Ir]].value=Ne[wt[Ir]].defaultValue,Ne[wt[Ir]].explicitSet=!1}if(C()(Qe)==="object"){for(Xe in Qe)if(ze=Qe[Xe],Xr(wt,Xe)&&ze!==void 0){if(Ne[Xe].type==="boolean"&&typeof ze=="boolean")Ne[Xe].value=ze;else if(Ne[Xe].type==="name"&&Xr(Ne[Xe].valueSet,ze))Ne[Xe].value=ze;else if(Ne[Xe].type==="integer"&&Number.isInteger(ze))Ne[Xe].value=ze;else if(Ne[Xe].type==="array"){for(Jt=0;Jt<ze.length;Jt+=1)if(je=!0,ze[Jt].length===1&&typeof ze[Jt][0]=="number")st.push(String(ze[Jt]-1));else if(ze[Jt].length>1){for(Rr=0;Rr<ze[Jt].length;Rr+=1)typeof ze[Jt][Rr]!="number"&&(je=!1);je===!0&&st.push([ze[Jt][0]-1,ze[Jt][1]-1].join(" "))}Ne[Xe].value="["+st.join(" ")+"]"}else Ne[Xe].value=Ne[Xe].defaultValue;Ne[Xe].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var pn,fr=[];for(pn in Ne)Ne[pn].explicitSet===!0&&(Ne[pn].type==="name"?fr.push("/"+pn+" /"+Ne[pn].value):fr.push("/"+pn+" "+Ne[pn].value));fr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+fr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ne,this},function(Qe){var Se=function(){var Xe='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',ze=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Ze=unescape(encodeURIComponent(Xe)),wt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),st=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Jt=unescape(encodeURIComponent("</x:xmpmeta>")),Rr=Ze.length+wt.length+st.length+ze.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(ze+Ze+wt+st+Jt),this.internal.write("endstream"),this.internal.write("endobj")},Ne=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Qe.addMetadata=function(je,Xe){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:je,namespaceuri:Xe||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ne),this.internal.events.subscribe("postPutResources",Se)),this}}(U.API),function(Qe){var Se=Qe.API,Ne=Se.pdfEscape16=function(ze,Ze){for(var wt,st=Ze.metadata.Unicode.widths,Jt=["","0","00","000","0000"],Rr=[""],Ir=0,Xr=ze.length;Ir<Xr;++Ir){if(wt=Ze.metadata.characterToGlyph(ze.charCodeAt(Ir)),Ze.metadata.glyIdsUsed.push(wt),Ze.metadata.toUnicode[wt]=ze.charCodeAt(Ir),st.indexOf(wt)==-1&&(st.push(wt),st.push([parseInt(Ze.metadata.widthOfGlyph(wt),10)])),wt=="0")return Rr.join("");wt=wt.toString(16),Rr.push(Jt[4-wt.length],wt)}return Rr.join("")},je=function(Ze){var wt,st,Jt,Rr,Ir,Xr,er;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,er=(st=Object.keys(Ze).sort(function(pn,fr){return pn-fr})).length;Xr<er;Xr++)wt=st[Xr],Jt.length>=100&&(Ir+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Jt=[]),Ze[wt]!==void 0&&Ze[wt]!==null&&typeof Ze[wt].toString=="function"&&(Rr=("0000"+Ze[wt].toString(16)).slice(-4),wt=("0000"+(+wt).toString(16)).slice(-4),Jt.push("<"+wt+"><"+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(ze){!function(Ze){var wt=Ze.font,st=Ze.out,Jt=Ze.newObject,Rr=Ze.putStream;if(wt.metadata instanceof Qe.API.TTFFont&&wt.encoding==="Identity-H"){for(var Ir=wt.metadata.Unicode.widths,Xr=wt.metadata.subset.encode(wt.metadata.glyIdsUsed,1),er="",pn=0;pn<Xr.length;pn++)er+=String.fromCharCode(Xr[pn]);var fr=Jt();Rr({data:er,addLength1:!0,objectId:fr}),st("endobj");var mn=Jt();Rr({data:je(wt.metadata.toUnicode),addLength1:!0,objectId:mn}),st("endobj");var en=Jt();st("<<"),st("/Type /FontDescriptor"),st("/FontName /"+D(wt.fontName)),st("/FontFile2 "+fr+" 0 R"),st("/FontBBox "+Qe.API.PDFObject.convert(wt.metadata.bbox)),st("/Flags "+wt.metadata.flags),st("/StemV "+wt.metadata.stemV),st("/ItalicAngle "+wt.metadata.italicAngle),st("/Ascent "+wt.metadata.ascender),st("/Descent "+wt.metadata.decender),st("/CapHeight "+wt.metadata.capHeight),st(">>"),st("endobj");var Mr=Jt();st("<<"),st("/Type /Font"),st("/BaseFont /"+D(wt.fontName)),st("/FontDescriptor "+en+" 0 R"),st("/W "+Qe.API.PDFObject.convert(Ir)),st("/CIDToGIDMap /Identity"),st("/DW 1000"),st("/Subtype /CIDFontType2"),st("/CIDSystemInfo"),st("<<"),st("/Supplement 0"),st("/Registry (Adobe)"),st("/Ordering ("+wt.encoding+")"),st(">>"),st(">>"),st("endobj"),wt.objectNumber=Jt(),st("<<"),st("/Type /Font"),st("/Subtype /Type0"),st("/ToUnicode "+mn+" 0 R"),st("/BaseFont /"+D(wt.fontName)),st("/Encoding /"+wt.encoding),st("/DescendantFonts ["+Mr+" 0 R]"),st(">>"),st("endobj"),wt.isAlreadyPutted=!0}}(ze)}]),Se.events.push(["putFont",function(ze){!function(Ze){var wt=Ze.font,st=Ze.out,Jt=Ze.newObject,Rr=Ze.putStream;if(wt.metadata instanceof Qe.API.TTFFont&&wt.encoding==="WinAnsiEncoding"){for(var Ir=wt.metadata.rawData,Xr="",er=0;er<Ir.length;er++)Xr+=String.fromCharCode(Ir[er]);var pn=Jt();Rr({data:Xr,addLength1:!0,objectId:pn}),st("endobj");var fr=Jt();Rr({data:je(wt.metadata.toUnicode),addLength1:!0,objectId:fr}),st("endobj");var mn=Jt();st("<<"),st("/Descent "+wt.metadata.decender),st("/CapHeight "+wt.metadata.capHeight),st("/StemV "+wt.metadata.stemV),st("/Type /FontDescriptor"),st("/FontFile2 "+pn+" 0 R"),st("/Flags 96"),st("/FontBBox "+Qe.API.PDFObject.convert(wt.metadata.bbox)),st("/FontName /"+D(wt.fontName)),st("/ItalicAngle "+wt.metadata.italicAngle),st("/Ascent "+wt.metadata.ascender),st(">>"),st("endobj"),wt.objectNumber=Jt();for(var en=0;en<wt.metadata.hmtx.widths.length;en++)wt.metadata.hmtx.widths[en]=parseInt(wt.metadata.hmtx.widths[en]*(1e3/wt.metadata.head.unitsPerEm));st("<</Subtype/TrueType/Type/Font/ToUnicode "+fr+" 0 R/BaseFont/"+D(wt.fontName)+"/FontDescriptor "+mn+" 0 R/Encoding/"+wt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Qe.API.PDFObject.convert(wt.metadata.hmtx.widths)+">>"),st("endobj"),wt.isAlreadyPutted=!0}}(ze)}]);var Xe=function(Ze){var wt,st=Ze.text||"",Jt=Ze.x,Rr=Ze.y,Ir=Ze.options||{},Xr=Ze.mutex||{},er=Xr.pdfEscape,pn=Xr.activeFontKey,fr=Xr.fonts,mn=pn,en="",Mr=0,Gn="",di=fr[mn].encoding;if(fr[mn].encoding!=="Identity-H")return{text:st,x:Jt,y:Rr,options:Ir,mutex:Xr};for(Gn=st,mn=pn,Array.isArray(st)&&(Gn=st[0]),Mr=0;Mr<Gn.length;Mr+=1)fr[mn].metadata.hasOwnProperty("cmap")&&(wt=fr[mn].metadata.cmap.unicode.codeMap[Gn[Mr].charCodeAt(0)]),wt||Gn[Mr].charCodeAt(0)<256&&fr[mn].metadata.hasOwnProperty("Unicode")?en+=Gn[Mr]:en+="";var _i="";return parseInt(mn.slice(1))<14||di==="WinAnsiEncoding"?_i=er(en,mn).split("").map(function(Br){return Br.charCodeAt(0).toString(16)}).join(""):di==="Identity-H"&&(_i=Ne(en,fr[mn])),Xr.isHex=!0,{text:_i,x:Jt,y:Rr,options:Ir,mutex:Xr}};Se.events.push(["postProcessText",function(ze){var Ze=ze.text||"",wt=[],st={text:Ze,x:ze.x,y:ze.y,options:ze.options,mutex:ze.mutex};if(Array.isArray(Ze)){var Jt=0;for(Jt=0;Jt<Ze.length;Jt+=1)Array.isArray(Ze[Jt])&&Ze[Jt].length===3?wt.push([Xe(Object.assign({},st,{text:Ze[Jt][0]})).text,Ze[Jt][1],Ze[Jt][2]]):wt.push(Xe(Object.assign({},st,{text:Ze[Jt]})).text);ze.text=wt}else ze.text=Xe(Object.assign({},st,{text:Ze})).text}])}(U),function(Qe){var Se=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Qe.existsFileInVFS=function(Ne){return Se.call(this),this.internal.vFS[Ne]!==void 0},Qe.addFileToVFS=function(Ne,je){return Se.call(this),this.internal.vFS[Ne]=je,this},Qe.getFileFromVFS=function(Ne){return Se.call(this),this.internal.vFS[Ne]!==void 0?this.internal.vFS[Ne]:null}}(U.API),function(Qe){Qe.__bidiEngine__=Qe.prototype.__bidiEngine__=function(je){var Xe,ze,Ze,wt,st,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]],er=[[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)$/),Mr=!1,Gn=0;this.__bidiEngine__={};var di=function(Ct){var Nt=Ct.charCodeAt(),gt=Nt>>8,Qt=fr[gt];return Qt!==void 0?Ir[256*Qt+(255&Nt)]:gt===252||gt===253?"AL":en.test(gt)?"L":gt===8?"R":"N"},_i=function(Ct){for(var Nt,gt=0;gt<Ct.length;gt++){if((Nt=di(Ct.charAt(gt)))==="L")return!1;if(Nt==="R")return!0}return!1},Br=function(Ct,Nt,gt,Qt){var tr,ar,yr,xn,vn=Nt[Qt];switch(vn){case"L":case"R":Mr=!1;break;case"N":case"AN":break;case"EN":Mr&&(vn="AN");break;case"AL":Mr=!0,vn="R";break;case"WS":vn="N";break;case"CS":Qt<1||Qt+1>=Nt.length||(tr=gt[Qt-1])!=="EN"&&tr!=="AN"||(ar=Nt[Qt+1])!=="EN"&&ar!=="AN"?vn="N":Mr&&(ar="AN"),vn=ar===tr?ar:"N";break;case"ES":vn=(tr=Qt>0?gt[Qt-1]:"B")==="EN"&&Qt+1<Nt.length&&Nt[Qt+1]==="EN"?"EN":"N";break;case"ET":if(Qt>0&>[Qt-1]==="EN"){vn="EN";break}if(Mr){vn="N";break}for(yr=Qt+1,xn=Nt.length;yr<xn&&Nt[yr]==="ET";)yr++;vn=yr<xn&&Nt[yr]==="EN"?"EN":"N";break;case"NSM":if(Ze&&!wt){for(xn=Nt.length,yr=Qt+1;yr<xn&&Nt[yr]==="NSM";)yr++;if(yr<xn){var zn=Ct[Qt],Yr=zn>=1425&&zn<=2303||zn===64286;if(tr=Nt[yr],Yr&&(tr==="R"||tr==="AL")){vn="R";break}}}vn=Qt<1||(tr=Nt[Qt-1])==="B"?"N":gt[Qt-1];break;case"B":Mr=!1,Xe=!0,vn=Gn;break;case"S":ze=!0,vn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Mr=!1;break;case"BN":vn="N"}return vn},sn=function(Ct,Nt,gt){var Qt=Ct.split("");return gt&&Sn(Qt,gt,{hiLevel:Gn}),Qt.reverse(),Nt&&Nt.reverse(),Qt.join("")},Sn=function(Ct,Nt,gt){var Qt,tr,ar,yr,xn,vn=-1,zn=Ct.length,Yr=0,xr=[],ln=Gn?er:Xr,On=[];for(Mr=!1,Xe=!1,ze=!1,tr=0;tr<zn;tr++)On[tr]=di(Ct[tr]);for(ar=0;ar<zn;ar++){if(xn=Yr,xr[ar]=Br(Ct,On,xr,ar),Qt=240&(Yr=ln[xn][pn[xr[ar]]]),Yr&=15,Nt[ar]=yr=ln[Yr][5],Qt>0)if(Qt===16){for(tr=vn;tr<ar;tr++)Nt[tr]=1;vn=-1}else vn=-1;if(ln[Yr][6])vn===-1&&(vn=ar);else if(vn>-1){for(tr=vn;tr<ar;tr++)Nt[tr]=yr;vn=-1}On[ar]==="B"&&(Nt[ar]=0),gt.hiLevel|=yr}ze&&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,Nt,zn)},Dt=function(Ct,Nt,gt,Qt,tr){if(!(tr.hiLevel<Ct)){if(Ct===1&&Gn===1&&!Xe)return Nt.reverse(),void(gt&>.reverse());for(var ar,yr,xn,vn,zn=Nt.length,Yr=0;Yr<zn;){if(Qt[Yr]>=Ct){for(xn=Yr+1;xn<zn&&Qt[xn]>=Ct;)xn++;for(vn=Yr,yr=xn-1;vn<yr;vn++,yr--)ar=Nt[vn],Nt[vn]=Nt[yr],Nt[yr]=ar,gt&&(ar=gt[vn],gt[vn]=gt[yr],gt[yr]=ar);Yr=xn}Yr++}}},ft=function(Ct,Nt,gt){var Qt=Ct.split(""),tr={hiLevel:Gn};return gt||(gt=[]),Sn(Qt,gt,tr),function(ar,yr,xn){if(xn.hiLevel!==0&&Rr)for(var vn,zn=0;zn<ar.length;zn++)yr[zn]===1&&(vn=mn.indexOf(ar[zn]))>=0&&(ar[zn]=mn[vn+1])}(Qt,gt,tr),Dt(2,Qt,Nt,gt,tr),Dt(1,Qt,Nt,gt,tr),Qt.join("")};return this.__bidiEngine__.doBidiReorder=function(St,Ct,Nt){if(function(Qt,tr){if(tr)for(var ar=0;ar<Qt.length;ar++)tr[ar]=ar;wt===void 0&&(wt=_i(Qt)),Jt===void 0&&(Jt=_i(Qt))}(St,Ct),Ze||!st||Jt)if(Ze&&st&&wt^Jt)Gn=wt?1:0,St=sn(St,Ct,Nt);else if(!Ze&&st&&Jt)Gn=wt?1:0,St=ft(St,Ct,Nt),St=sn(St,Ct);else if(!Ze||wt||st||Jt){if(Ze&&!st&&wt^Jt)St=sn(St,Ct),wt?(Gn=0,St=ft(St,Ct,Nt)):(Gn=1,St=ft(St,Ct,Nt),St=sn(St,Ct));else if(Ze&&wt&&!st&&Jt)Gn=1,St=ft(St,Ct,Nt),St=sn(St,Ct);else if(!Ze&&!st&&wt^Jt){var gt=Rr;wt?(Gn=1,St=ft(St,Ct,Nt),Gn=0,Rr=!1,St=ft(St,Ct,Nt),Rr=gt):(Gn=0,St=ft(St,Ct,Nt),St=sn(St,Ct),Gn=1,Rr=!1,St=ft(St,Ct,Nt),Rr=gt,St=sn(St,Ct))}}else Gn=0,St=ft(St,Ct,Nt);else Gn=wt?1:0,St=ft(St,Ct,Nt);return St},this.__bidiEngine__.setOptions=function(St){St&&(Ze=St.isInputVisual,st=St.isOutputVisual,wt=St.isInputRtl,Jt=St.isOutputRtl,Rr=St.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"],Ne=new Qe.__bidiEngine__({isInputVisual:!0});Qe.API.events.push(["postProcessText",function(je){var Xe=je.text,ze=(je.x,je.y,je.options||{}),Ze=(je.mutex,ze.lang,[]);if(ze.isInputVisual=typeof ze.isInputVisual!="boolean"||ze.isInputVisual,Ne.setOptions(ze),Object.prototype.toString.call(Xe)==="[object Array]"){var wt=0;for(Ze=[],wt=0;wt<Xe.length;wt+=1)Object.prototype.toString.call(Xe[wt])==="[object Array]"?Ze.push([Ne.doBidiReorder(Xe[wt][0]),Xe[wt][1],Xe[wt][2]]):Ze.push([Ne.doBidiReorder(Xe[wt])]);je.text=Ze}else je.text=Ne.doBidiReorder(Xe);Ne.setOptions({isInputVisual:!0})}])}(U),U.API.TTFFont=function(){function Qe(Se){var Ne;if(this.rawData=Se,Ne=this.contents=new It(Se),this.contents.pos=4,Ne.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ne.pos=0,this.parse(),this.subset=new Ii(this),this.registerTTF()}return Qe.open=function(Se){return new Qe(Se)},Qe.prototype.parse=function(){return this.directory=new nt(this.contents),this.head=new Pt(this),this.name=new gr(this),this.cmap=new Kt(this),this.toUnicode={},this.hhea=new yt(this),this.maxp=new Jr(this),this.hmtx=new $r(this),this.post=new Sr(this),this.os2=new kt(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]},Qe.prototype.registerTTF=function(){var Se,Ne,je,Xe,ze;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Ze,wt,st,Jt;for(Jt=[],Ze=0,wt=(st=this.bbox).length;Ze<wt;Ze++)Se=st[Ze],Jt.push(Math.round(Se*this.scaleFactor));return Jt}.call(this),this.stemV=0,this.post.exists?(je=255&(Xe=this.post.italic_angle),(32768&(Ne=Xe>>16))!=0&&(Ne=-(1+(65535^Ne))),this.italicAngle=+(Ne+"."+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=(ze=this.familyClass)===1||ze===2||ze===3||ze===4||ze===5||ze===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Qe.prototype.characterToGlyph=function(Se){var Ne;return((Ne=this.cmap.unicode)!=null?Ne.codeMap[Se]:void 0)||0},Qe.prototype.widthOfGlyph=function(Se){var Ne;return Ne=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Se).advance*Ne},Qe.prototype.widthOfString=function(Se,Ne,je){var Xe,ze,Ze,wt;for(Ze=0,ze=0,wt=(Se=""+Se).length;0<=wt?ze<wt:ze>wt;ze=0<=wt?++ze:--ze)Xe=Se.charCodeAt(ze),Ze+=this.widthOfGlyph(this.characterToGlyph(Xe))+je*(1e3/Ne)||0;return Ze*(Ne/1e3)},Qe.prototype.lineHeight=function(Se,Ne){var je;return Ne==null&&(Ne=!1),je=Ne?this.lineGap:0,(this.ascender+je-this.decender)/1e3*Se},Qe}();var un,It=function(){function Qe(Se){this.data=Se!=null?Se:[],this.pos=0,this.length=this.data.length}return Qe.prototype.readByte=function(){return this.data[this.pos++]},Qe.prototype.writeByte=function(Se){return this.data[this.pos++]=Se},Qe.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Qe.prototype.writeUInt32=function(Se){return this.writeByte(Se>>>24&255),this.writeByte(Se>>16&255),this.writeByte(Se>>8&255),this.writeByte(255&Se)},Qe.prototype.readInt32=function(){var Se;return(Se=this.readUInt32())>=2147483648?Se-4294967296:Se},Qe.prototype.writeInt32=function(Se){return Se<0&&(Se+=4294967296),this.writeUInt32(Se)},Qe.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Qe.prototype.writeUInt16=function(Se){return this.writeByte(Se>>8&255),this.writeByte(255&Se)},Qe.prototype.readInt16=function(){var Se;return(Se=this.readUInt16())>=32768?Se-65536:Se},Qe.prototype.writeInt16=function(Se){return Se<0&&(Se+=65536),this.writeUInt16(Se)},Qe.prototype.readString=function(Se){var Ne,je;for(je=[],Ne=0;0<=Se?Ne<Se:Ne>Se;Ne=0<=Se?++Ne:--Ne)je[Ne]=String.fromCharCode(this.readByte());return je.join("")},Qe.prototype.writeString=function(Se){var Ne,je,Xe;for(Xe=[],Ne=0,je=Se.length;0<=je?Ne<je:Ne>je;Ne=0<=je?++Ne:--Ne)Xe.push(this.writeByte(Se.charCodeAt(Ne)));return Xe},Qe.prototype.readShort=function(){return this.readInt16()},Qe.prototype.writeShort=function(Se){return this.writeInt16(Se)},Qe.prototype.readLongLong=function(){var Se,Ne,je,Xe,ze,Ze,wt,st;return Se=this.readByte(),Ne=this.readByte(),je=this.readByte(),Xe=this.readByte(),ze=this.readByte(),Ze=this.readByte(),wt=this.readByte(),st=this.readByte(),128&Se?-1*(72057594037927940*(255^Se)+281474976710656*(255^Ne)+1099511627776*(255^je)+4294967296*(255^Xe)+16777216*(255^ze)+65536*(255^Ze)+256*(255^wt)+(255^st)+1):72057594037927940*Se+281474976710656*Ne+1099511627776*je+4294967296*Xe+16777216*ze+65536*Ze+256*wt+st},Qe.prototype.writeLongLong=function(Se){var Ne,je;return Ne=Math.floor(Se/4294967296),je=4294967295&Se,this.writeByte(Ne>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne),this.writeByte(je>>24&255),this.writeByte(je>>16&255),this.writeByte(je>>8&255),this.writeByte(255&je)},Qe.prototype.readInt=function(){return this.readInt32()},Qe.prototype.writeInt=function(Se){return this.writeInt32(Se)},Qe.prototype.read=function(Se){var Ne,je;for(Ne=[],je=0;0<=Se?je<Se:je>Se;je=0<=Se?++je:--je)Ne.push(this.readByte());return Ne},Qe.prototype.write=function(Se){var Ne,je,Xe,ze;for(ze=[],je=0,Xe=Se.length;je<Xe;je++)Ne=Se[je],ze.push(this.writeByte(Ne));return ze},Qe}(),nt=function(){var Qe;function Se(Ne){var je,Xe,ze;for(this.scalarType=Ne.readInt(),this.tableCount=Ne.readShort(),this.searchRange=Ne.readShort(),this.entrySelector=Ne.readShort(),this.rangeShift=Ne.readShort(),this.tables={},Xe=0,ze=this.tableCount;0<=ze?Xe<ze:Xe>ze;Xe=0<=ze?++Xe:--Xe)je={tag:Ne.readString(4),checksum:Ne.readInt(),offset:Ne.readInt(),length:Ne.readInt()},this.tables[je.tag]=je}return Se.prototype.encode=function(Ne){var je,Xe,ze,Ze,wt,st,Jt,Rr,Ir,Xr,er,pn,fr;for(fr in er=Object.keys(Ne).length,st=Math.log(2),Ir=16*Math.floor(Math.log(er)/st),Ze=Math.floor(Ir/st),Rr=16*er-Ir,(Xe=new It).writeInt(this.scalarType),Xe.writeShort(er),Xe.writeShort(Ir),Xe.writeShort(Ze),Xe.writeShort(Rr),ze=16*er,Jt=Xe.pos+ze,wt=null,pn=[],Ne)for(Xr=Ne[fr],Xe.writeString(fr),Xe.writeInt(Qe(Xr)),Xe.writeInt(Jt),Xe.writeInt(Xr.length),pn=pn.concat(Xr),fr==="head"&&(wt=Jt),Jt+=Xr.length;Jt%4;)pn.push(0),Jt++;return Xe.write(pn),je=2981146554-Qe(Xe.data),Xe.pos=wt+8,Xe.writeUInt32(je),Xe.data},Qe=function(je){var Xe,ze,Ze,wt;for(je=kn.call(je);je.length%4;)je.push(0);for(Ze=new It(je),ze=0,Xe=0,wt=je.length;Xe<wt;Xe=Xe+=4)ze+=Ze.readUInt32();return 4294967295&ze},Se}(),at={}.hasOwnProperty,rr=function(Se,Ne){for(var je in Ne)at.call(Ne,je)&&(Se[je]=Ne[je]);function Xe(){this.constructor=Se}return Xe.prototype=Ne.prototype,Se.prototype=new Xe,Se.__super__=Ne.prototype,Se};un=function(){function Qe(Se){var Ne;this.file=Se,Ne=this.file.directory.tables[this.tag],this.exists=!!Ne,Ne&&(this.offset=Ne.offset,this.length=Ne.length,this.parse(this.file.contents))}return Qe.prototype.parse=function(){},Qe.prototype.encode=function(){},Qe.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Qe}();var Pt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="head",Se.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.revision=Ne.readInt(),this.checkSumAdjustment=Ne.readInt(),this.magicNumber=Ne.readInt(),this.flags=Ne.readShort(),this.unitsPerEm=Ne.readShort(),this.created=Ne.readLongLong(),this.modified=Ne.readLongLong(),this.xMin=Ne.readShort(),this.yMin=Ne.readShort(),this.xMax=Ne.readShort(),this.yMax=Ne.readShort(),this.macStyle=Ne.readShort(),this.lowestRecPPEM=Ne.readShort(),this.fontDirectionHint=Ne.readShort(),this.indexToLocFormat=Ne.readShort(),this.glyphDataFormat=Ne.readShort()},Se.prototype.encode=function(Ne){var je;return(je=new It).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(Ne),je.writeShort(this.glyphDataFormat),je.data},Se}(),xt=function(){function Qe(Se,Ne){var je,Xe,ze,Ze,wt,st,Jt,Rr,Ir,Xr,er,pn,fr,mn,en,Mr,Gn;switch(this.platformID=Se.readUInt16(),this.encodingID=Se.readShort(),this.offset=Ne+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(st=0;st<256;++st)this.codeMap[st]=Se.readByte();break;case 4:for(er=Se.readUInt16(),Xr=er/2,Se.pos+=6,ze=function(){var di,_i;for(_i=[],st=di=0;0<=Xr?di<Xr:di>Xr;st=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Se.pos+=2,fr=function(){var di,_i;for(_i=[],st=di=0;0<=Xr?di<Xr:di>Xr;st=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Jt=function(){var di,_i;for(_i=[],st=di=0;0<=Xr?di<Xr:di>Xr;st=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Rr=function(){var di,_i;for(_i=[],st=di=0;0<=Xr?di<Xr:di>Xr;st=0<=Xr?++di:--di)_i.push(Se.readUInt16());return _i}(),Xe=(this.length-Se.pos+this.offset)/2,wt=function(){var di,_i;for(_i=[],st=di=0;0<=Xe?di<Xe:di>Xe;st=0<=Xe?++di:--di)_i.push(Se.readUInt16());return _i}(),st=en=0,Gn=ze.length;en<Gn;st=++en)for(mn=ze[st],je=Mr=pn=fr[st];pn<=mn?Mr<=mn:Mr>=mn;je=pn<=mn?++Mr:--Mr)Rr[st]===0?Ze=je+Jt[st]:(Ze=wt[Rr[st]/2+(je-pn)-(Xr-st)]||0)!==0&&(Ze+=Jt[st]),this.codeMap[je]=65535&Ze}Se.pos=Ir}return Qe.encode=function(Se,Ne){var je,Xe,ze,Ze,wt,st,Jt,Rr,Ir,Xr,er,pn,fr,mn,en,Mr,Gn,di,_i,Br,sn,Sn,Dt,ft,St,Ct,Nt,gt,Qt,tr,ar,yr,xn,vn,zn,Yr,xr,ln,On,In,Un,ti,ui,si,ki,zi;switch(gt=new It,Ze=Object.keys(Se).sort(function(Ri,Yi){return Ri-Yi}),Ne){case"macroman":for(fr=0,mn=function(){var Ri=[];for(pn=0;pn<256;++pn)Ri.push(0);return Ri}(),Mr={0:0},ze={},Qt=0,xn=Ze.length;Qt<xn;Qt++)Mr[ui=Se[Xe=Ze[Qt]]]==null&&(Mr[ui]=++fr),ze[Xe]={old:Se[Xe],new:Mr[Se[Xe]]},mn[Xe]=Mr[Se[Xe]];return gt.writeUInt16(1),gt.writeUInt16(0),gt.writeUInt32(12),gt.writeUInt16(0),gt.writeUInt16(262),gt.writeUInt16(0),gt.write(mn),{charMap:ze,subtable:gt.data,maxGlyphID:fr+1};case"unicode":for(Ct=[],Ir=[],Gn=0,Mr={},je={},en=Jt=null,tr=0,vn=Ze.length;tr<vn;tr++)Mr[_i=Se[Xe=Ze[tr]]]==null&&(Mr[_i]=++Gn),je[Xe]={old:_i,new:Mr[_i]},wt=Mr[_i]-Xe,en!=null&&wt===Jt||(en&&Ir.push(en),Ct.push(Xe),Jt=wt),en=Xe;for(en&&Ir.push(en),Ir.push(65535),Ct.push(65535),ft=2*(Dt=Ct.length),Sn=2*Math.pow(Math.log(Dt)/Math.LN2,2),Xr=Math.log(Sn/2)/Math.LN2,sn=2*Dt-Sn,st=[],Br=[],er=[],pn=ar=0,zn=Ct.length;ar<zn;pn=++ar){if(St=Ct[pn],Rr=Ir[pn],St===65535){st.push(0),Br.push(0);break}if(St-(Nt=je[St].new)>=32768)for(st.push(0),Br.push(2*(er.length+Dt-pn)),Xe=yr=St;St<=Rr?yr<=Rr:yr>=Rr;Xe=St<=Rr?++yr:--yr)er.push(je[Xe].new);else st.push(Nt-St),Br.push(0)}for(gt.writeUInt16(3),gt.writeUInt16(1),gt.writeUInt32(12),gt.writeUInt16(4),gt.writeUInt16(16+8*Dt+2*er.length),gt.writeUInt16(0),gt.writeUInt16(ft),gt.writeUInt16(Sn),gt.writeUInt16(Xr),gt.writeUInt16(sn),Un=0,Yr=Ir.length;Un<Yr;Un++)Xe=Ir[Un],gt.writeUInt16(Xe);for(gt.writeUInt16(0),ti=0,xr=Ct.length;ti<xr;ti++)Xe=Ct[ti],gt.writeUInt16(Xe);for(si=0,ln=st.length;si<ln;si++)wt=st[si],gt.writeUInt16(wt);for(ki=0,On=Br.length;ki<On;ki++)di=Br[ki],gt.writeUInt16(di);for(zi=0,In=er.length;zi<In;zi++)fr=er[zi],gt.writeUInt16(fr);return{charMap:je,subtable:gt.data,maxGlyphID:Gn+1}}},Qe}(),Kt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="cmap",Se.prototype.parse=function(Ne){var je,Xe,ze;for(Ne.pos=this.offset,this.version=Ne.readUInt16(),ze=Ne.readUInt16(),this.tables=[],this.unicode=null,Xe=0;0<=ze?Xe<ze:Xe>ze;Xe=0<=ze?++Xe:--Xe)je=new xt(Ne,this.offset),this.tables.push(je),je.isUnicode&&this.unicode==null&&(this.unicode=je);return!0},Se.encode=function(Ne,je){var Xe,ze;return je==null&&(je="macroman"),Xe=xt.encode(Ne,je),(ze=new It).writeUInt16(0),ze.writeUInt16(1),Xe.table=ze.data.concat(Xe.subtable),Xe},Se}(),yt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="hhea",Se.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.ascender=Ne.readShort(),this.decender=Ne.readShort(),this.lineGap=Ne.readShort(),this.advanceWidthMax=Ne.readShort(),this.minLeftSideBearing=Ne.readShort(),this.minRightSideBearing=Ne.readShort(),this.xMaxExtent=Ne.readShort(),this.caretSlopeRise=Ne.readShort(),this.caretSlopeRun=Ne.readShort(),this.caretOffset=Ne.readShort(),Ne.pos+=8,this.metricDataFormat=Ne.readShort(),this.numberOfMetrics=Ne.readUInt16()},Se}(),kt=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="OS/2",Se.prototype.parse=function(Ne){if(Ne.pos=this.offset,this.version=Ne.readUInt16(),this.averageCharWidth=Ne.readShort(),this.weightClass=Ne.readUInt16(),this.widthClass=Ne.readUInt16(),this.type=Ne.readShort(),this.ySubscriptXSize=Ne.readShort(),this.ySubscriptYSize=Ne.readShort(),this.ySubscriptXOffset=Ne.readShort(),this.ySubscriptYOffset=Ne.readShort(),this.ySuperscriptXSize=Ne.readShort(),this.ySuperscriptYSize=Ne.readShort(),this.ySuperscriptXOffset=Ne.readShort(),this.ySuperscriptYOffset=Ne.readShort(),this.yStrikeoutSize=Ne.readShort(),this.yStrikeoutPosition=Ne.readShort(),this.familyClass=Ne.readShort(),this.panose=function(){var je,Xe;for(Xe=[],je=0;je<10;++je)Xe.push(Ne.readByte());return Xe}(),this.charRange=function(){var je,Xe;for(Xe=[],je=0;je<4;++je)Xe.push(Ne.readInt());return Xe}(),this.vendorID=Ne.readString(4),this.selection=Ne.readShort(),this.firstCharIndex=Ne.readShort(),this.lastCharIndex=Ne.readShort(),this.version>0&&(this.ascent=Ne.readShort(),this.descent=Ne.readShort(),this.lineGap=Ne.readShort(),this.winAscent=Ne.readShort(),this.winDescent=Ne.readShort(),this.codePageRange=function(){var je,Xe;for(Xe=[],je=0;je<2;je=++je)Xe.push(Ne.readInt());return Xe}(),this.version>1))return this.xHeight=Ne.readShort(),this.capHeight=Ne.readShort(),this.defaultChar=Ne.readShort(),this.breakChar=Ne.readShort(),this.maxContext=Ne.readShort()},Se}(),Sr=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="post",Se.prototype.parse=function(Ne){var je,Xe,ze;switch(Ne.pos=this.offset,this.format=Ne.readInt(),this.italicAngle=Ne.readInt(),this.underlinePosition=Ne.readShort(),this.underlineThickness=Ne.readShort(),this.isFixedPitch=Ne.readInt(),this.minMemType42=Ne.readInt(),this.maxMemType42=Ne.readInt(),this.minMemType1=Ne.readInt(),this.maxMemType1=Ne.readInt(),this.format){case 65536:break;case 131072:var Ze;for(Xe=Ne.readUInt16(),this.glyphNameIndex=[],Ze=0;0<=Xe?Ze<Xe:Ze>Xe;Ze=0<=Xe?++Ze:--Ze)this.glyphNameIndex.push(Ne.readUInt16());for(this.names=[],ze=[];Ne.pos<this.offset+this.length;)je=Ne.readByte(),ze.push(this.names.push(Ne.readString(je)));return ze;case 151552:return Xe=Ne.readUInt16(),this.offsets=Ne.read(Xe);case 196608:break;case 262144:return this.map=function(){var wt,st,Jt;for(Jt=[],Ze=wt=0,st=this.file.maxp.numGlyphs;0<=st?wt<st:wt>st;Ze=0<=st?++wt:--wt)Jt.push(Ne.readUInt32());return Jt}.call(this)}},Se}(),hr=function(Se,Ne){this.raw=Se,this.length=Se.length,this.platformID=Ne.platformID,this.encodingID=Ne.encodingID,this.languageID=Ne.languageID},gr=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="name",Se.prototype.parse=function(Ne){var je,Xe,ze,Ze,wt,st,Jt,Rr,Ir,Xr,er;for(Ne.pos=this.offset,Ne.readShort(),je=Ne.readShort(),st=Ne.readShort(),Xe=[],Ze=0;0<=je?Ze<je:Ze>je;Ze=0<=je?++Ze:--Ze)Xe.push({platformID:Ne.readShort(),encodingID:Ne.readShort(),languageID:Ne.readShort(),nameID:Ne.readShort(),length:Ne.readShort(),offset:this.offset+st+Ne.readShort()});for(Jt={},Ze=Ir=0,Xr=Xe.length;Ir<Xr;Ze=++Ir)ze=Xe[Ze],Ne.pos=ze.offset,Rr=Ne.readString(ze.length),wt=new hr(Rr,ze),Jt[er=ze.nameID]==null&&(Jt[er]=[]),Jt[ze.nameID].push(wt);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(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="maxp",Se.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.numGlyphs=Ne.readUInt16(),this.maxPoints=Ne.readUInt16(),this.maxContours=Ne.readUInt16(),this.maxCompositePoints=Ne.readUInt16(),this.maxComponentContours=Ne.readUInt16(),this.maxZones=Ne.readUInt16(),this.maxTwilightPoints=Ne.readUInt16(),this.maxStorage=Ne.readUInt16(),this.maxFunctionDefs=Ne.readUInt16(),this.maxInstructionDefs=Ne.readUInt16(),this.maxStackElements=Ne.readUInt16(),this.maxSizeOfInstructions=Ne.readUInt16(),this.maxComponentElements=Ne.readUInt16(),this.maxComponentDepth=Ne.readUInt16()},Se}(),$r=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="hmtx",Se.prototype.parse=function(Ne){var je,Xe,ze,Ze,wt,st,Jt;for(Ne.pos=this.offset,this.metrics=[],je=0,st=this.file.hhea.numberOfMetrics;0<=st?je<st:je>st;je=0<=st?++je:--je)this.metrics.push({advance:Ne.readUInt16(),lsb:Ne.readInt16()});for(ze=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Rr,Ir;for(Ir=[],je=Rr=0;0<=ze?Rr<ze:Rr>ze;je=0<=ze?++Rr:--Rr)Ir.push(Ne.readInt16());return Ir}(),this.widths=function(){var Rr,Ir,Xr,er;for(er=[],Rr=0,Ir=(Xr=this.metrics).length;Rr<Ir;Rr++)Ze=Xr[Rr],er.push(Ze.advance);return er}.call(this),Xe=this.widths[this.widths.length-1],Jt=[],je=wt=0;0<=ze?wt<ze:wt>ze;je=0<=ze?++wt:--wt)Jt.push(this.widths.push(Xe));return Jt},Se.prototype.forGlyph=function(Ne){return Ne in this.metrics?this.metrics[Ne]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ne-this.metrics.length]}},Se}(),kn=[].slice,Dn=function(Qe){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(Ne){var je,Xe,ze,Ze,wt,st,Jt,Rr,Ir,Xr;return Ne in this.cache?this.cache[Ne]:(Ze=this.file.loca,je=this.file.contents,Xe=Ze.indexOf(Ne),(ze=Ze.lengthOf(Ne))===0?this.cache[Ne]=null:(je.pos=this.offset+Xe,wt=(st=new It(je.read(ze))).readShort(),Rr=st.readShort(),Xr=st.readShort(),Jt=st.readShort(),Ir=st.readShort(),this.cache[Ne]=wt===-1?new li(st,Rr,Xr,Jt,Ir):new Zn(st,wt,Rr,Xr,Jt,Ir),this.cache[Ne]))},Se.prototype.encode=function(Ne,je,Xe){var ze,Ze,wt,st,Jt;for(wt=[],Ze=[],st=0,Jt=je.length;st<Jt;st++)ze=Ne[je[st]],Ze.push(wt.length),ze&&(wt=wt.concat(ze.encode(Xe)));return Ze.push(wt.length),{table:wt,offsets:Ze}},Se}(),Zn=function(){function Qe(Se,Ne,je,Xe,ze,Ze){this.raw=Se,this.numberOfContours=Ne,this.xMin=je,this.yMin=Xe,this.xMax=ze,this.yMax=Ze,this.compound=!1}return Qe.prototype.encode=function(){return this.raw.data},Qe}(),li=function(){function Qe(Se,Ne,je,Xe,ze){var Ze,wt;for(this.raw=Se,this.xMin=Ne,this.yMin=je,this.xMax=Xe,this.yMax=ze,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Ze=this.raw;wt=Ze.readShort(),this.glyphOffsets.push(Ze.pos),this.glyphIDs.push(Ze.readUInt16()),32&wt;)Ze.pos+=1&wt?4:2,128&wt?Ze.pos+=8:64&wt?Ze.pos+=4:8&wt&&(Ze.pos+=2)}return Qe.prototype.encode=function(){var Se,Ne,je;for(Ne=new It(kn.call(this.raw.data)),Se=0,je=this.glyphIDs.length;Se<je;++Se)Ne.pos=this.glyphOffsets[Se];return Ne.data},Qe}(),Ai=function(Qe){function Se(){return Se.__super__.constructor.apply(this,arguments)}return rr(Se,un),Se.prototype.tag="loca",Se.prototype.parse=function(Ne){var je,Xe;return Ne.pos=this.offset,je=this.file.head.indexToLocFormat,this.offsets=je===0?function(){var ze,Ze;for(Ze=[],Xe=0,ze=this.length;Xe<ze;Xe+=2)Ze.push(2*Ne.readUInt16());return Ze}.call(this):function(){var ze,Ze;for(Ze=[],Xe=0,ze=this.length;Xe<ze;Xe+=4)Ze.push(Ne.readUInt32());return Ze}.call(this)},Se.prototype.indexOf=function(Ne){return this.offsets[Ne]},Se.prototype.lengthOf=function(Ne){return this.offsets[Ne+1]-this.offsets[Ne]},Se.prototype.encode=function(Ne,je){for(var Xe=new Uint32Array(this.offsets.length),ze=0,Ze=0,wt=0;wt<Xe.length;++wt)if(Xe[wt]=ze,Ze<je.length&&je[Ze]==wt){++Ze,Xe[wt]=ze;var st=this.offsets[wt],Jt=this.offsets[wt+1]-st;Jt>0&&(ze+=Jt)}for(var Rr=new Array(4*Xe.length),Ir=0;Ir<Xe.length;++Ir)Rr[4*Ir+3]=255&Xe[Ir],Rr[4*Ir+2]=(65280&Xe[Ir])>>8,Rr[4*Ir+1]=(16711680&Xe[Ir])>>16,Rr[4*Ir]=(4278190080&Xe[Ir])>>24;return Rr},Se}(),Ii=function(){function Qe(Se){this.font=Se,this.subset={},this.unicodes={},this.next=33}return Qe.prototype.generateCmap=function(){var Se,Ne,je,Xe,ze;for(Ne in Xe=this.font.cmap.tables[0].codeMap,Se={},ze=this.subset)je=ze[Ne],Se[Ne]=Xe[je];return Se},Qe.prototype.glyphsFor=function(Se){var Ne,je,Xe,ze,Ze,wt,st;for(Xe={},Ze=0,wt=Se.length;Ze<wt;Ze++)Xe[ze=Se[Ze]]=this.font.glyf.glyphFor(ze);for(ze in Ne=[],Xe)((je=Xe[ze])!=null?je.compound:void 0)&&Ne.push.apply(Ne,je.glyphIDs);if(Ne.length>0)for(ze in st=this.glyphsFor(Ne))je=st[ze],Xe[ze]=je;return Xe},Qe.prototype.encode=function(Se,Ne){var je,Xe,ze,Ze,wt,st,Jt,Rr,Ir,Xr,er,pn,fr,mn,en;for(Xe in je=Kt.encode(this.generateCmap(),"unicode"),Ze=this.glyphsFor(Se),er={0:0},en=je.charMap)er[(st=en[Xe]).old]=st.new;for(pn in Xr=je.maxGlyphID,Ze)pn in er||(er[pn]=Xr++);return Rr=function(Mr){var Gn,di;for(Gn in di={},Mr)di[Mr[Gn]]=Gn;return di}(er),Ir=Object.keys(Rr).sort(function(Mr,Gn){return Mr-Gn}),fr=function(){var Mr,Gn,di;for(di=[],Mr=0,Gn=Ir.length;Mr<Gn;Mr++)wt=Ir[Mr],di.push(Rr[wt]);return di}(),ze=this.font.glyf.encode(Ze,fr,er),Jt=this.font.loca.encode(ze.offsets,fr),mn={cmap:this.font.cmap.raw(),glyf:ze.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(Ne)},this.font.os2.exists&&(mn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(mn)},Qe}();U.API.PDFObject=function(){var Qe;function Se(){}return Qe=function(je,Xe){return(Array(Xe+1).join("0")+je).slice(-Xe)},Se.convert=function(Ne){var je,Xe,ze,Ze;if(Array.isArray(Ne))return"["+function(){var wt,st,Jt;for(Jt=[],wt=0,st=Ne.length;wt<st;wt++)je=Ne[wt],Jt.push(Se.convert(je));return Jt}().join(" ")+"]";if(typeof Ne=="string")return"/"+Ne;if(Ne!=null?Ne.isString:void 0)return"("+Ne+")";if(Ne instanceof Date)return"(D:"+Qe(Ne.getUTCFullYear(),4)+Qe(Ne.getUTCMonth(),2)+Qe(Ne.getUTCDate(),2)+Qe(Ne.getUTCHours(),2)+Qe(Ne.getUTCMinutes(),2)+Qe(Ne.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ne)==="[object Object]"){for(Xe in ze=["<<"],Ne)Ze=Ne[Xe],ze.push("/"+Xe+" "+Se.convert(Ze));return ze.push(">>"),ze.join(`
|
|
|
`)}return""+Ne},Se}(),B.default=U}.call(this,d("yLpj"))},e5VY:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("YNAk"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},e7zE:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(_){return function(){var E=_,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,l=c.create(e.hasher,i),t=w.create(),a=w.create([1]),s=t.words,u=a.words,h=e.keySize,p=e.iterations;s.length<h;){var g=l.update(n).finalize(a);l.reset();for(var v=g.words,y=v.length,x=g,T=1;T<p;T++){x=l.finalize(x),l.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)}}(),_.PBKDF2})},eIcI:function(H,B,d){var _=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}_.inherits(C,E);var A=C;H.exports=A},eJH7:function(H,B,d){var _=d("bYtY");function E(C){var A=C.polar;if(A){_.isArray(A)||(A=[A]);var w=[];_.each(A,function(m,f){m.indicator?(m.type&&!m.shape&&(m.shape=m.type),C.radar=C.radar||[],_.isArray(C.radar)||(C.radar=[C.radar]),C.radar.push(m)):w.push(m)}),C.polar=w}_.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 _(He){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(J){return typeof J}:_=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},_(He)}Object.defineProperty(B,"__esModule",{value:!0}),B.inflateReset=ue,B.inflateReset2=Ae,B.inflateResetKeep=Me,B.inflateInit=Je,B.inflateInit2=Te,B.inflate=Et,B.inflateEnd=Ut,B.inflateGetHeader=Bt,B.inflateSetDictionary=_t,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(He){return He&&He.__esModule?He:{default:He}}function c(){if(typeof WeakMap!="function")return null;var He=new WeakMap;return c=function(){return He},He}function o(He){if(He&&He.__esModule)return He;if(He===null||_(He)!=="object"&&typeof He!="function")return{default:He};var se=c();if(se&&se.has(He))return se.get(He);var J={},Ue=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Le in He)if(Object.prototype.hasOwnProperty.call(He,Le)){var ee=Ue?Object.getOwnPropertyDescriptor(He,Le):null;ee&&(ee.get||ee.set)?Object.defineProperty(J,Le,ee):J[Le]=He[Le]}return J.default=He,se&&se.set(He,J),J}var r=0,i=1,n=2,e=4;B.Z_FINISH=e;var l=5;B.Z_BLOCK=l;var t=6;B.Z_TREES=t;var a=0;B.Z_OK=a;var s=1;B.Z_STREAM_END=s;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,O=5,I=6,L=7,N=8,D=9,R=10,k=11,M=12,j=13,F=14,U=15,K=16,V=17,z=18,Q=19,Z=20,le=21,ne=22,ve=23,xe=24,_e=25,Be=26,me=27,Fe=28,ie=29,te=30,Ge=31,oe=32,Y=852,G=592,X=15,fe=X;function de(He){return(He>>>24&255)+(He>>>8&65280)+((He&65280)<<8)+((He&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 Me(He){var se;return!He||!He.state?h:(se=He.state,He.total_in=He.total_out=se.total=0,He.msg="",se.wrap&&(He.adler=se.wrap&1),se.mode=x,se.last=0,se.havedict=0,se.dmax=32768,se.head=null,se.hold=0,se.bits=0,se.lencode=se.lendyn=new E.Buf32(Y),se.distcode=se.distdyn=new E.Buf32(G),se.sane=1,se.back=-1,a)}function ue(He){var se;return!He||!He.state?h:(se=He.state,se.wsize=0,se.whave=0,se.wnext=0,Me(He))}function Ae(He,se){var J,Ue;return!He||!He.state?h:(Ue=He.state,se<0?(J=0,se=-se):(J=(se>>4)+1,se<48&&(se&=15)),se&&(se<8||se>15)?h:(Ue.window!==null&&Ue.wbits!==se&&(Ue.window=null),Ue.wrap=J,Ue.wbits=se,ue(He)))}function Te(He,se){var J,Ue;return He?(Ue=new Ce,He.state=Ue,Ue.window=null,J=Ae(He,se),J!==a&&(He.state=null),J):h}function Je(He){return Te(He,fe)}var At=!0,qe,Re;function Lt(He){if(At){var se;for(qe=new E.Buf32(512),Re=new E.Buf32(32),se=0;se<144;)He.lens[se++]=8;for(;se<256;)He.lens[se++]=9;for(;se<280;)He.lens[se++]=7;for(;se<288;)He.lens[se++]=8;for((0,m.default)(i,He.lens,0,288,qe,0,He.work,{bits:9}),se=0;se<32;)He.lens[se++]=5;(0,m.default)(n,He.lens,0,32,Re,0,He.work,{bits:5}),At=!1}He.lencode=qe,He.lenbits=9,He.distcode=Re,He.distbits=5}function $e(He,se,J,Ue){var Le,ee=He.state;return ee.window===null&&(ee.wsize=1<<ee.wbits,ee.wnext=0,ee.whave=0,ee.window=new E.Buf8(ee.wsize)),Ue>=ee.wsize?(E.arraySet(ee.window,se,J-ee.wsize,ee.wsize,0),ee.wnext=0,ee.whave=ee.wsize):(Le=ee.wsize-ee.wnext,Le>Ue&&(Le=Ue),E.arraySet(ee.window,se,J-Ue,Le,ee.wnext),Ue-=Le,Ue?(E.arraySet(ee.window,se,J-Ue,Ue,0),ee.wnext=Ue,ee.whave=ee.wsize):(ee.wnext+=Le,ee.wnext===ee.wsize&&(ee.wnext=0),ee.whave<ee.wsize&&(ee.whave+=Le))),0}function Et(He,se){var J,Ue,Le,ee,ct,Mt,ot,Yt,or,Zr,ir,dr,qt,Ht,lt=0,Hr,dn,Nn,Wn,gi,yn,Mn,Ft,bt=new E.Buf8(4),Oe,Ee,Ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!He||!He.state||!He.output||!He.input&&He.avail_in!==0)return h;J=He.state,J.mode===M&&(J.mode=j),ct=He.next_out,Le=He.output,ot=He.avail_out,ee=He.next_in,Ue=He.input,Mt=He.avail_in,Yt=J.hold,or=J.bits,Zr=Mt,ir=ot,Ft=a;e:for(;;)switch(J.mode){case x:if(J.wrap===0){J.mode=j;break}for(;or<16;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(J.wrap&2&&Yt===35615){J.check=0,bt[0]=Yt&255,bt[1]=Yt>>>8&255,J.check=(0,A.default)(J.check,bt,2,0),Yt=0,or=0,J.mode=T;break}if(J.flags=0,J.head&&(J.head.done=!1),!(J.wrap&1)||(((Yt&255)<<8)+(Yt>>8))%31){He.msg="incorrect header check",J.mode=te;break}if((Yt&15)!==y){He.msg="unknown compression method",J.mode=te;break}if(Yt>>>=4,or-=4,Mn=(Yt&15)+8,J.wbits===0)J.wbits=Mn;else if(Mn>J.wbits){He.msg="invalid window size",J.mode=te;break}J.dmax=1<<Mn,He.adler=J.check=1,J.mode=Yt&512?R:M,Yt=0,or=0;break;case T:for(;or<16;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(J.flags=Yt,(J.flags&255)!==y){He.msg="unknown compression method",J.mode=te;break}if(J.flags&57344){He.msg="unknown header flags set",J.mode=te;break}J.head&&(J.head.text=Yt>>8&1),J.flags&512&&(bt[0]=Yt&255,bt[1]=Yt>>>8&255,J.check=(0,A.default)(J.check,bt,2,0)),Yt=0,or=0,J.mode=S;case S:for(;or<32;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.head&&(J.head.time=Yt),J.flags&512&&(bt[0]=Yt&255,bt[1]=Yt>>>8&255,bt[2]=Yt>>>16&255,bt[3]=Yt>>>24&255,J.check=(0,A.default)(J.check,bt,4,0)),Yt=0,or=0,J.mode=b;case b:for(;or<16;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.head&&(J.head.xflags=Yt&255,J.head.os=Yt>>8),J.flags&512&&(bt[0]=Yt&255,bt[1]=Yt>>>8&255,J.check=(0,A.default)(J.check,bt,2,0)),Yt=0,or=0,J.mode=O;case O:if(J.flags&1024){for(;or<16;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.length=Yt,J.head&&(J.head.extra_len=Yt),J.flags&512&&(bt[0]=Yt&255,bt[1]=Yt>>>8&255,J.check=(0,A.default)(J.check,bt,2,0)),Yt=0,or=0}else J.head&&(J.head.extra=null);J.mode=I;case I:if(J.flags&1024&&(dr=J.length,dr>Mt&&(dr=Mt),dr&&(J.head&&(Mn=J.head.extra_len-J.length,J.head.extra||(J.head.extra=new Array(J.head.extra_len)),E.arraySet(J.head.extra,Ue,ee,dr,Mn)),J.flags&512&&(J.check=(0,A.default)(J.check,Ue,dr,ee)),Mt-=dr,ee+=dr,J.length-=dr),J.length))break e;J.length=0,J.mode=L;case L:if(J.flags&2048){if(Mt===0)break e;dr=0;do Mn=Ue[ee+dr++],J.head&&Mn&&J.length<65536&&(J.head.name+=String.fromCharCode(Mn));while(Mn&&dr<Mt);if(J.flags&512&&(J.check=(0,A.default)(J.check,Ue,dr,ee)),Mt-=dr,ee+=dr,Mn)break e}else J.head&&(J.head.name=null);J.length=0,J.mode=N;case N:if(J.flags&4096){if(Mt===0)break e;dr=0;do Mn=Ue[ee+dr++],J.head&&Mn&&J.length<65536&&(J.head.comment+=String.fromCharCode(Mn));while(Mn&&dr<Mt);if(J.flags&512&&(J.check=(0,A.default)(J.check,Ue,dr,ee)),Mt-=dr,ee+=dr,Mn)break e}else J.head&&(J.head.comment=null);J.mode=D;case D:if(J.flags&512){for(;or<16;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(Yt!==(J.check&65535)){He.msg="header crc mismatch",J.mode=te;break}Yt=0,or=0}J.head&&(J.head.hcrc=J.flags>>9&1,J.head.done=!0),He.adler=J.check=0,J.mode=M;break;case R:for(;or<32;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}He.adler=J.check=de(Yt),Yt=0,or=0,J.mode=k;case k:if(J.havedict===0)return He.next_out=ct,He.avail_out=ot,He.next_in=ee,He.avail_in=Mt,J.hold=Yt,J.bits=or,u;He.adler=J.check=1,J.mode=M;case M:if(se===l||se===t)break e;case j:if(J.last){Yt>>>=or&7,or-=or&7,J.mode=me;break}for(;or<3;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.last=Yt&1,Yt>>>=1,or-=1;switch(Yt&3){case 0:J.mode=F;break;case 1:if(Lt(J),J.mode=Z,se===t){Yt>>>=2,or-=2;break e}break;case 2:J.mode=V;break;case 3:He.msg="invalid block type",J.mode=te}Yt>>>=2,or-=2;break;case F:for(Yt>>>=or&7,or-=or&7;or<32;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if((Yt&65535)!==(Yt>>>16^65535)){He.msg="invalid stored block lengths",J.mode=te;break}if(J.length=Yt&65535,Yt=0,or=0,J.mode=U,se===t)break e;case U:J.mode=K;case K:if(dr=J.length,dr){if(dr>Mt&&(dr=Mt),dr>ot&&(dr=ot),dr===0)break e;E.arraySet(Le,Ue,ee,dr,ct),Mt-=dr,ee+=dr,ot-=dr,ct+=dr,J.length-=dr;break}J.mode=M;break;case V:for(;or<14;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(J.nlen=(Yt&31)+257,Yt>>>=5,or-=5,J.ndist=(Yt&31)+1,Yt>>>=5,or-=5,J.ncode=(Yt&15)+4,Yt>>>=4,or-=4,J.nlen>286||J.ndist>30){He.msg="too many length or distance symbols",J.mode=te;break}J.have=0,J.mode=z;case z:for(;J.have<J.ncode;){for(;or<3;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.lens[Ie[J.have++]]=Yt&7,Yt>>>=3,or-=3}for(;J.have<19;)J.lens[Ie[J.have++]]=0;if(J.lencode=J.lendyn,J.lenbits=7,Oe={bits:J.lenbits},Ft=(0,m.default)(r,J.lens,0,19,J.lencode,0,J.work,Oe),J.lenbits=Oe.bits,Ft){He.msg="invalid code lengths set",J.mode=te;break}J.have=0,J.mode=Q;case Q:for(;J.have<J.nlen+J.ndist;){for(;!(lt=J.lencode[Yt&(1<<J.lenbits)-1],Hr=lt>>>24,dn=lt>>>16&255,Nn=lt&65535,Hr<=or);){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(Nn<16)Yt>>>=Hr,or-=Hr,J.lens[J.have++]=Nn;else{if(Nn===16){for(Ee=Hr+2;or<Ee;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(Yt>>>=Hr,or-=Hr,J.have===0){He.msg="invalid bit length repeat",J.mode=te;break}Mn=J.lens[J.have-1],dr=3+(Yt&3),Yt>>>=2,or-=2}else if(Nn===17){for(Ee=Hr+3;or<Ee;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}Yt>>>=Hr,or-=Hr,Mn=0,dr=3+(Yt&7),Yt>>>=3,or-=3}else{for(Ee=Hr+7;or<Ee;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}Yt>>>=Hr,or-=Hr,Mn=0,dr=11+(Yt&127),Yt>>>=7,or-=7}if(J.have+dr>J.nlen+J.ndist){He.msg="invalid bit length repeat",J.mode=te;break}for(;dr--;)J.lens[J.have++]=Mn}}if(J.mode===te)break;if(J.lens[256]===0){He.msg="invalid code -- missing end-of-block",J.mode=te;break}if(J.lenbits=9,Oe={bits:J.lenbits},Ft=(0,m.default)(i,J.lens,0,J.nlen,J.lencode,0,J.work,Oe),J.lenbits=Oe.bits,Ft){He.msg="invalid literal/lengths set",J.mode=te;break}if(J.distbits=6,J.distcode=J.distdyn,Oe={bits:J.distbits},Ft=(0,m.default)(n,J.lens,J.nlen,J.ndist,J.distcode,0,J.work,Oe),J.distbits=Oe.bits,Ft){He.msg="invalid distances set",J.mode=te;break}if(J.mode=Z,se===t)break e;case Z:J.mode=le;case le:if(Mt>=6&&ot>=258){He.next_out=ct,He.avail_out=ot,He.next_in=ee,He.avail_in=Mt,J.hold=Yt,J.bits=or,(0,w.default)(He,ir),ct=He.next_out,Le=He.output,ot=He.avail_out,ee=He.next_in,Ue=He.input,Mt=He.avail_in,Yt=J.hold,or=J.bits,J.mode===M&&(J.back=-1);break}for(J.back=0;!(lt=J.lencode[Yt&(1<<J.lenbits)-1],Hr=lt>>>24,dn=lt>>>16&255,Nn=lt&65535,Hr<=or);){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(dn&&(dn&240)===0){for(Wn=Hr,gi=dn,yn=Nn;!(lt=J.lencode[yn+((Yt&(1<<Wn+gi)-1)>>Wn)],Hr=lt>>>24,dn=lt>>>16&255,Nn=lt&65535,Wn+Hr<=or);){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}Yt>>>=Wn,or-=Wn,J.back+=Wn}if(Yt>>>=Hr,or-=Hr,J.back+=Hr,J.length=Nn,dn===0){J.mode=Be;break}if(dn&32){J.back=-1,J.mode=M;break}if(dn&64){He.msg="invalid literal/length code",J.mode=te;break}J.extra=dn&15,J.mode=ne;case ne:if(J.extra){for(Ee=J.extra;or<Ee;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.length+=Yt&(1<<J.extra)-1,Yt>>>=J.extra,or-=J.extra,J.back+=J.extra}J.was=J.length,J.mode=ve;case ve:for(;!(lt=J.distcode[Yt&(1<<J.distbits)-1],Hr=lt>>>24,dn=lt>>>16&255,Nn=lt&65535,Hr<=or);){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if((dn&240)===0){for(Wn=Hr,gi=dn,yn=Nn;!(lt=J.distcode[yn+((Yt&(1<<Wn+gi)-1)>>Wn)],Hr=lt>>>24,dn=lt>>>16&255,Nn=lt&65535,Wn+Hr<=or);){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}Yt>>>=Wn,or-=Wn,J.back+=Wn}if(Yt>>>=Hr,or-=Hr,J.back+=Hr,dn&64){He.msg="invalid distance code",J.mode=te;break}J.offset=Nn,J.extra=dn&15,J.mode=xe;case xe:if(J.extra){for(Ee=J.extra;or<Ee;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}J.offset+=Yt&(1<<J.extra)-1,Yt>>>=J.extra,or-=J.extra,J.back+=J.extra}if(J.offset>J.dmax){He.msg="invalid distance too far back",J.mode=te;break}J.mode=_e;case _e:if(ot===0)break e;if(dr=ir-ot,J.offset>dr){if(dr=J.offset-dr,dr>J.whave&&J.sane){He.msg="invalid distance too far back",J.mode=te;break}dr>J.wnext?(dr-=J.wnext,qt=J.wsize-dr):qt=J.wnext-dr,dr>J.length&&(dr=J.length),Ht=J.window}else Ht=Le,qt=ct-J.offset,dr=J.length;dr>ot&&(dr=ot),ot-=dr,J.length-=dr;do Le[ct++]=Ht[qt++];while(--dr);J.length===0&&(J.mode=le);break;case Be:if(ot===0)break e;Le[ct++]=J.length,ot--,J.mode=le;break;case me:if(J.wrap){for(;or<32;){if(Mt===0)break e;Mt--,Yt|=Ue[ee++]<<or,or+=8}if(ir-=ot,He.total_out+=ir,J.total+=ir,ir&&(He.adler=J.check=J.flags?(0,A.default)(J.check,Le,ir,ct-ir):(0,C.default)(J.check,Le,ir,ct-ir)),ir=ot,(J.flags?Yt:de(Yt))!==J.check){He.msg="incorrect data check",J.mode=te;break}Yt=0,or=0}J.mode=Fe;case Fe:if(J.wrap&&J.flags){for(;or<32;){if(Mt===0)break e;Mt--,Yt+=Ue[ee++]<<or,or+=8}if(Yt!==(J.total&4294967295)){He.msg="incorrect length check",J.mode=te;break}Yt=0,or=0}J.mode=ie;case ie:Ft=s;break e;case te:Ft=p;break e;case Ge:return g;case oe:default:return h}return He.next_out=ct,He.avail_out=ot,He.next_in=ee,He.avail_in=Mt,J.hold=Yt,J.bits=or,(J.wsize||ir!==He.avail_out&&J.mode<te&&(J.mode<me||se!==e))&&$e(He,He.output,He.next_out,ir-He.avail_out)?(J.mode=Ge,g):(Zr-=He.avail_in,ir-=He.avail_out,He.total_in+=Zr,He.total_out+=ir,J.total+=ir,J.wrap&&ir&&(He.adler=J.check=J.flags?(0,A.default)(J.check,Le,ir,He.next_out-ir):(0,C.default)(J.check,Le,ir,He.next_out-ir)),He.data_type=J.bits+(J.last?64:0)+(J.mode===M?128:0)+(J.mode===Z||J.mode===U?256:0),(Zr===0&&ir===0||se===e)&&Ft===a&&(Ft=v),Ft)}function Ut(He){if(!He||!He.state)return h;var se=He.state;return se.window&&(se.window=null),He.state=null,a}function Bt(He,se){var J;return!He||!He.state?h:(J=He.state,(J.wrap&2)===0?h:(J.head=se,se.done=!1,a))}function _t(He,se){var J=se.length,Ue,Le,ee;return!He||!He.state?h:(Ue=He.state,Ue.wrap!==0&&Ue.mode!==k?h:Ue.mode===k&&(Le=1,Le=(0,C.default)(Le,se,J,0),Le!==Ue.check)?p:(ee=$e(He,se,J,J),ee?(Ue.mode=Ge,g):(Ue.havedict=1,a)))}var jt="pako inflate (from Nodeca project)";B.inflateInfo=jt},ePAk:function(H,B,d){var _=d("ProS");d("2fGM");var E=_.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 _=d("+TT/"),E=_.getLayoutRect,C=_.box,A=_.positionElement,w=d("7aKB"),m=d("IwbS");function f(o,r,i){var n=r.getBoxLayoutParams(),e=r.get("padding"),l={width:i.getWidth(),height:i.getHeight()},t=E(n,l,e);C(r.get("orient"),o,r.get("itemGap"),t.width,t.height),A(o,n,l,e)}function c(o,r){var i=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(_,E){for(var C=-1,A=_==null?0:_.length,w=Array(A);++C<A;)w[C]=E(_[C],C,_);return w}H.exports=d},ewwo:function(H,B,d){var _=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")]}),l=[],t=[];A.fromPoints(e,l,t),t[0]-l[0]===0&&(t[0]+=1,l[0]-=1),t[1]-l[1]===0&&(t[1]+=1,l[1]-=1);var a=(t[0]-l[0])/(t[1]-l[1]),s=w(r,c,a);isNaN(a)&&(l=[s.x,s.y],t=[s.x+s.width,s.y+s.height]);var u=t[0]-l[0],h=t[1]-l[1],p=s.width,g=s.height,v=r.coordinateSystem=new _;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(l[0],l[1],u,h),v.setViewRect(s.x,s.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 _=d("Tghj"),E=_.__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),s(x,L,N),u(x[L],N)},this);for(var O=x.length-1;O>=0;O--)x[O]==null?x.splice(O,1):delete x[O].$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),O=x.parentId,I=O!=null?v.get(O):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=l(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 O=v[b],I=x.get(O.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 O=v[b],I=x.get(O.id);if(!I)continue;var L=I.parent,D=L===y?{width:T,height:S}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};f.positionElement(I,O,D,null,{hv:O.hv,boundingMode:O.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 l(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 s(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 _=d("IwbS"),E=d("QBsz"),C=_.Line.prototype,A=_.BezierCurve.prototype;function w(f){return isNaN(+f.cpx1)||isNaN(+f.cpy1)}var m=_.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 _=d("bYtY"),E=_.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"),l=f.get("symbolRotate"),t=E(i),a=E(n),s=E(l),u=t||a||s,h=!t&&i?i:w,p=a?null:n,g=s?null:g;if(r.setVisual({legendSymbol:m||h,symbol:h,symbolSize:p,symbolKeepAspect:e,symbolRotate:l}),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)),s&&y.setItemVisual(x,"symbolRotate",l(T,S))}if(y.hasItemOption){var b=y.getItemModel(x),O=b.getShallow("symbol",!0),I=b.getShallow("symbolSize",!0),L=b.getShallow("symbolRotate",!0),N=b.getShallow("symbolKeepAspect",!0);O!=null&&y.setItemVisual(x,"symbol",O),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 _=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,s(h,p,this,v,g),a(h,p)},e.onclick=function(h,p,g){l[g].call(this)},e.remove=function(h,p){this._brushController.unmount()},e.dispose=function(h,p){this._brushController.dispose()};var l={zoom:function(){var h=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:h})},back:function(){this._dispatchZoomAction(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,O){if(O.type!=="cartesian2d")return;var I=S.brushType;I==="rect"?(x("x",O,b[0]),x("y",O,b[1])):x({lineX:"x",lineY:"y"}[I],O,b)}),w.push(v,g),this._dispatchZoomAction(g);function x(S,b,O){var I=b.getAxis(S),L=I.model,N=T(S,L,v),D=N.findRepresentativeAxisProxy(L).getMinMaxSpan();(D.minValueSpan!=null||D.maxValueSpan!=null)&&(O=m(0,O.slice(),I.scale.getExtent(),0,D.minValueSpan,D.maxValueSpan)),N&&(g[N.id]={dataZoomId:N.id,startValue:O[0],endValue:O[1]})}function T(S,b,O){var I;return O.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 s(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),_.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",O=S[b];O!=null&&O!=="all"&&!E.isArray(O)&&(O=O===!1||O==="none"?[]:[O]),x(T,function(I,L){if(O!=null&&O!=="all"&&E.indexOf(O,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 _=E(d("tSko"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},fUL4:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("r+aA"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;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 _(E,C,A){return d.hasOwnProperty(C)?A*=E.dpr:A}H.exports=_},"fc+c":function(H,B,d){var _=d("sS/r"),E=_.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 _=d("ProS");d("Q7if"),d("jndi"),_.registerPreprocessor(function(E){E.markArea=E.markArea||{}})},fls0:function(H,B,d){var _=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(s){return"_"+s+"Type"}function r(s,u,h){var p=u.getItemVisual(h,"color"),g=u.getItemVisual(h,s),v=u.getItemVisual(h,s+"Size");if(!g||g==="none")return;_.isArray(v)||(v=[v,v]);var y=C.createSymbol(g,-v[0]/2,-v[1]/2,v[0],v[1],p);return y.name=s,y}function i(s){var u=new A({name:"line",subPixelOptimize:!0});return n(u.shape,s),u}function n(s,u){s.x1=u[0][0],s.y1=u[0][1],s.x2=u[1][0],s.y2=u[1][1],s.percent=1;var h=u[2];h?(s.cpx1=h[0],s.cpy1=h[1]):(s.cpx1=NaN,s.cpy1=NaN)}function e(){var s=this,u=s.childOfName("fromSymbol"),h=s.childOfName("toSymbol"),p=s.childOfName("label");if(!u&&!h&&p.ignore)return;for(var g=1,v=this.parent;v;)v.scale&&(g/=v.scale[0]),v=v.parent;var y=s.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 O=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(O[1],O[0])),u.attr("scale",[g*x,g*x])}if(h){h.attr("position",S);var O=y.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(O[1],O[0])),h.attr("scale",[g*x,g*x])}if(!p.ignore){p.attr("position",S);var I,L,N,D,R=p.__labelDistance,k=R[0]*g,M=R[1]*g,j=x/2,O=y.tangentAt(j),F=[O[1],-O[0]],U=y.pointAt(j);F[1]>0&&(F[0]=-F[0],F[1]=-F[1]);var K=O[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var V=-Math.atan2(O[1],O[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]*k+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]*k+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=[k*K+T[0],T[1]+z],L=O[0]<0?"right":"left",D=[-k*K,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[U[0],U[1]+z],L="center",D=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-k*K+S[0],S[1]+z],L=O[0]>=0?"right":"left",D=[k*K,-z];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||N,textAlign:p.__textAlign||L},position:I,scale:[g,g],origin:D})}}function l(s,u,h){w.Group.call(this),this._createLine(s,u,h)}var t=l.prototype;t.beforeUpdate=e,t._createLine=function(s,u,h){var p=s.hostModel,g=s.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),_.each(c,function(x){var T=r(x,s,u);this.add(T),this[o(x)]=s.getItemVisual(u,x)},this),this._updateCommonStl(s,u,h)},t.updateData=function(s,u,h){var p=s.hostModel,g=this.childOfName("line"),v=s.getItemLayout(u),y={shape:{}};n(y.shape,v),w.updateProps(g,y,p,u),_.each(c,function(x){var T=s.getItemVisual(u,x),S=o(x);if(this[S]!==T){this.remove(this.childOfName(x));var b=r(x,s,u);this.add(b)}this[S]=T},this),this._updateCommonStl(s,u,h)},t._updateCommonStl=function(s,u,h){var p=s.hostModel,g=this.childOfName("line"),v=h&&h.lineStyle,y=h&&h.hoverLineStyle,x=h&&h.labelModel,T=h&&h.hoverLabelModel;if(!h||s.hasItemOption){var S=s.getItemModel(u);v=S.getModel("lineStyle").getLineStyle(),y=S.getModel("emphasis.lineStyle").getLineStyle(),x=S.getModel("label"),T=S.getModel("emphasis.label")}var b=s.getItemVisual(u,"color"),O=_.retrieve3(s.getItemVisual(u,"opacity"),v.opacity,1);g.useStyle(_.defaults({strokeNoScale:!0,fill:"none",stroke:b,opacity:O},v)),g.hoverStyle=y,_.each(c,function(K){var V=this.childOfName(K);V&&(V.setColor(b),V.setStyle({opacity:O}))},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",s.dataType),R==null)){var k=p.getRawValue(u);R=k==null?s.getName(u):isFinite(k)?f(k):k}var M=I?R:null,j=L?_.retrieve2(p.getFormattedLabel(u,"emphasis",s.dataType),R):null,F=N.style;if(M!=null||j!=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 U=x.get("distance");_.isArray(U)||(U=[U,U]),N.__labelDistance=U}j!=null?N.hoverStyle={text:j,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(s,u){this.setLinePoints(s.getItemLayout(u))},t.setLinePoints=function(s){var u=this.childOfName("line");n(u.shape,s),u.dirty()},_.inherits(l,w.Group);var a=l;H.exports=a},fmMI:function(H,B,d){var _=d("Tghj"),E=_.__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,l=C.merge,t=C.extend,a=C.mixin,s=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,j,F,U){F=F||{},this.option=null,this._theme=new u(F),this._optionManager=U},setOption:function(M,j){n(!(x in M),"please use chart.getOption()"),this._optionManager.setOption(M,j),this.resetOption(null)},resetOption:function(M){var j=!1,F=this._optionManager;if(!M||M==="recreate"){var U=F.mountOption(M==="recreate");!this.option||M==="recreate"?O.call(this,U):(this.restoreData(),this.mergeOption(U)),j=!0}if((M==="timeline"||M==="media")&&this.restoreData(),!M||M==="recreate"||M==="timeline"){var K=F.getTimelineOption(this);K&&(this.mergeOption(K),j=!0)}if(!M||M==="recreate"||M==="media"){var V=F.getMediaOption(this,this._api);V.length&&A(V,function(z){this.mergeOption(z,j=!0)},this)}return j},mergeOption:function(M){var j=this.option,F=this._componentsMap,U=[];y(this),A(M,function(V,z){if(V==null)return;h.hasClass(z)?z&&U.push(z):j[z]=j[z]==null?e(V):l(j[z],V,!0)}),h.topologicalTravel(U,h.getAllClassMainTypes(),K,this);function K(V,z){var Q=s.normalizeToArray(M[V]),Z=s.mappingToExists(F.get(V),Q);s.makeIdAndName(Z),A(Z,function(ne,ve){var xe=ne.option;o(xe)&&(ne.keyInfo.mainType=V,ne.keyInfo.subType=L(V,xe,ne.exist))});var le=I(F,z);j[V]=[],F.set(V,[]),A(Z,function(ne,ve){var xe=ne.exist,_e=ne.option;if(n(o(_e)||xe,"Empty component definition"),!_e)xe.mergeOption({},this),xe.optionUpdated({},!1);else{var Be=h.getClass(V,ne.keyInfo.subType,!0);if(xe&&xe.constructor===Be)xe.name=ne.keyInfo.name,xe.mergeOption(_e,this),xe.optionUpdated(_e,!1);else{var me=t({dependentModels:le,componentIndex:ve},ne.keyInfo);xe=new Be(_e,this,this,me),t(xe,me),xe.init(_e,this,this,me),xe.optionUpdated(null,!0)}}F.get(V)[ve]=xe,j[V][ve]=xe.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(j,F){if(h.hasClass(F)){for(var j=s.normalizeToArray(j),U=j.length-1;U>=0;U--)s.isIdInner(j[U])&&j.splice(U,1);M[F]=j}}),delete M[x],M},getTheme:function(){return this._theme},getComponent:function(M,j){var F=this._componentsMap.get(M);if(F)return F[j||0]},queryComponents:function(M){var j=M.mainType;if(!j)return[];var F=M.index,U=M.id,K=M.name,V=this._componentsMap.get(j);if(!V||!V.length)return[];var z;if(F!=null)f(F)||(F=[F]),z=w(m(F,function(le){return V[le]}),function(le){return!!le});else if(U!=null){var Q=f(U);z=w(V,function(le){return Q&&c(U,le.id)>=0||!Q&&le.id===U})}else if(K!=null){var Z=f(K);z=w(V,function(le){return Z&&c(K,le.name)>=0||!Z&&le.name===K})}else z=V.slice();return D(z,M)},findComponents:function(M){var j=M.query,F=M.mainType,U=V(j),K=U?this.queryComponents(U):this._componentsMap.get(F);return z(D(K,M));function V(Q){var Z=F+"Index",le=F+"Id",ne=F+"Name";return Q&&(Q[Z]!=null||Q[le]!=null||Q[ne]!=null)?{mainType:F,index:Q[Z],id:Q[le],name:Q[ne]}:null}function z(Q){return M.filter?w(Q,M.filter):Q}},eachComponent:function(M,j,F){var U=this._componentsMap;if(typeof M=="function")F=j,j=M,U.each(function(V,z){A(V,function(Q,Z){j.call(F,z,Q,Z)})});else if(r(M))A(U.get(M),j,F);else if(o(M)){var K=this.findComponents(M);A(K,j,F)}},getSeriesByName:function(M){var j=this._componentsMap.get("series");return w(j,function(F){return F.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var j=this._componentsMap.get("series");return w(j,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,j){R(this),A(this._seriesIndices,function(F){var U=this._componentsMap.get("series")[F];M.call(j,U,F)},this)},eachRawSeries:function(M,j){A(this._componentsMap.get("series"),M,j)},eachSeriesByType:function(M,j,F){R(this),A(this._seriesIndices,function(U){var K=this._componentsMap.get("series")[U];K.subType===M&&j.call(F,K,U)},this)},eachRawSeriesByType:function(M,j,F){return A(this.getSeriesByType(M),j,F)},isSeriesFiltered:function(M){return R(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,j){R(this);var F=w(this._componentsMap.get("series"),M,j);N(this,F)},restoreData:function(M){var j=this._componentsMap;N(this,j.get("series"));var F=[];j.each(function(U,K){F.push(K)}),h.topologicalTravel(F,h.getAllClassMainTypes(),function(U,K){A(j.get(U),function(V){(U!=="series"||!S(V,M))&&V.restoreData()})})}});function S(M,j){if(j){var F=j.seiresIndex,U=j.seriesId,K=j.seriesName;return F!=null&&M.componentIndex!==F||U!=null&&M.id!==U||K!=null&&M.name!==K}}function b(M,j){var F=M.color&&!M.colorLayer;A(j,function(U,K){if(K==="colorLayer"&&F)return;h.hasClass(K)||(typeof U=="object"?M[K]=M[K]?l(M[K],U,!1):e(U):M[K]==null&&(M[K]=U))})}function O(M){M=M,this.option={},this.option[x]=1,this._componentsMap=i({series:[]}),this._seriesIndices,this._seriesIndicesMap,b(M,this._theme.option),l(M,p,!1),this.mergeOption(M)}function I(M,j){f(j)||(j=j?[j]:[]);var F={};return A(j,function(U){F[U]=(M.get(U)||[]).slice()}),F}function L(M,j,F){var U=j.type?j.type:F?F.subType:h.determineSubType(M,j);return U}function N(M,j){M._seriesIndicesMap=i(M._seriesIndices=m(j,function(F){return F.componentIndex})||[])}function D(M,j){return j.hasOwnProperty("subType")?w(M,function(F){return F.subType===j.subType}):M}function R(M){}a(T,g);var k=T;H.exports=k},fyUT:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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"),l=d("md7G"),t=d("foSv"),a=d("4IlW");function s(z,Q){var Z=Object.keys(z);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(z);Q&&(le=le.filter(function(ne){return Object.getOwnPropertyDescriptor(z,ne).enumerable})),Z.push.apply(Z,le)}return Z}function u(z){for(var Q=1;Q<arguments.length;Q++){var Z=arguments[Q]!=null?arguments[Q]:{};Q%2?s(Object(Z),!0).forEach(function(le){Object(r.a)(z,le,Z[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(Z)):s(Object(Z)).forEach(function(le){Object.defineProperty(z,le,Object.getOwnPropertyDescriptor(Z,le))})}return z}function h(z){var Q=p();return function(){var le=Object(t.a)(z),ne;if(Q){var ve=Object(t.a)(this).constructor;ne=Reflect.construct(le,arguments,ve)}else ne=le.apply(this,arguments);return Object(l.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(Q){return Q.replace(/[^\w.-]+/g,"")},x=200,T=600,S=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(Q){return Q!=null},O=function(Q,Z){return Z===Q||typeof Z=="number"&&typeof Q=="number"&&isNaN(Z)&&isNaN(Q)},I=function(z){Object(e.a)(Z,z);var Q=h(Z);function Z(le){var ne;Object(i.a)(this,Z),ne=Q.call(this,le),ne.onKeyDown=function(_e){var Be=ne.props,me=Be.onKeyDown,Fe=Be.onPressEnter;if(_e.keyCode===a.a.UP){var ie=ne.getRatio(_e);ne.up(_e,ie,null),ne.stop()}else if(_e.keyCode===a.a.DOWN){var te=ne.getRatio(_e);ne.down(_e,te,null),ne.stop()}else _e.keyCode===a.a.ENTER&&Fe&&Fe(_e);if(ne.recordCursorPosition(),ne.lastKeyCode=_e.keyCode,me){for(var Ge=arguments.length,oe=new Array(Ge>1?Ge-1:0),Y=1;Y<Ge;Y++)oe[Y-1]=arguments[Y];me.apply(void 0,[_e].concat(oe))}},ne.onKeyUp=function(_e){var Be=ne.props.onKeyUp;if(ne.stop(),ne.recordCursorPosition(),Be){for(var me=arguments.length,Fe=new Array(me>1?me-1:0),ie=1;ie<me;ie++)Fe[ie-1]=arguments[ie];Be.apply(void 0,[_e].concat(Fe))}},ne.onChange=function(_e){var Be=ne.props.onChange;ne.state.focused&&(ne.inputting=!0),ne.rawInput=ne.props.parser(ne.getValueFromEvent(_e)),ne.setState({inputValue:ne.rawInput}),Be(ne.toNumber(ne.rawInput))},ne.onMouseUp=function(){var _e=ne.props.onMouseUp;ne.recordCursorPosition(),_e&&_e.apply(void 0,arguments)},ne.onFocus=function(){var _e;ne.setState({focused:!0}),(_e=ne.props).onFocus.apply(_e,arguments)},ne.onBlur=function(){var _e=ne.props.onBlur;ne.inputting=!1,ne.setState({focused:!1});var Be=ne.getCurrentValidValue(ne.state.inputValue),me=ne.setValue(Be,g);if(_e){var Fe=ne.input.value,ie=ne.getInputDisplayValue({focus:!1,value:me});ne.input.value=ie&&Number(ie),_e.apply(void 0,arguments),ne.input.value=Fe}},ne.getRatio=function(_e){var Be=1;return _e.metaKey||_e.ctrlKey?Be=.1:_e.shiftKey&&(Be=10),Be},ne.getFullNum=function(_e){return isNaN(_e)?_e:/e/i.test(String(_e))?Number(_e).toFixed(18).replace(/\.?0+$/,""):_e},ne.getPrecision=function(_e){if(b(ne.props.precision))return ne.props.precision;var Be=String(_e);if(Be.indexOf("e-")>=0)return parseInt(Be.slice(Be.indexOf("e-")+2),10);var me=0;return Be.indexOf(".")>=0&&(me=Be.length-Be.indexOf(".")-1),me},ne.getInputDisplayValue=function(_e){var Be=_e||ne.state,me=Be.focused,Fe=Be.inputValue,ie=Be.value,te;me?te=Fe:te=ne.toPrecisionAsStep(ie),te==null&&(te="");var Ge=ne.formatWrapper(te);return b(ne.props.decimalSeparator)&&(Ge=Ge.toString().replace(".",ne.props.decimalSeparator)),Ge},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(_e){}},ne.restoreByAfter=function(_e){if(_e===void 0)return!1;var Be=ne.input.value,me=Be.lastIndexOf(_e);if(me===-1)return!1;var Fe=ne.cursorBefore.length;return ne.lastKeyCode===a.a.DELETE&&ne.cursorBefore.charAt(Fe-1)===_e[0]?(ne.fixCaret(Fe,Fe),!0):me+_e.length===Be.length?(ne.fixCaret(me,me),!0):!1},ne.partRestoreByAfter=function(_e){return _e===void 0?!1:Array.prototype.some.call(_e,function(Be,me){var Fe=_e.substring(me);return ne.restoreByAfter(Fe)})},ne.isNotCompleteNumber=function(_e){return isNaN(_e)||_e===""||_e===null||_e&&_e.toString().indexOf(".")===_e.toString().length-1},ne.stop=function(){ne.autoStepTimer&&clearTimeout(ne.autoStepTimer)},ne.down=function(_e,Be,me){ne.pressingUpOrDown=!0,ne.step("down",_e,Be,me)},ne.up=function(_e,Be,me){ne.pressingUpOrDown=!0,ne.step("up",_e,Be,me)},ne.saveInput=function(_e){ne.input=_e};var ve=le.value;ve===void 0&&(ve=le.defaultValue),ne.state={focused:le.autoFocus};var xe=ne.getValidValue(ne.toNumber(ve));return ne.state=u(u({},ne.state),{},{inputValue:ne.toPrecisionAsStep(xe),value:xe}),ne}return Object(n.a)(Z,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(ne){var ve=this.props,xe=ve.value,_e=ve.onChange,Be=ve.max,me=ve.min,Fe=this.state.focused;if(ne){if(!O(ne.value,xe)||!O(ne.max,Be)||!O(ne.min,me)){var ie=Fe?xe:this.getValidValue(xe),te;this.pressingUpOrDown?te=ie:this.inputting?te=this.rawInput:te=this.toPrecisionAsStep(ie),this.setState({value:ie,inputValue:te})}var Ge="value"in this.props?xe:this.state.value;"max"in this.props&&ne.max!==Be&&typeof Ge=="number"&&Ge>Be&&_e&&_e(Be),"min"in this.props&&ne.min!==me&&typeof Ge=="number"&&Ge<me&&_e&&_e(me)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var oe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?oe=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(oe=this.cursorStart):oe=this.input.value.length,this.fixCaret(oe,oe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case a.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case a.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Y){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(ne){var ve=ne;return ve===""?ve="":this.isNotCompleteNumber(parseFloat(ve))?ve=this.state.value:ve=this.getValidValue(ve),this.toNumber(ve)}},{key:"getValueFromEvent",value:function(ne){var ve=ne.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(ve=ve.replace(this.props.decimalSeparator,".")),ve}},{key:"getValidValue",value:function(ne){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,_e=parseFloat(ne);return isNaN(_e)?ne:(_e<ve&&(_e=ve),_e>xe&&(_e=xe),_e)}},{key:"setValue",value:function(ne,ve){var xe=this.props.precision,_e=this.isNotCompleteNumber(parseFloat(ne))?null:parseFloat(ne),Be=this.state.value,me=Be===void 0?null:Be,Fe=this.state.inputValue,ie=Fe===void 0?null:Fe,te=typeof _e=="number"?_e.toFixed(xe):"".concat(_e),Ge=_e!==me||te!=="".concat(ie);return"value"in this.props?(ie=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:ie},ve)):this.setState({value:_e,inputValue:this.toPrecisionAsStep(ne)},ve),Ge&&this.props.onChange(_e),_e}},{key:"getMaxPrecision",value:function(ne){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xe=this.props,_e=xe.precision,Be=xe.step;if(b(_e))return _e;var me=this.getPrecision(ve),Fe=this.getPrecision(Be),ie=this.getPrecision(ne);return ne?Math.max(ie,me+Fe):me+Fe}},{key:"getPrecisionFactor",value:function(ne){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xe=this.getMaxPrecision(ne,ve);return Math.pow(10,xe)}},{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 ve=Math.abs(this.getMaxPrecision(ne));return isNaN(ve)?ne.toString():Number(ne).toFixed(ve)}},{key:"toNumber",value:function(ne){var ve=this.props.precision,xe=this.state.focused,_e=ne&&ne.length>16&&xe;return this.isNotCompleteNumber(ne)||_e?ne:b(ve)?Math.round(ne*Math.pow(10,ve))/Math.pow(10,ve):Number(ne)}},{key:"upStep",value:function(ne,ve){var xe=this.props.step,_e=this.getPrecisionFactor(ne,ve),Be=Math.abs(this.getMaxPrecision(ne,ve)),me=((_e*ne+_e*xe*ve)/_e).toFixed(Be);return this.toNumber(me)}},{key:"downStep",value:function(ne,ve){var xe=this.props.step,_e=this.getPrecisionFactor(ne,ve),Be=Math.abs(this.getMaxPrecision(ne,ve)),me=((_e*ne-_e*xe*ve)/_e).toFixed(Be);return this.toNumber(me)}},{key:"step",value:function(ne,ve){var xe=this,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Be=arguments.length>3?arguments[3]:void 0;this.stop(),ve&&(ve.persist(),ve.preventDefault());var me=this.props;if(me.disabled)return;var Fe=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(Fe))return;var ie=this["".concat(ne,"Step")](Fe,_e),te=ie>me.max||ie<me.min;if(ie>me.max?ie=me.max:ie<me.min&&(ie=me.min),this.setValue(ie,null),this.setState({focused:!0},function(){xe.pressingUpOrDown=!1}),te)return;this.autoStepTimer=setTimeout(function(){xe[ne](ve,_e,!0)},Be?x:T)}},{key:"fixCaret",value:function(ne,ve){if(ne===void 0||ve===void 0||!this.input||!this.input.value)return;try{var xe=this.input.selectionStart,_e=this.input.selectionEnd;(ne!==xe||ve!==_e)&&this.input.setSelectionRange(ne,ve)}catch(Be){}}},{key:"render",value:function(){var ne,ve=this.props,xe=ve.prefixCls,_e=ve.disabled,Be=ve.readOnly,me=ve.useTouch,Fe=ve.autoComplete,ie=ve.upHandler,te=ve.downHandler,Ge=ve.className,oe=ve.max,Y=ve.min,G=ve.style,X=ve.title,fe=ve.onMouseEnter,de=ve.onMouseLeave,Ce=ve.onMouseOver,Me=ve.onMouseOut,ue=ve.required,Ae=ve.onClick,Te=ve.tabIndex,Je=ve.type,At=ve.placeholder,qe=ve.id,Re=ve.inputMode,Lt=ve.pattern,$e=ve.step,Et=ve.maxLength,Ut=ve.autoFocus,Bt=ve.name,_t=ve.onPaste,jt=ve.onInput,He=Object(o.a)(ve,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),se=this.state,J=se.value,Ue=se.focused,Le=c()(xe,(ne={},Object(r.a)(ne,Ge,!!Ge),Object(r.a)(ne,"".concat(xe,"-disabled"),_e),Object(r.a)(ne,"".concat(xe,"-focused"),Ue),ne)),ee={};Object.keys(He).forEach(function(lt){(lt.substr(0,5)==="data-"||lt.substr(0,5)==="aria-"||lt==="role")&&(ee[lt]=He[lt])});var ct=!Be&&!_e,Mt=this.getInputDisplayValue(null),ot=(J||J===0)&&(isNaN(J)||Number(J)>=oe),Yt=(J||J===0)&&(isNaN(J)||Number(J)<=Y),or=ot||_e||Be,Zr=Yt||_e||Be,ir=c()("".concat(xe,"-handler"),"".concat(xe,"-handler-up"),Object(r.a)({},"".concat(xe,"-handler-up-disabled"),or)),dr=c()("".concat(xe,"-handler"),"".concat(xe,"-handler-down"),Object(r.a)({},"".concat(xe,"-handler-down-disabled"),Zr)),qt=me?{onTouchStart:or?g:this.up,onTouchEnd:this.stop}:{onMouseDown:or?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ht=me?{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:Le,style:G,title:X,onMouseEnter:fe,onMouseLeave:de,onMouseOver:Ce,onMouseOut:Me,onFocus:function(){return null},onBlur:function(){return null}},m.a.createElement("div",{className:"".concat(xe,"-handler-wrap")},m.a.createElement("span",Object.assign({unselectable:"on"},qt,{role:"button","aria-label":"Increase Value","aria-disabled":or,className:ir}),ie||m.a.createElement("span",{unselectable:"on",className:"".concat(xe,"-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}),te||m.a.createElement("span",{unselectable:"on",className:"".concat(xe,"-handler-down-inner"),onClick:v}))),m.a.createElement("div",{className:"".concat(xe,"-input-wrap")},m.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Y,"aria-valuemax":oe,"aria-valuenow":J,required:ue,type:Je,placeholder:At,onPaste:_t,onClick:Ae,onMouseUp:this.onMouseUp,className:"".concat(xe,"-input"),tabIndex:Te,autoComplete:Fe,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ct?this.onKeyDown:g,onKeyUp:ct?this.onKeyUp:g,autoFocus:Ut,maxLength:Et,readOnly:Be,disabled:_e,max:oe,min:Y,step:$e,name:Bt,title:X,id:qe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Mt),pattern:Lt,inputMode:Re,onInput:jt},ee))))}}]),Z}(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),k=d("HQEm"),M=d.n(k),j=d("H84U"),F=d("3Nzz"),U=function(z,Q){var Z={};for(var le in z)Object.prototype.hasOwnProperty.call(z,le)&&Q.indexOf(le)<0&&(Z[le]=z[le]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,le=Object.getOwnPropertySymbols(z);ne<le.length;ne++)Q.indexOf(le[ne])<0&&Object.prototype.propertyIsEnumerable.call(z,le[ne])&&(Z[le[ne]]=z[le[ne]]);return Z},K=w.forwardRef(function(z,Q){var Z=function(ne){var ve=ne.getPrefixCls,xe=ne.direction,_e=z.className,Be=z.size,me=z.prefixCls,Fe=z.readOnly,ie=U(z,["className","size","prefixCls","readOnly"]),te=ve("input-number",me),Ge=w.createElement(R.a,{className:"".concat(te,"-handler-up-inner")}),oe=w.createElement(M.a,{className:"".concat(te,"-handler-down-inner")});return w.createElement(F.b.Consumer,null,function(Y){var G,X=Be||Y,fe=c()((G={},A()(G,"".concat(te,"-lg"),X==="large"),A()(G,"".concat(te,"-sm"),X==="small"),A()(G,"".concat(te,"-rtl"),xe==="rtl"),A()(G,"".concat(te,"-readonly"),Fe),G),_e);return w.createElement(N,E()({ref:Q,className:fe,upHandler:Ge,downHandler:oe,prefixCls:te,readOnly:Fe},ie))})};return w.createElement(j.a,null,Z)});K.defaultProps={step:1};var V=B.a=K},g0SD:function(H,B,d){var _=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(l){var t=r.getItemModel(l),a,s=C.parsePercent(t.get("x"),n.getWidth()),u=C.parsePercent(t.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(u))a=[s,u];else if(i.getMarkerPosition)a=i.getMarkerPosition(r.getValues(r.dimensions,l));else if(e){var h=r.get(e.dimensions[0],l),p=r.get(e.dimensions[1],l);a=e.dataToPoint([h,p])}isNaN(s)||(a[0]=s),isNaN(u)||(a[1]=u),r.setItemLayout(l,a)})}var c=m.extend({type:"markPoint",updateTransform:function(r,i,n){i.eachSeries(function(e){var l=e.markPointModel;l&&(f(l.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(r,i,n,e){var l=r.coordinateSystem,t=r.id,a=r.getData(),s=this.markerGroupMap,u=s.get(t)||s.set(t,new E),h=o(l,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=_.isFunction(v),T=_.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=_.map(r&&r.dimensions,function(a){var s=i.getData().getDimensionInfo(i.getData().mapDimension(a))||{};return _.defaults({name:a},s)}):e=[{name:"value",type:"float"}];var l=new A(e,n),t=_.map(n.get("data"),_.curry(w.dataTransform,i));return r&&(t=_.filter(t,_.curry(w.dataFilter,r))),l.initData(t,null,r?w.dimValueGetter:function(a){return a.value}),l}H.exports=c},g7p0:function(H,B,d){var _=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 l=A(r);f.superApply(this,"init",arguments),c(r,l)},mergeOption:function(r,i){f.superApply(this,"mergeOption",arguments),c(this.option,r)}});function c(r,i){var n=r.cellSize;_.isArray(n)?n.length===1&&(n[1]=n[0]):n=r.cellSize=[n,n];var e=_.map([0,1],function(l){return w(i,l)&&(n[l]="auto"),n[l]!=null&&n[l]!=="auto"});m(r,i,{type:"box",ignoreSize:e})}var o=f;H.exports=o},g9YV:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),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 _={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=_},gKaM:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},gPAo:function(H,B){function d(A){return A}function _(A,w,m,f,c){this._old=A,this._new=w,this._oldKeyGetter=m||d,this._newKeyGetter=f||d,this.context=c}_.prototype={constructor:_,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 l=0,e=n.length;l<e;l++)this._add&&this._add(n[l])}}}};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=_;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,_,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"&&(_=rep[d],E=str(_,m),E&&w.push(quote(_)+(gap?": ":":")+E));else for(_ in m)Object.prototype.hasOwnProperty.call(m,_)&&(E=str(_,m),E&&w.push(quote(_)+(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 _;if(gap="",indent="",typeof d=="number")for(_=0;_<d;_+=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,_,E=H[B];if(E&&typeof E=="object")for(d in E)Object.prototype.hasOwnProperty.call(E,d)&&(_=walk(E,d),_!==void 0?E[d]=_: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 _=d("+TT/"),E=d("bYtY"),C=d("4NO4"),A=C.groupData;function w(O,I,L){O.eachSeriesByType("sankey",function(N){var D=N.get("nodeWidth"),R=N.get("nodeGap"),k=m(N,I);N.layoutInfo=k;var M=k.width,j=k.height,F=N.getGraph(),U=F.nodes,K=F.edges;c(U);var V=E.filter(U,function(le){return le.getLayout().value===0}),z=V.length!==0?0:N.get("layoutIterations"),Q=N.get("orient"),Z=N.get("nodeAlign");f(U,K,D,R,M,j,z,Q,Z)})}function m(O,I){return _.getLayoutRect(O.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function f(O,I,L,N,D,R,k,M,j){o(O,I,L,D,R,M,j),l(O,I,R,D,N,k,M),b(O,M)}function c(O){E.each(O,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(O,I,L,N,D,R,k){for(var M=[],j=[],F=[],U=[],K=0,V=0,z=0;z<I.length;z++)M[z]=1;for(z=0;z<O.length;z++)j[z]=O[z].inEdges.length,j[z]===0&&F.push(O[z]);for(var Q=-1;F.length;){for(var Z=0;Z<F.length;Z++){var le=F[Z],ne=le.hostGraph.data.getRawDataItem(le.dataIndex),ve=ne.depth!=null&&ne.depth>=0;ve&&ne.depth>Q&&(Q=ne.depth),le.setLayout({depth:ve?ne.depth:K},!0),R==="vertical"?le.setLayout({dy:L},!0):le.setLayout({dx:L},!0);for(var xe=0;xe<le.outEdges.length;xe++){var _e=le.outEdges[xe],Be=I.indexOf(_e);M[Be]=0;var me=_e.node2,Fe=O.indexOf(me);--j[Fe]===0&&U.indexOf(me)<0&&U.push(me)}}++K,F=U,U=[]}for(z=0;z<M.length;z++)if(M[z]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var ie=Q>K-1?Q:K-1;k&&k!=="left"&&i(O,k,R,ie);var V=R==="vertical"?(D-L)/ie:(N-L)/ie;e(O,V,R)}function r(O){var I=O.hostGraph.data.getRawDataItem(O.dataIndex);return I.depth!=null&&I.depth>=0}function i(O,I,L,N){if(I==="right"){for(var D=[],R=O,k=0;R.length;){for(var M=0;M<R.length;M++){var j=R[M];j.setLayout({skNodeHeight:k},!0);for(var F=0;F<j.inEdges.length;F++){var U=j.inEdges[F];D.indexOf(U.node1)<0&&D.push(U.node1)}}R=D,D=[],++k}E.each(O,function(K){r(K)||K.setLayout({depth:Math.max(0,N-K.getLayout().skNodeHeight)},!0)})}else I==="justify"&&n(O,N)}function n(O,I){E.each(O,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:I},!0)})}function e(O,I,L){E.each(O,function(N){var D=N.getLayout().depth*I;L==="vertical"?N.setLayout({y:D},!0):N.setLayout({x:D},!0)})}function l(O,I,L,N,D,R,k){var M=t(O,k);a(M,I,L,N,D,k),s(M,D,L,N,k);for(var j=1;R>0;R--)j*=.99,u(M,j,k),s(M,D,L,N,k),S(M,j,k),s(M,D,L,N,k)}function t(O,I){var L=[],N=I==="vertical"?"y":"x",D=A(O,function(R){return R.getLayout()[N]});return D.keys.sort(function(R,k){return R-k}),E.each(D.keys,function(R){L.push(D.buckets.get(R))}),L}function a(O,I,L,N,D,R){var k=Infinity;E.each(O,function(M){var j=M.length,F=0;E.each(M,function(K){F+=K.getLayout().value});var U=R==="vertical"?(N-(j-1)*D)/F:(L-(j-1)*D)/F;U<k&&(k=U)}),E.each(O,function(M){E.each(M,function(j,F){var U=j.getLayout().value*k;R==="vertical"?(j.setLayout({x:F},!0),j.setLayout({dx:U},!0)):(j.setLayout({y:F},!0),j.setLayout({dy:U},!0))})}),E.each(I,function(M){var j=+M.getValue()*k;M.setLayout({dy:j},!0)})}function s(O,I,L,N,D){var R=D==="vertical"?"x":"y";E.each(O,function(k){k.sort(function(Z,le){return Z.getLayout()[R]-le.getLayout()[R]});for(var M,j,F,U=0,K=k.length,V=D==="vertical"?"dx":"dy",z=0;z<K;z++)j=k[z],F=U-j.getLayout()[R],F>0&&(M=j.getLayout()[R]+F,D==="vertical"?j.setLayout({x:M},!0):j.setLayout({y:M},!0)),U=j.getLayout()[R]+j.getLayout()[V]+I;var Q=D==="vertical"?N:L;if(F=U-I-Q,F>0)for(M=j.getLayout()[R]-F,D==="vertical"?j.setLayout({x:M},!0):j.setLayout({y:M},!0),U=M,z=K-2;z>=0;--z)j=k[z],F=j.getLayout()[R]+j.getLayout()[V]+I-U,F>0&&(M=j.getLayout()[R]-F,D==="vertical"?j.setLayout({x:M},!0):j.setLayout({y:M},!0)),U=j.getLayout()[R]})}function u(O,I,L){E.each(O.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 k=D.outEdges.length;R=k?T(D.outEdges,p,L)/k:0}if(L==="vertical"){var M=D.getLayout().x+(R-y(D,L))*I;D.setLayout({x:M},!0)}else{var j=D.getLayout().y+(R-y(D,L))*I;D.setLayout({y:j},!0)}}})})}function h(O,I){return y(O.node2,I)*O.getValue()}function p(O,I){return y(O.node2,I)}function g(O,I){return y(O.node1,I)*O.getValue()}function v(O,I){return y(O.node1,I)}function y(O,I){return I==="vertical"?O.getLayout().x+O.getLayout().dx/2:O.getLayout().y+O.getLayout().dy/2}function x(O){return O.getValue()}function T(O,I,L){for(var N=0,D=O.length,R=-1;++R<D;){var k=+I.call(O,O[R],L);isNaN(k)||(N+=k)}return N}function S(O,I,L){E.each(O,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 k=D.inEdges.length;R=k?T(D.inEdges,v,L)/k:0}if(L==="vertical"){var M=D.getLayout().x+(R-y(D,L))*I;D.setLayout({x:M},!0)}else{var j=D.getLayout().y+(R-y(D,L))*I;D.setLayout({y:j},!0)}}})})}function b(O,I){var L=I==="vertical"?"x":"y";E.each(O,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(O,function(N){var D=0,R=0;E.each(N.outEdges,function(k){k.setLayout({sy:D},!0),D+=k.getLayout().dy}),E.each(N.inEdges,function(k){k.setLayout({ty:R},!0),R+=k.getLayout().dy})})}H.exports=w},"gb/T":function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.mode.ECB=function(){var E=_.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}(),_.mode.ECB})},"giR+":function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("QbM5"),A=d.n(C)},gut8:function(H,B){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},_=9;B.ContextCachedBy=d,B.WILL_BE_RESTORED=_},gvm7:function(H,B,d){var _=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),l=o.substr(n+r.length,e-n-r.length);l.indexOf("sub")>-1?c["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:m[l],textOffset:[3,0]}:c["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:m[l]},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(_.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 _=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=_.extendSeriesModel({type:"series.graph",init:function(e){i.superApply(this,"init",arguments);var l=this;function t(){return l._categoriesData}this.legendVisualProvider=new r(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){i.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){i.superApply(this,"mergeDefaultAndTheme",arguments),w(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var t=e.edges||e.links||[],a=e.data||e.nodes||[],s=this;if(a&&t)return o(a,t,this,!0,u).data;function u(h,p){h.wrapMethod("getItemModel",function(S){var b=s._categoriesModels,O=S.getShallow("category"),I=b[O];return I&&(I.parentModel=S.parentModel,S.parentModel=I),S});var g=s.getModel("edgeLabel"),v=new m({label:g.option},g.parentModel,l),y=s.getModel("emphasis.edgeLabel"),x=new m({emphasis:{label:y.option}},y.parentModel,l);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,l,t){if(t==="edge"){var a=this.getData(),s=this.getDataParams(e,t),u=a.graph.getEdgeByIndex(e),h=a.getName(u.node1.dataIndex),p=a.getName(u.node2.dataIndex),g=[];return h!=null&&g.push(h),p!=null&&g.push(p),g=c(g.join(" > ")),s.value&&(g+=" : "+c(s.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)}),l=new E(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(t){return l.getItemModel(t,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return i.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),n=i;H.exports=n},h7HQ:function(H,B,d){var _=d("y+Vt"),E=d("T6xi"),C=_.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 _=d("bYtY"),E=_.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(s){return o.mapDimension(s)}).slice(0,2),l=e.length,t=o.getCalculationInfo("stackResultDimension");w(o,e[0])&&(e[0]=t),w(o,e[1])&&(e[1]=t);function a(s,u){for(var h=s.end-s.start,p=n&&new Float32Array(h*l),g=s.start,v=0,y=[],x=[];g<s.end;g++){var T;if(l===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 l&&{progress:a}}}}H.exports=m},hD7B:function(H,B,d){var _=d("bYtY"),E=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function C(w){_.each(E,function(m){this[m]=_.bind(w[m],w)},this)}var A=C;H.exports=A},hFmY:function(H,B,d){var _=d("ProS"),E={type:"axisAreaSelect",event:"axisAreaSelected"};_.registerAction(E,function(C,A){A.eachComponent({mainType:"parallelAxis",query:C},function(w){w.axis.model.setActiveIntervals(C.intervals)})}),_.registerAction("parallelAxisExpand",function(C,A){A.eachComponent({mainType:"parallel",query:C},function(w){w.setAxisExpand(C)})})},hJvP:function(H,B,d){var _=d("2dDv"),E=d("IDmD");function C(A,w){var m=[];return A.eachComponent("parallel",function(f,c){var o=new _(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 _=d("bYtY"),E=_.each,C=_.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(s,u,h){this.dim=s,this.scale=u,this._extent=h||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(s){var u=this._extent,h=Math.min(u[0],u[1]),p=Math.max(u[0],u[1]);return s>=h&&s<=p},containData:function(s){return this.scale.contain(s)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(s){return m(s||this.scale.getExtent(),this._extent)},setExtent:function(s,u){var h=this._extent;h[0]=s,h[1]=u},dataToCoord:function(s,u){var h=this._extent,p=this.scale;return s=p.normalize(s),this.onBand&&p.type==="ordinal"&&(h=h.slice(),l(h,p.count())),w(s,n,h,u)},coordToData:function(s,u){var h=this._extent,p=this.scale;this.onBand&&p.type==="ordinal"&&(h=h.slice(),l(h,p.count()));var g=w(s,h,n,u);return this.scale.scale(g)},pointToData:function(s,u){},getTicksCoords:function(s){s=s||{};var u=s.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,s.clamp),g},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var s=this.model.getModel("minorTick"),u=s.get("splitNumber");u>0&&u<100||(u=5);var h=this.scale.getMinorTicks(u),p=C(h,function(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 s=this._extent,u=this.scale.getExtent(),h=u[1]-u[0]+(this.onBand?1:0);h===0&&(h=1);var p=Math.abs(s[1]-s[0]);return Math.abs(p)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return i(this)}};function l(s,u){var h=s[1]-s[0],p=u,g=h/p/2;s[0]+=g,s[1]-=g}function t(s,u,h,p){var g=u.length;if(!s.onBand||h||!g)return;var v=s.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=s.scale.getExtent();x=1+b[1]-u[g-1].tickValue,y={coord:u[g-1].coord+S*x},u.push(y)}var O=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),O?L>N:L<N}}var a=e;H.exports=a},hNWo:function(H,B,d){var _=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=_.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,l){E.isString(e)&&(e={type:e}),n[l]=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 l=i[e].get("name");if(this.isSelected(l)){this.select(l),n=!0;break}}!n&&this.select(i[0].get("name"))}},_updateData:function(i){var n=[],e=[];i.eachRawSeries(function(a){var s=a.name;e.push(s);var u;if(a.legendVisualProvider){var h=a.legendVisualProvider,p=h.getAllNames();i.isSeriesFiltered(a)||(e=e.concat(p)),p.length?n=n.concat(p):u=!0}else u=!0;u&&w(a)&&n.push(a.name)}),this._availableNames=e;var l=this.get("data")||n,t=E.map(l,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new C(a,this,this.ecModel)},this);this._data=t},getData:function(){return this._data},select:function(i){var n=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;E.each(l,function(t){n[t.get("name")]=!1})}n[i]=!0},unSelect:function(i){this.get("selectedMode")!=="single"&&(this.option.selected[i]=!1)},toggleSelected:function(i){var n=this.option.selected;n.hasOwnProperty(i)||(n[i]=!0),this[n[i]?"unSelect":"select"](i)},allSelect:function(){var i=this._data,n=this.option.selected;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 l=e.get("name",!0);n.hasOwnProperty(l)||(n[l]=!0),n[l]=!n[l]})},isSelected:function(i){var n=this.option.selected;return!(n.hasOwnProperty(i)&&!n[i])&&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 _(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 l=0,t=0,a=0;t<r;t++){var s=1<<t;s&f||(l+=(a%2?-1:1)*C[w][t]*_(C,A-1,e,n,f|s,c),a++)}return c[o]=l,l}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=_(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)*_(w,7,o===0?1:0,1<<o,1<<r,m)/f*A[o];return function(i,n,e){var l=n*c[6]+e*c[7]+1;i[0]=(n*c[0]+e*c[1]+c[2])/l,i[1]=(n*c[3]+e*c[4]+c[5])/l}}B.buildTransformer=E},hX1E:function(H,B){var d=Math.PI*2;function _(E){return E%=d,E<0&&(E+=d),E}B.normalizeRadian=_},hXwI:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;function _(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(){_(this,w)}return C(w,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){if(i.rQwait("COPYRECT",4))return!1;var l=i.rQshift16(),t=i.rQshift16();return n.copyImage(l,t,f,c,o,r),!0}}]),w}();B.default=A},hi0g:function(H,B,d){var _=d("bYtY"),E=_.createHashMap,C=_.each,A=_.isString,w=_.defaults,m=_.extend,f=_.isObject,c=_.clone,o=d("4NO4"),r=o.normalizeToArray,i=d("D5nY"),n=i.guessOrdinal,e=i.BE_ORDINAL,l=d("7G+c"),t=d("L0Ub"),a=t.OTHER_DIMENSIONS,s=d("Vi4m");function u(v,y,x){l.isInstance(y)||(y=l.seriesDataToSource(y)),x=x||{},v=(v||[]).slice();for(var T=(x.dimsDef||[]).slice(),S=E(),b=E(),O=[],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=O[L]=new s;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 k=x.encodeDef;!k&&x.encodeDefaulter&&(k=x.encodeDefaulter(y,I)),k=E(k),k.each(function(Z,le){if(Z=r(Z).slice(),Z.length===1&&!A(Z[0])&&Z[0]<0){k.set(le,!1);return}var ne=k.set(le,[]);C(Z,function(ve,xe){A(ve)&&(ve=S.get(ve)),ve!=null&&ve<I&&(ne[xe]=ve,j(O[ve],le,xe))})});var M=0;C(v,function(Z,le){var ne,Z,ve,xe;if(A(Z))ne=Z,Z={};else{ne=Z.name;var _e=Z.ordinalMeta;Z.ordinalMeta=null,Z=c(Z),Z.ordinalMeta=_e,ve=Z.dimsDef,xe=Z.otherDims,Z.name=Z.coordDim=Z.coordDimIndex=Z.dimsDef=Z.otherDims=null}var Be=k.get(ne);if(Be===!1)return;var Be=r(Be);if(!Be.length)for(var me=0;me<(ve&&ve.length||1);me++){for(;M<O.length&&O[M].coordDim!=null;)M++;M<O.length&&Be.push(M++)}C(Be,function(Fe,ie){var te=O[Fe];if(j(w(te,Z),ne,ie),te.name==null&&ve){var Ge=ve[ie];!f(Ge)&&(Ge={name:Ge}),te.name=te.displayName=Ge.name,te.defaultTooltip=Ge.defaultTooltip}xe&&w(te.otherDims,xe)})});function j(Z,le,ne){a.get(le)!=null?Z.otherDims[le]=ne:(Z.coordDim=le,Z.coordDimIndex=ne,b.set(le,!0))}var F=x.generateCoord,U=x.generateCoordCount,K=U!=null;U=F?U||1:0;for(var V=F||"value",z=0;z<I;z++){var R=O[z]=O[z]||new s,Q=R.coordDim;Q==null&&(R.coordDim=p(V,b,K),R.coordDimIndex=0,(!F||U<=0)&&(R.isExtraCoord=!0),U--),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 O}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 O=b.dimsDef;O&&(S=Math.max(S,O.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 _=d("J4zp"),E=d.n(_),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 _=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();_.each(r,function(i,n){f.each(f.mapDimension(r[n].dim),function(e,l){c[l]=c[l]||[];var t=o.dataToPoint(e,n);c[l][n]=C(t)?t:A(o)})}),f.each(function(i){var n=_.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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _(E){return document.createElementNS(d,E)}B.createElement=_},hyiK:function(H,B){function d(_,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-_)+_;return o===w?Infinity:o>w?f:0}H.exports=d},i38C:function(H,B,d){var _=d("Tghj"),E=_.__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),l=o[n];if(l)return l(i,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(i,n,e,l){var t=i.getReferringComponents("xAxis")[0],a=i.getReferringComponents("yAxis")[0];n.coordSysDims=["x","y"],e.set("x",t),e.set("y",a),r(t)&&(l.set("x",t),n.firstCategoryDimIndex=0),r(a)&&(l.set("y",a),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(i,n,e,l){var t=i.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],e.set("single",t),r(t)&&(l.set("single",t),n.firstCategoryDimIndex=0)},polar:function(i,n,e,l){var t=i.getReferringComponents("polar")[0],a=t.findAxisModel("radiusAxis"),s=t.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",s),r(a)&&(l.set("radius",a),n.firstCategoryDimIndex=0),r(s)&&(l.set("angle",s),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(i,n,e,l){n.coordSysDims=["lng","lat"]},parallel:function(i,n,e,l){var t=i.ecModel,a=t.getComponent("parallel",i.get("parallelIndex")),s=n.coordSysDims=a.dimensions.slice();m(a.parallelAxisIndex,function(u,h){var p=t.getComponent("parallelAxis",u),g=s[h];e.set(g,p),r(p)&&n.firstCategoryDimIndex==null&&(l.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 _}),d.d(B,"a",function(){return E});function _(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 _(C)?m=C[A?"pageYOffset":"pageXOffset"]:C instanceof Document?m=C.documentElement[w]:C&&(m=C[w]),C&&!_(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 _=E(d("Fm1+"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},iLNv:function(H,B){var d="\0__throttleOriginMethod",_="\0__throttleRate",E="\0__throttleType";function C(m,f,c){var o,r=0,i=0,n=null,e,l,t,a;f=f||0;function s(){i=new Date().getTime(),n=null,m.apply(l,t||[])}var u=function(){o=new Date().getTime(),l=this,t=arguments;var h=a||f,p=a||c;a=null,e=o-(p?r:i)-h,clearTimeout(n),p?n=setTimeout(s,h):e>=0?s():n=setTimeout(s,-e),r=o};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(h){a=h},u}function A(m,f,c,o){var r=m[f];if(!r)return;var i=r[d]||r,n=r[E],e=r[_];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[_]=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 _=d("ProS"),E=d("bYtY"),C=_.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 _=d("ZTW2"),E=d.n(_),C=d("+BJd"),A=d("+L6B")},iRjW:function(H,B,d){var _=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,l,t,a){if(!e.length)return;var s=r(l),u=s.graph,h=s.noEntryList,p={};for(_.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]),_.each(v.successor,y?T:x)}_.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 l={},t=[];return _.each(e,function(a){var s=i(l,a),u=s.originalDeps=o(a),h=n(u,e);s.entryCount=h.length,s.entryCount===0&&t.push(a),_.each(h,function(p){_.indexOf(s.predecessor,p)<0&&s.predecessor.push(p);var g=i(l,p);_.indexOf(g.successor,p)<0&&g.successor.push(a)})}),{graph:l,noEntryList:t}}function i(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function n(e,l){var t=[];return _.each(e,function(a){_.indexOf(l,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 _(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 l=[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 s=[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){_(this,v),this.keys=[];for(var x=[],T=[],S=[],b=0,O=56;b<56;++b,O-=8){O+=O<-5?65:O<-3?31:O<-1?63:O===27?35:0;var I=O&7;x[b]=(y[O>>>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 k=R-28;k<R;++k){var M=k+w[L];T[k]=M<R?x[M]:x[M-28]}for(var j=0;j<24;++j)T[A[j]]!==0&&(S[N]|=1<<23-j),T[A[j+24]]!==0&&(S[D]|=1<<23-j)}for(var F=0,U=0,K=0;F<16;++F){var V=S[U++],z=S[U++];this.keys[K]=(V&16515072)<<6,this.keys[K]|=(V&4032)<<10,this.keys[K]|=(z&16515072)>>>10,this.keys[K]|=(z&4032)>>>6,++K,this.keys[K]=(V&258048)<<12,this.keys[K]|=(V&63)<<16,this.keys[K]|=(z&258048)>>>4,this.keys[K]|=z&63,++K}}return C(v,[{key:"enc8",value:function(x){var T=x.slice(),S=0,b,O,I;b=T[S++]<<24|T[S++]<<16|T[S++]<<8|T[S++],O=T[S++]<<24|T[S++]<<16|T[S++]<<8|T[S++],I=(b>>>4^O)&252645135,O^=I,b^=I<<4,I=(b>>>16^O)&65535,O^=I,b^=I<<16,I=(O>>>2^b)&858993459,b^=I,O^=I<<2,I=(O>>>8^b)&16711935,b^=I,O^=I<<8,O=O<<1|O>>>31&1,I=(b^O)&2863311530,b^=I,O^=I,b=b<<1|b>>>31&1;for(var L=0,N=0;L<8;++L){I=O<<28|O>>>4,I^=this.keys[N++];var D=h[I&63];D|=s[I>>>8&63],D|=t[I>>>16&63],D|=e[I>>>24&63],I=O^this.keys[N++],D|=p[I&63],D|=u[I>>>8&63],D|=a[I>>>16&63],D|=l[I>>>24&63],b^=D,I=b<<28|b>>>4,I^=this.keys[N++],D=h[I&63],D|=s[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|=l[I>>>24&63],O^=D}for(O=O<<31|O>>>1,I=(b^O)&2863311530,b^=I,O^=I,b=b<<31|b>>>1,I=(b>>>8^O)&16711935,O^=I,b^=I<<8,I=(b>>>2^O)&858993459,O^=I,b^=I<<2,I=(O>>>16^b)&65535,b^=I,O^=I<<16,I=(O>>>4^b)&252645135,b^=I,O^=I<<4,I=[O,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 _={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=_},iXp4:function(H,B,d){var _=d("ItGF"),E=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function C(A){return _.browser.ie&&_.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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("OELB"),E=d("7aKB"),C=d("4NgU"),A=d("lE7J"),w=_.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 l=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>l)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],l=o[n-1],t=0,a=[],s=e-l,u=s/c;t<c-1;){var h=_.round(l+(t+1)*u);h>i[0]&&h<i[1]&&a.push(h),t++}r.push(a)}return r},getLabel:function(c,o){if(c==null)return"";var r=o&&o.precision;return r==null?r=_.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 _=E(d("NohK"));function E(A){return A&&A.__esModule?A:{default:A}}var C=function(w){var m=void 0,f=[],c=(0,_.default)(function(){f.forEach(function(e){e(w)})}),o=function(){var l=new ResizeObserver(c);return l.observe(w),c(),l},r=function(l){m||(m=o()),f.indexOf(l)===-1&&f.push(l)},i=function(){m.disconnect(),f=[],m=void 0},n=function(l){var t=f.indexOf(l);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 _=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 s=this._originalScale,u=this._extent,h=s.getExtent();return _.map(m.getTicks.call(this,a),function(p){var g=C.round(i(this.base,p));return g=p===u[0]&&s.__fixMin?l(g,h[0]):g,g=p===u[1]&&s.__fixMax?l(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,s){var u=this.base;a=n(a)/n(u),s=n(s)/n(u),m.setExtent.call(this,a,s)},getExtent:function(){var a=this.base,s=w.getExtent.call(this);s[0]=i(a,s[0]),s[1]=i(a,s[1]);var u=this._originalScale,h=u.getExtent();return u.__fixMin&&(s[0]=l(s[0],h[0])),u.__fixMax&&(s[1]=l(s[1],h[1])),s},unionExtent:function(a){this._originalScale.unionExtent(a);var s=this.base;a[0]=n(a[0])/n(s),a[1]=n(a[1])/n(s),w.unionExtent.call(this,a)},unionExtentFromData:function(a,s){this.unionExtent(a.getApproximateExtent(s))},niceTicks:function(a){a=a||10;var s=this._extent,u=s[1]-s[0];if(u===Infinity||u<=0)return;var h=C.quantity(u),p=a/u*h;for(p<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var g=[C.round(r(s[0]/h)*h),C.round(o(s[1]/h)*h)];this._interval=h,this._niceExtent=g},niceExtent:function(a){m.niceExtent.call(this,a);var s=this._originalScale;s.__fixMin=a.fixMin,s.__fixMax=a.fixMax}});_.each(["contain","normalize"],function(a){e.prototype[a]=function(s){return s=n(s)/n(this.base),w[a].call(this,s)}}),e.create=function(){return new e};function l(a,s){return c(a,f(s))}var t=e;H.exports=t},jN4g:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="CloseCircleFilled";var f=B.a=E.forwardRef(m)},jO45:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="CheckCircleFilled";var f=B.a=E.forwardRef(m)},jO9C:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.pad.Iso97971={pad:function(C,A){C.concat(_.lib.WordArray.create([2147483648],1)),_.pad.ZeroPadding.pad(C,A)},unpad:function(C){_.pad.ZeroPadding.unpad(C),C.sigBytes--}},_.pad.Iso97971})},jTL6:function(H,B,d){var _=d("y+Vt"),E=_.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 _=d("5nXd"),E=d("gRFJ"),C=[d("uQRt")];H.exports=_.createStore(E,C)},jett:function(H,B,d){var _=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");_.registerVisual(E("radar")),_.registerVisual(C("radar","circle")),_.registerLayout(A),_.registerProcessor(w("radar")),_.registerPreprocessor(m)},jhfD:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="ArrowLeftOutlined";var f=B.a=E.forwardRef(m)},jkPA:function(H,B,d){var _=d("bYtY"),E=_.createHashMap,C=_.isObject,A=_.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 _=d("bYtY"),E=d("Qe9p"),C=d("YXkt"),A=d("OELB"),w=d("IwbS"),m=d("kj2x"),f=d("iPDy"),c=function(t,a,s,u){var h=m.dataTransform(t,u[0]),p=m.dataTransform(t,u[1]),g=_.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=_.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,s,u){var h=1-t;return o(a[h])&&o(s[h])}function i(t,a){var s=a.coord[0],u=a.coord[1];return t.type==="cartesian2d"&&(s&&u&&(r(1,s,u,t)||r(0,s,u,t)))?!0:m.dataFilter(t,{coord:s,x:a.x0,y:a.y0})||m.dataFilter(t,{coord:u,x:a.x1,y:a.y1})}function n(t,a,s,u,h){var p=u.coordinateSystem,g=t.getItemModel(a),v,y=A.parsePercent(g.get(s[0]),h.getWidth()),x=A.parsePercent(g.get(s[1]),h.getHeight());if(!isNaN(y)&&!isNaN(x))v=[y,x];else{if(u.getMarkerPosition)v=u.getMarkerPosition(t.getValues(s,a));else{var T=t.get(s[0],a),S=t.get(s[1],a),b=[T,S];p.clampData&&p.clampData(b,b),v=p.dataToPoint(b,!0)}if(p.type==="cartesian2d"){var O=p.getAxis("x"),I=p.getAxis("y"),T=t.get(s[0],a),S=t.get(s[1],a);o(T)?v[0]=O.toGlobalCoord(O.getExtent()[s[0]==="x0"?0:1]):o(S)&&(v[1]=I.toGlobalCoord(I.getExtent()[s[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,s){a.eachSeries(function(u){var h=u.markAreaModel;if(h){var p=h.getData();p.each(function(g){var v=_.map(e,function(x){return n(p,g,x,u,s)});p.setItemLayout(g,v);var y=p.getItemGraphicEl(g);y.setShape("points",v)})}},this)},renderSeries:function(t,a,s,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=l(h,t,a);a.setData(x),x.each(function(T){x.setItemLayout(T,_.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),O=b.getModel("label"),I=b.getModel("emphasis.label"),L=x.getItemVisual(S,"color");T.useStyle(_.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,O,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 l(t,a,s){var u,h,p=["x0","y0","x1","y1"];t?(u=_.map(t&&t.dimensions,function(y){var x=a.getData(),T=x.getDimensionInfo(x.mapDimension(y))||{};return _.defaults({name:y},T)}),h=new C(_.map(p,function(y,x){return{name:y,type:u[x%2].type}}),s)):(u=[{name:"value",type:"float"}],h=new C(u,s));var g=_.map(s.get("data"),_.curry(c,a,t,s));t&&(g=_.filter(g,_.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 _=d("ProS"),E=d("bYtY"),C=d("IUWy"),A=_.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 _=d("bLfw"),E=_.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 _=d("aX58"),E=_.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",_="arrayRows",E="objectRows",C="keyedColumns",A="unknown",w="typedArray",m="column",f="row";B.SOURCE_FORMAT_ORIGINAL=d,B.SOURCE_FORMAT_ARRAY_ROWS=_,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(_){var E=_.findComponents({mainType:"legend"});E&&E.length&&_.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 _=E(d("ABKa"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},kMLO:function(H,B,d){var _=d("XxSj"),E=d("Qe9p"),C=d("bYtY"),A=C.isArray,w="itemStyle",m={seriesType:"treemap",reset:function(t,a,s,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,s,u,h,p){var g=t.getModel(),v=t.getLayout();if(!v||v.invisible||!v.isInView)return;var y=t.getModel(w),x=s[t.depth],T=c(y,a,x,u),S=y.get("borderColor"),b=y.get("borderColorSaturation"),O;b!=null&&(O=o(T,t),S=r(b,O)),t.setVisual("borderColor",S);var I=t.viewChildren;if(!I||!I.length)O=o(T,t),t.setVisual("color",O);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=l(g,T,N,D,L,p);f(N,R,s,u,h,p)}})}}function c(t,a,s,u){var h=C.extend({},a);return C.each(["color","colorAlpha","colorSaturation"],function(p){var g=t.get(p,!0);g==null&&s&&(g=s[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 s=i(t,"colorAlpha"),u=i(t,"colorSaturation");return u&&(a=E.modifyHSL(a,null,null,u)),s&&(a=E.modifyAlpha(a,s)),a}}function r(t,a){return a!=null?E.modifyHSL(a,null,null,t):null}function i(t,a){var s=t[a];if(s!=null&&s!=="none")return s}function n(t,a,s,u,h,p){if(!p||!p.length)return;var 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=s.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 _(S);return b.__drColorMappingBy=T,b}function e(t,a){var s=t.get(a);return A(s)&&s.length?{name:a,range:s}:null}function l(t,a,s,u,h,p){var g=C.extend({},a);if(h){var v=h.type,y=v==="color"&&h.__drColorMappingBy,x=y==="index"?u:y==="id"?p.mapIdToIndex(s.getId()):s.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,_,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[_+i];for(i+=n,w=e&(1<<-r)-1,e>>=-r,r+=f;r>0;w=w*256+d[_+i],i+=n,r-=8);for(m=w&(1<<-r)-1,w>>=-r,r+=C;r>0;m=m*256+d[_+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,_,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,l=C?1:-1,t=_<0||_===0&&1/_<0?1:0;for(_=Math.abs(_),isNaN(_)||_===Infinity?(f=isNaN(_)?1:0,m=r):(m=Math.floor(Math.log(_)/Math.LN2),_*(c=Math.pow(2,-m))<1&&(m--,c*=2),m+i>=1?_+=n/c:_+=n*Math.pow(2,1-i),_*c>=2&&(m++,c/=2),m+i>=r?(f=0,m=r):m+i>=1?(f=(_*c-1)*Math.pow(2,A),m=m+i):(f=_*Math.pow(2,i-1)*Math.pow(2,A),m=0));A>=8;d[E+e]=f&255,e+=l,f/=256,A-=8);for(m=m<<A|f,o+=A;o>0;d[E+e]=m&255,e+=l,m/=256,o-=8);d[E+e-l]|=t*128}},kj2x:function(H,B,d){var _=d("bYtY"),E=d("OELB"),C=d("7hqr"),A=C.isDimensionStacked,w=_.indexOf;function m(s){return!(isNaN(parseFloat(s.x))&&isNaN(parseFloat(s.y)))}function f(s){return!isNaN(parseFloat(s.x))&&!isNaN(parseFloat(s.y))}function c(s,u,h,p,g,v){var y=[],x=A(u,p),T=x?u.getCalculationInfo("stackResultDimension"):p,S=a(u,T,s),b=u.indicesOfNearest(T,S)[0];y[g]=u.get(h,b),y[v]=u.get(T,b);var O=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,O]}var o=_.curry,r={min:o(c,"min"),max:o(c,"max"),average:o(c,"average")};function i(s,u){var h=s.getData(),p=s.coordinateSystem;if(u&&!f(u)&&!_.isArray(u.coord)&&p){var g=p.dimensions,v=n(u,h,p,s);if(u=_.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(s,u,h,p){var g={};return s.valueIndex!=null||s.valueDim!=null?(g.valueDataDim=s.valueIndex!=null?u.getDimension(s.valueIndex):s.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(s,u){var h=s.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 l(s,u){return s&&s.containData&&u.coord&&!m(u)?s.containData(u.coord):!0}function t(s,u,h,p){return p<2?s.coord&&s.coord[p]:s.value}function a(s,u,h){if(h==="average"){var p=0,g=0;return s.each(u,function(v,y){isNaN(v)||(p+=v,g++)}),p/g}else return h==="median"?s.getMedian(u):s.getDataExtent(u,!0)[h==="max"?1:0]}B.dataTransform=i,B.getAxisInfo=n,B.dataFilter=l,B.dimValueGetter=t,B.numCalculate=a},knOB:function(H,B,d){var _=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},_.inherits(C,E);var A=C;H.exports=A},ko1b:function(H,B,d){var _=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,l){var t={name:e.name,children:e.data};i(t);var a=e.levels||[];a=e.levels=n(a,l);var s=_.map(a||[],function(p){return new A(p,this,l)},this),u=C.createTree(t,this,null,h);function h(p){p.wrapMethod("getItemModel",function(g,v){var y=u.getNodeByDataIndex(v),x=s[y.depth];return x&&(g.parentModel=x),g})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),t=this.getRawValue(e),a=_.isArray(t)?f(t[0]):f(t),s=l.getName(e);return m(s+": "+a)},getDataParams:function(e){var l=E.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=o(t,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},_.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=_.createHashMap(),this._idIndexMapCount=0);var t=l.get(e);return t==null&&l.set(e,t=this._idIndexMapCount++),t},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var l=this.getRawData().tree.root;(!e||e!==l&&!l.contains(e))&&(this._viewRoot=l)}});function i(e){var l=0;_.each(e.children,function(a){i(a);var s=a.value;_.isArray(s)&&(s=s[0]),l+=s});var t=e.value;_.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=l),t<0&&(t=0),_.isArray(e.value)?e.value[0]=t:e.value=t}function n(e,l){var t=l.get("color");if(!t)return;e=e||[];var a;if(_.each(e,function(u){var h=new A(u),p=h.get("color");(h.get("itemStyle.color")||p&&p!=="none")&&(a=!0)}),!a){var s=e[0]||(e[0]={});s.color=t.slice()}return e}H.exports=r},kzFp:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _=B.pick=function(C,A){var w={};return A.forEach(function(m){w[m]=C[m]}),w}},kzvK:function(H,B,d){var _=d("sS/r"),E=_.extend({type:"timeline"});H.exports=E},"l+S1":function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="SearchOutlined";var f=B.a=E.forwardRef(m)},lE7J:function(H,B,d){var _=d("OELB"),E=_.round;function C(f,c,o,r){var i={},n=f[1]-f[0],e=i.interval=_.nice(n/c,!0);o!=null&&e<o&&(e=i.interval=o),r!=null&&e>r&&(e=i.interval=r);var l=i.intervalPrecision=A(e),t=i.niceTickExtent=[E(Math.ceil(f[0]/e)*e,l),E(Math.floor(f[1]/e)*e,l)];return m(t,f),i}function A(f){return _.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 _=d("bYtY");function E(C){var A=[];_.each(C.series,function(w){w&&w.type==="map"&&(A.push(w),w.map=w.map||w.mapType,_.defaults(w,w.mapLocation))})}H.exports=E},lLGD:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("nVfU"),A=C.layout,w=C.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),_.registerLayout(_.PRIORITY.VISUAL.LAYOUT,E.curry(A,"bar")),_.registerLayout(_.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,w),_.registerVisual({seriesType:"bar",reset:function(m){m.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(H,B,d){"use strict";function _(ee){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Mt){return typeof Mt}:_=function(Mt){return Mt&&typeof Symbol=="function"&&Mt.constructor===Symbol&&Mt!==Symbol.prototype?"symbol":typeof Mt},_(ee)}Object.defineProperty(B,"__esModule",{value:!0}),B.deflateInit=He,B.deflateInit2=jt,B.deflateReset=Bt,B.deflateResetKeep=Ut,B.deflateSetHeader=_t,B.deflate=se,B.deflateEnd=J,B.deflateSetDictionary=Ue,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(ee){return ee&&ee.__esModule?ee:{default:ee}}function c(){if(typeof WeakMap!="function")return null;var ee=new WeakMap;return c=function(){return ee},ee}function o(ee){if(ee&&ee.__esModule)return ee;if(ee===null||_(ee)!=="object"&&typeof ee!="function")return{default:ee};var ct=c();if(ct&&ct.has(ee))return ct.get(ee);var Mt={},ot=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Yt in ee)if(Object.prototype.hasOwnProperty.call(ee,Yt)){var or=ot?Object.getOwnPropertyDescriptor(ee,Yt):null;or&&(or.get||or.set)?Object.defineProperty(Mt,Yt,or):Mt[Yt]=ee[Yt]}return Mt.default=ee,ct&&ct.set(ee,Mt),Mt}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 l=5;B.Z_BLOCK=l;var t=0;B.Z_OK=t;var a=1;B.Z_STREAM_END=a;var s=-2;B.Z_STREAM_ERROR=s;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 O=9,I=15,L=8,N=29,D=256,R=D+1+N,k=30,M=19,j=2*R+1,F=15,U=3,K=258,V=K+U+1,z=32,Q=42,Z=69,le=73,ne=91,ve=103,xe=113,_e=666,Be=1,me=2,Fe=3,ie=4,te=3;function Ge(ee,ct){return ee.msg=m.default[ct],ct}function oe(ee){return(ee<<1)-(ee>4?9:0)}function Y(ee){for(var ct=ee.length;--ct>=0;)ee[ct]=0}function G(ee){var ct=ee.state,Mt=ct.pending;if(Mt>ee.avail_out&&(Mt=ee.avail_out),Mt===0)return;E.arraySet(ee.output,ct.pending_buf,ct.pending_out,Mt,ee.next_out),ee.next_out+=Mt,ct.pending_out+=Mt,ee.total_out+=Mt,ee.avail_out-=Mt,ct.pending-=Mt,ct.pending===0&&(ct.pending_out=0)}function X(ee,ct){C._tr_flush_block(ee,ee.block_start>=0?ee.block_start:-1,ee.strstart-ee.block_start,ct),ee.block_start=ee.strstart,G(ee.strm)}function fe(ee,ct){ee.pending_buf[ee.pending++]=ct}function de(ee,ct){ee.pending_buf[ee.pending++]=ct>>>8&255,ee.pending_buf[ee.pending++]=ct&255}function Ce(ee,ct,Mt,ot){var Yt=ee.avail_in;return Yt>ot&&(Yt=ot),Yt===0?0:(ee.avail_in-=Yt,E.arraySet(ct,ee.input,ee.next_in,Yt,Mt),ee.state.wrap===1?ee.adler=(0,A.default)(ee.adler,ct,Yt,Mt):ee.state.wrap===2&&(ee.adler=(0,w.default)(ee.adler,ct,Yt,Mt)),ee.next_in+=Yt,ee.total_in+=Yt,Yt)}function Me(ee,ct){var Mt=ee.max_chain_length,ot=ee.strstart,Yt,or,Zr=ee.prev_length,ir=ee.nice_match,dr=ee.strstart>ee.w_size-V?ee.strstart-(ee.w_size-V):0,qt=ee.window,Ht=ee.w_mask,lt=ee.prev,Hr=ee.strstart+K,dn=qt[ot+Zr-1],Nn=qt[ot+Zr];ee.prev_length>=ee.good_match&&(Mt>>=2),ir>ee.lookahead&&(ir=ee.lookahead);do{if(Yt=ct,qt[Yt+Zr]!==Nn||qt[Yt+Zr-1]!==dn||qt[Yt]!==qt[ot]||qt[++Yt]!==qt[ot+1])continue;ot+=2,Yt++;do;while(qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&qt[++ot]===qt[++Yt]&&ot<Hr);if(or=K-(Hr-ot),ot=Hr-K,or>Zr){if(ee.match_start=ct,Zr=or,or>=ir)break;dn=qt[ot+Zr-1],Nn=qt[ot+Zr]}}while((ct=lt[ct&Ht])>dr&&--Mt!==0);return Zr<=ee.lookahead?Zr:ee.lookahead}function ue(ee){var ct=ee.w_size,Mt,ot,Yt,or,Zr;do{if(or=ee.window_size-ee.lookahead-ee.strstart,ee.strstart>=ct+(ct-V)){E.arraySet(ee.window,ee.window,ct,ct,0),ee.match_start-=ct,ee.strstart-=ct,ee.block_start-=ct,ot=ee.hash_size,Mt=ot;do Yt=ee.head[--Mt],ee.head[Mt]=Yt>=ct?Yt-ct:0;while(--ot);ot=ct,Mt=ot;do Yt=ee.prev[--Mt],ee.prev[Mt]=Yt>=ct?Yt-ct:0;while(--ot);or+=ct}if(ee.strm.avail_in===0)break;if(ot=Ce(ee.strm,ee.window,ee.strstart+ee.lookahead,or),ee.lookahead+=ot,ee.lookahead+ee.insert>=U)for(Zr=ee.strstart-ee.insert,ee.ins_h=ee.window[Zr],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[Zr+1])&ee.hash_mask;ee.insert&&!(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[Zr+U-1])&ee.hash_mask,ee.prev[Zr&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=Zr,Zr++,ee.insert--,ee.lookahead+ee.insert<U););}while(ee.lookahead<V&&ee.strm.avail_in!==0)}function Ae(ee,ct){var Mt=65535;for(Mt>ee.pending_buf_size-5&&(Mt=ee.pending_buf_size-5);;){if(ee.lookahead<=1){if(ue(ee),ee.lookahead===0&&ct===r)return Be;if(ee.lookahead===0)break}ee.strstart+=ee.lookahead,ee.lookahead=0;var ot=ee.block_start+Mt;if((ee.strstart===0||ee.strstart>=ot)&&(ee.lookahead=ee.strstart-ot,ee.strstart=ot,X(ee,!1),ee.strm.avail_out===0))return Be;if(ee.strstart-ee.block_start>=ee.w_size-V&&(X(ee,!1),ee.strm.avail_out===0))return Be}return ee.insert=0,ct===e?(X(ee,!0),ee.strm.avail_out===0?Fe:ie):(ee.strstart>ee.block_start&&(X(ee,!1),ee.strm.avail_out===0),Be)}function Te(ee,ct){for(var Mt,ot;;){if(ee.lookahead<V){if(ue(ee),ee.lookahead<V&&ct===r)return Be;if(ee.lookahead===0)break}if(Mt=0,ee.lookahead>=U&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+U-1])&ee.hash_mask,Mt=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),Mt!==0&&ee.strstart-Mt<=ee.w_size-V&&(ee.match_length=Me(ee,Mt)),ee.match_length>=U)if(ot=C._tr_tally(ee,ee.strstart-ee.match_start,ee.match_length-U),ee.lookahead-=ee.match_length,ee.match_length<=ee.max_lazy_match&&ee.lookahead>=U){ee.match_length--;do ee.strstart++,ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+U-1])&ee.hash_mask,Mt=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart;while(--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 ot=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++;if(ot&&(X(ee,!1),ee.strm.avail_out===0))return Be}return ee.insert=ee.strstart<U-1?ee.strstart:U-1,ct===e?(X(ee,!0),ee.strm.avail_out===0?Fe:ie):ee.last_lit&&(X(ee,!1),ee.strm.avail_out===0)?Be:me}function Je(ee,ct){for(var Mt,ot,Yt;;){if(ee.lookahead<V){if(ue(ee),ee.lookahead<V&&ct===r)return Be;if(ee.lookahead===0)break}if(Mt=0,ee.lookahead>=U&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+U-1])&ee.hash_mask,Mt=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=U-1,Mt!==0&&ee.prev_length<ee.max_lazy_match&&ee.strstart-Mt<=ee.w_size-V&&(ee.match_length=Me(ee,Mt),ee.match_length<=5&&(ee.strategy===g||ee.match_length===U&&ee.strstart-ee.match_start>4096)&&(ee.match_length=U-1)),ee.prev_length>=U&&ee.match_length<=ee.prev_length){Yt=ee.strstart+ee.lookahead-U,ot=C._tr_tally(ee,ee.strstart-1-ee.prev_match,ee.prev_length-U),ee.lookahead-=ee.prev_length-1,ee.prev_length-=2;do++ee.strstart<=Yt&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+U-1])&ee.hash_mask,Mt=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart);while(--ee.prev_length!==0);if(ee.match_available=0,ee.match_length=U-1,ee.strstart++,ot&&(X(ee,!1),ee.strm.avail_out===0))return Be}else if(ee.match_available){if(ot=C._tr_tally(ee,0,ee.window[ee.strstart-1]),ot&&X(ee,!1),ee.strstart++,ee.lookahead--,ee.strm.avail_out===0)return Be}else ee.match_available=1,ee.strstart++,ee.lookahead--}return ee.match_available&&(ot=C._tr_tally(ee,0,ee.window[ee.strstart-1]),ee.match_available=0),ee.insert=ee.strstart<U-1?ee.strstart:U-1,ct===e?(X(ee,!0),ee.strm.avail_out===0?Fe:ie):ee.last_lit&&(X(ee,!1),ee.strm.avail_out===0)?Be:me}function At(ee,ct){for(var Mt,ot,Yt,or,Zr=ee.window;;){if(ee.lookahead<=K){if(ue(ee),ee.lookahead<=K&&ct===r)return Be;if(ee.lookahead===0)break}if(ee.match_length=0,ee.lookahead>=U&&ee.strstart>0&&(Yt=ee.strstart-1,ot=Zr[Yt],ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt])){or=ee.strstart+K;do;while(ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt]&&ot===Zr[++Yt]&&Yt<or);ee.match_length=K-(or-Yt),ee.match_length>ee.lookahead&&(ee.match_length=ee.lookahead)}if(ee.match_length>=U?(Mt=C._tr_tally(ee,1,ee.match_length-U),ee.lookahead-=ee.match_length,ee.strstart+=ee.match_length,ee.match_length=0):(Mt=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++),Mt&&(X(ee,!1),ee.strm.avail_out===0))return Be}return ee.insert=0,ct===e?(X(ee,!0),ee.strm.avail_out===0?Fe:ie):ee.last_lit&&(X(ee,!1),ee.strm.avail_out===0)?Be:me}function qe(ee,ct){for(var Mt;;){if(ee.lookahead===0&&(ue(ee),ee.lookahead===0)){if(ct===r)return Be;break}if(ee.match_length=0,Mt=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++,Mt&&(X(ee,!1),ee.strm.avail_out===0))return Be}return ee.insert=0,ct===e?(X(ee,!0),ee.strm.avail_out===0?Fe:ie):ee.last_lit&&(X(ee,!1),ee.strm.avail_out===0)?Be:me}function Re(ee,ct,Mt,ot,Yt){this.good_length=ee,this.max_lazy=ct,this.nice_length=Mt,this.max_chain=ot,this.func=Yt}var Lt;Lt=[new Re(0,0,0,0,Ae),new Re(4,4,8,4,Te),new Re(4,5,16,8,Te),new Re(4,6,32,32,Te),new Re(4,4,16,16,Je),new Re(8,16,32,32,Je),new Re(8,16,128,128,Je),new Re(8,32,128,256,Je),new Re(32,128,258,1024,Je),new Re(32,258,258,4096,Je)];function $e(ee){ee.window_size=2*ee.w_size,Y(ee.head),ee.max_lazy_match=Lt[ee.level].max_lazy,ee.good_match=Lt[ee.level].good_length,ee.nice_match=Lt[ee.level].nice_length,ee.max_chain_length=Lt[ee.level].max_chain,ee.strstart=0,ee.block_start=0,ee.lookahead=0,ee.insert=0,ee.match_length=ee.prev_length=U-1,ee.match_available=0,ee.ins_h=0}function Et(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new E.Buf16(j*2),this.dyn_dtree=new E.Buf16((2*k+1)*2),this.bl_tree=new E.Buf16((2*M+1)*2),Y(this.dyn_ltree),Y(this.dyn_dtree),Y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new E.Buf16(F+1),this.heap=new E.Buf16(2*R+1),Y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new E.Buf16(2*R+1),Y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ut(ee){var ct;return!ee||!ee.state?Ge(ee,s):(ee.total_in=ee.total_out=0,ee.data_type=S,ct=ee.state,ct.pending=0,ct.pending_out=0,ct.wrap<0&&(ct.wrap=-ct.wrap),ct.status=ct.wrap?Q:xe,ee.adler=ct.wrap===2?0:1,ct.last_flush=r,C._tr_init(ct),t)}function Bt(ee){var ct=Ut(ee);return ct===t&&$e(ee.state),ct}function _t(ee,ct){return!ee||!ee.state||ee.state.wrap!==2?s:(ee.state.gzhead=ct,t)}function jt(ee,ct,Mt,ot,Yt,or){if(!ee)return s;var Zr=1;if(ct===p&&(ct=6),ot<0?(Zr=0,ot=-ot):ot>15&&(Zr=2,ot-=16),Yt<1||Yt>O||Mt!==b||ot<8||ot>15||ct<0||ct>9||or<0||or>x)return Ge(ee,s);ot===8&&(ot=9);var ir=new Et;return ee.state=ir,ir.strm=ee,ir.wrap=Zr,ir.gzhead=null,ir.w_bits=ot,ir.w_size=1<<ir.w_bits,ir.w_mask=ir.w_size-1,ir.hash_bits=Yt+7,ir.hash_size=1<<ir.hash_bits,ir.hash_mask=ir.hash_size-1,ir.hash_shift=~~((ir.hash_bits+U-1)/U),ir.window=new E.Buf8(ir.w_size*2),ir.head=new E.Buf16(ir.hash_size),ir.prev=new E.Buf16(ir.w_size),ir.lit_bufsize=1<<Yt+6,ir.pending_buf_size=ir.lit_bufsize*4,ir.pending_buf=new E.Buf8(ir.pending_buf_size),ir.d_buf=1*ir.lit_bufsize,ir.l_buf=(1+2)*ir.lit_bufsize,ir.level=ct,ir.strategy=or,ir.method=Mt,Bt(ee)}function He(ee,ct){return jt(ee,ct,b,I,L,T)}function se(ee,ct){var Mt,ot,Yt,or;if(!ee||!ee.state||ct>l||ct<0)return ee?Ge(ee,s):s;if(ot=ee.state,!ee.output||!ee.input&&ee.avail_in!==0||ot.status===_e&&ct!==e)return Ge(ee,ee.avail_out===0?h:s);if(ot.strm=ee,Mt=ot.last_flush,ot.last_flush=ct,ot.status===Q)if(ot.wrap===2)ee.adler=0,fe(ot,31),fe(ot,139),fe(ot,8),ot.gzhead?(fe(ot,(ot.gzhead.text?1:0)+(ot.gzhead.hcrc?2:0)+(ot.gzhead.extra?4:0)+(ot.gzhead.name?8:0)+(ot.gzhead.comment?16:0)),fe(ot,ot.gzhead.time&255),fe(ot,ot.gzhead.time>>8&255),fe(ot,ot.gzhead.time>>16&255),fe(ot,ot.gzhead.time>>24&255),fe(ot,ot.level===9?2:ot.strategy>=v||ot.level<2?4:0),fe(ot,ot.gzhead.os&255),ot.gzhead.extra&&ot.gzhead.extra.length&&(fe(ot,ot.gzhead.extra.length&255),fe(ot,ot.gzhead.extra.length>>8&255)),ot.gzhead.hcrc&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending,0)),ot.gzindex=0,ot.status=Z):(fe(ot,0),fe(ot,0),fe(ot,0),fe(ot,0),fe(ot,0),fe(ot,ot.level===9?2:ot.strategy>=v||ot.level<2?4:0),fe(ot,te),ot.status=xe);else{var Zr=b+(ot.w_bits-8<<4)<<8,ir=-1;ot.strategy>=v||ot.level<2?ir=0:ot.level<6?ir=1:ot.level===6?ir=2:ir=3,Zr|=ir<<6,ot.strstart!==0&&(Zr|=z),Zr+=31-Zr%31,ot.status=xe,de(ot,Zr),ot.strstart!==0&&(de(ot,ee.adler>>>16),de(ot,ee.adler&65535)),ee.adler=1}if(ot.status===Z)if(ot.gzhead.extra){for(Yt=ot.pending;ot.gzindex<(ot.gzhead.extra.length&65535)&&!(ot.pending===ot.pending_buf_size&&(ot.gzhead.hcrc&&ot.pending>Yt&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending-Yt,Yt)),G(ee),Yt=ot.pending,ot.pending===ot.pending_buf_size));)fe(ot,ot.gzhead.extra[ot.gzindex]&255),ot.gzindex++;ot.gzhead.hcrc&&ot.pending>Yt&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending-Yt,Yt)),ot.gzindex===ot.gzhead.extra.length&&(ot.gzindex=0,ot.status=le)}else ot.status=le;if(ot.status===le)if(ot.gzhead.name){Yt=ot.pending;do{if(ot.pending===ot.pending_buf_size&&(ot.gzhead.hcrc&&ot.pending>Yt&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending-Yt,Yt)),G(ee),Yt=ot.pending,ot.pending===ot.pending_buf_size)){or=1;break}ot.gzindex<ot.gzhead.name.length?or=ot.gzhead.name.charCodeAt(ot.gzindex++)&255:or=0,fe(ot,or)}while(or!==0);ot.gzhead.hcrc&&ot.pending>Yt&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending-Yt,Yt)),or===0&&(ot.gzindex=0,ot.status=ne)}else ot.status=ne;if(ot.status===ne)if(ot.gzhead.comment){Yt=ot.pending;do{if(ot.pending===ot.pending_buf_size&&(ot.gzhead.hcrc&&ot.pending>Yt&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending-Yt,Yt)),G(ee),Yt=ot.pending,ot.pending===ot.pending_buf_size)){or=1;break}ot.gzindex<ot.gzhead.comment.length?or=ot.gzhead.comment.charCodeAt(ot.gzindex++)&255:or=0,fe(ot,or)}while(or!==0);ot.gzhead.hcrc&&ot.pending>Yt&&(ee.adler=(0,w.default)(ee.adler,ot.pending_buf,ot.pending-Yt,Yt)),or===0&&(ot.status=ve)}else ot.status=ve;if(ot.status===ve&&(ot.gzhead.hcrc?(ot.pending+2>ot.pending_buf_size&&G(ee),ot.pending+2<=ot.pending_buf_size&&(fe(ot,ee.adler&255),fe(ot,ee.adler>>8&255),ee.adler=0,ot.status=xe)):ot.status=xe),ot.pending!==0){if(G(ee),ee.avail_out===0)return ot.last_flush=-1,t}else if(ee.avail_in===0&&oe(ct)<=oe(Mt)&&ct!==e)return Ge(ee,h);if(ot.status===_e&&ee.avail_in!==0)return Ge(ee,h);if(ee.avail_in!==0||ot.lookahead!==0||ct!==r&&ot.status!==_e){var dr=ot.strategy===v?qe(ot,ct):ot.strategy===y?At(ot,ct):Lt[ot.level].func(ot,ct);if((dr===Fe||dr===ie)&&(ot.status=_e),dr===Be||dr===Fe)return ee.avail_out===0&&(ot.last_flush=-1),t;if(dr===me&&(ct===i?C._tr_align(ot):ct!==l&&(C._tr_stored_block(ot,0,0,!1),ct===n&&(Y(ot.head),ot.lookahead===0&&(ot.strstart=0,ot.block_start=0,ot.insert=0))),G(ee),ee.avail_out===0))return ot.last_flush=-1,t}return ct!==e?t:ot.wrap<=0?a:(ot.wrap===2?(fe(ot,ee.adler&255),fe(ot,ee.adler>>8&255),fe(ot,ee.adler>>16&255),fe(ot,ee.adler>>24&255),fe(ot,ee.total_in&255),fe(ot,ee.total_in>>8&255),fe(ot,ee.total_in>>16&255),fe(ot,ee.total_in>>24&255)):(de(ot,ee.adler>>>16),de(ot,ee.adler&65535)),G(ee),ot.wrap>0&&(ot.wrap=-ot.wrap),ot.pending!==0?t:a)}function J(ee){var ct;return!ee||!ee.state?s:(ct=ee.state.status,ct!==Q&&ct!==Z&&ct!==le&&ct!==ne&&ct!==ve&&ct!==xe&&ct!==_e?Ge(ee,s):(ee.state=null,ct===xe?Ge(ee,u):t))}function Ue(ee,ct){var Mt=ct.length,ot,Yt,or,Zr,ir,dr,qt,Ht;if(!ee||!ee.state)return s;if(ot=ee.state,Zr=ot.wrap,Zr===2||Zr===1&&ot.status!==Q||ot.lookahead)return s;for(Zr===1&&(ee.adler=(0,A.default)(ee.adler,ct,Mt,0)),ot.wrap=0,Mt>=ot.w_size&&(Zr===0&&(Y(ot.head),ot.strstart=0,ot.block_start=0,ot.insert=0),Ht=new E.Buf8(ot.w_size),E.arraySet(Ht,ct,Mt-ot.w_size,ot.w_size,0),ct=Ht,Mt=ot.w_size),ir=ee.avail_in,dr=ee.next_in,qt=ee.input,ee.avail_in=Mt,ee.next_in=0,ee.input=ct,ue(ot);ot.lookahead>=U;){Yt=ot.strstart,or=ot.lookahead-(U-1);do ot.ins_h=(ot.ins_h<<ot.hash_shift^ot.window[Yt+U-1])&ot.hash_mask,ot.prev[Yt&ot.w_mask]=ot.head[ot.ins_h],ot.head[ot.ins_h]=Yt,Yt++;while(--or);ot.strstart=Yt,ot.lookahead=U-1,ue(ot)}return ot.strstart+=ot.lookahead,ot.block_start=ot.strstart,ot.insert=ot.lookahead,ot.lookahead=0,ot.match_length=ot.prev_length=U-1,ot.match_available=0,ee.next_in=dr,ee.input=qt,ee.avail_in=ir,ot.wrap=Zr,t}var Le="pako deflate (from Nodeca project)";B.deflateInfo=Le},lOQZ:function(H,B,d){var _=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(),l=e.graph,t=n.width/2+n.x,a=n.height/2+n.y,s=Math.min(n.width,n.height)/2,u=e.count();if(e.setLayout({cx:t,cy:a}),!u)return;c[r](o,i,l,e,s,t,a,u),l.eachEdge(function(h){var p=h.getModel().get("lineStyle.curveness")||0,g=_.clone(h.node1.getLayout()),v=_.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,l,t,a){var s=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;s+=v,p.setLayout([e*Math.cos(s)+l,e*Math.sin(s)+t]),s+=v})},symbolSize:function(o,r,i,n,e,l,t,a){var s=0;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,s+=y*2});var h=(2*w-s)/a/2,p=0;i.eachNode(function(g){var v=h+m[g.dataIndex];p+=v,g.setLayout([e*Math.cos(p)+l,e*Math.sin(p)+t]),p+=v})}};B.circularLayout=f},lPiR:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(E){var C=_,A=C.lib,w=A.WordArray,m=A.Hasher,f=C.algo,c=[],o=[];(function(){function n(a){for(var s=E.sqrt(a),u=2;u<=s;u++)if(!(a%u))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var l=2,t=0;t<64;)n(l)&&(t<8&&(c[t]=e(E.pow(l,1/2))),o[t]=e(E.pow(l,1/3)),t++),l++})();var r=[],i=f.SHA256=m.extend({_doReset:function(){this._hash=new w.init(c.slice(0))},_doProcessBlock:function(e,l){for(var t=this._hash.words,a=t[0],s=t[1],u=t[2],h=t[3],p=t[4],g=t[5],v=t[6],y=t[7],x=0;x<64;x++){if(x<16)r[x]=e[l+x]|0;else{var T=r[x-15],S=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,b=r[x-2],O=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;r[x]=S+r[x-7]+O+r[x-16]}var I=p&g^~p&v,L=a&s^a&u^s&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],k=N+L;y=v,v=g,g=p,p=h+R|0,h=u,u=s,s=a,a=R+k|0}t[0]=t[0]+a|0,t[1]=t[1]+s|0,t[2]=t[2]+u|0,t[3]=t[3]+h|0,t[4]=t[4]+p|0,t[5]=t[5]+g|0,t[6]=t[6]+v|0,t[7]=t[7]+y|0},_doFinalize:function(){var e=this._data,l=e.words,t=this._nDataBytes*8,a=e.sigBytes*8;return l[a>>>5]|=128<<24-a%32,l[(a+64>>>9<<4)+14]=E.floor(t/4294967296),l[(a+64>>>9<<4)+15]=t,e.sigBytes=l.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),_.SHA256})},lUTK:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("x54q"),A=d.n(C),w=d("5Dmo")},lZu9:function(H,B,d){(function(_){_(d("VrN/"),d("1eCo"),d("8EBN"))})(function(_){"use strict";_.defineMode("markdown",function(E,C){var A=_.getMode(E,"text/html"),w=A.name=="null";function m(F){if(_.findModeByName){var U=_.findModeByName(F);U&&(F=U.mime||U.mimes[0])}var K=_.getMode(E,F);return K.name=="null"?null:K}C.highlightFormatting===void 0&&(C.highlightFormatting=!1),C.maxBlockquoteDepth===void 0&&(C.maxBlockquoteDepth=0),C.taskLists===void 0&&(C.taskLists=!1),C.strikethrough===void 0&&(C.strikethrough=!1),C.emoji===void 0&&(C.emoji=!1),C.fencedCodeBlockHighlighting===void 0&&(C.fencedCodeBlockHighlighting=!0),C.fencedCodeBlockDefaultMode===void 0&&(C.fencedCodeBlockDefaultMode="text/plain"),C.xml===void 0&&(C.xml=!0),C.tokenTypeOverrides===void 0&&(C.tokenTypeOverrides={});var f={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var c in f)f.hasOwnProperty(c)&&C.tokenTypeOverrides[c]&&(f[c]=C.tokenTypeOverrides[c]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,i=/^\[(x| )\](?=\s)/i,n=C.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,u=" ";function h(F,U,K){return U.f=U.inline=K,K(F,U)}function p(F,U,K){return U.f=U.block=K,K(F,U)}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 U=w;if(!U){var K=_.innerMode(A,F.htmlState);U=K.mode.name=="xml"&&K.state.tagStart===null&&!K.state.context&&K.state.tokenize.isInText}U&&(F.f=O,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,U){var K=F.column()===U.indentation,V=g(U.prevLine.stream),z=U.indentedCode,Q=U.prevLine.hr,Z=U.list!==!1,le=(U.listStack[U.listStack.length-1]||0)+3;U.indentedCode=!1;var ne=U.indentation;if(U.indentationDiff===null&&(U.indentationDiff=U.indentation,Z)){for(U.list=null;ne<U.listStack[U.listStack.length-1];)U.listStack.pop(),U.listStack.length?U.indentation=U.listStack[U.listStack.length-1]:U.list=!1;U.list!==!1&&(U.indentationDiff=ne-U.listStack[U.listStack.length-1])}var ve=!V&&!Q&&!U.prevLine.header&&(!Z||!z)&&!U.prevLine.fencedCodeEnd,xe=(U.list===!1||Q||V)&&U.indentation<=le&&F.match(o),_e=null;if(U.indentationDiff>=4&&(z||U.prevLine.fencedCodeEnd||U.prevLine.header||V))return F.skipToEnd(),U.indentedCode=!0,f.code;if(F.eatSpace())return null;if(K&&U.indentation<=le&&(_e=F.match(n))&&_e[1].length<=6)return U.quote=0,U.header=_e[1].length,U.thisLine.header=!0,C.highlightFormatting&&(U.formatting="header"),U.f=U.inline,S(U);if(U.indentation<=le&&F.eat(">"))return U.quote=K?1:U.quote+1,C.highlightFormatting&&(U.formatting="quote"),F.eatSpace(),S(U);if(!xe&&!U.setext&&K&&U.indentation<=le&&(_e=F.match(r))){var Be=_e[1]?"ol":"ul";return U.indentation=ne+F.current().length,U.list=!0,U.quote=0,U.listStack.push(U.indentation),U.em=!1,U.strong=!1,U.code=!1,U.strikethrough=!1,C.taskLists&&F.match(i,!1)&&(U.taskList=!0),U.f=U.inline,C.highlightFormatting&&(U.formatting=["list","list-"+Be]),S(U)}else{if(K&&U.indentation<=le&&(_e=F.match(t,!0)))return U.quote=0,U.fencedEndRE=new RegExp(_e[1]+"+ *$"),U.localMode=C.fencedCodeBlockHighlighting&&m(_e[2]||C.fencedCodeBlockDefaultMode),U.localMode&&(U.localState=_.startState(U.localMode)),U.f=U.block=T,C.highlightFormatting&&(U.formatting="code-block"),U.code=-1,S(U);if(U.setext||(!ve||!Z)&&!U.quote&&U.list===!1&&!U.code&&!xe&&!a.test(F.string)&&(_e=F.lookAhead(1))&&(_e=_e.match(e)))return U.setext?(U.header=U.setext,U.setext=0,F.skipToEnd(),C.highlightFormatting&&(U.formatting="header")):(U.header=_e[0].charAt(0)=="="?1:2,U.setext=U.header),U.thisLine.header=!0,U.f=U.inline,S(U);if(xe)return F.skipToEnd(),U.hr=!0,U.thisLine.hr=!0,f.hr;if(F.peek()==="[")return h(F,U,R)}return h(F,U,U.inline)}function x(F,U){var K=A.token(F,U.htmlState);if(!w){var V=_.innerMode(A,U.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||U.md_inside&&F.current().indexOf(">")>-1)&&(U.f=O,U.block=y,U.htmlState=null)}return K}function T(F,U){var K=U.listStack[U.listStack.length-1]||0,V=U.indentation<K,z=K+3;if(U.fencedEndRE&&U.indentation<=z&&(V||F.match(U.fencedEndRE))){C.highlightFormatting&&(U.formatting="code-block");var Q;return V||(Q=S(U)),U.localMode=U.localState=null,U.block=y,U.f=O,U.fencedEndRE=null,U.code=0,U.thisLine.fencedCodeEnd=!0,V?p(F,U,U.block):Q}else return U.localMode?U.localMode.token(F,U.localState):(F.skipToEnd(),f.code)}function S(F){var U=[];if(F.formatting){U.push(f.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var K=0;K<F.formatting.length;K++)U.push(f.formatting+"-"+F.formatting[K]),F.formatting[K]==="header"&&U.push(f.formatting+"-"+F.formatting[K]+"-"+F.header),F.formatting[K]==="quote"&&(!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=F.quote?U.push(f.formatting+"-"+F.formatting[K]+"-"+F.quote):U.push("error"))}if(F.taskOpen)return U.push("meta"),U.length?U.join(" "):null;if(F.taskClosed)return U.push("property"),U.length?U.join(" "):null;if(F.linkHref?U.push(f.linkHref,"url"):(F.strong&&U.push(f.strong),F.em&&U.push(f.em),F.strikethrough&&U.push(f.strikethrough),F.emoji&&U.push(f.emoji),F.linkText&&U.push(f.linkText),F.code&&U.push(f.code),F.image&&U.push(f.image),F.imageAltText&&U.push(f.imageAltText,"link"),F.imageMarker&&U.push(f.imageMarker)),F.header&&U.push(f.header,f.header+"-"+F.header),F.quote&&(U.push(f.quote),!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=F.quote?U.push(f.quote+"-"+F.quote):U.push(f.quote+"-"+C.maxBlockquoteDepth)),F.list!==!1){var V=(F.listStack.length-1)%3;V?V===1?U.push(f.list2):U.push(f.list3):U.push(f.list1)}return F.trailingSpaceNewLine?U.push("trailing-space-new-line"):F.trailingSpace&&U.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),U.length?U.join(" "):null}function b(F,U){return F.match(l,!0)?S(U):void 0}function O(F,U){var K=U.text(F,U);if(typeof K!="undefined")return K;if(U.list)return U.list=null,S(U);if(U.taskList){var V=F.match(i,!0)[1]===" ";return V?U.taskOpen=!0:U.taskClosed=!0,C.highlightFormatting&&(U.formatting="task"),U.taskList=!1,S(U)}if(U.taskOpen=!1,U.taskClosed=!1,U.header&&F.match(/^#+$/,!0))return C.highlightFormatting&&(U.formatting="header"),S(U);var z=F.next();if(U.linkTitle){U.linkTitle=!1;var Q=z;z==="("&&(Q=")"),Q=(Q+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Z="^\\s*(?:[^"+Q+"\\\\]+|\\\\\\\\|\\\\.)"+Q;if(F.match(new RegExp(Z),!0))return f.linkHref}if(z==="`"){var le=U.formatting;C.highlightFormatting&&(U.formatting="code"),F.eatWhile("`");var ne=F.current().length;if(U.code==0&&(!U.quote||ne==1))return U.code=ne,S(U);if(ne==U.code){var ve=S(U);return U.code=0,ve}else return U.formatting=le,S(U)}else if(U.code)return S(U);if(z==="\\"&&(F.next(),C.highlightFormatting)){var xe=S(U),_e=f.formatting+"-escape";return xe?xe+" "+_e:_e}if(z==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return U.imageMarker=!0,U.image=!0,C.highlightFormatting&&(U.formatting="image"),S(U);if(z==="["&&U.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return U.imageMarker=!1,U.imageAltText=!0,C.highlightFormatting&&(U.formatting="image"),S(U);if(z==="]"&&U.imageAltText){C.highlightFormatting&&(U.formatting="image");var xe=S(U);return U.imageAltText=!1,U.image=!1,U.inline=U.f=L,xe}if(z==="["&&!U.image)return U.linkText&&F.match(/^.*?\]/)||(U.linkText=!0,C.highlightFormatting&&(U.formatting="link")),S(U);if(z==="]"&&U.linkText){C.highlightFormatting&&(U.formatting="link");var xe=S(U);return U.linkText=!1,U.inline=U.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?L:O,xe}if(z==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=I,C.highlightFormatting&&(U.formatting="link");var xe=S(U);return xe?xe+=" ":xe="",xe+f.linkInline}if(z==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=I,C.highlightFormatting&&(U.formatting="link");var xe=S(U);return xe?xe+=" ":xe="",xe+f.linkEmail}if(C.xml&&z==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Be=F.string.indexOf(">",F.pos);if(Be!=-1){var me=F.string.substring(F.start,Be);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(me)&&(U.md_inside=!0)}return F.backUp(1),U.htmlState=_.startState(A),p(F,U,x)}if(C.xml&&z==="<"&&F.match(/^\/\w*?>/))return U.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var Fe=1,ie=F.pos==1?" ":F.string.charAt(F.pos-2);Fe<3&&F.eat(z);)Fe++;var te=F.peek()||" ",Ge=!/\s/.test(te)&&(!s.test(te)||/\s/.test(ie)||s.test(ie)),oe=!/\s/.test(ie)&&(!s.test(ie)||/\s/.test(te)||s.test(te)),Y=null,G=null;if(Fe%2&&(!U.em&&Ge&&(z==="*"||!oe||s.test(ie))?Y=!0:U.em==z&&oe&&(z==="*"||!Ge||s.test(te))&&(Y=!1)),Fe>1&&(!U.strong&&Ge&&(z==="*"||!oe||s.test(ie))?G=!0:U.strong==z&&oe&&(z==="*"||!Ge||s.test(te))&&(G=!1)),G!=null||Y!=null){C.highlightFormatting&&(U.formatting=Y==null?"strong":G==null?"em":"strong em"),Y===!0&&(U.em=z),G===!0&&(U.strong=z);var ve=S(U);return Y===!1&&(U.em=!1),G===!1&&(U.strong=!1),ve}}else if(z===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return S(U);F.backUp(1)}if(C.strikethrough){if(z==="~"&&F.eatWhile(z)){if(U.strikethrough){C.highlightFormatting&&(U.formatting="strikethrough");var ve=S(U);return U.strikethrough=!1,ve}else if(F.match(/^[^\s]/,!1))return U.strikethrough=!0,C.highlightFormatting&&(U.formatting="strikethrough"),S(U)}else if(z===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return S(U);F.backUp(2)}}if(C.emoji&&z===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){U.emoji=!0,C.highlightFormatting&&(U.formatting="emoji");var X=S(U);return U.emoji=!1,X}return z===" "&&(F.match(/^ +$/,!1)?U.trailingSpace++:U.trailingSpace&&(U.trailingSpaceNewLine=!0)),S(U)}function I(F,U){var K=F.next();if(K===">"){U.f=U.inline=O,C.highlightFormatting&&(U.formatting="link");var V=S(U);return V?V+=" ":V="",V+f.linkInline}return F.match(/^[^>]+/,!0),f.linkInline}function L(F,U){if(F.eatSpace())return null;var K=F.next();return K==="("||K==="["?(U.f=U.inline=D(K==="("?")":"]"),C.highlightFormatting&&(U.formatting="link-string"),U.linkHref=!0,S(U)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(F){return function(U,K){var V=U.next();if(V===F){K.f=K.inline=O,C.highlightFormatting&&(K.formatting="link-string");var z=S(K);return K.linkHref=!1,z}return U.match(N[F]),K.linkHref=!0,S(K)}}function R(F,U){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(U.f=k,F.next(),C.highlightFormatting&&(U.formatting="link"),U.linkText=!0,S(U)):h(F,U,O)}function k(F,U){if(F.match(/^\]:/,!0)){U.f=U.inline=M,C.highlightFormatting&&(U.formatting="link");var K=S(U);return U.linkText=!1,K}return F.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function M(F,U){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?U.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),U.f=U.inline=O,f.linkHref+" url")}var j={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:O,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(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&_.copyState(A,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?_.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,K){if(K.formatting=!1,U!=K.thisLine.stream){if(K.header=0,K.hr=!1,U.match(/^\s*$/,!0))return v(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:U},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=x)){var V=U.match(/^\s*/,!0)[0].replace(/\t/g,u).length;if(K.indentation=V,K.indentationDiff=null,V>0)return null}}return K.f(U,K)},innerMode:function(U){return U.block==x?{state:U.htmlState,mode:A}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:j}},indent:function(U,K,V){return U.block==x&&A.indent?A.indent(U.htmlState,K,V):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,K,V):_.Pass},blankLine:v,getType:S,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j},"xml"),_.defineMIME("text/markdown","markdown"),_.defineMIME("text/x-markdown","markdown")})},laiN:function(H,B,d){var _=d("ProS");d("GVMX"),d("MH26"),_.registerPreprocessor(function(E){E.markLine=E.markLine||{}})},lnY3:function(H,B,d){},loD1:function(H,B){function d(_,E,C,A,w,m,f){if(w===0)return!1;var c=w,o=0,r=_;if(f>E+c&&f>A+c||f<E-c&&f<A-c||m>_+c&&m>C+c||m<_-c&&m<C-c)return!1;if(_!==C)o=(E-A)/(_-C),r=(_*A-C*E)/(_-C);else return Math.abs(m-_)<=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 _=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"),l=function(x){var T=x.prefixCls,S=x.level,b=x.isStart,O=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(_.a)(D,"".concat(I,"-start"),b[N+1]),Object(_.a)(D,"".concat(I,"-end"),O[N+1]),Object(_.a)(D,"".concat(I,"-end-first-level"),!N&&O[0]),D))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(T,"-indent")},L)},t=l,a=d("c3jg"),s="open",u="close",h="---",p=function(y){Object(f.a)(T,y);var 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 O=S.props.context.onNodeClick;O(b,Object(a.b)(S.props)),S.isSelectable()?S.onSelect(b):S.onCheck(b)},S.onSelectorDoubleClick=function(b){var O=S.props.context.onNodeDoubleClick;O(b,Object(a.b)(S.props))},S.onSelect=function(b){if(S.isDisabled())return;var O=S.props.context.onNodeSelect;b.preventDefault(),O(b,Object(a.b)(S.props))},S.onCheck=function(b){if(S.isDisabled())return;var O=S.props,I=O.disableCheckbox,L=O.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 O=S.props.context.onNodeMouseEnter;O(b,Object(a.b)(S.props))},S.onMouseLeave=function(b){var O=S.props.context.onNodeMouseLeave;O(b,Object(a.b)(S.props))},S.onContextMenu=function(b){var O=S.props.context.onNodeContextMenu;O(b,Object(a.b)(S.props))},S.onDragStart=function(b){var O=S.props.context.onNodeDragStart;b.stopPropagation(),S.setState({dragNodeHighlight:!0}),O(b,Object(m.a)(S));try{b.dataTransfer.setData("text/plain","")}catch(I){}},S.onDragEnter=function(b){var O=S.props.context.onNodeDragEnter;b.preventDefault(),b.stopPropagation(),O(b,Object(m.a)(S))},S.onDragOver=function(b){var O=S.props.context.onNodeDragOver;b.preventDefault(),b.stopPropagation(),O(b,Object(m.a)(S))},S.onDragLeave=function(b){var O=S.props.context.onNodeDragLeave;b.stopPropagation(),O(b,Object(m.a)(S))},S.onDragEnd=function(b){var O=S.props.context.onNodeDragEnd;b.stopPropagation(),S.setState({dragNodeHighlight:!1}),O(b,Object(m.a)(S))},S.onDrop=function(b){var O=S.props.context.onNodeDrop;b.preventDefault(),b.stopPropagation(),S.setState({dragNodeHighlight:!1}),O(b,Object(m.a)(S))},S.onExpand=function(b){var O=S.props.context.onNodeExpand;O(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?s:u},S.hasChildren=function(){var b=S.props.eventKey,O=S.props.context.keyEntities,I=O[b]||{},L=I.children;return!!(L||[]).length},S.isLeaf=function(){var b=S.props,O=b.isLeaf,I=b.loaded,L=S.props.context.loadData,N=S.hasChildren();return O===!1?!1:O||!L&&!N||L&&I&&!N},S.isDisabled=function(){var b=S.props.disabled,O=S.props.context.disabled;return!!(O||b)},S.isCheckable=function(){var b=S.props.checkable,O=S.props.context.checkable;return!O||b===!1?!1:O},S.syncLoadData=function(b){var O=b.expanded,I=b.loading,L=b.loaded,N=S.props.context,D=N.loadData,R=N.onNodeLoad;if(I)return;D&&O&&!S.isLeaf()&&(!S.hasChildren()&&!L&&R(Object(a.b)(S.props)))},S.renderSwitcher=function(){var b=S.props,O=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 k=i()("".concat(N,"-switcher"),"".concat(N,"-switcher_").concat(O?s:u));return o.createElement("span",{onClick:S.onExpand,className:k},typeof R=="function"?R(Object(C.a)(Object(C.a)({},S.props),{},{isLeaf:!1})):R)},S.renderCheckbox=function(){var b=S.props,O=b.checked,I=b.halfChecked,L=b.disableCheckbox,N=S.props.context.prefixCls,D=S.isDisabled(),R=S.isCheckable();if(!R)return null;var k=typeof R!="boolean"?R:null;return o.createElement("span",{className:i()("".concat(N,"-checkbox"),O&&"".concat(N,"-checkbox-checked"),!O&&I&&"".concat(N,"-checkbox-indeterminate"),(D||L)&&"".concat(N,"-checkbox-disabled")),onClick:S.onCheck},k)},S.renderIcon=function(){var b=S.props.loading,O=S.props.context.prefixCls;return o.createElement("span",{className:i()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(S.getNodeState()||"docu"),b&&"".concat(O,"-icon_loading"))})},S.renderSelector=function(){var b=S.state.dragNodeHighlight,O=S.props,I=O.title,L=O.selected,N=O.icon,D=O.loading,R=O.data,k=S.props.context,M=k.prefixCls,j=k.showIcon,F=k.icon,U=k.draggable,K=k.loadData,V=k.titleRender,z=S.isDisabled(),Q="".concat(M,"-node-content-wrapper"),Z;if(j){var le=N||F;Z=le?o.createElement("span",{className:i()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof le=="function"?le(S.props):le):S.renderIcon()}else K&&D&&(Z=S.renderIcon());var ne;typeof I=="function"?ne=I(R):V?ne=V(R):ne=I;var ve=o.createElement("span",{className:"".concat(M,"-title")},ne);return o.createElement("span",{ref:S.setSelectHandle,title:typeof I=="string"?I:"",className:i()("".concat(Q),"".concat(Q,"-").concat(S.getNodeState()||"normal"),!z&&(L||b)&&"".concat(M,"-node-selected"),!z&&U&&"draggable"),draggable:!z&&U||void 0,"aria-grabbed":!z&&U||void 0,onMouseEnter:S.onMouseEnter,onMouseLeave:S.onMouseLeave,onContextMenu:S.onContextMenu,onClick:S.onSelectorClick,onDoubleClick:S.onSelectorDoubleClick,onDragStart:U?S.onDragStart:void 0},Z,ve)},S}return Object(w.a)(T,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var b=this.props.selectable,O=this.props.context.selectable;return typeof b=="boolean"?b:O}},{key:"render",value:function(){var b,O=this.props,I=O.eventKey,L=O.className,N=O.style,D=O.dragOver,R=O.dragOverGapTop,k=O.dragOverGapBottom,M=O.isLeaf,j=O.isStart,F=O.isEnd,U=O.expanded,K=O.selected,V=O.checked,z=O.halfChecked,Q=O.loading,Z=O.domRef,le=O.active,ne=O.onMouseMove,ve=Object(E.a)(O,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),xe=this.props.context,_e=xe.prefixCls,Be=xe.filterTreeNode,me=xe.draggable,Fe=xe.keyEntities,ie=this.isDisabled(),te=Object(e.f)(ve),Ge=Fe[I]||{},oe=Ge.level,Y=F[F.length-1];return o.createElement("div",Object.assign({ref:Z,className:i()(L,"".concat(_e,"-treenode"),(b={},Object(_.a)(b,"".concat(_e,"-treenode-disabled"),ie),Object(_.a)(b,"".concat(_e,"-treenode-switcher-").concat(U?"open":"close"),!M),Object(_.a)(b,"".concat(_e,"-treenode-checkbox-checked"),V),Object(_.a)(b,"".concat(_e,"-treenode-checkbox-indeterminate"),z),Object(_.a)(b,"".concat(_e,"-treenode-selected"),K),Object(_.a)(b,"".concat(_e,"-treenode-loading"),Q),Object(_.a)(b,"".concat(_e,"-treenode-active"),le),Object(_.a)(b,"".concat(_e,"-treenode-leaf-last"),Y),Object(_.a)(b,"drag-over",!ie&&D),Object(_.a)(b,"drag-over-gap-top",!ie&&R),Object(_.a)(b,"drag-over-gap-bottom",!ie&&k),Object(_.a)(b,"filter-node",Be&&Be(Object(a.b)(this.props))),b)),style:N,onDragEnter:me?this.onDragEnter:void 0,onDragOver:me?this.onDragOver:void 0,onDragLeave:me?this.onDragLeave:void 0,onDrop:me?this.onDrop:void 0,onDragEnd:me?this.onDragEnd:void 0,onMouseMove:ne},te),o.createElement(t,{prefixCls:_e,level:oe,isStart:j,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 _=d("pVnL"),E=d.n(_),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"),l=d("H84U"),t=d("uaoM"),a=d("0n0R"),s=e.a.Option,u=e.a;function h(v){return v&&v.type&&(v.type.isSelectOption||v.type.isSelectOptGroup)}var p=function(y,x){var T=y.prefixCls,S=y.className,b=y.children,O=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},k;return I.length&&h(I[0])?k=b:k=O?O.map(function(M){if(Object(a.b)(M))return M;switch(A()(M)){case"string":return f.createElement(s,{key:M,value:M},M);case"object":{var j=M.value;return f.createElement(s,{key:j,value:j},M.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],f.useEffect(function(){Object(t.a)(!("dataSource"in y),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(t.a)(!N||!("size"in y),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),f.createElement(l.a,null,function(M){var j=M.getPrefixCls,F=j("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}),k)})},g=f.forwardRef(p);g.Option=s,B.a=g},lwQL:function(H,B,d){var _=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",l="__unfocusNodeAdjacency",t=["itemStyle","opacity"],a=["lineStyle","opacity"];function s(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=s(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=s(g,v),x=g.getGraphicEl();x.traverse(function(T){!T.isGroup&&T.setStyle("opacity",y)}),x.highlight&&x.highlight()}var p=_.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,O=this.group;if(T.type==="view"){var I={position:T.position,scale:T.scale};this._firstRender?O.attr(I):o.updateProps(O,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,U){var K=L.getItemModel(U);F.off("drag").off("dragend");var V=K.get("draggable");V&&F.on("drag",function(){D&&(D.warmUp(),!this._layouting&&this._startForceLayoutIteration(D,R),D.setFixed(U),L.setItemLayout(U,F.position))},this).on("dragend",function(){D&&D.setUnfixed(U)},this),F.setDraggable(V&&D),F[e]&&F.off("mouseover",F[e]),F[l]&&F.off("mouseout",F[l]),K.get("focusNodeAdjacency")&&(F.on("mouseover",F[e]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[l]=function(){x._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(F){var U=F.getGraphicEl();U[e]&&U.off("mouseover",U[e]),U[l]&&U.off("mouseout",U[l]),F.getModel().get("focusNodeAdjacency")&&(U.on("mouseover",U[e]=function(){x._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,edgeDataIndex:F.dataIndex})}),U.on("mouseout",U[l]=function(){x._dispatchUnfocus(y)}))});var k=g.get("layout")==="circular"&&g.get("circular.rotateLabel"),M=L.getLayout("cx"),j=L.getLayout("cy");L.eachItemGraphicEl(function(F,U){var K=L.getItemModel(U),V=K.get("label.rotate")||0,z=F.getSymbolPath();if(k){var Q=L.getItemLayout(U),Z=Math.atan2(Q[1]-j,Q[0]-M);Z<0&&(Z=Math.PI*2+Z);var le=Q[0]<M;le&&(Z=Z-Math.PI);var ne=le?"left":"right";o.modifyLabelStyle(z,{textRotation:-Z,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,O=x.edgeDataIndex,I=S.getNodeByIndex(b),L=S.getEdgeByIndex(O);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,O,I){var L=S.getBoundingRect();return L.applyTransform(S.transform),L.contain(O,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 _=d("KCsZ"),E=_([["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 _=d("QBsz"),E=d("Fofx"),C=_.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]),l=w(c[1],o[1],r[1],i[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(o){var r=this,i=o.width/r.width,n=o.height/r.height,e=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,l=r.y+r.height,t=o.x,a=o.x+o.width,s=o.y,u=o.y+o.height;return!(n<t||a<i||l<s||u<e)},contain:function(o,r){var i=this;return o>=i.x&&o<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},clone:function(){return new 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 _={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=_},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(_){setTimeout(_,16)};H.exports=d},"mO/d":function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("I9Y+"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},mOdp:function(H,B,d){var _=d("bYtY"),E=_.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),l;if((!n||!e)&&(l=f.getItemModel(r)),!n){var t=l.get("itemStyle.color")||w.getColorFromPalette(f.getName(r)||r+"",w.__paletteScope,f.count());i!=null&&o.setItemVisual(i,"color",t)}if(!e){var a=l.get("itemStyle.borderColor");i!=null&&o.setItemVisual(i,"borderColor",a)}})}}}H.exports=C},mTgk:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=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",_.default.XK_Alt_L,_.default.XK_Alt_R),A("AltGraph",_.default.XK_ISO_Level3_Shift),A("CapsLock",_.default.XK_Caps_Lock),w("Control",_.default.XK_Control_L,_.default.XK_Control_R),w("Meta",_.default.XK_Super_L,_.default.XK_Super_R),A("NumLock",_.default.XK_Num_Lock),A("ScrollLock",_.default.XK_Scroll_Lock),w("Shift",_.default.XK_Shift_L,_.default.XK_Shift_R),m("Enter",_.default.XK_Return,_.default.XK_KP_Enter),A("Tab",_.default.XK_Tab),m(" ",_.default.XK_space,_.default.XK_KP_Space),m("ArrowDown",_.default.XK_Down,_.default.XK_KP_Down),m("ArrowUp",_.default.XK_Up,_.default.XK_KP_Up),m("ArrowLeft",_.default.XK_Left,_.default.XK_KP_Left),m("ArrowRight",_.default.XK_Right,_.default.XK_KP_Right),m("End",_.default.XK_End,_.default.XK_KP_End),m("Home",_.default.XK_Home,_.default.XK_KP_Home),m("PageDown",_.default.XK_Next,_.default.XK_KP_Next),m("PageUp",_.default.XK_Prior,_.default.XK_KP_Prior),A("Backspace",_.default.XK_BackSpace),m("Clear",_.default.XK_Clear,_.default.XK_KP_Begin),A("Copy",_.default.XF86XK_Copy),A("Cut",_.default.XF86XK_Cut),m("Delete",_.default.XK_Delete,_.default.XK_KP_Delete),m("Insert",_.default.XK_Insert,_.default.XK_KP_Insert),A("Paste",_.default.XF86XK_Paste),A("Redo",_.default.XK_Redo),A("Undo",_.default.XK_Undo),A("Cancel",_.default.XK_Cancel),A("ContextMenu",_.default.XK_Menu),A("Escape",_.default.XK_Escape),A("Execute",_.default.XK_Execute),A("Find",_.default.XK_Find),A("Help",_.default.XK_Help),A("Pause",_.default.XK_Pause),A("Select",_.default.XK_Select),A("ZoomIn",_.default.XF86XK_ZoomIn),A("ZoomOut",_.default.XF86XK_ZoomOut),A("BrightnessDown",_.default.XF86XK_MonBrightnessDown),A("BrightnessUp",_.default.XF86XK_MonBrightnessUp),A("Eject",_.default.XF86XK_Eject),A("LogOff",_.default.XF86XK_LogOff),A("Power",_.default.XF86XK_PowerOff),A("PowerOff",_.default.XF86XK_PowerDown),A("PrintScreen",_.default.XK_Print),A("Hibernate",_.default.XF86XK_Hibernate),A("Standby",_.default.XF86XK_Standby),A("WakeUp",_.default.XF86XK_WakeUp),A("AllCandidates",_.default.XK_MultipleCandidate),A("Alphanumeric",_.default.XK_Eisu_Shift),A("CodeInput",_.default.XK_Codeinput),A("Compose",_.default.XK_Multi_key),A("Convert",_.default.XK_Henkan),A("GroupFirst",_.default.XK_ISO_First_Group),A("GroupLast",_.default.XK_ISO_Last_Group),A("GroupNext",_.default.XK_ISO_Next_Group),A("GroupPrevious",_.default.XK_ISO_Prev_Group),A("NonConvert",_.default.XK_Muhenkan),A("PreviousCandidate",_.default.XK_PreviousCandidate),A("SingleCandidate",_.default.XK_SingleCandidate),A("HangulMode",_.default.XK_Hangul),A("HanjaMode",_.default.XK_Hangul_Hanja),A("JunjuaMode",_.default.XK_Hangul_Jeonja),A("Eisu",_.default.XK_Eisu_toggle),A("Hankaku",_.default.XK_Hankaku),A("Hiragana",_.default.XK_Hiragana),A("HiraganaKatakana",_.default.XK_Hiragana_Katakana),A("KanaMode",_.default.XK_Kana_Shift),A("KanjiMode",_.default.XK_Kanji),A("Katakana",_.default.XK_Katakana),A("Romaji",_.default.XK_Romaji),A("Zenkaku",_.default.XK_Zenkaku),A("ZenkakuHanaku",_.default.XK_Zenkaku_Hankaku),A("F1",_.default.XK_F1),A("F2",_.default.XK_F2),A("F3",_.default.XK_F3),A("F4",_.default.XK_F4),A("F5",_.default.XK_F5),A("F6",_.default.XK_F6),A("F7",_.default.XK_F7),A("F8",_.default.XK_F8),A("F9",_.default.XK_F9),A("F10",_.default.XK_F10),A("F11",_.default.XK_F11),A("F12",_.default.XK_F12),A("F13",_.default.XK_F13),A("F14",_.default.XK_F14),A("F15",_.default.XK_F15),A("F16",_.default.XK_F16),A("F17",_.default.XK_F17),A("F18",_.default.XK_F18),A("F19",_.default.XK_F19),A("F20",_.default.XK_F20),A("F21",_.default.XK_F21),A("F22",_.default.XK_F22),A("F23",_.default.XK_F23),A("F24",_.default.XK_F24),A("F25",_.default.XK_F25),A("F26",_.default.XK_F26),A("F27",_.default.XK_F27),A("F28",_.default.XK_F28),A("F29",_.default.XK_F29),A("F30",_.default.XK_F30),A("F31",_.default.XK_F31),A("F32",_.default.XK_F32),A("F33",_.default.XK_F33),A("F34",_.default.XK_F34),A("F35",_.default.XK_F35),A("Close",_.default.XF86XK_Close),A("MailForward",_.default.XF86XK_MailForward),A("MailReply",_.default.XF86XK_Reply),A("MailSend",_.default.XF86XK_Send),A("MediaFastForward",_.default.XF86XK_AudioForward),A("MediaPause",_.default.XF86XK_AudioPause),A("MediaPlay",_.default.XF86XK_AudioPlay),A("MediaRecord",_.default.XF86XK_AudioRecord),A("MediaRewind",_.default.XF86XK_AudioRewind),A("MediaStop",_.default.XF86XK_AudioStop),A("MediaTrackNext",_.default.XF86XK_AudioNext),A("MediaTrackPrevious",_.default.XF86XK_AudioPrev),A("New",_.default.XF86XK_New),A("Open",_.default.XF86XK_Open),A("Print",_.default.XK_Print),A("Save",_.default.XF86XK_Save),A("SpellCheck",_.default.XF86XK_Spell),A("AudioVolumeDown",_.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",_.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",_.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",_.default.XF86XK_AudioMicMute),A("LaunchApplication1",_.default.XF86XK_MyComputer),A("LaunchApplication2",_.default.XF86XK_Calculator),A("LaunchCalendar",_.default.XF86XK_Calendar),A("LaunchMail",_.default.XF86XK_Mail),A("LaunchMediaPlayer",_.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",_.default.XF86XK_Music),A("LaunchPhone",_.default.XF86XK_Phone),A("LaunchScreenSaver",_.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",_.default.XF86XK_Excel),A("LaunchWebBrowser",_.default.XF86XK_WWW),A("LaunchWebCam",_.default.XF86XK_WebCam),A("LaunchWordProcessor",_.default.XF86XK_Word),A("BrowserBack",_.default.XF86XK_Back),A("BrowserFavorites",_.default.XF86XK_Favorites),A("BrowserForward",_.default.XF86XK_Forward),A("BrowserHome",_.default.XF86XK_HomePage),A("BrowserRefresh",_.default.XF86XK_Refresh),A("BrowserSearch",_.default.XF86XK_Search),A("BrowserStop",_.default.XF86XK_Stop),A("Dimmer",_.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",_.default.XF86XK_AudioCycleTrack),A("RandomToggle",_.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",_.default.XF86XK_SplitScreen),A("Subtitle",_.default.XF86XK_Subtitle),A("VideoModeNext",_.default.XF86XK_Next_VMode),m("=",_.default.XK_equal,_.default.XK_KP_Equal),m("+",_.default.XK_plus,_.default.XK_KP_Add),m("-",_.default.XK_minus,_.default.XK_KP_Subtract),m("*",_.default.XK_asterisk,_.default.XK_KP_Multiply),m("/",_.default.XK_slash,_.default.XK_KP_Divide),m(".",_.default.XK_period,_.default.XK_KP_Decimal),m(",",_.default.XK_comma,_.default.XK_KP_Separator),m("0",_.default.XK_0,_.default.XK_KP_0),m("1",_.default.XK_1,_.default.XK_KP_1),m("2",_.default.XK_2,_.default.XK_KP_2),m("3",_.default.XK_3,_.default.XK_KP_3),m("4",_.default.XK_4,_.default.XK_KP_4),m("5",_.default.XK_5,_.default.XK_KP_5),m("6",_.default.XK_6,_.default.XK_KP_6),m("7",_.default.XK_7,_.default.XK_KP_7),m("8",_.default.XK_8,_.default.XK_KP_8),m("9",_.default.XK_9,_.default.XK_KP_9);var f=C;B.default=f},mYwL:function(H,B,d){var _=d("bYtY"),E=d("IwbS"),C=d("6GrX"),A=Math.PI;function w(m,f){f=f||{},_.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),l=f.showSpinner?f.spinnerRadius:0,t=(m.getWidth()-l*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-l,y:a-l,width:l*2,height:l*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 _(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}_.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=_)}(),Number.isInteger=Number.isInteger||function(E){return typeof E=="number"&&isFinite(E)&&Math.floor(E)===E}},"mh/l":function(H,B,d){"use strict";d.d(B,"b",function(){return v}),d.d(B,"d",function(){return y}),d.d(B,"c",function(){return x});var _=d("pVnL"),E=d.n(_),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"),l=d.n(e),t=d("TSYQ"),a=d.n(t),s=d("BGR+"),u=d("LlR5"),h=d("H84U"),p=d("3Nzz"),g=d("uaoM");function v(S){return typeof S=="undefined"||S===null?"":S}function y(S,b,O){if(O){var I=b;if(b.type==="click"){I=Object.create(b),I.target=S,I.currentTarget=S;var L=S.value;S.value="",O(I),S.value=L;return}O(I)}}function x(S,b,O,I,L){var N;return a()(S,(N={},n()(N,"".concat(S,"-sm"),O==="small"),n()(N,"".concat(S,"-lg"),O==="large"),n()(N,"".concat(S,"-disabled"),I),n()(N,"".concat(S,"-rtl"),L==="rtl"),n()(N,"".concat(S,"-borderless"),!b),N))}var T=function(S){c()(O,S);var b=r()(O);function O(I){var L;A()(this,O),L=b.call(this,I),L.direction="ltr",L.focus=function(){L.input.focus()},L.saveClearableInput=function(D){L.clearableInput=D},L.saveInput=function(D){L.input=D},L.onFocus=function(D){var R=L.props.onFocus;L.setState({focused:!0},L.clearPasswordValueAttribute),R&&R(D)},L.onBlur=function(D){var R=L.props.onBlur;L.setState({focused:!1},L.clearPasswordValueAttribute),R&&R(D)},L.handleReset=function(D){L.setValue("",function(){L.focus()}),y(L.input,D,L.props.onChange)},L.renderInput=function(D,R,k){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},j=L.props,F=j.className,U=j.addonBefore,K=j.addonAfter,V=j.size,z=j.disabled,Q=Object(s.default)(L.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",E()({autoComplete:M.autoComplete},Q,{onChange:L.handleChange,onFocus:L.onFocus,onBlur:L.onBlur,onKeyDown:L.handleKeyDown,className:a()(x(D,k,V||R,z,L.direction),n()({},F,F&&!U&&!K)),ref:L.saveInput}))},L.clearPasswordValueAttribute=function(){L.removePasswordTimeout=setTimeout(function(){L.input&&L.input.getAttribute("type")==="password"&&L.input.hasAttribute("value")&&L.input.removeAttribute("value")})},L.handleChange=function(D){L.setValue(D.target.value,L.clearPasswordValueAttribute),y(L.input,D,L.props.onChange)},L.handleKeyDown=function(D){var R=L.props,k=R.onPressEnter,M=R.onKeyDown;D.keyCode===13&&k&&k(D),M&&M(D)},L.renderComponent=function(D){var R=D.getPrefixCls,k=D.direction,M=D.input,j=L.state,F=j.value,U=j.focused,K=L.props,V=K.prefixCls,z=K.bordered,Q=z===void 0?!0:z,Z=R("input",V);return L.direction=k,e.createElement(p.b.Consumer,null,function(le){return e.createElement(u.a,E()({size:le},L.props,{prefixCls:Z,inputType:"input",value:v(F),element:L.renderInput(Z,le,Q,M),handleReset:L.handleReset,ref:L.saveClearableInput,direction:k,focused:U,triggerFocus:L.focus,bordered:Q}))})};var N=typeof I.value=="undefined"?I.defaultValue:I.value;return L.state={value:N,focused:!1,prevValue:I.value},L}return m()(O,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(L){return Object(u.b)(L)!==Object(u.b)(this.props)&&Object(g.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(L,N){this.props.value===void 0&&this.setState({value:L},N)}},{key:"render",value:function(){return e.createElement(h.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(L,N){var D=N.prevValue,R={prevValue:L.value};return(L.value!==void 0||D!==L.value)&&(R.value=L.value),R}}]),O}(e.Component);T.defaultProps={type:"text"},B.a=T},mr32:function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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"),l=function(T,S){var b={};for(var O in T)Object.prototype.hasOwnProperty.call(T,O)&&S.indexOf(O)<0&&(b[O]=T[O]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(T);I<O.length;I++)S.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(T,O[I])&&(b[O[I]]=T[O[I]]);return b},t=function(S){var b,O=f.useContext(e.b),I=O.getPrefixCls,L=function(U){var K=S.checked,V=S.onChange,z=S.onClick;V&&V(!K),z&&z(U)},N=S.prefixCls,D=S.className,R=S.checked,k=l(S,["prefixCls","className","checked"]),M=I("tag",N),j=o()(M,(b={},E()(b,"".concat(M,"-checkable"),!0),E()(b,"".concat(M,"-checkable-checked"),R),b),D);return delete k.onChange,f.createElement("span",A()({},k,{className:j,onClick:L}))},a=t,s=d("09Wf"),u=d("g0mS"),h=function(T,S){var b={};for(var O in T)Object.prototype.hasOwnProperty.call(T,O)&&S.indexOf(O)<0&&(b[O]=T[O]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,O=Object.getOwnPropertySymbols(T);I<O.length;I++)S.indexOf(O[I])<0&&Object.prototype.propertyIsEnumerable.call(T,O[I])&&(b[O[I]]=T[O[I]]);return b},p=new RegExp("^(".concat(s.a.join("|"),")(-inverse)?$")),g=new RegExp("^(".concat(s.b.join("|"),")$")),v=function(S,b){var O,I=S.prefixCls,L=S.className,N=S.style,D=S.children,R=S.icon,k=S.color,M=S.onClose,j=S.closeIcon,F=S.closable,U=F===void 0?!1:F,K=h(S,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),V=f.useContext(e.b),z=V.getPrefixCls,Q=V.direction,Z=f.useState(!0),le=m()(Z,2),ne=le[0],ve=le[1];f.useEffect(function(){"visible"in K&&ve(K.visible)},[K.visible]);var xe=function(){return k?p.test(k)||g.test(k):!1},_e=A()({backgroundColor:k&&!xe()?k:void 0},N),Be=xe(),me=z("tag",I),Fe=o()(me,(O={},E()(O,"".concat(me,"-").concat(k),Be),E()(O,"".concat(me,"-has-color"),k&&!Be),E()(O,"".concat(me,"-hidden"),!ne),E()(O,"".concat(me,"-rtl"),Q==="rtl"),O),L),ie=function(de){if(de.stopPropagation(),M&&M(de),de.defaultPrevented)return;"visible"in K||ve(!1)},te=function(){return U?j?f.createElement("div",{className:"".concat(me,"-close-icon"),onClick:ie},j):f.createElement(n.a,{className:"".concat(me,"-close-icon"),onClick:ie}):null},Ge="onClick"in K||D&&D.type==="a",oe=Object(r.default)(K,["visible"]),Y=R||null,G=Y?f.createElement(f.Fragment,null,Y,f.createElement("span",null,D)):D,X=f.createElement("span",A()({},oe,{ref:b,className:Fe,style:_e}),G,te());return Ge?f.createElement(u.a,null,X):X},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,_){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,_)}return d[w].exports}for(var C=typeof require=="function"&&require,A=0;A<_.length;A++)E(_[A]);return E}return H}()({1:[function(H,B,d){"use strict";var _=H("./browser/client");_.Buffer=H("buffer").Buffer,_.urllib=H("../shims/xhr"),_.version=H("./browser/version").version,B.exports=_},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(H,B,d){(function(_,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"),l=H("merge-descriptors"),t=H("url"),a=H("is-type-of"),s=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,O=new e;function I(){var R=s.name,k=s.version;R&&R.toLowerCase&&R.toLowerCase()==="ie"&&k.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function N(R,k){if(I(),!(this instanceof N))return new N(R,k);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||O),this.ctx=k,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}B.exports=N,N.initOptions=function(k){k.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},k);return T(M)};var D=N.prototype;D.debug=r,l(D,H("./object")),l(D,H("../common/bucket/getBucketWebsite")),l(D,H("../common/bucket/putBucketWebsite")),l(D,H("../common/bucket/deleteBucketWebsite")),l(D,H("../common/bucket/getBucketLifecycle")),l(D,H("../common/bucket/putBucketLifecycle")),l(D,H("../common/bucket/deleteBucketLifecycle")),l(D,H("../common/bucket/putBucketVersioning")),l(D,H("../common/bucket/getBucketVersioning")),l(D,H("./managed-upload")),l(D,H("../common/multipart")),l(D,H("../common/parallel")),D.signature=function(k){return this.debug("authorization stringToSign: %s",k,"info"),v.computeSignature(this.options.accessKeySecret,k)},D.authorization=function(k,M,j,F){var U=v.buildCanonicalString(k.toUpperCase(),M,{headers:F,parameters:j});return v.authorization(this.options.accessKeyId,this.options.accessKeySecret,U)},D.request=function(k){var M,j,F,U,K,V;return m.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return M=b.call(this,k),this.options.useFetch||(M.params.mode="disable-fetch"),j=void 0,F=void 0,U=!!k.stream,Q.prev=5,Q.next=8,m.default.awrap(this.urllib.request(M.url,M.params));case 8:j=Q.sent,this.debug("response %s %s, got %s, headers: %j",k.method,M.url,j.status,j.headers,"info"),Q.next=15;break;case 12:Q.prev=12,Q.t0=Q.catch(5),F=Q.t0;case 15:if(K=void 0,!(j&&k.successStatuses&&k.successStatuses.indexOf(j.status)===-1)){Q.next=28;break}return Q.next=19,m.default.awrap(this.requestError(j));case 19:if(K=Q.sent,!(K.code==="RequestTimeTooSkewed"&&!U)){Q.next=25;break}return this.options.amendTimeSkewed=+new Date(K.serverTime)-new Date,Q.next=24,m.default.awrap(this.request(k));case 24:return Q.abrupt("return",Q.sent);case 25:K.params=k,Q.next=32;break;case 28:if(!F){Q.next=32;break}return Q.next=31,m.default.awrap(this.requestError(F));case 31:K=Q.sent;case 32:if(!K){Q.next=34;break}throw K;case 34:if(!k.xmlResponse){Q.next=39;break}return Q.next=37,m.default.awrap(this.parseXML(j.data));case 37:V=Q.sent,j.data=V;case 39:return Q.abrupt("return",j);case 40:case"end":return Q.stop()}},null,this,[[5,12]])},D._getResource=function(k){var M="/";return k.bucket&&(M+=k.bucket+"/"),k.object&&(M+=k.object),M},D._isIP=x,D._escape=function(k){return u.encodeURIComponent(k).replace(/%2F/g,"/")},D._getReqUrl=function(k){var M={};i(this.options.endpoint).to(M);var j=this._isIP(M.hostname),F=this.options.cname;k.bucket&&!F&&!j&&(M.host=k.bucket+"."+M.host);var U="/";k.bucket&&j&&(U+=k.bucket+"/"),k.object&&(U+=this._escape(k.object).replace(/\+/g,"%2B")),M.pathname=U;var K={};if(k.query&&l(K,k.query),k.subres){var V={};a.string(k.subres)?V[k.subres]="":a.array(k.subres)?k.subres.forEach(function(z){V[z]=""}):V=k.subres,l(K,V)}return M.query=K,t.format(M)},D._getUserAgent=function(){var k=E&&E.browser?"js":"nodejs",M="aliyun-sdk-"+k+"/"+p.version,j=s.description;return!j&&E&&(j="Node.js "+E.version.slice(1)+" on "+E.platform+" "+E.arch),this._checkUserAgent(M+" "+j)},D._checkUserAgent=function(k){var M=k.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},D.checkBrowserAndVersion=function(k,M){return g.name===k&&g.version.split(".")[0]===M},D.parseXML=function(k){return new A.default(function(M,j){_.isBuffer(k)&&(k=k.toString()),n.parseString(k,{explicitRoot:!1,explicitArray:!1},function(F,U){F?j(F):M(U)})})},D.requestError=function(k){var M,j,F,U;return m.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(M=null,!(!k.data||!k.data.length)){V.next=5;break}k.status===-1||k.status===-2?(M=new Error(k.message),M.name=k.name,M.status=k.status,M.code=k.name):(k.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):k.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+k.status),M.name="UnknowError",M.status=k.status),M.requestId=k.headers["x-oss-request-id"],M.host=""),V.next=33;break;case 5:return j=String(k.data),this.debug("request response error data: %s",j,"error"),F=void 0,V.prev=8,V.next=11,m.default.awrap(this.parseXML(j));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(j,"error"),V.t1.message+=`
|
|
|
raw xml: `+j,V.t1.status=k.status,V.t1.requestId=k.headers["x-oss-request-id"],V.abrupt("return",V.t1);case 24:U=F.Message||"unknow request error, status: "+k.status,F.Condition&&(U+=" (condition: "+F.Condition+")"),M=new Error(U),M.name=F.Code?F.Code+"Error":"UnknowError",M.status=k.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(_){"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"),l=H("../common/utils/isBlob"),t=l.isBlob,a=H("../common/utils/isFile"),s=a.isFile,u=d;u.multipartUpload=function(y,x,T){var S,b,O,I,L,N,D,R,k;return f.default.async(function(j){for(;;)switch(j.prev=j.next){case 0:if(this.resetCancelFlag(),T=T||{},!(T.checkpoint&&T.checkpoint.uploadId)){j.next=6;break}return j.next=5,f.default.awrap(this._resumeMultipart(T.checkpoint,T));case 5:return j.abrupt("return",j.sent);case 6:return S=100*1024,T.mime||(s(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),j.next=12,f.default.awrap(this._getFileSize(x));case 12:if(b=j.sent,!(b<S)){j.next=25;break}return O=this._createStream(x,0,b),T.contentLength=b,j.next=18,f.default.awrap(this.putStream(y,O,T));case 18:if(I=j.sent,!(T&&T.progress)){j.next=22;break}return j.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),j.abrupt("return",L);case 25:if(!(T.partSize&&!(parseInt(T.partSize,10)===T.partSize))){j.next=27;break}throw new Error("partSize must be int number");case 27:if(!(T.partSize&&T.partSize<S)){j.next=29;break}throw new Error("partSize must not be smaller than "+S);case 29:return j.next=31,f.default.awrap(this.initMultipartUpload(y,T));case 31:if(N=j.sent,D=N.uploadId,R=this._getPartSize(b,T.partSize),k={file:x,name:y,fileSize:b,partSize:R,uploadId:D,doneParts:[]},!(T&&T.progress)){j.next=38;break}return j.next=38,f.default.awrap(T.progress(0,k,N.res));case 38:return j.next=40,f.default.awrap(this._resumeMultipart(k,T));case 40:return j.abrupt("return",j.sent);case 41:case"end":return j.stop()}},null,this)},u._resumeMultipart=function(y,x){var T,S,b,O,I,L,N,D,R,k,M,j,F,U,K,V,z,Q;return f.default.async(function(le){for(;;)switch(le.prev=le.next){case 0:if(T=this,!this.isCancel()){le.next=3;break}throw this._makeCancelEvent();case 3:return S=y.file,b=y.fileSize,O=y.partSize,I=y.uploadId,L=y.doneParts,N=y.name,D=[],L.length>0&&e(L).to(D),R=this._divideParts(b,O),k=R.length,M=!1,j=function(ve,xe){var _e=this;return new w.default(function(me,Fe){var ie,te,Ge,oe;return f.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,ve.isCancel()){G.next=18;break}return ie=R[xe-1],te={stream:ve._createStream(S,ie.start,ie.end),size:ie.end-ie.start},G.next=6,f.default.awrap(ve._uploadPart(N,I,xe,te));case 6:if(Ge=G.sent,!(!ve.isCancel()&&!M)){G.next=15;break}if(y.doneParts.push({number:xe,etag:Ge.res.headers.etag}),!x.progress){G.next=12;break}return G.next=12,f.default.awrap(x.progress(L.length/k,y,Ge.res));case 12:me({number:xe,etag:Ge.res.headers.etag}),G.next=16;break;case 15:me();case 16:G.next=19;break;case 18:me();case 19:G.next=30;break;case 21:G.prev=21,G.t0=G.catch(0),oe=new Error,oe.name=G.t0.name,oe.message=G.t0.message,oe.stack=G.t0.stack,oe.partNum=xe,e(G.t0).to(oe),Fe(oe);case 30:case"end":return G.stop()}},null,_e,[[0,21]])})},F=(0,C.default)(new Array(k),function(ne,ve){return ve+1}),U=D.map(function(ne){return ne.number}),K=F.filter(function(ne){return U.indexOf(ne)<0}),V=5,z=x.parallel||V,le.next=17,f.default.awrap(this._parallel(K,z,function(ne){return new w.default(function(ve,xe){j(T,ne).then(function(_e){_e&&D.push(_e),ve()}).catch(function(_e){xe(_e)})})}));case 17:if(Q=le.sent,M=!0,!this.isCancel()){le.next=22;break}throw j=null,this._makeCancelEvent();case 22:if(!(Q&&Q.length>0)){le.next=25;break}throw Q[0].message="Failed to upload some parts with error: "+Q[0].toString()+" part_num: "+Q[0].partNum,Q[0];case 25:return le.next=27,f.default.awrap(this.completeMultipartUpload(N,I,D,x));case 27:return le.abrupt("return",le.sent);case 28:case"end":return le.stop()}},null,this)},u._getFileSize=function(y){return f.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(!o.buffer(y)){T.next=4;break}return T.abrupt("return",y.length);case 4:if(!(t(y)||s(y))){T.next=6;break}return T.abrupt("return",y.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return T.stop()}},null,this)};var h=H("stream"),p=h.Readable;function 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=_.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)||s(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 O=x*b,I=Math.min(O+x,y);S.push({start:O,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 _=H("babel-runtime/core-js/promise"),E=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"),l=H("copy-to"),t=H("path"),a=H("mime"),s=H("../common/callback"),u=H("../common/signUtils"),h=H("merge-descriptors"),p=H("../common/utils/isBlob"),g=p.isBlob,v=H("../common/utils/isFile"),y=v.isFile,x=d;x.append=function(S,b,O){var I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return O=O||{},O.position===void 0&&(O.position="0"),O.subres={append:"",position:O.position},O.method="POST",N.next=6,c.default.awrap(this.put(S,b,O));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,O){var I,L,N,D,R,k,M;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(I=void 0,O=O||{},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 O.mime||(y(b)?O.mime=a.getType(t.extname(b.name)):O.mime=b.type),L=this._createStream(b,0,b.size),F.next=12,c.default.awrap(this._getFileSize(b));case 12:return O.contentLength=F.sent,F.prev=13,F.next=16,c.default.awrap(this.putStream(S,L,O));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,O));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 O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),D=O.method||"PUT",R=this._objectRequestParams(D,S,O),s.encodeCallback(R,O),R.mime=O.mime,R.content=I,R.successStatuses=[200],F.next=43,c.default.awrap(this.request(R));case 43:return k=F.sent,M={name:S,url:this._objectUrl(S),res:k.res},R.headers&&R.headers["x-oss-callback"]&&(M.data=JSON.parse(k.data.toString())),F.abrupt("return",M);case 47:case"end":return F.stop()}},null,this,[[13,20]])},x.putStream=function(S,b,O){var I,L,N,D;return c.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:return O=O||{},O.headers=O.headers||{},S=this._objectName(S),O.contentLength?O.headers["Content-Length"]=O.contentLength:O.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(O.meta,O.headers),I=O.method||"PUT",L=this._objectRequestParams(I,S,O),s.encodeCallback(L,O),L.mime=O.mime,L.stream=b,L.successStatuses=[200],k.next=13,c.default.awrap(this.request(L));case 13:return N=k.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())),k.abrupt("return",D);case 17:case"end":return k.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,O){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:O&&O.timeout,ctx:O&&O.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 O,I,L,N,D;return c.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:return O=this._objectRequestParams("GET","",b),O.query=S,O.xmlResponse=!0,O.successStatuses=[200],k.next=6,c.default.awrap(this.request(O));case 6:return I=k.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})),k.abrupt("return",{res:I.res,objects:L,prefixes:D,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return k.stop()}},null,this)},x.restore=function(S,b){var O,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),O=this._objectRequestParams("POST",S,b),O.successStatuses=[202],N.next=7,c.default.awrap(this.request(O));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 O=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,O),D=e.parse(this._getReqUrl(I));return D.query={OSSAccessKeyId:this.options.accessKeyId,Expires:O,Signature:N.Signature},l(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),O=this.options.bucket;b.hostname=O+"."+b.hostname,b.host=O+"."+b.host,S=b.format()}return S+this._escape(this._objectName(T))},x._objectRequestParams=function(S,b,O){if(!this.options.bucket)throw new Error("Please create a bucket first");O=O||{},b=this._objectName(b);var I={object:b,bucket:this.options.bucket,method:S,subres:O&&O.subres,timeout:O&&O.timeout,ctx:O&&O.ctx};return O.headers&&(I.headers={},l(O.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(O){b["x-oss-meta-"+O]=S[O]})},x._deleteFileSafe=function(S){var b=this;return new E.default(function(O){i.exists(S,function(I){I?i.unlink(S,function(L){L&&b.debug("unlink %j error: %s",S,L,"error"),O()}):O()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(H,B,d){"use strict";d.version="6.10.0"},{}],6:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=C(_);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 _=H("babel-runtime/regenerator"),E=C(_);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 _=H("babel-runtime/regenerator"),E=C(_);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 l,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return w(n),l=this._bucketRequestParams("GET",n,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,u.next=6,E.default.awrap(this.request(l));case 6:return t=u.sent,a=t.data.Rule||null,a&&(f(a)||(a=[a]),a=a.map(function(h){return h.ID&&(h.id=h.ID,delete h.ID),h.Tag&&!f(h.Tag)&&(h.Tag=[h.Tag]),o(h,"firstLowerCase")})),u.abrupt("return",{rules:a,res:t.res});case 10:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=C(_);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(l){for(;;)switch(l.prev=l.next){case 0:return w(c),r=this._bucketRequestParams("GET",c,"versioning",o),r.xmlResponse=!0,r.successStatuses=[200],l.next=6,E.default.awrap(this.request(r));case 6:return i=l.sent,n=i.data.Status,l.abrupt("return",{status:i.status,versionStatus:n,res:i.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=C(_);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,l;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,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(f(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=e.data.RoutingRules.RoutingRule),a.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:l,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return a.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=C(_);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,l=H("../utils/checkObjectTag"),t=l.checkObjectTag,a=H("../utils/getStrBytesCount"),s=a.getStrBytesCount,u=d;u.putBucketLifecycle=function(x,T,S){var b,O,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),O=[],I={LifecycleConfiguration:{Rule:O}},T.forEach(function(k){h(k),v(k),k.id&&(k.ID=k.id,delete k.id),O.push(k)}),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&&s(y.id)>255)throw new Error("ID is composed of 255 bytes at most");if(y.prefix===""||y.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(y.status))throw new Error("Status must be Enabled or Disabled");if(y.transition){if(!["IA","Archive"].includes(y.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(y.transition,"Transition")}if(y.expiration){if(!y.expiration.expiredObjectDeleteMarker)p(y.expiration,"Expiration");else if(y.expiration.days||y.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(y.abortMultipartUpload&&p(y.abortMultipartUpload,"AbortMultipartUpload"),!y.expiration&&!y.abortMultipartUpload&&!y.transition&&!y.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(y.tag){if(y.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");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 _=H("babel-runtime/regenerator"),E=C(_);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,l,t;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(w(r),["Enabled","Suspended"].includes(i)){s.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",r,"versioning",n),l={VersioningConfiguration:{Status:i}},e.mime="xml",e.content=f(l,{headers:!0}),s.next=9,E.default.awrap(this.request(e));case 9:return t=s.sent,s.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=C(_);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]:{},l=arguments[2],t,a,s,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",l),a={Suffix:e.index||"index.html"},s={IndexDocument:a},u={WebsiteConfiguration:s},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(s.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){g.next=12;break}if(o(e.routingRules)){g.next=11;break}throw new Error("RoutingRules must be Array");case 11:s.RoutingRules={RoutingRule:e.routingRules};case 12:return u=f(u),t.content=u,t.mime="xml",t.successStatuses=[200],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(_){"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=_.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"]=_.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 _=H("babel-runtime/core-js/object/assign"),E=C(_);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://",l=i?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return r.substr(0,t.length)===t&&(l=".aliyuncs.com"),w.parse(e+r+l)}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 _=H("merge-descriptors"),E=d;_(E,H("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=C(_);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,l,t){var a,s,u,h;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r(n,"sourceObject"),r(e,"targetObject"),r(l,"process"),e=this._objectName(e),t&&w(t),a=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),s=t?",b_"+c(t):"",e=c(e),u={"x-oss-process":l+"|sys/saveas,o_"+e+s},a.content=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 _=H("babel-runtime/regenerator"),E=C(_);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,l,t;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},n={},A(i).to(n),n.subres="uploads",e=this._objectRequestParams("GET","",n),e.query=r,e.xmlResponse=!0,e.successStatuses=[200],s.next=10,E.default.awrap(this.request(e));case 10:return l=s.sent,t=l.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),s.abrupt("return",{res:l.res,uploads:t,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return s.stop()}},null,this)},c.listParts=function(r,i,n,e){var l,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=e||{},l={},A(e).to(l),l.subres={uploadId:i},t=this._objectRequestParams("GET",r,l),t.query=n,t.xmlResponse=!0,t.successStatuses=[200],u.next=10,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,l,t;return E.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return this._stop(),n=n||{},e={},A(n).to(e),e.subres={uploadId:i},l=this._objectRequestParams("DELETE",r,e),l.successStatuses=[204],s.next=9,E.default.awrap(this.request(l));case 9:return t=s.sent,s.abrupt("return",{res:t.res});case 11:case"end":return s.stop()}},null,this)},c.initMultipartUpload=function(r,i){var n,e,l;return 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 l=a.sent,a.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return a.stop()}},null,this)},c.uploadPart=function(r,i,n,e,l,t,a){var s;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return s={stream:this._createStream(e,l,t),size:t-l},h.next=3,E.default.awrap(this._uploadPart(r,i,n,s,a));case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},null,this)},c.completeMultipartUpload=function(r,i,n,e){var l,t,a,s,u,h,p,g;return E.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(l=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<l.length;a++)s=l[a],t+=`<Part>
|
|
|
`,t+="<PartNumber>"+s.number+`</PartNumber>
|
|
|
`,t+="<ETag>"+s.etag+`</ETag>
|
|
|
`,t+=`</Part>
|
|
|
`;return t+="</CompleteMultipartUpload>",e=e||{},u={},u=f(e),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:i},h=this._objectRequestParams("POST",r,u),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,l){var t,a,s;return E.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return l=l||{},t={},A(l).to(t),t.headers={"Content-Length":e.size},t.subres={partNumber:n,uploadId:i},a=this._objectRequestParams("PUT",r,t),a.mime=t.mime,a.stream=e.stream,a.successStatuses=[200],h.next=11,E.default.awrap(this.request(a));case 11:if(s=h.sent,s.res.headers.etag){h.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 14:return e.stream=null,a.stream=null,h.abrupt("return",{name:r,etag:s.res.headers.etag,res:s.res});case 17:case"end":return h.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=f(_),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,l,t){var a,s,u;return E.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof l=="undefined"?"undefined":(0,m.default)(l))==="object"&&(t=l),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,l),t.versionId&&(e=e+"?versionId="+t.versionId),t.headers["x-oss-copy-source"]=e,a=this._objectRequestParams("PUT",n,t),a.xmlResponse=!0,a.successStatuses=[200,304],p.next=14,E.default.awrap(this.request(a));case 14:return s=p.sent,u=s.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),p.abrupt("return",{data:u,res:s.res});case 18:case"end":return p.stop()}},null,this)},r._getSourceName=function(n,e){return typeof e=="string"?n=this._objectName(n):n[0]!=="/"?e=this.options.bucket:(e=n.replace(/\/(.+?)(\/.*)/,"$1"),n=n.replace(/(\/.+?\/)(.*)/,"$2")),o(e),n=encodeURI(n),n="/"+e+"/"+n,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=w(_),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 _=H("babel-runtime/regenerator"),E=w(_),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,l,t,a,s,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(l=0;l<i.length;l++)t={},typeof i[l]=="string"?t.Key=m.escape(this._objectName(i[l])):(a=i[l],s=a.key,u=a.versionId,t.Key=m.escape(this._objectName(s)),t.VersionId=u),e.push(t);return h={Delete:{Quiet:!!n.quiet,Object:e}},p=c(h,{headers:!0}),n.subres=(0,A.default)({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),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 _=H("babel-runtime/regenerator"),E=w(_),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 _=H("babel-runtime/regenerator"),E=w(_),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,l,t,a;return E.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=null,l=!1,f.writableStream(i)?e=i:f.string(i)?(e=m.createWriteStream(i),l=!0):n=i,n=n||{},n.subres=(0,A.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),t=void 0,u.prev=8,a=this._objectRequestParams("GET",r,n),a.writeStream=e,a.successStatuses=[200,206,304],u.next=14,E.default.awrap(this.request(a));case 14:t=u.sent,l&&e.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!l){u.next=24;break}return e.destroy(),u.next=24,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 _=H("babel-runtime/regenerator"),E=w(_),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 _=H("babel-runtime/core-js/object/keys"),E=f(_),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]:{},s=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 s.subres=(0,m.default)({versions:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectRequestParams("GET","",s),u.xmlResponse=!0,u.successStatuses=[200],u.query=t(a),T.next=10,A.default.awrap(this.request(u));case 10:return h=T.sent,p=h.data.Version||[],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 l(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s={};return r(a)&&(0,E.default)(a).forEach(function(u){s[l(u)]=a[u]}),s}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=w(_),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 _=H("babel-runtime/regenerator"),E=w(_),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,l,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 l=u.sent,t=l.TagSet.Tag,t=t&&c(t)?[t]:t||[],a={},t.forEach(function(h){a[h.Key]=h.Value}),u.abrupt("return",{status:e.status,res:e.res,tag:a});case 16:case"end":return u.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=w(_),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(l){for(;;)switch(l.prev=l.next){case 0:return o.subres=(0,A.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],l.next=7,E.default.awrap(this.request(r));case 7:return i=l.sent,n=i.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(n),res:i.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=f(_),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,l;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,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(s){s.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[s.substring(11)]=e.headers[s])}),a.abrupt("return",l);case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=w(_),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(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},r.subres=(0,A.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=o,c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],l.next=10,E.default.awrap(this.request(i));case 10:return n=l.sent,l.abrupt("return",{res:n.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=f(_),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(l,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,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),l=this._objectName(l),s=this._objectRequestParams("PUT",l,a),s.successStatuses=[200],t=(0,A.default)(t).map(function(v){return{Key:v,Value:t[v]}}),u={Tagging:{TagSet:{Tag:t}}},s.mime="xml",s.content=o(u),g.next=12,E.default.awrap(this.request(s));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 _=H("babel-runtime/regenerator"),E=w(_),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(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},r.headers=r.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=o,r.subres=(0,A.default)({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],l.next=13,E.default.awrap(this.request(i));case 13:return n=l.sent,l.abrupt("return",{res:n.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(H,B,d){"use strict";var _=H("babel-runtime/regenerator"),E=w(_),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,l,t,a,s,u,h;return E.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:n=this,e=[],l=[],t=c.length/o,a=c.length%o,s=a===0?t:(c.length-a)/o+1,u=1,h=0;case 8:if(!(h<c.length)){g.next=26;break}if(!n.isCancel()){g.next=11;break}return g.abrupt("break",26);case 11:if(i?l.push(r(n,c[h],i)):l.push(r(n,c[h])),!(l.length===o||u===s&&h===c.length-1)){g.next=23;break}return g.prev=13,u+=1,g.next=17,E.default.awrap(A.default.all(l));case 17:g.next=22;break;case 19:g.prev=19,g.t0=g.catch(13),e.push(g.t0);case 22:l=[];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 l(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),s=!1,u=0,h=!1;function p(y,x){u-=1,y?(s=!0,e.push(y),n(e)):x==={}||s&&u<=0?(s=!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&&!s&&!i.isCancel();){var y=a();if(y===null||e.length>0){s=!0,u<=0&&n(e);return}u+=1,g(y.value,l(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(_){"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 l=function(s,u){return s[0]>u[0]?1:s[0]<u[0]?-1:0},t=function(s){n+=e+s,i[s]&&(n+="="+i[s]),e="&"};(0,w.default)(i).sort(l).forEach(t)}return n},d.buildCanonicalString=function(r,i,n,e){n=n||{};var l=n.headers||{},t="x-oss-",a=[],s={},u=[r.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,w.default)(l).forEach(function(h){var p=h.toLowerCase();p.indexOf(t)===0&&(s[p]=String(l[h]).trim())}),(0,w.default)(s).sort().forEach(function(h){a.push(h+":"+s[h])}),u=u.concat(a),u.push(this.buildCanonicalizedResource(i,n.parameters)),u.join(`
|
|
|
`)},d.computeSignature=function(r,i){var n=f.createHmac("sha1",r);return n.update(_.from(i,"utf8")).digest("base64")},d.authorization=function(r,i,n){return"OSS "+r+":"+this.computeSignature(i,n)},d._signatureForURL=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments[2],e=arguments[3],l={},t=i.subResource,a=t===void 0?{}:t;if(i.process){var s="x-oss-process";a[s]=i.process}if(i.trafficLimit){var u="x-oss-traffic-limit";a[u]=i.trafficLimit}if(i.response&&(0,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?l[y]=x:(y.indexOf("content-md5")===0||y.indexOf("content-type")===0)&&(l[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=_.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"]=_.from((0,C.default)(p)).toString("base64")}}var g=this.buildCanonicalString(i.method,n,{headers:l,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(_,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(_))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(H,B,d){"use strict";var _=H("babel-runtime/core-js/object/entries"),E=C(_);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(l){l.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 _(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=_},{}],38:[function(H,B,d){(function(_){"use strict";var E=H("babel-runtime/core-js/object/assign"),C=A(E);function A(l){return l&&l.__esModule?l:{default:l}}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(l,t){return l[t]||l[t.toLowerCase()]}function n(l,t){delete l[t],delete l[t.toLowerCase()]}function e(l){var t=new Date;this.options.amendTimeSkewed&&(t=+new Date+this.options.amendTimeSkewed);var a={"x-oss-date":c(t,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(a["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,C.default)(a,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(a["x-oss-security-token"]=this.options.stsToken),o(l.headers).to(a),i(a,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?a["Content-Type"]=l.mime:a["Content-Type"]=f.getType(l.mime||r.extname(l.object||""))),i(a,"Content-Type")||n(a,"Content-Type"),l.content&&(a["Content-Md5"]=w.createHash("md5").update(_.from(l.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=l.content.length));var s=this._getResource(l);a.authorization=this.authorization(l.method,s,l.subres,a);var u=this._getReqUrl(l);m("request %s %s, with headers %j, !!stream: %s",l.method,u,a,!!l.stream);var h=l.timeout||this.options.timeout,p={method:l.method,content:l.content,stream:l.stream,headers:a,timeout:h,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(p.agent=this.agent),this.httpsAgent&&(p.httpsAgent=this.httpsAgent),{url:u,params:p}}d.createRequest=e}).call(this,H("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(H,B,d){"use strict";var _=H("babel-runtime/core-js/object/keys"),E=w(_),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 _=H("babel-runtime/core-js/object/keys"),E=w(_),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 _(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=_},{}],42:[function(H,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isArray=void 0,d.isArray=function(_){return Object.prototype.toString.call(_)==="[object Array]"}},{}],43:[function(H,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function _(E){return typeof Blob!="undefined"&&E instanceof Blob}d.isBlob=_},{}],44:[function(H,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isFile=void 0,d.isFile=function(_){return typeof File!="undefined"&&_ instanceof File}},{}],45:[function(H,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(_){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(_)||C.test(_)}},{}],46:[function(H,B,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isObject=void 0,d.isObject=function(_){return Object.prototype.toString.call(_)==="[object Object]"}},{}],47:[function(H,B,d){"use strict";var _=H("babel-runtime/core-js/object/keys"),E=C(_);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=_,B.exports.HttpsAgent=_;function _(){}},{}],49:[function(H,B,d){B.exports=H("./register")().Promise},{"./register":51}],50:[function(H,B,d){"use strict";var _="@@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[_]||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[_]=E)),E}}},{}],51:[function(H,B,d){"use strict";B.exports=H("./loader")(window,_);function _(){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 _=H("../core-js/symbol/iterator"),E=m(_),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 _=[],E=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,m=A.length;w<m;++w)_[w]=A[w],E[A.charCodeAt(w)]=w;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63;function f(l){var t=l.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=t);var s=a===t?0:4-a%4;return[a,s]}function c(l){var t=f(l),a=t[0],s=t[1];return(a+s)*3/4-s}function o(l,t,a){return(t+a)*3/4-a}function r(l){var t,a=f(l),s=a[0],u=a[1],h=new C(o(l,s,u)),p=0,g=u>0?s-4:s,v;for(v=0;v<g;v+=4)t=E[l.charCodeAt(v)]<<18|E[l.charCodeAt(v+1)]<<12|E[l.charCodeAt(v+2)]<<6|E[l.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=E[l.charCodeAt(v)]<<2|E[l.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=E[l.charCodeAt(v)]<<10|E[l.charCodeAt(v+1)]<<4|E[l.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(l){return _[l>>18&63]+_[l>>12&63]+_[l>>6&63]+_[l&63]}function n(l,t,a){for(var s,u=[],h=t;h<a;h+=3)s=(l[h]<<16&16711680)+(l[h+1]<<8&65280)+(l[h+2]&255),u.push(i(s));return u.join("")}function e(l){for(var t,a=l.length,s=a%3,u=[],h=16383,p=0,g=a-s;p<g;p+=h)u.push(n(l,p,p+h>g?g:p+h));return s===1?(t=l[a-1],u.push(_[t>>2]+_[t<<4&63]+"==")):s===2&&(t=(l[a-2]<<8)+l[a-1],u.push(_[t>>10]+_[t>>4&63]+_[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(_,E,C){typeof B!="undefined"&&B.exports?B.exports=C():typeof define=="function"&&define.amd?define(E,C):_[E]=C()}(this,"bowser",function(){var _=!0;function E(o){function r(j){var F=o.match(j);return F&&F.length>1&&F[1]||""}function i(j){var F=o.match(j);return F&&F.length>1&&F[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),l=!e&&/android/i.test(o),t=/nexus\s*[0-6]\s*/i.test(o),a=!t&&/nexus\s*[0-9]+/i.test(o),s=/CrOS/.test(o),u=/silk/i.test(o),h=/sailfish/i.test(o),p=/tizen/i.test(o),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=!l&&!h&&!p&&!g&&/linux/i.test(o),b=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),O=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:_,version:O||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?D={name:"Opera",opera:_,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||O}:/SamsungBrowser/i.test(o)?D={name:"Samsung Internet for Android",samsungBrowser:_,version:O||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?D={name:"NAVER Whale browser",whale:_,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?D={name:"MZ Browser",mzbrowser:_,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?D={name:"Opera Coast",coast:_,version:O||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?D={name:"Focus",focus:_,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?D={name:"Yandex Browser",yandexbrowser:_,version:O||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?D={name:"UC Browser",ucbrowser:_,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?D={name:"Maxthon",maxthon:_,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?D={name:"Epiphany",epiphany:_,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?D={name:"Puffin",puffin:_,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?D={name:"Sleipnir",sleipnir:_,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?D={name:"K-Meleon",kMeleon:_,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:v?(D={name:"Windows Phone",osname:"Windows Phone",windowsphone:_},b?(D.msedge=_,D.version=b):(D.msie=_,D.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?D={name:"Internet Explorer",msie:_,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:s?D={name:"Chrome",osname:"Chrome OS",chromeos:_,chromeBook:_,chrome:_,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?D={name:"Microsoft Edge",msedge:_,version:b}:/vivaldi/i.test(o)?D={name:"Vivaldi",vivaldi:_,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||O}:h?D={name:"Sailfish",osname:"Sailfish OS",sailfish:_,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?D={name:"SeaMonkey",seamonkey:_,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(D={name:"Firefox",firefox:_,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(D.firefoxos=_,D.osname="Firefox OS")):u?D={name:"Amazon Silk",silk:_,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?D={name:"PhantomJS",phantom:_,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?D={name:"SlimerJS",slimer:_,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?D={name:"BlackBerry",osname:"BlackBerry OS",blackberry:_,version:O||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(D={name:"WebOS",osname:"WebOS",webos:_,version:O||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(D.touchpad=_)):/bada/i.test(o)?D={name:"Bada",osname:"Bada",bada:_,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?D={name:"Tizen",osname:"Tizen",tizen:_,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||O}:/qupzilla/i.test(o)?D={name:"QupZilla",qupzilla:_,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||O}:/chromium/i.test(o)?D={name:"Chromium",chromium:_,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||O}:/chrome|crios|crmo/i.test(o)?D={name:"Chrome",chrome:_,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?D={name:"Android",version:O}:/safari|applewebkit/i.test(o)?(D={name:"Safari",safari:_},O&&(D.version=O)):n?(D={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},O&&(D.version=O)):/googlebot/i.test(o)?D={name:"Googlebot",googlebot:_,version:r(/googlebot\/(\d+(\.\d+))/i)||O}: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=_):(D.name=D.name||"Webkit",D.webkit=_),!D.version&&O&&(D.version=O)):!D.opera&&/gecko\//i.test(o)&&(D.name=D.name||"Gecko",D.gecko=_,D.version=D.version||r(/gecko\/(\d+(\.\d+)?)/i)),!D.windowsphone&&(l||D.silk)?(D.android=_,D.osname="Android"):!D.windowsphone&&n?(D[n]=_,D.ios=_,D.osname="iOS"):T?(D.mac=_,D.osname="macOS"):N?(D.xbox=_,D.osname="Xbox"):x?(D.windows=_,D.osname="Windows"):S&&(D.linux=_,D.osname="Linux");function R(j){switch(j){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var k="";D.windows?k=R(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):D.windowsphone?k=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):D.mac?(k=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),k=k.replace(/[_\s]/g,".")):n?(k=r(/os (\d+([_\s]\d+)*) like mac os x/i),k=k.replace(/[_\s]/g,".")):l?k=r(/android[ \/-](\d+(\.\d+)*)/i):D.webos?k=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):D.blackberry?k=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):D.bada?k=r(/bada\/(\d+(\.\d+)*)/i):D.tizen&&(k=r(/tizen[\/\s](\d+(\.\d+)*)/i)),k&&(D.osversion=k);var M=!D.windows&&k.split(".")[0];return I||a||n=="ipad"||l&&(M==3||M>=4&&!L)||D.silk?D.tablet=_:(L||n=="iphone"||n=="ipod"||l||t||D.blackberry||D.webos||D.bada)&&(D.mobile=_),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=_: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=_:D.x=_,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(l){return new Array(20-l.length).join("0")+l}).reverse()});--r>=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]===i[1][r]){if(r===0)return 0}else return-1}}function f(o,r,i){var n=C;typeof r=="string"&&(i=r,r=void 0),r===void 0&&(r=!1),i&&(n=E(i));var e=""+n.version;for(var l in o)if(o.hasOwnProperty(l)&&n[l]){if(typeof o[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(o));return m([e,o[l]])<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 _=H("buffer").Buffer,E=_.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 _(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(_,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=_.TYPED_ARRAY_SUPPORT!==void 0?_.TYPED_ARRAY_SUPPORT:m(),d.kMaxLength=f();function m(){try{var oe=new Uint8Array(1);return oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},oe.foo()===42&&typeof oe.subarray=="function"&&oe.subarray(1,1).byteLength===0}catch(Y){return!1}}function f(){return E.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(oe,Y){if(f()<Y)throw new RangeError("Invalid typed array length");return E.TYPED_ARRAY_SUPPORT?(oe=new Uint8Array(Y),oe.__proto__=E.prototype):(oe===null&&(oe=new E(Y)),oe.length=Y),oe}function E(oe,Y,G){if(!E.TYPED_ARRAY_SUPPORT&&!(this instanceof E))return new E(oe,Y,G);if(typeof oe=="number"){if(typeof Y=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,oe)}return o(this,oe,Y,G)}E.poolSize=8192,E._augment=function(oe){return oe.__proto__=E.prototype,oe};function o(oe,Y,G,X){if(typeof Y=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Y instanceof ArrayBuffer?t(oe,Y,G,X):typeof Y=="string"?e(oe,Y,G):a(oe,Y)}E.from=function(oe,Y,G){return o(null,oe,Y,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(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be a number');if(oe<0)throw new RangeError('"size" argument must not be negative')}function i(oe,Y,G,X){return r(Y),Y<=0?c(oe,Y):G!==void 0?typeof X=="string"?c(oe,Y).fill(G,X):c(oe,Y).fill(G):c(oe,Y)}E.alloc=function(oe,Y,G){return i(null,oe,Y,G)};function n(oe,Y){if(r(Y),oe=c(oe,Y<0?0:s(Y)|0),!E.TYPED_ARRAY_SUPPORT)for(var G=0;G<Y;++G)oe[G]=0;return oe}E.allocUnsafe=function(oe){return n(null,oe)},E.allocUnsafeSlow=function(oe){return n(null,oe)};function e(oe,Y,G){if((typeof G!="string"||G==="")&&(G="utf8"),!E.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var X=h(Y,G)|0;oe=c(oe,X);var fe=oe.write(Y,G);return fe!==X&&(oe=oe.slice(0,fe)),oe}function l(oe,Y){var G=Y.length<0?0:s(Y.length)|0;oe=c(oe,G);for(var X=0;X<G;X+=1)oe[X]=Y[X]&255;return oe}function t(oe,Y,G,X){if(Y.byteLength,G<0||Y.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Y.byteLength<G+(X||0))throw new RangeError("'length' is out of bounds");return G===void 0&&X===void 0?Y=new Uint8Array(Y):X===void 0?Y=new Uint8Array(Y,G):Y=new Uint8Array(Y,G,X),E.TYPED_ARRAY_SUPPORT?(oe=Y,oe.__proto__=E.prototype):oe=l(oe,Y),oe}function a(oe,Y){if(E.isBuffer(Y)){var G=s(Y.length)|0;return oe=c(oe,G),oe.length===0||Y.copy(oe,0,0,G),oe}if(Y){if(typeof ArrayBuffer!="undefined"&&Y.buffer instanceof ArrayBuffer||"length"in Y)return typeof Y.length!="number"||Ge(Y.length)?c(oe,0):l(oe,Y);if(Y.type==="Buffer"&&w(Y.data))return l(oe,Y.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(oe){if(oe>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return oe|0}function u(oe){return+oe!=oe&&(oe=0),E.alloc(+oe)}E.isBuffer=function(Y){return!!(Y!=null&&Y._isBuffer)},E.compare=function(Y,G){if(!E.isBuffer(Y)||!E.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Y===G)return 0;for(var X=Y.length,fe=G.length,de=0,Ce=Math.min(X,fe);de<Ce;++de)if(Y[de]!==G[de]){X=Y[de],fe=G[de];break}return X<fe?-1:fe<X?1:0},E.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(Y,G){if(!w(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return E.alloc(0);var X;if(G===void 0)for(G=0,X=0;X<Y.length;++X)G+=Y[X].length;var fe=E.allocUnsafe(G),de=0;for(X=0;X<Y.length;++X){var Ce=Y[X];if(!E.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(fe,de),de+=Ce.length}return fe};function h(oe,Y){if(E.isBuffer(oe))return oe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(oe)||oe instanceof ArrayBuffer))return oe.byteLength;typeof oe!="string"&&(oe=""+oe);var G=oe.length;if(G===0)return 0;for(var X=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return Be(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return ie(oe).length;default:if(X)return Be(oe).length;Y=(""+Y).toLowerCase(),X=!0}}E.byteLength=h;function p(oe,Y,G){var X=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Y>>>=0,G<=Y)return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return j(this,Y,G);case"utf8":case"utf-8":return N(this,Y,G);case"ascii":return k(this,Y,G);case"latin1":case"binary":return M(this,Y,G);case"base64":return L(this,Y,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Y,G);default:if(X)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),X=!0}}E.prototype._isBuffer=!0;function g(oe,Y,G){var X=oe[Y];oe[Y]=oe[G],oe[G]=X}E.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Y;G+=2)g(this,G,G+1);return this},E.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Y;G+=4)g(this,G,G+3),g(this,G+1,G+2);return this},E.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Y;G+=8)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 Y=this.length|0;return Y===0?"":arguments.length===0?N(this,0,Y):p.apply(this,arguments)},E.prototype.equals=function(Y){if(!E.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:E.compare(this,Y)===0},E.prototype.inspect=function(){var Y="",G=d.INSPECT_MAX_BYTES;return this.length>0&&(Y=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Y+=" ... ")),"<Buffer "+Y+">"},E.prototype.compare=function(Y,G,X,fe,de){if(!E.isBuffer(Y))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),X===void 0&&(X=Y?Y.length:0),fe===void 0&&(fe=0),de===void 0&&(de=this.length),G<0||X>Y.length||fe<0||de>this.length)throw new RangeError("out of range index");if(fe>=de&&G>=X)return 0;if(fe>=de)return-1;if(G>=X)return 1;if(G>>>=0,X>>>=0,fe>>>=0,de>>>=0,this===Y)return 0;for(var Ce=de-fe,Me=X-G,ue=Math.min(Ce,Me),Ae=this.slice(fe,de),Te=Y.slice(G,X),Je=0;Je<ue;++Je)if(Ae[Je]!==Te[Je]){Ce=Ae[Je],Me=Te[Je];break}return Ce<Me?-1:Me<Ce?1:0};function v(oe,Y,G,X,fe){if(oe.length===0)return-1;if(typeof G=="string"?(X=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=fe?0:oe.length-1),G<0&&(G=oe.length+G),G>=oe.length){if(fe)return-1;G=oe.length-1}else if(G<0)if(fe)G=0;else return-1;if(typeof Y=="string"&&(Y=E.from(Y,X)),E.isBuffer(Y))return Y.length===0?-1:y(oe,Y,G,X,fe);if(typeof Y=="number")return Y=Y&255,E.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(oe,Y,G):Uint8Array.prototype.lastIndexOf.call(oe,Y,G):y(oe,[Y],G,X,fe);throw new TypeError("val must be string, number or Buffer")}function y(oe,Y,G,X,fe){var de=1,Ce=oe.length,Me=Y.length;if(X!==void 0&&(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le")){if(oe.length<2||Y.length<2)return-1;de=2,Ce/=2,Me/=2,G/=2}function ue(qe,Re){return de===1?qe[Re]:qe.readUInt16BE(Re*de)}var Ae;if(fe){var Te=-1;for(Ae=G;Ae<Ce;Ae++)if(ue(oe,Ae)===ue(Y,Te===-1?0:Ae-Te)){if(Te===-1&&(Te=Ae),Ae-Te+1===Me)return Te*de}else Te!==-1&&(Ae-=Ae-Te),Te=-1}else for(G+Me>Ce&&(G=Ce-Me),Ae=G;Ae>=0;Ae--){for(var Je=!0,At=0;At<Me;At++)if(ue(oe,Ae+At)!==ue(Y,At)){Je=!1;break}if(Je)return Ae}return-1}E.prototype.includes=function(Y,G,X){return this.indexOf(Y,G,X)!==-1},E.prototype.indexOf=function(Y,G,X){return v(this,Y,G,X,!0)},E.prototype.lastIndexOf=function(Y,G,X){return v(this,Y,G,X,!1)};function x(oe,Y,G,X){G=Number(G)||0;var fe=oe.length-G;X?(X=Number(X),X>fe&&(X=fe)):X=fe;var de=Y.length;if(de%2!==0)throw new TypeError("Invalid hex string");X>de/2&&(X=de/2);for(var Ce=0;Ce<X;++Ce){var Me=parseInt(Y.substr(Ce*2,2),16);if(isNaN(Me))return Ce;oe[G+Ce]=Me}return Ce}function T(oe,Y,G,X){return te(Be(Y,oe.length-G),oe,G,X)}function S(oe,Y,G,X){return te(me(Y),oe,G,X)}function b(oe,Y,G,X){return S(oe,Y,G,X)}function O(oe,Y,G,X){return te(ie(Y),oe,G,X)}function I(oe,Y,G,X){return te(Fe(Y,oe.length-G),oe,G,X)}E.prototype.write=function(Y,G,X,fe){if(G===void 0)fe="utf8",X=this.length,G=0;else if(X===void 0&&typeof G=="string")fe=G,X=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(X)?(X=X|0,fe===void 0&&(fe="utf8")):(fe=X,X=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var de=this.length-G;if((X===void 0||X>de)&&(X=de),Y.length>0&&(X<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ce=!1;;)switch(fe){case"hex":return x(this,Y,G,X);case"utf8":case"utf-8":return T(this,Y,G,X);case"ascii":return S(this,Y,G,X);case"latin1":case"binary":return b(this,Y,G,X);case"base64":return O(this,Y,G,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Y,G,X);default:if(Ce)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ce=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(oe,Y,G){return Y===0&&G===oe.length?C.fromByteArray(oe):C.fromByteArray(oe.slice(Y,G))}function N(oe,Y,G){G=Math.min(oe.length,G);for(var X=[],fe=Y;fe<G;){var de=oe[fe],Ce=null,Me=de>239?4:de>223?3:de>191?2:1;if(fe+Me<=G){var ue,Ae,Te,Je;switch(Me){case 1:de<128&&(Ce=de);break;case 2:ue=oe[fe+1],(ue&192)===128&&(Je=(de&31)<<6|ue&63,Je>127&&(Ce=Je));break;case 3:ue=oe[fe+1],Ae=oe[fe+2],(ue&192)===128&&(Ae&192)===128&&(Je=(de&15)<<12|(ue&63)<<6|Ae&63,Je>2047&&(Je<55296||Je>57343)&&(Ce=Je));break;case 4:ue=oe[fe+1],Ae=oe[fe+2],Te=oe[fe+3],(ue&192)===128&&(Ae&192)===128&&(Te&192)===128&&(Je=(de&15)<<18|(ue&63)<<12|(Ae&63)<<6|Te&63,Je>65535&&Je<1114112&&(Ce=Je))}}Ce===null?(Ce=65533,Me=1):Ce>65535&&(Ce-=65536,X.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),X.push(Ce),fe+=Me}return R(X)}var D=4096;function R(oe){var Y=oe.length;if(Y<=D)return String.fromCharCode.apply(String,oe);for(var G="",X=0;X<Y;)G+=String.fromCharCode.apply(String,oe.slice(X,X+=D));return G}function k(oe,Y,G){var X="";G=Math.min(oe.length,G);for(var fe=Y;fe<G;++fe)X+=String.fromCharCode(oe[fe]&127);return X}function M(oe,Y,G){var X="";G=Math.min(oe.length,G);for(var fe=Y;fe<G;++fe)X+=String.fromCharCode(oe[fe]);return X}function j(oe,Y,G){var X=oe.length;(!Y||Y<0)&&(Y=0),(!G||G<0||G>X)&&(G=X);for(var fe="",de=Y;de<G;++de)fe+=_e(oe[de]);return fe}function F(oe,Y,G){for(var X=oe.slice(Y,G),fe="",de=0;de<X.length;de+=2)fe+=String.fromCharCode(X[de]+X[de+1]*256);return fe}E.prototype.slice=function(Y,G){var X=this.length;Y=~~Y,G=G===void 0?X:~~G,Y<0?(Y+=X,Y<0&&(Y=0)):Y>X&&(Y=X),G<0?(G+=X,G<0&&(G=0)):G>X&&(G=X),G<Y&&(G=Y);var fe;if(E.TYPED_ARRAY_SUPPORT)fe=this.subarray(Y,G),fe.__proto__=E.prototype;else{var de=G-Y;fe=new E(de,void 0);for(var Ce=0;Ce<de;++Ce)fe[Ce]=this[Ce+Y]}return fe};function U(oe,Y,G){if(oe%1!==0||oe<0)throw new RangeError("offset is not uint");if(oe+Y>G)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=this[Y],de=1,Ce=0;++Ce<G&&(de*=256);)fe+=this[Y+Ce]*de;return fe},E.prototype.readUIntBE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=this[Y+--G],de=1;G>0&&(de*=256);)fe+=this[Y+--G]*de;return fe},E.prototype.readUInt8=function(Y,G){return G||U(Y,1,this.length),this[Y]},E.prototype.readUInt16LE=function(Y,G){return G||U(Y,2,this.length),this[Y]|this[Y+1]<<8},E.prototype.readUInt16BE=function(Y,G){return G||U(Y,2,this.length),this[Y]<<8|this[Y+1]},E.prototype.readUInt32LE=function(Y,G){return G||U(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},E.prototype.readUInt32BE=function(Y,G){return G||U(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},E.prototype.readIntLE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=this[Y],de=1,Ce=0;++Ce<G&&(de*=256);)fe+=this[Y+Ce]*de;return de*=128,fe>=de&&(fe-=Math.pow(2,8*G)),fe},E.prototype.readIntBE=function(Y,G,X){Y=Y|0,G=G|0,X||U(Y,G,this.length);for(var fe=G,de=1,Ce=this[Y+--fe];fe>0&&(de*=256);)Ce+=this[Y+--fe]*de;return de*=128,Ce>=de&&(Ce-=Math.pow(2,8*G)),Ce},E.prototype.readInt8=function(Y,G){return G||U(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},E.prototype.readInt16LE=function(Y,G){G||U(Y,2,this.length);var X=this[Y]|this[Y+1]<<8;return X&32768?X|4294901760:X},E.prototype.readInt16BE=function(Y,G){G||U(Y,2,this.length);var X=this[Y+1]|this[Y]<<8;return X&32768?X|4294901760:X},E.prototype.readInt32LE=function(Y,G){return G||U(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},E.prototype.readInt32BE=function(Y,G){return G||U(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},E.prototype.readFloatLE=function(Y,G){return G||U(Y,4,this.length),A.read(this,Y,!0,23,4)},E.prototype.readFloatBE=function(Y,G){return G||U(Y,4,this.length),A.read(this,Y,!1,23,4)},E.prototype.readDoubleLE=function(Y,G){return G||U(Y,8,this.length),A.read(this,Y,!0,52,8)},E.prototype.readDoubleBE=function(Y,G){return G||U(Y,8,this.length),A.read(this,Y,!1,52,8)};function K(oe,Y,G,X,fe,de){if(!E.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>fe||Y<de)throw new RangeError('"value" argument is out of bounds');if(G+X>oe.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(Y,G,X,fe){if(Y=+Y,G=G|0,X=X|0,!fe){var de=Math.pow(2,8*X)-1;K(this,Y,G,X,de,0)}var Ce=1,Me=0;for(this[G]=Y&255;++Me<X&&(Ce*=256);)this[G+Me]=Y/Ce&255;return G+X},E.prototype.writeUIntBE=function(Y,G,X,fe){if(Y=+Y,G=G|0,X=X|0,!fe){var de=Math.pow(2,8*X)-1;K(this,Y,G,X,de,0)}var Ce=X-1,Me=1;for(this[G+Ce]=Y&255;--Ce>=0&&(Me*=256);)this[G+Ce]=Y/Me&255;return G+X},E.prototype.writeUInt8=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,1,255,0),E.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),this[G]=Y&255,G+1};function V(oe,Y,G,X){Y<0&&(Y=65535+Y+1);for(var fe=0,de=Math.min(oe.length-G,2);fe<de;++fe)oe[G+fe]=(Y&255<<8*(X?fe:1-fe))>>>(X?fe:1-fe)*8}E.prototype.writeUInt16LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},E.prototype.writeUInt16BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,65535,0),E.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2};function z(oe,Y,G,X){Y<0&&(Y=4294967295+Y+1);for(var fe=0,de=Math.min(oe.length-G,4);fe<de;++fe)oe[G+fe]=Y>>>(X?fe:3-fe)*8&255}E.prototype.writeUInt32LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[G+3]=Y>>>24,this[G+2]=Y>>>16,this[G+1]=Y>>>8,this[G]=Y&255):z(this,Y,G,!0),G+4},E.prototype.writeUInt32BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,4294967295,0),E.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4},E.prototype.writeIntLE=function(Y,G,X,fe){if(Y=+Y,G=G|0,!fe){var de=Math.pow(2,8*X-1);K(this,Y,G,X,de-1,-de)}var Ce=0,Me=1,ue=0;for(this[G]=Y&255;++Ce<X&&(Me*=256);)Y<0&&ue===0&&this[G+Ce-1]!==0&&(ue=1),this[G+Ce]=(Y/Me>>0)-ue&255;return G+X},E.prototype.writeIntBE=function(Y,G,X,fe){if(Y=+Y,G=G|0,!fe){var de=Math.pow(2,8*X-1);K(this,Y,G,X,de-1,-de)}var Ce=X-1,Me=1,ue=0;for(this[G+Ce]=Y&255;--Ce>=0&&(Me*=256);)Y<0&&ue===0&&this[G+Ce+1]!==0&&(ue=1),this[G+Ce]=(Y/Me>>0)-ue&255;return G+X},E.prototype.writeInt8=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,1,127,-128),E.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),Y<0&&(Y=255+Y+1),this[G]=Y&255,G+1},E.prototype.writeInt16LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},E.prototype.writeInt16BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,2,32767,-32768),E.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2},E.prototype.writeInt32LE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,2147483647,-2147483648),E.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8,this[G+2]=Y>>>16,this[G+3]=Y>>>24):z(this,Y,G,!0),G+4},E.prototype.writeInt32BE=function(Y,G,X){return Y=+Y,G=G|0,X||K(this,Y,G,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),E.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4};function Q(oe,Y,G,X,fe,de){if(G+X>oe.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function Z(oe,Y,G,X,fe){return fe||Q(oe,Y,G,4,34028234663852886e22,-34028234663852886e22),A.write(oe,Y,G,X,23,4),G+4}E.prototype.writeFloatLE=function(Y,G,X){return Z(this,Y,G,!0,X)},E.prototype.writeFloatBE=function(Y,G,X){return Z(this,Y,G,!1,X)};function le(oe,Y,G,X,fe){return fe||Q(oe,Y,G,8,17976931348623157e292,-17976931348623157e292),A.write(oe,Y,G,X,52,8),G+8}E.prototype.writeDoubleLE=function(Y,G,X){return le(this,Y,G,!0,X)},E.prototype.writeDoubleBE=function(Y,G,X){return le(this,Y,G,!1,X)},E.prototype.copy=function(Y,G,X,fe){if(X||(X=0),!fe&&fe!==0&&(fe=this.length),G>=Y.length&&(G=Y.length),G||(G=0),fe>0&&fe<X&&(fe=X),fe===X)return 0;if(Y.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),Y.length-G<fe-X&&(fe=Y.length-G+X);var de=fe-X,Ce;if(this===Y&&X<G&&G<fe)for(Ce=de-1;Ce>=0;--Ce)Y[Ce+G]=this[Ce+X];else if(de<1e3||!E.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<de;++Ce)Y[Ce+G]=this[Ce+X];else Uint8Array.prototype.set.call(Y,this.subarray(X,X+de),G);return de},E.prototype.fill=function(Y,G,X,fe){if(typeof Y=="string"){if(typeof G=="string"?(fe=G,G=0,X=this.length):typeof X=="string"&&(fe=X,X=this.length),Y.length===1){var de=Y.charCodeAt(0);de<256&&(Y=de)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!E.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof Y=="number"&&(Y=Y&255);if(G<0||this.length<G||this.length<X)throw new RangeError("Out of range index");if(X<=G)return this;G=G>>>0,X=X===void 0?this.length:X>>>0,Y||(Y=0);var Ce;if(typeof Y=="number")for(Ce=G;Ce<X;++Ce)this[Ce]=Y;else{var Me=E.isBuffer(Y)?Y:Be(new E(Y,fe).toString()),ue=Me.length;for(Ce=0;Ce<X-G;++Ce)this[Ce+G]=Me[Ce%ue]}return this};var ne=/[^+\/0-9A-Za-z-_]/g;function ve(oe){if(oe=xe(oe).replace(ne,""),oe.length<2)return"";for(;oe.length%4!==0;)oe=oe+"=";return oe}function xe(oe){return oe.trim?oe.trim():oe.replace(/^\s+|\s+$/g,"")}function _e(oe){return oe<16?"0"+oe.toString(16):oe.toString(16)}function Be(oe,Y){Y=Y||Infinity;for(var G,X=oe.length,fe=null,de=[],Ce=0;Ce<X;++Ce){if(G=oe.charCodeAt(Ce),G>55295&&G<57344){if(!fe){if(G>56319){(Y-=3)>-1&&de.push(239,191,189);continue}else if(Ce+1===X){(Y-=3)>-1&&de.push(239,191,189);continue}fe=G;continue}if(G<56320){(Y-=3)>-1&&de.push(239,191,189),fe=G;continue}G=(fe-55296<<10|G-56320)+65536}else fe&&((Y-=3)>-1&&de.push(239,191,189));if(fe=null,G<128){if((Y-=1)<0)break;de.push(G)}else if(G<2048){if((Y-=2)<0)break;de.push(G>>6|192,G&63|128)}else if(G<65536){if((Y-=3)<0)break;de.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Y-=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 me(oe){for(var Y=[],G=0;G<oe.length;++G)Y.push(oe.charCodeAt(G)&255);return Y}function Fe(oe,Y){for(var G,X,fe,de=[],Ce=0;Ce<oe.length&&!((Y-=2)<0);++Ce)G=oe.charCodeAt(Ce),X=G>>8,fe=G%256,de.push(fe),de.push(X);return de}function ie(oe){return C.toByteArray(ve(oe))}function te(oe,Y,G,X){for(var fe=0;fe<X&&!(fe+G>=Y.length||fe>=oe.length);++fe)Y[fe+G]=oe[fe];return fe}function Ge(oe){return oe!==oe}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(H,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 _=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=_.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 _=H("../../modules/_core"),E=_.JSON||(_.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 _=H("../../modules/_core").Object;B.exports=function(C,A){return _.create(C,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(H,B,d){H("../../modules/es6.object.define-property");var _=H("../../modules/_core").Object;B.exports=function(C,A,w){return _.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 _=H("../../modules/_core").Object;B.exports=function(C){return _.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(_){if(typeof _!="function")throw TypeError(_+" is not a function!");return _}},{}],93:[function(H,B,d){B.exports=function(){}},{}],94:[function(H,B,d){B.exports=function(_,E,C,A){if(!(_ instanceof E)||A!==void 0&&A in _)throw TypeError(C+": incorrect invocation!");return _}},{}],95:[function(H,B,d){var _=H("./_is-object");B.exports=function(E){if(!_(E))throw TypeError(E+" is not an object!");return E}},{"./_is-object":119}],96:[function(H,B,d){var _=H("./_to-iobject"),E=H("./_to-length"),C=H("./_to-absolute-index");B.exports=function(A){return function(w,m,f){var c=_(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 _=H("./_cof"),E=H("./_wks")("toStringTag"),C=_(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?_(m):(c=_(m))=="Object"&&typeof m.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(H,B,d){var _={}.toString;B.exports=function(E){return _.call(E).slice(8,-1)}},{}],99:[function(H,B,d){var _=B.exports={version:"2.6.11"};typeof __e=="number"&&(__e=_)},{}],100:[function(H,B,d){"use strict";var _=H("./_object-dp"),E=H("./_property-desc");B.exports=function(C,A,w){A in C?_.f(C,A,E(0,w)):C[A]=w}},{"./_object-dp":132,"./_property-desc":146}],101:[function(H,B,d){var _=H("./_a-function");B.exports=function(E,C,A){if(_(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(_){if(_==null)throw TypeError("Can't call method on "+_);return _}},{}],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 _=H("./_is-object"),E=H("./_global").document,C=_(E)&&_(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 _=H("./_object-keys"),E=H("./_object-gops"),C=H("./_object-pie");B.exports=function(A){var w=_(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 _=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,l=o&c.S,t=o&c.P,a=o&c.B,s=o&c.W,u=e?E:E[r]||(E[r]={}),h=u[m],p=e?_:l?_[r]:(_[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,_):s&&p[g]==y?function(x){var T=function(b,O,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,O)}return new x(b,O,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(_){try{return!!_()}catch(E){return!0}}},{}],109:[function(H,B,d){var _=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 l=e?function(){return o}:m(o),t=_(i,n,r?2:1),a=0,s,u,h,p;if(typeof l!="function")throw TypeError(o+" is not iterable!");if(C(l)){for(s=w(o.length);s>a;a++)if(p=r?t(A(u=o[a])[0],u[1]):t(o[a]),p===f||p===c)return p}else for(h=l.call(o);!(u=h.next()).done;)if(p=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 _=B.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=_)},{}],111:[function(H,B,d){var _={}.hasOwnProperty;B.exports=function(E,C){return _.call(E,C)}},{}],112:[function(H,B,d){var _=H("./_object-dp"),E=H("./_property-desc");B.exports=H("./_descriptors")?function(C,A,w){return _.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 _=H("./_global").document;B.exports=_&&_.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(_,E,C){var A=C===void 0;switch(E.length){case 0:return A?_():_.call(C);case 1:return A?_(E[0]):_.call(C,E[0]);case 2:return A?_(E[0],E[1]):_.call(C,E[0],E[1]);case 3:return A?_(E[0],E[1],E[2]):_.call(C,E[0],E[1],E[2]);case 4:return A?_(E[0],E[1],E[2],E[3]):_.call(C,E[0],E[1],E[2],E[3])}return _.apply(C,E)}},{}],116:[function(H,B,d){var _=H("./_cof");B.exports=Object("z").propertyIsEnumerable(0)?Object:function(E){return _(E)=="String"?E.split(""):Object(E)}},{"./_cof":98}],117:[function(H,B,d){var _=H("./_iterators"),E=H("./_wks")("iterator"),C=Array.prototype;B.exports=function(A){return A!==void 0&&(_.Array===A||C[E]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(H,B,d){var _=H("./_cof");B.exports=Array.isArray||function(C){return _(C)=="Array"}},{"./_cof":98}],119:[function(H,B,d){B.exports=function(_){return typeof _=="object"?_!==null:typeof _=="function"}},{}],120:[function(H,B,d){var _=H("./_an-object");B.exports=function(E,C,A,w){try{return w?C(_(A)[0],A[1]):C(A)}catch(f){var m=E.return;throw m!==void 0&&_(m.call(E)),f}}},{"./_an-object":95}],121:[function(H,B,d){"use strict";var _=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=_(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 _=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",l=function(){return this};B.exports=function(t,a,s,u,h,p,g){m(s,a,u);var v=function(M){if(!r&&M in S)return S[M];switch(M){case n:return function(){return new s(this,M)};case e:return function(){return new s(this,M)}}return function(){return new s(this,M)}},y=a+" Iterator",x=h==e,T=!1,S=t.prototype,b=S[o]||S[i]||h&&S[h],O=b||v(h),I=h?x?v("entries"):O: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),!_&&typeof R[o]!="function"&&A(R,o,l))),x&&b&&b.name!==e&&(T=!0,O=function(){return b.call(this)}),(!_||g)&&(r||T||!S[o])&&A(S,o,O),w[a]=O,w[y]=l,h)if(N={values:x?O:v(e),keys:p?O: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 _=H("./_wks")("iterator"),E=!1;try{var C=[7][_]();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[_]();c.next=function(){return{done:m=!0}},f[_]=function(){return c},A(f)}catch(o){}return m}},{"./_wks":166}],124:[function(H,B,d){B.exports=function(_,E){return{value:E,done:!!_}}},{}],125:[function(H,B,d){B.exports={}},{}],126:[function(H,B,d){B.exports=!0},{}],127:[function(H,B,d){var _=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(l){A(l,_,{value:{i:"O"+ ++w,w:{}}})},o=function(l,t){if(!E(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!C(l,_)){if(!m(l))return"F";if(!t)return"E";c(l)}return l[_].i},r=function(l,t){if(!C(l,_)){if(!m(l))return!0;if(!t)return!1;c(l)}return l[_].w},i=function(l){return f&&n.NEED&&m(l)&&!C(l,_)&&c(l),l},n=B.exports={KEY:_,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 _=H("./_global"),E=H("./_task").set,C=_.MutationObserver||_.WebKitMutationObserver,A=_.process,w=_.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(s){throw f?o():c=void 0,s}}c=void 0,t&&t.enter()};if(m)o=function(){A.nextTick(r)};else if(C&&!(_.navigator&&_.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(_,r)};return function(l){var t={fn:l,next:void 0};c&&(c.next=t),f||(f=t,o()),c=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(H,B,d){"use strict";var _=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=_(A),this.reject=_(w)}B.exports.f=function(C){return new E(C)}},{"./_a-function":92}],130:[function(H,B,d){"use strict";var _=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,l=C.f,t=A.f;n>e;)for(var a=m(arguments[e++]),s=l?E(a).concat(l(a)):E(a),u=s.length,h=0,p;u>h;)p=s[h++],(!_||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 _=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),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 _=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(_(m),f=C(f,!0),_(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 _=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;)_.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 _=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(!_.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 _=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(_(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(H,B,d){var _=H("./_object-keys-internal"),E=H("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(A){return _(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 _=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),_(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 _=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&&(_(f,r)&&o.push(r));for(;m.length>c;)_(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 _=H("./_object-keys-internal"),E=H("./_enum-bug-keys");B.exports=Object.keys||function(A){return _(A,E)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(H,B,d){d.f={}.propertyIsEnumerable},{}],142:[function(H,B,d){var _=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),_(_.S+_.F*C(function(){m(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(H,B,d){var _=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++],(!_||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(_){try{return{e:!1,v:_()}}catch(E){return{e:!0,v:E}}}},{}],145:[function(H,B,d){var _=H("./_an-object"),E=H("./_is-object"),C=H("./_new-promise-capability");B.exports=function(A,w){if(_(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(_,E){return{enumerable:!(_&1),configurable:!(_&2),writable:!(_&4),value:E}}},{}],147:[function(H,B,d){var _=H("./_hide");B.exports=function(E,C,A){for(var w in C)A&&E[w]?E[w]=C[w]:_(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 _=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]:_[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 _=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)&&_(A,C,{configurable:!0,value:w})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(H,B,d){var _=H("./_shared")("keys"),E=H("./_uid");B.exports=function(C){return _[C]||(_[C]=E(C))}},{"./_shared":152,"./_uid":162}],152:[function(H,B,d){var _=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:_.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 _=H("./_an-object"),E=H("./_a-function"),C=H("./_wks")("species");B.exports=function(A,w){var m=_(A).constructor,f;return m===void 0||(f=_(m)[C])==null?w:E(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(H,B,d){var _=H("./_to-integer"),E=H("./_defined");B.exports=function(C){return function(A,w){var m=String(E(A)),f=_(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 _=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",l,t,a,s=function(){var p=+this;if(n.hasOwnProperty(p)){var g=n[p];delete n[p],g()}},u=function(p){s.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)},l(i),i},c=function(p){delete n[p]},H("./_cof")(m)=="process"?l=function(p){m.nextTick(_(s,p,1))}:r&&r.now?l=function(p){r.now(_(s,p,1))}:o?(t=new o,a=t.port2,t.port1.onmessage=u,l=_(a.postMessage,a,1)):w.addEventListener&&typeof postMessage=="function"&&!w.importScripts?(l=function(p){w.postMessage(p+"","*")},w.addEventListener("message",u,!1)):e in A("script")?l=function(p){C.appendChild(A("script"))[e]=function(){C.removeChild(this),s.call(p)}}:l=function(p){setTimeout(_(s,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 _=H("./_to-integer"),E=Math.max,C=Math.min;B.exports=function(A,w){return A=_(A),A<0?E(A+w,0):C(A,w)}},{"./_to-integer":157}],157:[function(H,B,d){var _=Math.ceil,E=Math.floor;B.exports=function(C){return isNaN(C=+C)?0:(C>0?E:_)(C)}},{}],158:[function(H,B,d){var _=H("./_iobject"),E=H("./_defined");B.exports=function(C){return _(E(C))}},{"./_defined":102,"./_iobject":116}],159:[function(H,B,d){var _=H("./_to-integer"),E=Math.min;B.exports=function(C){return C>0?E(_(C),9007199254740991):0}},{"./_to-integer":157}],160:[function(H,B,d){var _=H("./_defined");B.exports=function(E){return Object(_(E))}},{"./_defined":102}],161:[function(H,B,d){var _=H("./_is-object");B.exports=function(E,C){if(!_(E))return E;var A,w;if(C&&typeof(A=E.toString)=="function"&&!_(w=A.call(E)))return w;if(typeof(A=E.valueOf)=="function"&&!_(w=A.call(E)))return w;if(!C&&typeof(A=E.toString)=="function"&&!_(w=A.call(E)))return w;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(H,B,d){var _=0,E=Math.random();B.exports=function(C){return"Symbol(".concat(C===void 0?"":C,")_",(++_+E).toString(36))}},{}],163:[function(H,B,d){var _=H("./_global"),E=_.navigator;B.exports=E&&E.userAgent||""},{"./_global":110}],164:[function(H,B,d){var _=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?{}:_.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 _=H("./_shared")("wks"),E=H("./_uid"),C=H("./_global").Symbol,A=typeof C=="function",w=B.exports=function(m){return _[m]||(_[m]=A&&C[m]||(A?C:E)("Symbol."+m))};w.store=_},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(H,B,d){var _=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[_(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(H,B,d){"use strict";var _=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,l=e>1?arguments[1]:void 0,t=l!==void 0,a=0,s=c(i),u,h,p,g;if(t&&(l=_(l,e>2?arguments[2]:void 0,2)),s!=null&&!(n==Array&&w(s)))for(g=s.call(i),h=new n;!(p=g.next()).done;a++)f(h,a,t?A(g,l,[p.value,a],!0):p.value);else for(u=m(i.length),h=new n(u);u>a;a++)f(h,a,t?l(i[a],a):i[a]);return h.length=a,h}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(H,B,d){"use strict";var _=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,_("keys"),_("values"),_("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(H,B,d){"use strict";var _=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"||!_(m))return!1;if(!_(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 _=H("./_export");_(_.S+_.F,"Object",{assign:H("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(H,B,d){var _=H("./_export");_(_.S,"Object",{create:H("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(H,B,d){var _=H("./_export");_(_.S+_.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 _=H("./_to-object"),E=H("./_object-gpo");H("./_object-sap")("getPrototypeOf",function(){return function(A){return E(_(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(H,B,d){var _=H("./_to-object"),E=H("./_object-keys");H("./_object-sap")("keys",function(){return function(A){return E(_(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 _=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"),l=H("./_perform"),t=H("./_user-agent"),a=H("./_promise-resolve"),s="Promise",u=E.TypeError,h=E.process,p=h&&h.versions,g=p&&p.v8||"",v=E[s],y=A(h)=="process",x=function(){},T,S,b,O,I=S=e.f,L=!!function(){try{var U=v.resolve(1),K=(U.constructor={})[H("./_wks")("species")]=function(V){V(x,x)};return(y||typeof PromiseRejectionEvent=="function")&&U.then(x)instanceof K&&g.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(V){}}(),N=function(K){var V;return m(K)&&typeof(V=K.then)=="function"?V:!1},D=function(K,V){if(K._n)return;K._n=!0;var z=K._c;n(function(){for(var Q=K._v,Z=K._s==1,le=0,ne=function(xe){var _e=Z?xe.ok:xe.fail,Be=xe.resolve,me=xe.reject,Fe=xe.domain,ie,te,Ge;try{_e?(Z||(K._h==2&&M(K),K._h=1),_e===!0?ie=Q:(Fe&&Fe.enter(),ie=_e(Q),Fe&&(Fe.exit(),Ge=!0)),ie===xe.promise?me(u("Promise-chain cycle")):(te=N(ie))?te.call(ie,Be,me):Be(ie)):me(Q)}catch(oe){Fe&&!Ge&&Fe.exit(),me(oe)}};z.length>le;)ne(z[le++]);K._c=[],K._n=!1,V&&!K._h&&R(K)})},R=function(K){i.call(E,function(){var V=K._v,z=k(K),Q,Z,le;if(z&&(Q=l(function(){y?h.emit("unhandledRejection",V,K):(Z=E.onunhandledrejection)?Z({promise:K,reason:V}):(le=E.console)&&le.error&&le.error("Unhandled promise rejection",V)}),K._h=y||k(K)?2:1),K._a=void 0,z&&Q.e)throw Q.v})},k=function(K){return K._h!==1&&(K._a||K._c).length===0},M=function(K){i.call(E,function(){var V;y?h.emit("rejectionHandled",K):(V=E.onrejectionhandled)&&V({promise:K,reason:K._v})})},j=function(K){var V=this;if(V._d)return;V._d=!0,V=V._w||V,V._v=K,V._s=2,V._a||(V._a=V._c.slice()),D(V,!0)},F=function U(K){var V=this,z;if(V._d)return;V._d=!0,V=V._w||V;try{if(V===K)throw u("Promise can't be resolved itself");(z=N(K))?n(function(){var Q={_w:V,_d:!1};try{z.call(K,C(U,Q,1),C(j,Q,1))}catch(Z){j.call(Q,Z)}}):(V._v=K,V._s=1,D(V,!1))}catch(Q){j.call({_w:V,_d:!1},Q)}};L||(v=function(K){c(this,v,s,"_h"),f(K),T.call(this);try{K(C(F,this,1),C(j,this,1))}catch(V){j.call(this,V)}},T=function(K){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(K,V){var z=I(r(this,v));return z.ok=typeof K=="function"?K:!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(K){return this.then(void 0,K)}}),b=function(){var K=new T;this.promise=K,this.resolve=C(F,K,1),this.reject=C(j,K,1)},e.f=I=function(K){return K===v||K===O?new b(K):S(K)}),w(w.G+w.W+w.F*!L,{Promise:v}),H("./_set-to-string-tag")(v,s),H("./_set-species")(s),O=H("./_core")[s],w(w.S+w.F*!L,s,{reject:function(K){var V=I(this),z=V.reject;return z(K),V.promise}}),w(w.S+w.F*(_||!L),s,{resolve:function(K){return a(_&&this===O?v:this,K)}}),w(w.S+w.F*!(L&&H("./_iter-detect")(function(U){v.all(U).catch(x)})),s,{all:function(K){var V=this,z=I(V),Q=z.resolve,Z=z.reject,le=l(function(){var ne=[],ve=0,xe=1;o(K,!1,function(_e){var Be=ve++,me=!1;ne.push(void 0),xe++,V.resolve(_e).then(function(Fe){if(me)return;me=!0,ne[Be]=Fe,--xe||Q(ne)},Z)}),--xe||Q(ne)});return le.e&&Z(le.v),z.promise},race:function(K){var V=this,z=I(V),Q=z.reject,Z=l(function(){o(K,!1,function(le){V.resolve(le).then(z.resolve,Q)})});return Z.e&&Q(Z.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 _=H("./_export"),E=H("./_to-absolute-index"),C=String.fromCharCode,A=String.fromCodePoint;_(_.S+_.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 _=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=_(E,C),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(H,B,d){"use strict";var _=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"),l=H("./_enum-keys"),t=H("./_is-array"),a=H("./_an-object"),s=H("./_is-object"),u=H("./_to-object"),h=H("./_to-iobject"),p=H("./_to-primitive"),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"),O=x.f,I=S.f,L=y.f,N=_.Symbol,D=_.JSON,R=D&&D.stringify,k="prototype",M=i("_hidden"),j=i("toPrimitive"),F={}.propertyIsEnumerable,U=c("symbol-registry"),K=c("symbols"),V=c("op-symbols"),z=Object[k],Q=typeof N=="function"&&!!T.f,Z=_.QObject,le=!Z||!Z[k]||!Z[k].findChild,ne=C&&f(function(){return v(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(de,Ce,Me){var ue=O(z,Ce);ue&&delete z[Ce],I(de,Ce,Me),ue&&de!==z&&I(z,Ce,ue)}:I,ve=function(Ce){var Me=K[Ce]=v(N[k]);return Me._k=Ce,Me},xe=Q&&typeof N.iterator=="symbol"?function(de){return typeof de=="symbol"}:function(de){return de instanceof N},_e=function(Ce,Me,ue){return Ce===z&&_e(V,Me,ue),a(Ce),Me=p(Me,!0),a(ue),E(K,Me)?(ue.enumerable?(E(Ce,M)&&Ce[M][Me]&&(Ce[M][Me]=!1),ue=v(ue,{enumerable:g(0,!1)})):(E(Ce,M)||I(Ce,M,g(1,{})),Ce[M][Me]=!0),ne(Ce,Me,ue)):I(Ce,Me,ue)},Be=function(Ce,Me){a(Ce);for(var ue=l(Me=h(Me)),Ae=0,Te=ue.length,Je;Te>Ae;)_e(Ce,Je=ue[Ae++],Me[Je]);return Ce},me=function(Ce,Me){return Me===void 0?v(Ce):Be(v(Ce),Me)},Fe=function(Ce){var Me=F.call(this,Ce=p(Ce,!0));return this===z&&E(K,Ce)&&!E(V,Ce)?!1:Me||!E(this,Ce)||!E(K,Ce)||E(this,M)&&this[M][Ce]?Me:!0},ie=function(Ce,Me){if(Ce=h(Ce),Me=p(Me,!0),Ce===z&&E(K,Me)&&!E(V,Me))return;var ue=O(Ce,Me);return ue&&E(K,Me)&&!(E(Ce,M)&&Ce[M][Me])&&(ue.enumerable=!0),ue},te=function(Ce){for(var Me=L(h(Ce)),ue=[],Ae=0,Te;Me.length>Ae;)!E(K,Te=Me[Ae++])&&Te!=M&&Te!=m&&ue.push(Te);return ue},Ge=function(Ce){for(var Me=Ce===z,ue=L(Me?V:h(Ce)),Ae=[],Te=0,Je;ue.length>Te;)E(K,Je=ue[Te++])&&(Me?E(z,Je):!0)&&Ae.push(K[Je]);return Ae};Q||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var Ce=r(arguments.length>0?arguments[0]:void 0),Me=function ue(Ae){this===z&&ue.call(V,Ae),E(this,M)&&E(this[M],Ce)&&(this[M][Ce]=!1),ne(this,Ce,g(1,Ae))};return C&&le&&ne(z,Ce,{configurable:!0,set:Me}),ve(Ce)},w(N[k],"toString",function(){return this._k}),x.f=ie,S.f=_e,H("./_object-gopn").f=y.f=te,H("./_object-pie").f=Fe,T.f=Ge,C&&!H("./_library")&&w(z,"propertyIsEnumerable",Fe,!0),n.f=function(de){return ve(i(de))}),A(A.G+A.W+A.F*!Q,{Symbol:N});for(var oe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Y=0;oe.length>Y;)i(oe[Y++]);for(var G=b(i.store),X=0;G.length>X;)e(G[X++]);A(A.S+A.F*!Q,"Symbol",{for:function(Ce){return E(U,Ce+="")?U[Ce]:U[Ce]=N(Ce)},keyFor:function(Ce){if(!xe(Ce))throw TypeError(Ce+" is not a symbol!");for(var Me in U)if(U[Me]===Ce)return Me},useSetter:function(){le=!0},useSimple:function(){le=!1}}),A(A.S+A.F*!Q,"Object",{create:me,defineProperty:_e,defineProperties:Be,getOwnPropertyDescriptor:ie,getOwnPropertyNames:te,getOwnPropertySymbols:Ge});var fe=f(function(){T.f(1)});A(A.S+A.F*fe,"Object",{getOwnPropertySymbols:function(Ce){return T.f(u(Ce))}}),D&&A(A.S+A.F*(!Q||f(function(){var de=N();return R([de])!="[null]"||R({a:de})!="{}"||R(Object(de))!="{}"})),"JSON",{stringify:function(Ce){for(var Me=[Ce],ue=1,Ae,Te;arguments.length>ue;)Me.push(arguments[ue++]);return Te=Ae=Me[1],!s(Ae)&&Ce===void 0||xe(Ce)?void 0:(t(Ae)||(Ae=function(At,qe){if(typeof Te=="function"&&(qe=Te.call(this,At,qe)),!xe(qe))return qe}),Me[1]=Ae,R.apply(D,Me))}}),N[k][j]||H("./_hide")(N[k],j,N[k].valueOf),o(N,"Symbol"),o(Math,"Math",!0),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 _=H("./_export"),E=H("./_object-to-array")(!0);_(_.S,"Object",{entries:function(A){return E(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(H,B,d){"use strict";var _=H("./_export"),E=H("./_core"),C=H("./_global"),A=H("./_species-constructor"),w=H("./_promise-resolve");_(_.P+_.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 _=H("./_export"),E=H("./_new-promise-capability"),C=H("./_perform");_(_.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 _=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=_[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 _=H("./_export"),E=H("./_task");_(_.G+_.B,{setImmediate:E.set,clearImmediate:E.clear})},{"./_export":107,"./_task":155}],189:[function(H,B,d){(function(_){"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 l(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="object"&&p!==null}d.isObject=l;function t(p){return h(p)==="[object Date]"}d.isDate=t;function a(p){return h(p)==="[object Error]"||p instanceof Error}d.isError=a;function s(p){return typeof p=="function"}d.isFunction=s;function u(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"||(typeof p=="undefined"?"undefined":(0,C.default)(p))==="symbol"||typeof p=="undefined"}d.isPrimitive=u,d.isBuffer=_.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 _=H("babel-runtime/helpers/typeof"),E=C(_);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,l,t,a){if(arguments.length===1&&o(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(w.masks[l]||l||w.masks.default);var s=l.slice(0,4);(s==="UTC:"||s==="GMT:")&&(l=l.slice(4),t=!0,s==="GMT:"&&(a=!0));var u=t?"getUTC":"get",h=e[u+"Date"](),p=e[u+"Day"](),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(),O=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:O,N:I};return l.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 l=(i-n)/(864e5*7);return 1+Math.floor(l)}function c(r){var i=r.getDay();return i===0&&(i=7),i}function o(r){return r===null?"null":r===void 0?"undefined":(typeof r=="undefined"?"undefined":(0,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 _=/["'&<>]/;B.exports=E;function E(C){var A=""+C,w=_.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 _(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}B.exports=_,_.EventEmitter=_,_.prototype._events=void 0,_.prototype._maxListeners=void 0,_.defaultMaxListeners=10,_.prototype.setMaxListeners=function(m){if(!C(m)||m<0||isNaN(m))throw TypeError("n must be a positive number");return this._maxListeners=m,this},_.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},_.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=_.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},_.prototype.on=_.prototype.addListener,_.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},_.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},_.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},_.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},_.prototype.listenerCount=function(m){if(this._events){var f=this._events[m];if(E(f))return 1;if(f)return f.length}return 0},_.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 _=H("http"),E=B.exports;for(var C in _)_.hasOwnProperty(C)&&(E[C]=_[C]);E.request=function(A,w){return A||(A={}),A.scheme="https",A.protocol="https:",_.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 _=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(_.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(_,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,l=_[E+n];for(n+=e,m=l&(1<<-i)-1,l>>=-i,i+=c;i>0;m=m*256+_[E+n],n+=e,i-=8);for(f=m&(1<<-i)-1,m>>=-i,i+=A;i>0;f=f*256+_[E+n],n+=e,i-=8);if(m===0)m=1-r;else{if(m===o)return f?NaN:(l?-1:1)*Infinity;f=f+Math.pow(2,A),m=m-r}return(l?-1:1)*f*Math.pow(2,m-A)},d.write=function(_,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,l=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;_[C+l]=c&255,l+=t,c/=256,w-=8);for(f=f<<w|c,r+=w;r>0;_[C+l]=f&255,l+=t,f/=256,r-=8);_[C+l-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&&(_(C)||E(C)||!!C._isBuffer)};function _(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"&&_(C.slice(0,0))}},{}],198:[function(H,B,d){var _={}.toString;B.exports=Array.isArray||function(E){return _.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,_=H.length;d<_;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],_=B.charCodeAt(0)<<16|(B.length>1?B.charCodeAt(1):0)<<8|(B.length>2?B.charCodeAt(2):0),E=[b64chars.charAt(_>>>18),b64chars.charAt(_>>>12&63),d>=2?"=":b64chars.charAt(_>>>6&63),d>=1?"=":b64chars.charAt(_&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(_){return _=="+"?"-":"_"}).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),_=d-65536;return fromCharCode((_>>>10)+55296)+fromCharCode((_&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,_=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][_],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 _=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&&_.call(C,f))return;var c=Object.getOwnPropertyDescriptor(A,f);Object.defineProperty(C,f,c)}),C}},{}],201:[function(H,B,d){"use strict";function _(){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)}_.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)}}},_.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},_.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},B.exports=_},{}],202:[function(H,B,d){"use strict";var _=H("./Mime");B.exports=new _(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 _=1e3,E=_*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]),l=(n[2]||"ms").toLowerCase();switch(l){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*_;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>=_?Math.round(i/_)+"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>=_?r(i,n,_,"second"):i+" ms"}function r(i,n,e,l){var t=n>=e*1.5;return Math.round(i/e)+" "+l+(t?"s":"")}},{}],205:[function(H,B,d){(function(_){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]:_.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 s=t.length-1;s>=0&&!(t[s]!=="");s--);return a>s?[]:t.slice(a,s-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 l=[],e=n;e<o.length;e++)l.push("..");return l=l.concat(r.slice(n)),l.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(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(_){/*!
|
|
|
* 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 _=="object"&&_;f&&(f.global===f||f.window===f||f.self===f)&&(C=f);var c=Math.pow(2,53)-1,o=/\bOpera/,r=this,i=Object.prototype,n=i.hasOwnProperty,e=i.toString;function l(S){return S=String(S),S.charAt(0).toUpperCase()+S.slice(1)}function t(S,b,O){var I={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return b&&O&&/^Win/i.test(S)&&!/^Windows Phone /i.test(S)&&(I=I[/[\d.]+$/.exec(S)])&&(S="Windows "+I),S=String(S),b&&O&&(S=S.replace(RegExp(b,"i"),O)),S=s(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 O=-1,I=S?S.length:0;if(typeof I=="number"&&I>-1&&I<=c)for(;++O<I;)b(S[O],O,S);else u(S,b)}function s(S){return S=y(S),/^(?:webOS|i(?:OS|P))/.test(S)?S:l(S)}function u(S,b){for(var O in S)n.call(S,O)&&b(S[O],O,S)}function h(S){return S==null?l(S):e.call(S).slice(8,-1)}function p(S,b){var O=S!=null?typeof S[b]:"number";return!/^(?:boolean|number|string|undefined)$/.test(O)&&(O=="object"?!!S[b]:!0)}function g(S){return String(S).replace(/([ -])(?!$)/g,"$1?")}function v(S,b){var O=null;return a(S,function(I,L){O=b(O,I,L,S)}),O}function y(S){return String(S).replace(/^ +| +$/g,"")}function x(S){var b=C,O=S&&typeof S=="object"&&h(S)!="String";O&&(b=S,S=null);var I=b.navigator||{},L=I.userAgent||"";S||(S=L);var N=O||r==A,D=O?!!I.likeChrome:/\bChrome\b/.test(S)&&!/internal|\n/i.test(e.toString()),R="Object",k=O?R:"ScriptBridgingProxyObject",M=O?R:"Environment",j=O&&b.java?"JavaPackage":h(b.java),F=O?R:"RuntimeObject",U=/\bJava/.test(j)&&b.java,K=U&&h(b.environment)==M,V=U?"a":"\u03B1",z=U?"b":"\u03B2",Q=b.document||{},Z=b.operamini||b.opera,le=o.test(le=O&&Z?Z["[[Class]]"]:h(Z))?le:Z=null,ne,ve=S,xe=[],_e=null,Be=S==L,me=Be&&Z&&typeof Z.version=="function"&&Z.version(),Fe,ie=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=fe(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ge=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"]),oe=X({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),Y=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(Te){return v(Te,function(Je,At){return Je||RegExp("\\b"+(At.pattern||g(At))+"\\b","i").exec(S)&&(At.label||At)})}function X(Te){return v(Te,function(Je,At,qe){return Je||(At[Ge]||At[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ge)]||RegExp("\\b"+g(qe)+"(?:\\b|\\w*\\d)","i").exec(S))&&qe})}function fe(Te){return v(Te,function(Je,At){return Je||RegExp("\\b"+(At.pattern||g(At))+"\\b","i").exec(S)&&(At.label||At)})}function de(Te){return v(Te,function(Je,At){var qe=At.pattern||g(At);return!Je&&(Je=RegExp("\\b"+qe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(S))&&(Je=t(Je,qe,At.label||At)),Je})}function Ce(Te){return v(Te,function(Je,At){var qe=At.pattern||g(At);return!Je&&(Je=RegExp("\\b"+qe+" *\\d+[.\\w_]*","i").exec(S)||RegExp("\\b"+qe+" *\\w+-[\\w]*","i").exec(S)||RegExp("\\b"+qe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(S))&&((Je=String(At.label&&!RegExp(qe,"i").test(At.label)?At.label:Je).split("/"))[1]&&!/[\d.]+/.test(Je[0])&&(Je[0]+=" "+Je[1]),At=At.label||At,Je=s(Je[0].replace(RegExp(qe,"i"),At).replace(RegExp("; *(?:"+At+"[_-])?","i")," ").replace(RegExp("("+At+")[-_.]?(\\w)","i"),"$1 $2"))),Je})}function Me(Te){return v(Te,function(Je,At){return Je||(RegExp(At+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(S)||0)[1]||null})}function ue(){return this.description||""}if(ie&&(ie=[ie]),oe&&!Ge&&(Ge=Ce([oe])),(ne=/\bGoogle TV\b/.exec(Ge))&&(Ge=ne[0]),/\bSimulator\b/i.test(S)&&(Ge=(Ge?Ge+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(S)&&xe.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(S)?(ne=x(S.replace(/like iPhone OS/,"")),oe=ne.manufacturer,Ge=ne.product):/^iP/.test(Ge)?(te||(te="Safari"),Y="iOS"+((ne=/ OS ([\d_]+)/i.exec(S))?" "+ne[1].replace(/_/g,"."):"")):te=="Konqueror"&&!/buntu/i.test(Y)?Y="Kubuntu":oe&&oe!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(S)||/\bVita\b/.test(Ge))||/\bAndroid\b/.test(Y)&&/^Chrome/.test(te)&&/\bVersion\//i.test(S)?(te="Android Browser",Y=/\bAndroid\b/.test(Y)?Y:"Android"):te=="Silk"?(/\bMobi/i.test(S)||(Y="Android",xe.unshift("desktop mode")),/Accelerated *= *true/i.test(S)&&xe.unshift("accelerated")):te=="PaleMoon"&&(ne=/\bFirefox\/([\d.]+)\b/.exec(S))?xe.push("identifying as Firefox "+ne[1]):te=="Firefox"&&(ne=/\b(Mobile|Tablet|TV)\b/i.exec(S))?(Y||(Y="Firefox OS"),Ge||(Ge=ne[1])):!te||(ne=!/\bMinefield\b/i.test(S)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!Ge&&/[\/,]|^[^(]+?\)/.test(S.slice(S.indexOf(ne+"/")+8))&&(te=null),(ne=Ge||oe||Y)&&(Ge||oe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Y))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Y)?Y:ne)+" Browser")):te=="Electron"&&(ne=(/\bChrome\/([\d.]+)\b/.exec(S)||0)[1])&&xe.push("Chromium "+ne),me||(me=Me(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(te),"(?:Firefox|Minefield|NetFront)"])),(ne=ie=="iCab"&&parseFloat(me)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(S)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(S)&&!/^(?:Trident|EdgeHTML)$/.test(ie)&&"WebKit"||!ie&&/\bMSIE\b/i.test(S)&&(Y=="Mac OS"?"Tasman":"Trident")||ie=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(ie=[ne]),te=="IE"&&(ne=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S)||0)[1])?(te+=" Mobile",Y="Windows Phone "+(/\+$/.test(ne)?ne:ne+".x"),xe.unshift("desktop mode")):/\bWPDesktop\b/i.test(S)?(te="IE Mobile",Y="Windows Phone 8.x",xe.unshift("desktop mode"),me||(me=(/\brv:([\d.]+)/.exec(S)||0)[1])):te!="IE"&&ie=="Trident"&&(ne=/\brv:([\d.]+)/.exec(S))&&(te&&xe.push("identifying as "+te+(me?" "+me:"")),te="IE",me=ne[1]),Be){if(p(b,"global"))if(U&&(ne=U.lang.System,ve=ne.getProperty("os.arch"),Y=Y||ne.getProperty("os.name")+" "+ne.getProperty("os.version")),K){try{me=b.require("ringo/engine").version.join("."),te="RingoJS"}catch(Te){(ne=b.system)&&ne.global.system==b.system&&(te="Narwhal",Y||(Y=ne[0].os||null))}te||(te="Rhino")}else typeof b.process=="object"&&!b.process.browser&&(ne=b.process)&&(typeof ne.versions=="object"&&(typeof ne.versions.electron=="string"?(xe.push("Node "+ne.versions.node),te="Electron",me=ne.versions.electron):typeof ne.versions.nw=="string"&&(xe.push("Chromium "+me,"Node "+ne.versions.node),te="NW.js",me=ne.versions.nw)),te||(te="Node.js",ve=ne.arch,Y=ne.platform,me=/[\d.]+/.exec(ne.version),me=me?me[0]:null));else h(ne=b.runtime)==k?(te="Adobe AIR",Y=ne.flash.system.Capabilities.os):h(ne=b.phantom)==F?(te="PhantomJS",me=(ne=ne.version||null)&&ne.major+"."+ne.minor+"."+ne.patch):typeof Q.documentMode=="number"&&(ne=/\bTrident\/(\d+)/i.exec(S))?(me=[me,Q.documentMode],(ne=+ne[1]+4)!=me[1]&&(xe.push("IE "+me[1]+" mode"),ie&&(ie[1]=""),me[1]=ne),me=te=="IE"?String(me[1].toFixed(1)):me[0]):typeof Q.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(xe.push("masking as "+te+" "+me),te="IE",me="11.0",ie=["Trident"],Y="Windows");Y=Y&&s(Y)}if(me&&(ne=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(me)||/(?:alpha|beta)(?: ?\d)?/i.exec(S+";"+(Be&&I.appMinorVersion))||/\bMinefield\b/i.test(S)&&"a")&&(_e=/b/i.test(ne)?"beta":"alpha",me=me.replace(RegExp(ne+"\\+?$"),"")+(_e=="beta"?z:V)+(/\d+\+?/.exec(ne)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Y))te="Firefox Mobile";else if(te=="Maxthon"&&me)me=me.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ge))Ge=="Xbox 360"&&(Y=null),Ge=="Xbox 360"&&/\bIEMobile\b/.test(S)&&xe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!Ge&&!/Browser|Mobi/.test(te))&&(Y=="Windows CE"||/Mobi/i.test(S)))te+=" Mobile";else if(te=="IE"&&Be)try{b.external===null&&xe.unshift("platform preview")}catch(Te){xe.unshift("embedded")}else(/\bBlackBerry\b/.test(Ge)||/\bBB10\b/.test(S))&&(ne=(RegExp(Ge.replace(/ +/g," *")+"/([.\\d]+)","i").exec(S)||0)[1]||me)?(ne=[ne,/BB10/.test(S)],Y=(ne[1]?(Ge=null,oe="BlackBerry"):"Device Software")+" "+ne[0],me=null):this!=u&&Ge!="Wii"&&(Be&&Z||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(S)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Y)||te=="IE"&&(Y&&!/^Win/.test(Y)&&me>5.5||/\bWindows XP\b/.test(Y)&&me>8||me==8&&!/\bTrident\b/.test(S)))&&!o.test(ne=x.call(u,S.replace(o,"")+";"))&&ne.name&&(ne="ing as "+ne.name+((ne=ne.version)?" "+ne:""),o.test(te)?(/\bIE\b/.test(ne)&&Y=="Mac OS"&&(Y=null),ne="identify"+ne):(ne="mask"+ne,le?te=s(le.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(ne)&&(Y=null),Be||(me=null)),ie=["Presto"],xe.push(ne));(ne=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(S)||0)[1])&&(ne=[parseFloat(ne.replace(/\.(\d)$/,".0$1")),ne],te=="Safari"&&ne[1].slice(-1)=="+"?(te="WebKit Nightly",_e="alpha",me=ne[1].slice(0,-1)):(me==ne[1]||me==(ne[2]=(/\bSafari\/([\d.]+\+?)/i.exec(S)||0)[1]))&&(me=null),ne[1]=(/\bChrome\/([\d.]+)/i.exec(S)||0)[1],ne[0]==537.36&&ne[2]==537.36&&parseFloat(ne[1])>=28&&ie=="WebKit"&&(ie=["Blink"]),!Be||!D&&!ne[1]?(ie&&(ie[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")):(ie&&(ie[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:ie!="Blink"?"27":"28")),ie&&(ie[1]+=" "+(ne+=typeof ne=="number"?".x":/[.+]/.test(ne)?"":"+")),te=="Safari"&&(!me||parseInt(me)>45)&&(me=ne)),te=="Opera"&&(ne=/\bzbov|zvav$/.exec(Y))?(te+=" ",xe.unshift("desktop mode"),ne=="zvav"?(te+="Mini",me=null):te+="Mobile",Y=Y.replace(RegExp(" *"+ne+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(ie&&ie[1])&&(xe.unshift("desktop mode"),te="Chrome Mobile",me=null,/\bOS X\b/.test(Y)?(oe="Apple",Y="iOS 4.3+"):Y=null),me&&me.indexOf(ne=/[\d.]+$/.exec(Y))==0&&S.indexOf("/"+ne+"-")>-1&&(Y=y(Y.replace(ne,""))),ie&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(Y)&&/\bSafari\b/.test(ie[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(te)&&ie[1])&&((ne=ie[ie.length-1])&&xe.push(ne)),xe.length&&(xe=["("+xe.join("; ")+")"]),oe&&Ge&&Ge.indexOf(oe)<0&&xe.push("on "+oe),Ge&&xe.push((/^on /.test(xe[xe.length-1])?"":"on ")+Ge),Y&&(ne=/ ([\d.+]+)$/.exec(Y),Fe=ne&&Y.charAt(Y.length-ne[0].length-1)=="/",Y={architecture:32,family:ne&&!Fe?Y.replace(ne[0],""):Y,version:ne?ne[1]:null,toString:function(){var Je=this.version;return this.family+(Je&&!Fe?" "+Je:"")+(this.architecture==64?" 64-bit":"")}}),(ne=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ve))&&!/\bi686\b/i.test(ve)?(Y&&(Y.architecture=64,Y.family=Y.family.replace(RegExp(" *"+ne),"")),te&&(/\bWOW64\b/i.test(S)||Be&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(S))&&xe.unshift("32-bit")):Y&&/^OS X/.test(Y.family)&&te=="Chrome"&&parseFloat(me)>=39&&(Y.architecture=64),S||(S=null);var Ae={};return Ae.description=S,Ae.layout=ie&&ie[0],Ae.manufacturer=oe,Ae.name=te,Ae.prerelease=_e,Ae.product=Ge,Ae.ua=S,Ae.version=te&&me,Ae.os=Y||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ae.parse=x,Ae.toString=ue,Ae.version&&xe.unshift(me),Ae.name&&xe.unshift(te),Y&&te&&!(Y==String(Y).split(" ")[0]&&(Y==te.split(" ")[0]||Ge))&&xe.push(Ge?"("+Y+")":"on "+Y),xe.length&&(Ae.description=xe.join(" ")),Ae}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(_){"use strict";typeof _=="undefined"||!_.version||_.version.indexOf("v0.")===0||_.version.indexOf("v1.")===0&&_.version.indexOf("v1.8.")!==0?B.exports={nextTick:E}:B.exports=_;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 _.nextTick(C);case 2:return _.nextTick(function(){C.call(null,A)});case 3:return _.nextTick(function(){C.call(null,A,w)});case 4:return _.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 _.nextTick(function(){C.apply(null,c)})}}}).call(this,H("_process"))},{_process:208}],208:[function(H,B,d){var _=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(s){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(s){try{return C.call(null,a)}catch(u){return C.call(this,a)}}}var c=[],o=!1,r,i=-1;function n(){if(!o||!r)return;o=!1,r.length?c=r.concat(c):i=-1,c.length&&e()}function e(){if(o)return;var a=m(n);o=!0;for(var s=c.length;s;){for(r=c,c=[];++i<s;)r&&r[i].run();i=-1,s=c.length}r=null,o=!1,f(a)}_.nextTick=function(a){var s=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)s[u-1]=arguments[u];c.push(new l(a,s)),c.length===1&&!o&&m(e)};function l(a,s){this.fun=a,this.array=s}l.prototype.run=function(){this.fun.apply(null,this.array)},_.title="browser",_.browser=!0,_.env={},_.argv=[],_.version="",_.versions={};function t(){}_.on=t,_.addListener=t,_.once=t,_.off=t,_.removeListener=t,_.removeAllListeners=t,_.emit=t,_.prependListener=t,_.prependOnceListener=t,_.listeners=function(a){return[]},_.binding=function(a){throw new Error("process.binding is not supported")},_.cwd=function(){return"/"},_.chdir=function(a){throw new Error("process.chdir is not supported")},_.umask=function(){return 0}},{}],209:[function(H,B,d){(function(_){/*! 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 _=="object"&&_;(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,l=128,t="-",a=/^xn--/,s=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=c-o,g=Math.floor,v=String.fromCharCode,y;function x(j){throw new RangeError(h[j])}function T(j,F){for(var U=j.length,K=[];U--;)K[U]=F(j[U]);return K}function S(j,F){var U=j.split("@"),K="";U.length>1&&(K=U[0]+"@",j=U[1]),j=j.replace(u,".");var V=j.split("."),z=T(V,F).join(".");return K+z}function b(j){for(var F=[],U=0,K=j.length,V,z;U<K;)V=j.charCodeAt(U++),V>=55296&&V<=56319&&U<K?(z=j.charCodeAt(U++),(z&64512)==56320?F.push(((V&1023)<<10)+(z&1023)+65536):(F.push(V),U--)):F.push(V);return F}function O(j){return T(j,function(F){var U="";return F>65535&&(F-=65536,U+=v(F>>>10&1023|55296),F=56320|F&1023),U+=v(F),U}).join("")}function I(j){return j-48<10?j-22:j-65<26?j-65:j-97<26?j-97:c}function L(j,F){return j+22+75*(j<26)-((F!=0)<<5)}function N(j,F,U){var K=0;for(j=U?g(j/n):j>>1,j+=g(j/F);j>p*r>>1;K+=c)j=g(j/p);return g(K+(p+1)*j/(j+i))}function D(j){var F=[],U=j.length,K,V=0,z=l,Q=e,Z,le,ne,ve,xe,_e,Be,me,Fe;for(Z=j.lastIndexOf(t),Z<0&&(Z=0),le=0;le<Z;++le)j.charCodeAt(le)>=128&&x("not-basic"),F.push(j.charCodeAt(le));for(ne=Z>0?Z+1:0;ne<U;){for(ve=V,xe=1,_e=c;!(ne>=U&&x("invalid-input"),Be=I(j.charCodeAt(ne++)),(Be>=c||Be>g((f-V)/xe))&&x("overflow"),V+=Be*xe,me=_e<=Q?o:_e>=Q+r?r:_e-Q,Be<me);_e+=c)Fe=c-me,xe>g(f/Fe)&&x("overflow"),xe*=Fe;K=F.length+1,Q=N(V-ve,K,ve==0),g(V/K)>f-z&&x("overflow"),z+=g(V/K),V%=K,F.splice(V++,0,z)}return O(F)}function R(j){var F,U,K,V,z,Q,Z,le,ne,ve,xe,_e=[],Be,me,Fe,ie;for(j=b(j),Be=j.length,F=l,U=0,z=e,Q=0;Q<Be;++Q)xe=j[Q],xe<128&&_e.push(v(xe));for(K=V=_e.length,V&&_e.push(t);K<Be;){for(Z=f,Q=0;Q<Be;++Q)xe=j[Q],xe>=F&&xe<Z&&(Z=xe);for(me=K+1,Z-F>g((f-U)/me)&&x("overflow"),U+=(Z-F)*me,F=Z,Q=0;Q<Be;++Q)if(xe=j[Q],xe<F&&++U>f&&x("overflow"),xe==F){for(le=U,ne=c;!(ve=ne<=z?o:ne>=z+r?r:ne-z,le<ve);ne+=c)ie=le-ve,Fe=c-ve,_e.push(v(L(ve+ie%Fe,0))),le=g(ie/Fe);_e.push(v(L(le,0))),z=N(U,me,K==V),U=0,++K}++U,++F}return _e.join("")}function k(j){return S(j,function(F){return a.test(F)?D(F.slice(4).toLowerCase()):F})}function M(j){return S(j,function(F){return s.test(F)?"xn--"+R(F):F})}if(m={version:"1.4.1",ucs2:{decode:b,encode:O},decode:D,encode:R,toASCII:M,toUnicode:k},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 _(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),l,t,a,s;e>=0?(l=n.substr(0,e),t=n.substr(e+1)):(l=n,t=""),a=decodeURIComponent(l),s=decodeURIComponent(t),_(f,a)?E(f[a])?f[a].push(s):f[a]=[f[a],s]:f[a]=s}return f};var E=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"}},{}],211:[function(H,B,d){"use strict";var _=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))+f;return E(w[o])?C(w[o],function(i){return r+encodeURIComponent(_(i))}).join(m):r+encodeURIComponent(_(w[o]))}).join(m):c?encodeURIComponent(_(c))+f+encodeURIComponent(_(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 _=H("babel-runtime/core-js/object/create"),E=w(_),C=H("babel-runtime/core-js/object/keys"),A=w(C);function w(s){return s&&s.__esModule?s:{default:s}}var m=H("process-nextick-args"),f=A.default||function(s){var u=[];for(var h in s)u.push(h);return u};B.exports=l;var c=(0,E.default)(H("core-util-is"));c.inherits=H("inherits");var o=H("./_stream_readable"),r=H("./_stream_writable");c.inherits(l,o);for(var i=f(r.prototype),n=0;n<i.length;n++){var e=i[n];l.prototype[e]||(l.prototype[e]=r.prototype[e])}function l(s){if(!(this instanceof l))return new l(s);o.call(this,s),r.call(this,s),s&&s.readable===!1&&(this.readable=!1),s&&s.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,s&&s.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",t)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;m.nextTick(a,this)}function a(s){s.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=u,this._writableState.destroyed=u}}),l.prototype._destroy=function(s,u){this.push(null),this.end(),m.nextTick(u,s)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(H,B,d){"use strict";var _=H("babel-runtime/core-js/object/create"),E=C(_);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(_,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(ie){return ie&&ie.__esModule?ie:{default:ie}}var c=H("process-nextick-args");B.exports=b;var o=H("isarray"),r;b.ReadableState=S;var i=H("events").EventEmitter,n=function(te,Ge){return te.listeners(Ge).length},e=H("./internal/streams/stream"),l=H("safe-buffer").Buffer,t=E.Uint8Array||function(){};function a(ie){return l.from(ie)}function s(ie){return l.isBuffer(ie)||ie 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(ie,te,Ge){if(typeof ie.prependListener=="function")return ie.prependListener(te,Ge);!ie._events||!ie._events[te]?ie.on(te,Ge):o(ie._events[te])?ie._events[te].unshift(Ge):ie._events[te]=[Ge,ie._events[te]]}function S(ie,te){r=r||H("./_stream_duplex"),ie=ie||{};var Ge=te instanceof r;this.objectMode=!!ie.objectMode,Ge&&(this.objectMode=this.objectMode||!!ie.readableObjectMode);var oe=ie.highWaterMark,Y=ie.readableHighWaterMark,G=this.objectMode?16:16*1024;oe||oe===0?this.highWaterMark=oe:Ge&&(Y||Y===0)?this.highWaterMark=Y:this.highWaterMark=G,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new 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=ie.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ie.encoding&&(y||(y=H("string_decoder/").StringDecoder),this.decoder=new y(ie.encoding),this.encoding=ie.encoding)}function b(ie){if(r=r||H("./_stream_duplex"),!(this instanceof b))return new b(ie);this._readableState=new S(ie,this),this.readable=!0,ie&&(typeof ie.read=="function"&&(this._read=ie.read),typeof ie.destroy=="function"&&(this._destroy=ie.destroy)),e.call(this)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){if(!this._readableState)return;this._readableState.destroyed=te}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(ie,te){this.push(null),te(ie)},b.prototype.push=function(ie,te){var Ge=this._readableState,oe;return Ge.objectMode?oe=!0:typeof ie=="string"&&(te=te||Ge.defaultEncoding,te!==Ge.encoding&&(ie=l.from(ie,te),te=""),oe=!0),O(this,ie,te,!1,oe)},b.prototype.unshift=function(ie){return O(this,ie,null,!0,!1)};function O(ie,te,Ge,oe,Y){var G=ie._readableState;if(te===null)G.reading=!1,M(ie,G);else{var X;Y||(X=L(G,te)),X?ie.emit("error",X):G.objectMode||te&&te.length>0?(typeof te!="string"&&!G.objectMode&&(0,A.default)(te)!==l.prototype&&(te=a(te)),oe?G.endEmitted?ie.emit("error",new Error("stream.unshift() after end event")):I(ie,G,te,!0):G.ended?ie.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Ge?(te=G.decoder.write(te),G.objectMode||te.length!==0?I(ie,G,te,!1):U(ie,G)):I(ie,G,te,!1))):oe||(G.reading=!1)}return N(G)}function I(ie,te,Ge,oe){te.flowing&&te.length===0&&!te.sync?(ie.emit("data",Ge),ie.read(0)):(te.length+=te.objectMode?1:Ge.length,oe?te.buffer.unshift(Ge):te.buffer.push(Ge),te.needReadable&&j(ie)),U(ie,te)}function L(ie,te){var Ge;return!s(te)&&typeof te!="string"&&te!==void 0&&!ie.objectMode&&(Ge=new TypeError("Invalid non-string/buffer chunk")),Ge}function N(ie){return!ie.ended&&(ie.needReadable||ie.length<ie.highWaterMark||ie.length===0)}b.prototype.isPaused=function(){return this._readableState.flowing===!1},b.prototype.setEncoding=function(ie){return y||(y=H("string_decoder/").StringDecoder),this._readableState.decoder=new y(ie),this._readableState.encoding=ie,this};var D=8388608;function R(ie){return ie>=D?ie=D:(ie--,ie|=ie>>>1,ie|=ie>>>2,ie|=ie>>>4,ie|=ie>>>8,ie|=ie>>>16,ie++),ie}function k(ie,te){return ie<=0||te.length===0&&te.ended?0:te.objectMode?1:ie!==ie?te.flowing&&te.length?te.buffer.head.data.length:te.length:(ie>te.highWaterMark&&(te.highWaterMark=R(ie)),ie<=te.length?ie:te.ended?te.length:(te.needReadable=!0,0))}b.prototype.read=function(ie){p("read",ie),ie=parseInt(ie,10);var te=this._readableState,Ge=ie;if(ie!==0&&(te.emittedReadable=!1),ie===0&&te.needReadable&&(te.length>=te.highWaterMark||te.ended))return p("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?Be(this):j(this),null;if(ie=k(ie,te),ie===0&&te.ended)return te.length===0&&Be(this),null;var oe=te.needReadable;p("need readable",oe),(te.length===0||te.length-ie<te.highWaterMark)&&(oe=!0,p("length less than watermark",oe)),te.ended||te.reading?(oe=!1,p("reading or ended",oe)):oe&&(p("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0),this._read(te.highWaterMark),te.sync=!1,te.reading||(ie=k(Ge,te)));var Y;return ie>0?Y=ne(ie,te):Y=null,Y===null?(te.needReadable=!0,ie=0):te.length-=ie,te.length===0&&(te.ended||(te.needReadable=!0),Ge!==ie&&te.ended&&Be(this)),Y!==null&&this.emit("data",Y),Y};function M(ie,te){if(te.ended)return;if(te.decoder){var Ge=te.decoder.end();Ge&&Ge.length&&(te.buffer.push(Ge),te.length+=te.objectMode?1:Ge.length)}te.ended=!0,j(ie)}function j(ie){var te=ie._readableState;te.needReadable=!1,te.emittedReadable||(p("emitReadable",te.flowing),te.emittedReadable=!0,te.sync?c.nextTick(F,ie):F(ie))}function F(ie){p("emit readable"),ie.emit("readable"),le(ie)}function U(ie,te){te.readingMore||(te.readingMore=!0,c.nextTick(K,ie,te))}function K(ie,te){for(var Ge=te.length;!te.reading&&!te.flowing&&!te.ended&&te.length<te.highWaterMark&&!(p("maybeReadMore read 0"),ie.read(0),Ge===te.length);)Ge=te.length;te.readingMore=!1}b.prototype._read=function(ie){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(ie,te){var Ge=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=ie;break;case 1:oe.pipes=[oe.pipes,ie];break;default:oe.pipes.push(ie);break}oe.pipesCount+=1,p("pipe count=%d opts=%j",oe.pipesCount,te);var Y=(!te||te.end!==!1)&&ie!==_.stdout&&ie!==_.stderr,G=Y?fe:qe;oe.endEmitted?c.nextTick(G):Ge.once("end",G),ie.on("unpipe",X);function X(Re,Lt){p("onunpipe"),Re===Ge&&(Lt&&Lt.hasUnpiped===!1&&(Lt.hasUnpiped=!0,Me()))}function fe(){p("onend"),ie.end()}var de=V(Ge);ie.on("drain",de);var Ce=!1;function Me(){p("cleanup"),ie.removeListener("close",Je),ie.removeListener("finish",At),ie.removeListener("drain",de),ie.removeListener("error",Te),ie.removeListener("unpipe",X),Ge.removeListener("end",fe),Ge.removeListener("end",qe),Ge.removeListener("data",Ae),Ce=!0,oe.awaitDrain&&(!ie._writableState||ie._writableState.needDrain)&&de()}var ue=!1;Ge.on("data",Ae);function Ae(Re){p("ondata"),ue=!1;var Lt=ie.write(Re);Lt===!1&&!ue&&((oe.pipesCount===1&&oe.pipes===ie||oe.pipesCount>1&&Fe(oe.pipes,ie)!==-1)&&!Ce&&(p("false write response, pause",Ge._readableState.awaitDrain),Ge._readableState.awaitDrain++,ue=!0),Ge.pause())}function Te(Re){p("onerror",Re),qe(),ie.removeListener("error",Te),n(ie,"error")===0&&ie.emit("error",Re)}T(ie,"error",Te);function Je(){ie.removeListener("finish",At),qe()}ie.once("close",Je);function At(){p("onfinish"),ie.removeListener("close",Je),qe()}ie.once("finish",At);function qe(){p("unpipe"),Ge.unpipe(ie)}return ie.emit("pipe",Ge),oe.flowing||(p("pipe resume"),Ge.resume()),ie};function V(ie){return function(){var te=ie._readableState;p("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&n(ie,"data")&&(te.flowing=!0,le(ie))}}b.prototype.unpipe=function(ie){var te=this._readableState,Ge={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return ie&&ie!==te.pipes?this:(ie||(ie=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,ie&&ie.emit("unpipe",this,Ge),this);if(!ie){var oe=te.pipes,Y=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var G=0;G<Y;G++)oe[G].emit("unpipe",this,Ge);return this}var X=Fe(te.pipes,ie);return X===-1?this:(te.pipes.splice(X,1),te.pipesCount-=1,te.pipesCount===1&&(te.pipes=te.pipes[0]),ie.emit("unpipe",this,Ge),this)},b.prototype.on=function(ie,te){var Ge=e.prototype.on.call(this,ie,te);if(ie==="data")this._readableState.flowing!==!1&&this.resume();else if(ie==="readable"){var oe=this._readableState;!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.emittedReadable=!1,oe.reading?oe.length&&j(this):c.nextTick(z,this))}return Ge},b.prototype.addListener=b.prototype.on;function z(ie){p("readable nexttick read 0"),ie.read(0)}b.prototype.resume=function(){var ie=this._readableState;return ie.flowing||(p("resume"),ie.flowing=!0,Q(this,ie)),this};function Q(ie,te){te.resumeScheduled||(te.resumeScheduled=!0,c.nextTick(Z,ie,te))}function Z(ie,te){te.reading||(p("resume read 0"),ie.read(0)),te.resumeScheduled=!1,te.awaitDrain=0,ie.emit("resume"),le(ie),te.flowing&&!te.reading&&ie.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 le(ie){var te=ie._readableState;for(p("flow",te.flowing);te.flowing&&ie.read()!==null;);}b.prototype.wrap=function(ie){var te=this,Ge=this._readableState,oe=!1;ie.on("end",function(){if(p("wrapped end"),Ge.decoder&&!Ge.ended){var X=Ge.decoder.end();X&&X.length&&te.push(X)}te.push(null)}),ie.on("data",function(X){if(p("wrapped data"),Ge.decoder&&(X=Ge.decoder.write(X)),Ge.objectMode&&X==null)return;if(!Ge.objectMode&&(!X||!X.length))return;var fe=te.push(X);fe||(oe=!0,ie.pause())});for(var Y in ie)this[Y]===void 0&&typeof ie[Y]=="function"&&(this[Y]=function(X){return function(){return ie[X].apply(ie,arguments)}}(Y));for(var G=0;G<x.length;G++)ie.on(x[G],this.emit.bind(this,x[G]));return this._read=function(X){p("wrapped _read",X),oe&&(oe=!1,ie.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=ne;function ne(ie,te){if(te.length===0)return null;var Ge;return te.objectMode?Ge=te.buffer.shift():!ie||ie>=te.length?(te.decoder?Ge=te.buffer.join(""):te.buffer.length===1?Ge=te.buffer.head.data:Ge=te.buffer.concat(te.length),te.buffer.clear()):Ge=ve(ie,te.buffer,te.decoder),Ge}function ve(ie,te,Ge){var oe;return ie<te.head.data.length?(oe=te.head.data.slice(0,ie),te.head.data=te.head.data.slice(ie)):ie===te.head.data.length?oe=te.shift():oe=Ge?xe(ie,te):_e(ie,te),oe}function xe(ie,te){var Ge=te.head,oe=1,Y=Ge.data;for(ie-=Y.length;Ge=Ge.next;){var G=Ge.data,X=ie>G.length?G.length:ie;if(X===G.length?Y+=G:Y+=G.slice(0,ie),ie-=X,ie===0){X===G.length?(++oe,Ge.next?te.head=Ge.next:te.head=te.tail=null):(te.head=Ge,Ge.data=G.slice(X));break}++oe}return te.length-=oe,Y}function _e(ie,te){var Ge=l.allocUnsafe(ie),oe=te.head,Y=1;for(oe.data.copy(Ge),ie-=oe.data.length;oe=oe.next;){var G=oe.data,X=ie>G.length?G.length:ie;if(G.copy(Ge,Ge.length-ie,0,X),ie-=X,ie===0){X===G.length?(++Y,oe.next?te.head=oe.next:te.head=te.tail=null):(te.head=oe,oe.data=G.slice(X));break}++Y}return te.length-=Y,Ge}function Be(ie){var te=ie._readableState;if(te.length>0)throw new Error('"endReadable()" called on non-empty stream');te.endEmitted||(te.ended=!0,c.nextTick(me,te,ie))}function me(ie,te){!ie.endEmitted&&ie.length===0&&(ie.endEmitted=!0,te.readable=!1,te.emit("end"))}function Fe(ie,te){for(var Ge=0,oe=ie.length;Ge<oe;Ge++)if(ie[Ge]===te)return Ge;return-1}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(H,B,d){"use strict";var _=H("babel-runtime/core-js/object/create"),E=C(_);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 l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);A.call(this,r),this._transformState={afterTransform: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 l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},f.prototype._read=function(r){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},f.prototype._destroy=function(r,i){var n=this;A.prototype._destroy.call(this,r,function(e){i(e),n.emit("close")})};function o(r,i,n){if(i)return r.emit("error",i);if(n!=null&&r.push(n),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(H,B,d){(function(_,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(_e){return _e&&_e.__esModule?_e:{default:_e}}var l=H("process-nextick-args");B.exports=L;function t(_e,Be,me){this.chunk=_e,this.encoding=Be,this.callback=me,this.next=null}function a(_e){var Be=this;this.next=null,this.entry=null,this.finish=function(){xe(Be,_e)}}var s=!_.browser&&["v0.10","v0.9."].indexOf(_.version.slice(0,5))>-1?n.default:l.nextTick,u;L.WritableState=O;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(_e){return v.from(_e)}function T(_e){return v.isBuffer(_e)||_e instanceof y}var S=H("./internal/streams/destroy");h.inherits(L,g);function b(){}function O(_e,Be){u=u||H("./_stream_duplex"),_e=_e||{};var me=Be instanceof u;this.objectMode=!!_e.objectMode,me&&(this.objectMode=this.objectMode||!!_e.writableObjectMode);var Fe=_e.highWaterMark,ie=_e.writableHighWaterMark,te=this.objectMode?16:16*1024;Fe||Fe===0?this.highWaterMark=Fe:me&&(ie||ie===0)?this.highWaterMark=ie:this.highWaterMark=te,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ge=_e.decodeStrings===!1;this.decodeStrings=!Ge,this.defaultEncoding=_e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){U(Be,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}O.prototype.getBuffer=function(){for(var Be=this.bufferedRequest,me=[];Be;)me.push(Be),Be=Be.next;return me},function(){try{Object.defineProperty(O.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_e){}}();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(Be){return I.call(this,Be)?!0:this!==L?!1:Be&&Be._writableState instanceof O}})):I=function(Be){return Be instanceof this};function L(_e){if(u=u||H("./_stream_duplex"),!I.call(L,this)&&!(this instanceof u))return new L(_e);this._writableState=new O(_e,this),this.writable=!0,_e&&(typeof _e.write=="function"&&(this._write=_e.write),typeof _e.writev=="function"&&(this._writev=_e.writev),typeof _e.destroy=="function"&&(this._destroy=_e.destroy),typeof _e.final=="function"&&(this._final=_e.final)),g.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function N(_e,Be){var me=new Error("write after end");_e.emit("error",me),l.nextTick(Be,me)}function D(_e,Be,me,Fe){var ie=!0,te=!1;return me===null?te=new TypeError("May not write null values to stream"):typeof me!="string"&&me!==void 0&&!Be.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te&&(_e.emit("error",te),l.nextTick(Fe,te),ie=!1),ie}L.prototype.write=function(_e,Be,me){var Fe=this._writableState,ie=!1,te=!Fe.objectMode&&T(_e);return te&&!v.isBuffer(_e)&&(_e=x(_e)),typeof Be=="function"&&(me=Be,Be=null),te?Be="buffer":Be||(Be=Fe.defaultEncoding),typeof me!="function"&&(me=b),Fe.ended?N(this,me):(te||D(this,Fe,_e,me))&&(Fe.pendingcb++,ie=k(this,Fe,te,_e,Be,me)),ie},L.prototype.cork=function(){var _e=this._writableState;_e.corked++},L.prototype.uncork=function(){var _e=this._writableState;_e.corked&&(_e.corked--,!_e.writing&&!_e.corked&&!_e.finished&&!_e.bufferProcessing&&_e.bufferedRequest&&z(this,_e))},L.prototype.setDefaultEncoding=function(Be){if(typeof Be=="string"&&(Be=Be.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Be+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Be);return this._writableState.defaultEncoding=Be,this};function R(_e,Be,me){return!_e.objectMode&&_e.decodeStrings!==!1&&typeof Be=="string"&&(Be=v.from(Be,me)),Be}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(_e,Be,me,Fe,ie,te){if(!me){var Ge=R(Be,Fe,ie);Fe!==Ge&&(me=!0,ie="buffer",Fe=Ge)}var oe=Be.objectMode?1:Fe.length;Be.length+=oe;var Y=Be.length<Be.highWaterMark;if(Y||(Be.needDrain=!0),Be.writing||Be.corked){var G=Be.lastBufferedRequest;Be.lastBufferedRequest={chunk:Fe,encoding:ie,isBuf:me,callback:te,next:null},G?G.next=Be.lastBufferedRequest:Be.bufferedRequest=Be.lastBufferedRequest,Be.bufferedRequestCount+=1}else M(_e,Be,!1,oe,Fe,ie,te);return Y}function M(_e,Be,me,Fe,ie,te,Ge){Be.writelen=Fe,Be.writecb=Ge,Be.writing=!0,Be.sync=!0,me?_e._writev(ie,Be.onwrite):_e._write(ie,te,Be.onwrite),Be.sync=!1}function j(_e,Be,me,Fe,ie){--Be.pendingcb,me?(l.nextTick(ie,Fe),l.nextTick(ne,_e,Be),_e._writableState.errorEmitted=!0,_e.emit("error",Fe)):(ie(Fe),_e._writableState.errorEmitted=!0,_e.emit("error",Fe),ne(_e,Be))}function F(_e){_e.writing=!1,_e.writecb=null,_e.length-=_e.writelen,_e.writelen=0}function U(_e,Be){var me=_e._writableState,Fe=me.sync,ie=me.writecb;if(F(me),Be)j(_e,me,Fe,Be,ie);else{var te=Q(me);!te&&!me.corked&&!me.bufferProcessing&&me.bufferedRequest&&z(_e,me),Fe?s(K,_e,me,te,ie):K(_e,me,te,ie)}}function K(_e,Be,me,Fe){me||V(_e,Be),Be.pendingcb--,Fe(),ne(_e,Be)}function V(_e,Be){Be.length===0&&Be.needDrain&&(Be.needDrain=!1,_e.emit("drain"))}function z(_e,Be){Be.bufferProcessing=!0;var me=Be.bufferedRequest;if(_e._writev&&me&&me.next){var Fe=Be.bufferedRequestCount,ie=new Array(Fe),te=Be.corkedRequestsFree;te.entry=me;for(var Ge=0,oe=!0;me;)ie[Ge]=me,me.isBuf||(oe=!1),me=me.next,Ge+=1;ie.allBuffers=oe,M(_e,Be,!0,Be.length,ie,"",te.finish),Be.pendingcb++,Be.lastBufferedRequest=null,te.next?(Be.corkedRequestsFree=te.next,te.next=null):Be.corkedRequestsFree=new a(Be),Be.bufferedRequestCount=0}else{for(;me;){var Y=me.chunk,G=me.encoding,X=me.callback,fe=Be.objectMode?1:Y.length;if(M(_e,Be,!1,fe,Y,G,X),me=me.next,Be.bufferedRequestCount--,Be.writing)break}me===null&&(Be.lastBufferedRequest=null)}Be.bufferedRequest=me,Be.bufferProcessing=!1}L.prototype._write=function(_e,Be,me){me(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(_e,Be,me){var Fe=this._writableState;typeof _e=="function"?(me=_e,_e=null,Be=null):typeof Be=="function"&&(me=Be,Be=null),_e!=null&&this.write(_e,Be),Fe.corked&&(Fe.corked=1,this.uncork()),!Fe.ending&&!Fe.finished&&ve(this,Fe,me)};function Q(_e){return _e.ending&&_e.length===0&&_e.bufferedRequest===null&&!_e.finished&&!_e.writing}function Z(_e,Be){_e._final(function(me){Be.pendingcb--,me&&_e.emit("error",me),Be.prefinished=!0,_e.emit("prefinish"),ne(_e,Be)})}function le(_e,Be){!Be.prefinished&&!Be.finalCalled&&(typeof _e._final=="function"?(Be.pendingcb++,Be.finalCalled=!0,l.nextTick(Z,_e,Be)):(Be.prefinished=!0,_e.emit("prefinish")))}function ne(_e,Be){var me=Q(Be);return me&&(le(_e,Be),Be.pendingcb===0&&(Be.finished=!0,_e.emit("finish"))),me}function ve(_e,Be,me){Be.ending=!0,ne(_e,Be),me&&(Be.finished?l.nextTick(me):_e.once("finish",me)),Be.ended=!0,_e.writable=!1}function xe(_e,Be,me){var Fe=_e.entry;for(_e.entry=null;Fe;){var ie=Fe.callback;Be.pendingcb--,ie(me),Fe=Fe.next}Be.corkedRequestsFree?Be.corkedRequestsFree.next=_e:Be.corkedRequestsFree=_e}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Be){if(!this._writableState)return;this._writableState.destroyed=Be}}),L.prototype.destroy=S.destroy,L.prototype._undestroy=S.undestroy,L.prototype._destroy=function(_e,Be){this.end(),Be(_e)}}).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 _(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(){_(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 _=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)&&_.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?(_.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 _=function(){return this}()||Function("return this")(),E=_.regeneratorRuntime&&Object.getOwnPropertyNames(_).indexOf("regeneratorRuntime")>=0,C=E&&_.regeneratorRuntime;if(_.regeneratorRuntime=void 0,B.exports=H("./runtime"),E)_.regeneratorRuntime=C;else try{delete _.regeneratorRuntime}catch(A){_.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(H,B,d){!function(_){"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=_.regeneratorRuntime;if(r){o&&(B.exports=r);return}r=_.regeneratorRuntime=o?B.exports:{};function i(k,M,j,F){var U=M&&M.prototype instanceof u?M:u,K=Object.create(U.prototype),V=new N(F||[]);return K._invoke=b(k,j,V),K}r.wrap=i;function n(k,M,j){try{return{type:"normal",arg:k.call(M,j)}}catch(F){return{type:"throw",arg:F}}}var e="suspendedStart",l="suspendedYield",t="executing",a="completed",s={};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(k){["next","throw","return"].forEach(function(M){k[M]=function(j){return this._invoke(M,j)}})}r.isGeneratorFunction=function(k){var M=typeof k=="function"&&k.constructor;return M?M===h||(M.displayName||M.name)==="GeneratorFunction":!1},r.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,p):(k.__proto__=p,c in k||(k[c]="GeneratorFunction")),k.prototype=Object.create(x),k},r.awrap=function(k){return{__await:k}};function S(k){function M(U,K,V,z){var Q=n(k[U],k,K);if(Q.type==="throw")z(Q.arg);else{var Z=Q.arg,le=Z.value;return le&&typeof le=="object"&&C.call(le,"__await")?Promise.resolve(le.__await).then(function(ne){M("next",ne,V,z)},function(ne){M("throw",ne,V,z)}):Promise.resolve(le).then(function(ne){Z.value=ne,V(Z)},z)}}var j;function F(U,K){function V(){return new Promise(function(z,Q){M(U,K,z,Q)})}return j=j?j.then(V,V):V()}this._invoke=F}T(S.prototype),S.prototype[f]=function(){return this},r.AsyncIterator=S,r.async=function(k,M,j,F){var U=new S(i(k,M,j,F));return r.isGeneratorFunction(M)?U:U.next().then(function(K){return K.done?K.value:U.next()})};function b(k,M,j){var F=e;return function(K,V){if(F===t)throw new Error("Generator is already running");if(F===a){if(K==="throw")throw V;return R()}for(j.method=K,j.arg=V;;){var z=j.delegate;if(z){var Q=O(z,j);if(Q){if(Q===s)continue;return Q}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(F===e)throw F=a,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);F=t;var Z=n(k,M,j);if(Z.type==="normal"){if(F=j.done?a:l,Z.arg===s)continue;return{value:Z.arg,done:j.done}}else Z.type==="throw"&&(F=a,j.method="throw",j.arg=Z.arg)}}}function O(k,M){var j=k.iterator[M.method];if(j===A){if(M.delegate=null,M.method==="throw"){if(k.iterator.return&&(M.method="return",M.arg=A,O(k,M),M.method==="throw"))return s;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var F=n(j,k.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,s;var U=F.arg;if(!U)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,s;if(U.done)M[k.resultName]=U.value,M.next=k.nextLoc,M.method!=="return"&&(M.method="next",M.arg=A);else return U;return M.delegate=null,s}T(x),x[c]="Generator",x[m]=function(){return this},x.toString=function(){return"[object Generator]"};function I(k){var M={tryLoc:k[0]};1 in k&&(M.catchLoc=k[1]),2 in k&&(M.finallyLoc=k[2],M.afterLoc=k[3]),this.tryEntries.push(M)}function L(k){var M=k.completion||{};M.type="normal",delete M.arg,k.completion=M}function N(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(I,this),this.reset(!0)}r.keys=function(k){var M=[];for(var j in k)M.push(j);return M.reverse(),function F(){for(;M.length;){var U=M.pop();if(U in k)return F.value=U,F.done=!1,F}return F.done=!0,F}};function D(k){if(k){var M=k[m];if(M)return M.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var j=-1,F=function U(){for(;++j<k.length;)if(C.call(k,j))return U.value=k[j],U.done=!1,U;return U.value=A,U.done=!0,U};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 j in this)j.charAt(0)==="t"&&C.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=A)},stop:function(){this.done=!0;var M=this.tryEntries[0],j=M.completion;if(j.type==="throw")throw j.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var j=this;function F(Z,le){return V.type="throw",V.arg=M,j.next=Z,le&&(j.method="next",j.arg=A),!!le}for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U],V=K.completion;if(K.tryLoc==="root")return F("end");if(K.tryLoc<=this.prev){var z=C.call(K,"catchLoc"),Q=C.call(K,"finallyLoc");if(z&&Q){if(this.prev<K.catchLoc)return F(K.catchLoc,!0);if(this.prev<K.finallyLoc)return F(K.finallyLoc)}else if(z){if(this.prev<K.catchLoc)return F(K.catchLoc,!0)}else if(Q){if(this.prev<K.finallyLoc)return F(K.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,j){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&C.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var K=U;break}}K&&(M==="break"||M==="continue")&&K.tryLoc<=j&&j<=K.finallyLoc&&(K=null);var V=K?K.completion:{};return V.type=M,V.arg=j,K?(this.method="next",this.next=K.finallyLoc,s):this.complete(V)},complete:function(M,j){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"&&j&&(this.next=j),s},finish:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.finallyLoc===M)return this.complete(F.completion,F.afterLoc),L(F),s}},catch:function(M){for(var j=this.tryEntries.length-1;j>=0;--j){var F=this.tryEntries[j];if(F.tryLoc===M){var U=F.completion;if(U.type==="throw"){var K=U.arg;L(F)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(M,j,F){return this.delegate={iterator:D(M),resultName:j,nextLoc:F},this.method==="next"&&(this.arg=A),s}}}(function(){return this}()||Function("return this")())},{}],228:[function(H,B,d){var _=H("buffer"),E=_.Buffer;function C(w,m){for(var f in w)m[f]=w[f]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?B.exports=_:(C(_,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 _.SlowBuffer(w)}},{buffer:73}],229:[function(H,B,d){(function(_){"use strict";var E=H("babel-runtime/core-js/string/from-code-point"),C=l(E),A=H("babel-runtime/core-js/json/stringify"),w=l(A),m=H("babel-runtime/helpers/typeof"),f=l(m),c=H("babel-runtime/core-js/object/define-property"),o=l(c),r=H("babel-runtime/core-js/object/keys"),i=l(r),n=H("babel-runtime/core-js/object/create"),e=l(n);function l(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(G,X){return new s(G,X)},t.SAXParser=s,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 s(G,X){if(!(this instanceof s))return new s(G,X);var fe=this;h(fe),fe.q=fe.c="",fe.bufferCheckPosition=t.MAX_BUFFER_LENGTH,fe.opt=X||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!G,fe.noscript=!!(G||fe.opt.noscript),fe.state=K.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?(0,e.default)(t.XML_ENTITIES):(0,e.default)(t.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=(0,e.default)(I)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),z(fe,"onready")}e.default||(Object.create=function(G){function X(){}X.prototype=G;var fe=new X;return fe}),i.default||(Object.keys=function(G){var X=[];for(var fe in G)G.hasOwnProperty(fe)&&X.push(fe);return X});function u(G){for(var X=Math.max(t.MAX_BUFFER_LENGTH,10),fe=0,de=0,Ce=a.length;de<Ce;de++){var Me=G[a[de]].length;if(Me>X)switch(a[de]){case"textNode":Z(G);break;case"cdata":Q(G,"oncdata",G.cdata),G.cdata="";break;case"script":Q(G,"onscript",G.script),G.script="";break;default:ne(G,"Max buffer length exceeded: "+a[de])}fe=Math.max(fe,Me)}var ue=t.MAX_BUFFER_LENGTH-fe;G.bufferCheckPosition=ue+G.position}function h(G){for(var X=0,fe=a.length;X<fe;X++)G[a[X]]=""}function p(G){Z(G),G.cdata!==""&&(Q(G,"oncdata",G.cdata),G.cdata=""),G.script!==""&&(Q(G,"onscript",G.script),G.script="")}s.prototype={end:function(){ve(this)},write:Y,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var 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,X){return new x(G,X)}function x(G,X){if(!(this instanceof x))return new x(G,X);g.apply(this),this._parser=new s(G,X),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(de){fe.emit("error",de),fe._parser.error=null},this._decoder=null,v.forEach(function(de){(0,o.default)(fe,"on"+de,{get:function(){return fe._parser["on"+de]},set:function(Me){if(!Me)return fe.removeAllListeners(de),fe._parser["on"+de]=Me,Me;fe.on(de,Me)},enumerable:!0,configurable:!1})})}x.prototype=(0,e.default)(g.prototype,{constructor:{value:x}}),x.prototype.write=function(G){if(typeof _=="function"&&typeof _.isBuffer=="function"&&_.isBuffer(G)){if(!this._decoder){var X=H("string_decoder").StringDecoder;this._decoder=new X("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,X){var fe=this;return!fe._parser["on"+G]&&v.indexOf(G)!==-1&&(fe._parser["on"+G]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,G),fe.emit.apply(fe,de)}),g.prototype.on.call(fe,G,X)};var T="[CDATA[",S="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",O="http://www.w3.org/2000/xmlns/",I={xml:b,xmlns:O},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 k(G){return G===" "||G===`
|
|
|
`||G==="\r"||G===" "}function M(G){return G==='"'||G==="'"}function j(G){return G===">"||k(G)}function F(G,X){return G.test(X)}function U(G,X){return!F(G,X)}var K=0;t.STATE={BEGIN:K++,BEGIN_WHITESPACE:K++,TEXT:K++,TEXT_ENTITY:K++,OPEN_WAKA:K++,SGML_DECL:K++,SGML_DECL_QUOTED:K++,DOCTYPE:K++,DOCTYPE_QUOTED:K++,DOCTYPE_DTD:K++,DOCTYPE_DTD_QUOTED:K++,COMMENT_STARTING:K++,COMMENT:K++,COMMENT_ENDING:K++,COMMENT_ENDED:K++,CDATA:K++,CDATA_ENDING:K++,CDATA_ENDING_2:K++,PROC_INST:K++,PROC_INST_BODY:K++,PROC_INST_ENDING:K++,OPEN_TAG:K++,OPEN_TAG_SLASH:K++,ATTRIB:K++,ATTRIB_NAME:K++,ATTRIB_NAME_SAW_WHITE:K++,ATTRIB_VALUE:K++,ATTRIB_VALUE_QUOTED:K++,ATTRIB_VALUE_CLOSED:K++,ATTRIB_VALUE_UNQUOTED:K++,ATTRIB_VALUE_ENTITY_Q:K++,ATTRIB_VALUE_ENTITY_U:K++,CLOSE_TAG:K++,CLOSE_TAG_SAW_WHITE:K++,SCRIPT:K++,SCRIPT_ENDING:K++},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 X=t.ENTITIES[G],fe=typeof X=="number"?String.fromCharCode(X):X;t.ENTITIES[G]=fe});for(var V in t.STATE)t.STATE[t.STATE[V]]=V;K=t.STATE;function z(G,X,fe){G[X]&&G[X](fe)}function Q(G,X,fe){G.textNode&&Z(G),z(G,X,fe)}function Z(G){G.textNode=le(G.opt,G.textNode),G.textNode&&z(G,"ontext",G.textNode),G.textNode=""}function le(G,X){return G.trim&&(X=X.trim()),G.normalize&&(X=X.replace(/\s+/g," ")),X}function ne(G,X){return Z(G),G.trackPosition&&(X+=`
|
|
|
Line: `+G.line+`
|
|
|
Column: `+G.column+`
|
|
|
Char: `+G.c),X=new Error(X),G.error=X,z(G,"onerror",X),G}function ve(G){return G.sawRoot&&!G.closedRoot&&xe(G,"Unclosed root tag"),G.state!==K.BEGIN&&G.state!==K.BEGIN_WHITESPACE&&G.state!==K.TEXT&&ne(G,"Unexpected end"),Z(G),G.c="",G.closed=!0,z(G,"onend"),s.call(G,G.strict,G.opt),G}function xe(G,X){if((typeof G=="undefined"?"undefined":(0,f.default)(G))!=="object"||!(G instanceof s))throw new Error("bad call to strictFail");G.strict&&ne(G,X)}function _e(G){G.strict||(G.tagName=G.tagName[G.looseCase]());var X=G.tags[G.tags.length-1]||G,fe=G.tag={name:G.tagName,attributes:{}};G.opt.xmlns&&(fe.ns=X.ns),G.attribList.length=0,Q(G,"onopentagstart",fe)}function Be(G,X){var fe=G.indexOf(":"),de=fe<0?["",G]:G.split(":"),Ce=de[0],Me=de[1];return X&&G==="xmlns"&&(Ce="xmlns",Me=""),{prefix:Ce,local:Me}}function me(G){if(G.strict||(G.attribName=G.attribName[G.looseCase]()),G.attribList.indexOf(G.attribName)!==-1||G.tag.attributes.hasOwnProperty(G.attribName)){G.attribName=G.attribValue="";return}if(G.opt.xmlns){var X=Be(G.attribName,!0),fe=X.prefix,de=X.local;if(fe==="xmlns")if(de==="xml"&&G.attribValue!==b)xe(G,"xml: prefix must be bound to "+b+`
|
|
|
Actual: `+G.attribValue);else if(de==="xmlns"&&G.attribValue!==O)xe(G,"xmlns: prefix must be bound to "+O+`
|
|
|
Actual: `+G.attribValue);else{var Ce=G.tag,Me=G.tags[G.tags.length-1]||G;Ce.ns===Me.ns&&(Ce.ns=(0,e.default)(Me.ns)),Ce.ns[de]=G.attribValue}G.attribList.push([G.attribName,G.attribValue])}else G.tag.attributes[G.attribName]=G.attribValue,Q(G,"onattribute",{name:G.attribName,value:G.attribValue});G.attribName=G.attribValue=""}function Fe(G,X){if(G.opt.xmlns){var fe=G.tag,de=Be(G.tagName);fe.prefix=de.prefix,fe.local=de.local,fe.uri=fe.ns[de.prefix]||"",fe.prefix&&!fe.uri&&(xe(G,"Unbound namespace prefix: "+(0,w.default)(G.tagName)),fe.uri=de.prefix);var Ce=G.tags[G.tags.length-1]||G;fe.ns&&Ce.ns!==fe.ns&&(0,i.default)(fe.ns).forEach(function(Et){Q(G,"onopennamespace",{prefix:Et,uri:fe.ns[Et]})});for(var Me=0,ue=G.attribList.length;Me<ue;Me++){var Ae=G.attribList[Me],Te=Ae[0],Je=Ae[1],At=Be(Te,!0),qe=At.prefix,Re=At.local,Lt=qe===""?"":fe.ns[qe]||"",$e={name:Te,value:Je,prefix:qe,local:Re,uri:Lt};qe&&qe!=="xmlns"&&!Lt&&(xe(G,"Unbound namespace prefix: "+(0,w.default)(qe)),$e.uri=qe),G.tag.attributes[Te]=$e,Q(G,"onattribute",$e)}G.attribList.length=0}G.tag.isSelfClosing=!!X,G.sawRoot=!0,G.tags.push(G.tag),Q(G,"onopentag",G.tag),X||(!G.noscript&&G.tagName.toLowerCase()==="script"?G.state=K.SCRIPT:G.state=K.TEXT,G.tag=null,G.tagName=""),G.attribName=G.attribValue="",G.attribList.length=0}function ie(G){if(!G.tagName){xe(G,"Weird empty close tag."),G.textNode+="</>",G.state=K.TEXT;return}if(G.script){if(G.tagName!=="script"){G.script+="</"+G.tagName+">",G.tagName="",G.state=K.SCRIPT;return}Q(G,"onscript",G.script),G.script=""}var X=G.tags.length,fe=G.tagName;G.strict||(fe=fe[G.looseCase]());for(var de=fe;X--;){var Ce=G.tags[X];if(Ce.name!==de)xe(G,"Unexpected close tag");else break}if(X<0){xe(G,"Unmatched closing tag: "+G.tagName),G.textNode+="</"+G.tagName+">",G.state=K.TEXT;return}G.tagName=fe;for(var Me=G.tags.length;Me-- >X;){var ue=G.tag=G.tags.pop();G.tagName=G.tag.name,Q(G,"onclosetag",G.tagName);var Ae={};for(var Te in ue.ns)Ae[Te]=ue.ns[Te];var Je=G.tags[G.tags.length-1]||G;G.opt.xmlns&&ue.ns!==Je.ns&&(0,i.default)(ue.ns).forEach(function(At){var qe=ue.ns[At];Q(G,"onclosenamespace",{prefix:At,uri:qe})})}X===0&&(G.closedRoot=!0),G.tagName=G.attribValue=G.attribName="",G.attribList.length=0,G.state=K.TEXT}function te(G){var X=G.entity,fe=X.toLowerCase(),de,Ce="";return G.ENTITIES[X]?G.ENTITIES[X]:G.ENTITIES[fe]?G.ENTITIES[fe]:(X=fe,X.charAt(0)==="#"&&(X.charAt(1)==="x"?(X=X.slice(2),de=parseInt(X,16),Ce=de.toString(16)):(X=X.slice(1),de=parseInt(X,10),Ce=de.toString(10))),X=X.replace(/^0+/,""),isNaN(de)||Ce.toLowerCase()!==X?(xe(G,"Invalid character entity"),"&"+G.entity+";"):(0,C.default)(de))}function Ge(G,X){X==="<"?(G.state=K.OPEN_WAKA,G.startTagPosition=G.position):k(X)||(xe(G,"Non-whitespace before first tag."),G.textNode=X,G.state=K.TEXT)}function oe(G,X){var fe="";return X<G.length&&(fe=G.charAt(X)),fe}function Y(G){var X=this;if(this.error)throw this.error;if(X.closed)return ne(X,"Cannot write after close. Assign an onready handler.");if(G===null)return ve(X);(typeof G=="undefined"?"undefined":(0,f.default)(G))==="object"&&(G=G.toString());for(var fe=0,de="";!(de=oe(G,fe++),X.c=de,!de);){X.trackPosition&&(X.position++,de===`
|
|
|
`?(X.line++,X.column=0):X.column++);switch(X.state){case K.BEGIN:if(X.state=K.BEGIN_WHITESPACE,de==="\uFEFF")continue;Ge(X,de);continue;case K.BEGIN_WHITESPACE:Ge(X,de);continue;case K.TEXT:if(X.sawRoot&&!X.closedRoot){for(var Ce=fe-1;de&&de!=="<"&&de!=="&";)de=oe(G,fe++),de&&X.trackPosition&&(X.position++,de===`
|
|
|
`?(X.line++,X.column=0):X.column++);X.textNode+=G.substring(Ce,fe-1)}de==="<"&&!(X.sawRoot&&X.closedRoot&&!X.strict)?(X.state=K.OPEN_WAKA,X.startTagPosition=X.position):(!k(de)&&(!X.sawRoot||X.closedRoot)&&xe(X,"Text data outside of root node."),de==="&"?X.state=K.TEXT_ENTITY:X.textNode+=de);continue;case K.SCRIPT:de==="<"?X.state=K.SCRIPT_ENDING:X.script+=de;continue;case K.SCRIPT_ENDING:de==="/"?X.state=K.CLOSE_TAG:(X.script+="<"+de,X.state=K.SCRIPT);continue;case K.OPEN_WAKA:if(de==="!")X.state=K.SGML_DECL,X.sgmlDecl="";else if(!k(de))if(F(L,de))X.state=K.OPEN_TAG,X.tagName=de;else if(de==="/")X.state=K.CLOSE_TAG,X.tagName="";else if(de==="?")X.state=K.PROC_INST,X.procInstName=X.procInstBody="";else{if(xe(X,"Unencoded <"),X.startTagPosition+1<X.position){var Me=X.position-X.startTagPosition;de=new Array(Me).join(" ")+de}X.textNode+="<"+de,X.state=K.TEXT}continue;case K.SGML_DECL:(X.sgmlDecl+de).toUpperCase()===T?(Q(X,"onopencdata"),X.state=K.CDATA,X.sgmlDecl="",X.cdata=""):X.sgmlDecl+de==="--"?(X.state=K.COMMENT,X.comment="",X.sgmlDecl=""):(X.sgmlDecl+de).toUpperCase()===S?(X.state=K.DOCTYPE,(X.doctype||X.sawRoot)&&xe(X,"Inappropriately located doctype declaration"),X.doctype="",X.sgmlDecl=""):de===">"?(Q(X,"onsgmldeclaration",X.sgmlDecl),X.sgmlDecl="",X.state=K.TEXT):(M(de)&&(X.state=K.SGML_DECL_QUOTED),X.sgmlDecl+=de);continue;case K.SGML_DECL_QUOTED:de===X.q&&(X.state=K.SGML_DECL,X.q=""),X.sgmlDecl+=de;continue;case K.DOCTYPE:de===">"?(X.state=K.TEXT,Q(X,"ondoctype",X.doctype),X.doctype=!0):(X.doctype+=de,de==="["?X.state=K.DOCTYPE_DTD:M(de)&&(X.state=K.DOCTYPE_QUOTED,X.q=de));continue;case K.DOCTYPE_QUOTED:X.doctype+=de,de===X.q&&(X.q="",X.state=K.DOCTYPE);continue;case K.DOCTYPE_DTD:X.doctype+=de,de==="]"?X.state=K.DOCTYPE:M(de)&&(X.state=K.DOCTYPE_DTD_QUOTED,X.q=de);continue;case K.DOCTYPE_DTD_QUOTED:X.doctype+=de,de===X.q&&(X.state=K.DOCTYPE_DTD,X.q="");continue;case K.COMMENT:de==="-"?X.state=K.COMMENT_ENDING:X.comment+=de;continue;case K.COMMENT_ENDING:de==="-"?(X.state=K.COMMENT_ENDED,X.comment=le(X.opt,X.comment),X.comment&&Q(X,"oncomment",X.comment),X.comment=""):(X.comment+="-"+de,X.state=K.COMMENT);continue;case K.COMMENT_ENDED:de!==">"?(xe(X,"Malformed comment"),X.comment+="--"+de,X.state=K.COMMENT):X.state=K.TEXT;continue;case K.CDATA:de==="]"?X.state=K.CDATA_ENDING:X.cdata+=de;continue;case K.CDATA_ENDING:de==="]"?X.state=K.CDATA_ENDING_2:(X.cdata+="]"+de,X.state=K.CDATA);continue;case K.CDATA_ENDING_2:de===">"?(X.cdata&&Q(X,"oncdata",X.cdata),Q(X,"onclosecdata"),X.cdata="",X.state=K.TEXT):de==="]"?X.cdata+="]":(X.cdata+="]]"+de,X.state=K.CDATA);continue;case K.PROC_INST:de==="?"?X.state=K.PROC_INST_ENDING:k(de)?X.state=K.PROC_INST_BODY:X.procInstName+=de;continue;case K.PROC_INST_BODY:if(!X.procInstBody&&k(de))continue;de==="?"?X.state=K.PROC_INST_ENDING:X.procInstBody+=de;continue;case K.PROC_INST_ENDING:de===">"?(Q(X,"onprocessinginstruction",{name:X.procInstName,body:X.procInstBody}),X.procInstName=X.procInstBody="",X.state=K.TEXT):(X.procInstBody+="?"+de,X.state=K.PROC_INST_BODY);continue;case K.OPEN_TAG:F(N,de)?X.tagName+=de:(_e(X),de===">"?Fe(X):de==="/"?X.state=K.OPEN_TAG_SLASH:(k(de)||xe(X,"Invalid character in tag name"),X.state=K.ATTRIB));continue;case K.OPEN_TAG_SLASH:de===">"?(Fe(X,!0),ie(X)):(xe(X,"Forward-slash in opening tag not followed by >"),X.state=K.ATTRIB);continue;case K.ATTRIB:if(k(de))continue;de===">"?Fe(X):de==="/"?X.state=K.OPEN_TAG_SLASH:F(L,de)?(X.attribName=de,X.attribValue="",X.state=K.ATTRIB_NAME):xe(X,"Invalid attribute name");continue;case K.ATTRIB_NAME:de==="="?X.state=K.ATTRIB_VALUE:de===">"?(xe(X,"Attribute without value"),X.attribValue=X.attribName,me(X),Fe(X)):k(de)?X.state=K.ATTRIB_NAME_SAW_WHITE:F(N,de)?X.attribName+=de:xe(X,"Invalid attribute name");continue;case K.ATTRIB_NAME_SAW_WHITE:if(de==="=")X.state=K.ATTRIB_VALUE;else{if(k(de))continue;xe(X,"Attribute without value"),X.tag.attributes[X.attribName]="",X.attribValue="",Q(X,"onattribute",{name:X.attribName,value:""}),X.attribName="",de===">"?Fe(X):F(L,de)?(X.attribName=de,X.state=K.ATTRIB_NAME):(xe(X,"Invalid attribute name"),X.state=K.ATTRIB)}continue;case K.ATTRIB_VALUE:if(k(de))continue;M(de)?(X.q=de,X.state=K.ATTRIB_VALUE_QUOTED):(xe(X,"Unquoted attribute value"),X.state=K.ATTRIB_VALUE_UNQUOTED,X.attribValue=de);continue;case K.ATTRIB_VALUE_QUOTED:if(de!==X.q){de==="&"?X.state=K.ATTRIB_VALUE_ENTITY_Q:X.attribValue+=de;continue}me(X),X.q="",X.state=K.ATTRIB_VALUE_CLOSED;continue;case K.ATTRIB_VALUE_CLOSED:k(de)?X.state=K.ATTRIB:de===">"?Fe(X):de==="/"?X.state=K.OPEN_TAG_SLASH:F(L,de)?(xe(X,"No whitespace between attributes"),X.attribName=de,X.attribValue="",X.state=K.ATTRIB_NAME):xe(X,"Invalid attribute name");continue;case K.ATTRIB_VALUE_UNQUOTED:if(!j(de)){de==="&"?X.state=K.ATTRIB_VALUE_ENTITY_U:X.attribValue+=de;continue}me(X),de===">"?Fe(X):X.state=K.ATTRIB;continue;case K.CLOSE_TAG:if(X.tagName)de===">"?ie(X):F(N,de)?X.tagName+=de:X.script?(X.script+="</"+X.tagName,X.tagName="",X.state=K.SCRIPT):(k(de)||xe(X,"Invalid tagname in closing tag"),X.state=K.CLOSE_TAG_SAW_WHITE);else{if(k(de))continue;U(L,de)?X.script?(X.script+="</"+de,X.state=K.SCRIPT):xe(X,"Invalid tagname in closing tag."):X.tagName=de}continue;case K.CLOSE_TAG_SAW_WHITE:if(k(de))continue;de===">"?ie(X):xe(X,"Invalid characters in closing tag");continue;case K.TEXT_ENTITY:case K.ATTRIB_VALUE_ENTITY_Q:case K.ATTRIB_VALUE_ENTITY_U:var ue,Ae;switch(X.state){case K.TEXT_ENTITY:ue=K.TEXT,Ae="textNode";break;case K.ATTRIB_VALUE_ENTITY_Q:ue=K.ATTRIB_VALUE_QUOTED,Ae="attribValue";break;case K.ATTRIB_VALUE_ENTITY_U:ue=K.ATTRIB_VALUE_UNQUOTED,Ae="attribValue";break}de===";"?(X[Ae]+=te(X),X.entity="",X.state=ue):F(X.entity.length?R:D,de)?X.entity+=de:(xe(X,"Invalid character in entity name"),X[Ae]+="&"+X.entity+de,X.entity="",X.state=ue);continue;default:throw new Error(X,"Unknown state: "+X.state)}}return X.position>=X.bufferCheckPosition&&u(X),X}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */C.default||function(){var G=String.fromCharCode,X=Math.floor,fe=function(){var Ce=16384,Me=[],ue,Ae,Te=-1,Je=arguments.length;if(!Je)return"";for(var At="";++Te<Je;){var qe=Number(arguments[Te]);if(!isFinite(qe)||qe<0||qe>1114111||X(qe)!==qe)throw RangeError("Invalid code point: "+qe);qe<=65535?Me.push(qe):(qe-=65536,ue=(qe>>10)+55296,Ae=qe%1024+56320,Me.push(ue,Ae)),(Te+1===Je||Me.length>Ce)&&(At+=G.apply(null,Me),Me.length=0)}return At};o.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(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 _=H("events").EventEmitter,E=H("inherits");E(C,_),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(){_.call(this)}C.prototype.pipe=function(A,w){var m=this;function f(l){A.writable&&(A.write(l)===!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(l){if(e(),_.listenerCount(this,"error")===0)throw l}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(_){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=_.location.protocol.search(/^https?:$/)===-1?"http:":"",i=c.protocol||r,n=c.hostname||c.host,e=c.port,l=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?i+"//"+n:"")+(e?":"+e:"")+l,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var t=new 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(_){"use strict";d.fetch=f(_.fetch)&&f(_.ReadableStream),d.writableStream=f(_.WritableStream),d.abortController=f(_.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(_.XMLHttpRequest){E=new _.XMLHttpRequest;try{E.open("GET",_.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 _.ArrayBuffer!="undefined",m=w&&f(_.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(_.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(_,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 l(u,h){return f.fetch&&h?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&u?"arraybuffer":f.vbArray&&u?"text:vbarray":"text"}var t=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=l(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(s.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 O=p[b].name,I=p[b].value;Array.isArray(I)?I.forEach(function(L){v.push([O,L])}):v.push([O,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){_.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){_.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 s=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(H,B,d){(function(_,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,l,t){var a=this;if(o.Readable.call(a),a._mode=l,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){_.nextTick(function(){a.emit("close")})}),l==="fetch"){var s=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();s()}else{a._xhr=n,a._pos=0,a.url=n.responseURL,a.statusCode=n.status,a.statusMessage=n.statusText;var p=n.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(y){var 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,l=null;switch(n._mode){case"text:vbarray":if(e.readyState!==r.DONE)break;try{l=new E.VBArray(e.responseBody).toArray()}catch(h){}if(l!==null){n.push(new C(l));break}case"text":try{l=e.responseText}catch(h){n._mode="text:vbarray";break}if(l.length>n._pos){var t=l.substr(n._pos);if(n._charset==="x-user-defined"){for(var a=new C(t.length),s=0;s<t.length;s++)a[s]=t.charCodeAt(s)&255;n.push(a)}else n.push(t,n._charset);n._pos=l.length}break;case"arraybuffer":if(e.readyState!==r.DONE||!e.response)break;l=e.response,n.push(new C(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==r.LOADING||!l)break;n.push(new C(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==r.LOADING)break;var u=new 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(l);break}n._xhr.readyState===r.DONE&&n._mode!=="ms-stream"&&n.push(null)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(H,B,d){"use strict";var _=H("safe-buffer").Buffer,E=_.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"&&(_.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=l,this.end=t,h=3;break;default:this.write=a,this.end=s;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_.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 l(u,h){var p=(u.length-h)%3;return p===0?u.toString("base64",h):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",h,u.length-p))}function t(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function a(u){return u.toString(this.encoding)}function s(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(H,B,d){(function(_,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 _=="function"?_: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 _=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(_.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 _=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}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},a={javascript:!0,"javascript:":!0},s={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=H("querystring");function h(y,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("#")?"?":"#",O=y.split(b),I=/\\/g;O[0]=O[0].replace(I,"/"),y=O.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 k=L.substr(0,2)==="//";k&&!(D&&a[D])&&(L=L.substr(2),this.slashes=!0)}if(!a[D]&&(k||D&&!s[D])){for(var M=-1,j=0;j<i.length;j++){var F=L.indexOf(i[j]);F!==-1&&(M===-1||F<M)&&(M=F)}var U,K;M===-1?K=L.lastIndexOf("@"):K=L.lastIndexOf("@",M),K!==-1&&(U=L.slice(0,K),L=L.slice(K+1),this.auth=decodeURIComponent(U)),M=-1;for(var j=0;j<r.length;j++){var F=L.indexOf(r[j]);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(/\./),j=0,Q=z.length;j<Q;j++){var Z=z[j];if(!Z)continue;if(!Z.match(e)){for(var le="",ne=0,ve=Z.length;ne<ve;ne++)Z.charCodeAt(ne)>127?le+="x":le+=Z[ne];if(!le.match(e)){var xe=z.slice(0,j),_e=z.slice(j+1),Be=Z.match(l);Be&&(xe.push(Be[1]),_e.unshift(Be[2])),_e.length&&(L="/"+_e.join(".")+L),this.hostname=xe.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=_.toASCII(this.hostname));var me=this.port?":"+this.port:"",Fe=this.hostname||"";this.host=Fe+me,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!t[R])for(var j=0,Q=o.length;j<Q;j++){var ie=o[j];if(L.indexOf(ie)===-1)continue;var te=encodeURIComponent(ie);te===ie&&(te=escape(ie)),L=L.split(ie).join(te)}var Ge=L.indexOf("#");Ge!==-1&&(this.hash=L.substr(Ge),L=L.slice(0,Ge));var oe=L.indexOf("?");if(oe!==-1?(this.search=L.substr(oe),this.query=L.substr(oe+1),x&&(this.query=u.parse(this.query)),L=L.slice(0,oe)):x&&(this.search="",this.query={}),L&&(this.pathname=L),s[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var me=this.pathname||"",Y=this.search||"";this.path=me+Y}return this.href=this.format(),this};function p(y){return 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,O="";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&&(O=u.stringify(this.query));var I=this.search||O&&"?"+O||"";return x&&x.substr(-1)!==":"&&(x+=":"),this.slashes||(!x||s[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 O=S[b];T[O]=this[O]}if(T.hash=y.hash,y.href==="")return T.href=T.format(),T;if(y.slashes&&!y.protocol){for(var I=Object.keys(y),L=0;L<I.length;L++){var N=I[L];N!=="protocol"&&(T[N]=y[N])}return s[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(y.protocol&&y.protocol!==T.protocol){if(!s[y.protocol]){for(var D=Object.keys(y),R=0;R<D.length;R++){var k=D[R];T[k]=y[k]}return T.href=T.format(),T}if(T.protocol=y.protocol,!y.host&&!a[y.protocol]){for(var Q=(y.pathname||"").split("/");Q.length&&!(y.host=Q.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),Q[0]!==""&&Q.unshift(""),Q.length<2&&Q.unshift(""),T.pathname=Q.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||"",j=T.search||"";T.path=M+j}return T.slashes=T.slashes||y.slashes,T.href=T.format(),T}var F=T.pathname&&T.pathname.charAt(0)==="/",U=y.host||y.pathname&&y.pathname.charAt(0)==="/",K=U||F||T.host&&y.pathname,V=K,z=T.pathname&&T.pathname.split("/")||[],Q=y.pathname&&y.pathname.split("/")||[],Z=T.protocol&&!s[T.protocol];if(Z&&(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&&(Q[0]===""?Q[0]=y.host:Q.unshift(y.host)),y.host=null),K=K&&(Q[0]===""||z[0]==="")),U)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=Q;else if(Q.length)z||(z=[]),z.pop(),z=z.concat(Q),T.search=y.search,T.query=y.query;else if(!E.isNullOrUndefined(y.search)){if(Z){T.hostname=T.host=z.shift();var le=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;le&&(T.auth=le.shift(),T.host=T.hostname=le.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],ve=(T.host||y.host||z.length>1)&&(ne==="."||ne==="..")||ne==="",xe=0,_e=z.length;_e>=0;_e--)ne=z[_e],ne==="."?z.splice(_e,1):ne===".."?(z.splice(_e,1),xe++):xe&&(z.splice(_e,1),xe--);if(!K&&!V)for(;xe--;xe)z.unshift("..");K&&z[0]!==""&&(!z[0]||z[0].charAt(0)!=="/")&&z.unshift(""),ve&&z.join("/").substr(-1)!=="/"&&z.push("");var Be=z[0]===""||z[0]&&z[0].charAt(0)==="/";if(Z){T.hostname=T.host=Be?"":z.length?z.shift():"";var le=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;le&&(T.auth=le.shift(),T.host=T.hostname=le.shift())}return K=K||T.host&&z.length,K&&!Be&&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(_){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(!_.localStorage)return!1}catch(m){return!1}var w=_.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(_,E){var C=/%[sdj%]/g;d.format=function(M){if(!g(M)){for(var j=[],F=0;F<arguments.length;F++)j.push(m(arguments[F]));return j.join(" ")}for(var F=1,U=arguments,K=U.length,V=String(M).replace(C,function(Q){if(Q==="%%")return"%";if(F>=K)return Q;switch(Q){case"%s":return String(U[F++]);case"%d":return Number(U[F++]);case"%j":try{return JSON.stringify(U[F++])}catch(Z){return"[Circular]"}default:return Q}}),z=U[F];F<K;z=U[++F])u(z)||!T(z)?V+=" "+z:V+=" "+m(z);return V},d.deprecate=function(M,j){if(y(E.process))return function(){return d.deprecate(M,j).apply(this,arguments)};if(_.noDeprecation===!0)return M;var F=!1;function U(){if(!F){if(_.throwDeprecation)throw new Error(j);_.traceDeprecation?console.trace(j):console.error(j),F=!0}return M.apply(this,arguments)}return U};var A={},w;d.debuglog=function(M){if(y(w)&&(w=_.env.NODE_DEBUG||""),M=M.toUpperCase(),!A[M])if(new RegExp("\\b"+M+"\\b","i").test(w)){var j=_.pid;A[M]=function(){var F=d.format.apply(d,arguments);console.error("%s %d: %s",M,j,F)}}else A[M]=function(){};return A[M]};function m(M,j){var F={seen:[],stylize:c};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),s(j)?F.showHidden=j:j&&d._extend(F,j),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,j){var F=m.styles[j];return F?"["+m.colors[F][0]+"m"+M+"["+m.colors[F][1]+"m":M}function c(M,j){return M}function o(M){var j={};return M.forEach(function(F,U){j[F]=!0}),j}function r(M,j,F){if(M.customInspect&&j&&O(j.inspect)&&j.inspect!==d.inspect&&!(j.constructor&&j.constructor.prototype===j)){var U=j.inspect(F,M);return g(U)||(U=r(M,U,F)),U}var K=i(M,j);if(K)return K;var V=Object.keys(j),z=o(V);if(M.showHidden&&(V=Object.getOwnPropertyNames(j)),b(j)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return n(j);if(V.length===0){if(O(j)){var Q=j.name?": "+j.name:"";return M.stylize("[Function"+Q+"]","special")}if(x(j))return M.stylize(RegExp.prototype.toString.call(j),"regexp");if(S(j))return M.stylize(Date.prototype.toString.call(j),"date");if(b(j))return n(j)}var Z="",le=!1,ne=["{","}"];if(a(j)&&(le=!0,ne=["[","]"]),O(j)){var ve=j.name?": "+j.name:"";Z=" [Function"+ve+"]"}if(x(j)&&(Z=" "+RegExp.prototype.toString.call(j)),S(j)&&(Z=" "+Date.prototype.toUTCString.call(j)),b(j)&&(Z=" "+n(j)),V.length===0&&(!le||j.length==0))return ne[0]+Z+ne[1];if(F<0)return x(j)?M.stylize(RegExp.prototype.toString.call(j),"regexp"):M.stylize("[Object]","special");M.seen.push(j);var xe;return le?xe=e(M,j,F,z,V):xe=V.map(function(_e){return l(M,j,F,z,_e,le)}),M.seen.pop(),t(xe,Z,ne)}function i(M,j){if(y(j))return M.stylize("undefined","undefined");if(g(j)){var F="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(F,"string")}if(p(j))return M.stylize(""+j,"number");if(s(j))return M.stylize(""+j,"boolean");if(u(j))return M.stylize("null","null")}function n(M){return"["+Error.prototype.toString.call(M)+"]"}function e(M,j,F,U,K){for(var V=[],z=0,Q=j.length;z<Q;++z)k(j,String(z))?V.push(l(M,j,F,U,String(z),!0)):V.push("");return K.forEach(function(Z){Z.match(/^\d+$/)||V.push(l(M,j,F,U,Z,!0))}),V}function l(M,j,F,U,K,V){var z,Q,Z;if(Z=Object.getOwnPropertyDescriptor(j,K)||{value:j[K]},Z.get?Z.set?Q=M.stylize("[Getter/Setter]","special"):Q=M.stylize("[Getter]","special"):Z.set&&(Q=M.stylize("[Setter]","special")),k(U,K)||(z="["+K+"]"),Q||(M.seen.indexOf(Z.value)<0?(u(F)?Q=r(M,Z.value,null):Q=r(M,Z.value,F-1),Q.indexOf(`
|
|
|
`)>-1&&(V?Q=Q.split(`
|
|
|
`).map(function(le){return" "+le}).join(`
|
|
|
`).substr(2):Q=`
|
|
|
`+Q.split(`
|
|
|
`).map(function(le){return" "+le}).join(`
|
|
|
`))):Q=M.stylize("[Circular]","special")),y(z)){if(V&&K.match(/^\d+$/))return Q;z=JSON.stringify(""+K),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+": "+Q}function t(M,j,F){var U=0,K=M.reduce(function(V,z){return U++,z.indexOf(`
|
|
|
`)>=0&&U++,V+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?F[0]+(j===""?"":j+`
|
|
|
`)+" "+M.join(`,
|
|
|
`)+" "+F[1]:F[0]+j+" "+M.join(", ")+" "+F[1]}function a(M){return Array.isArray(M)}d.isArray=a;function s(M){return typeof M=="boolean"}d.isBoolean=s;function u(M){return M===null}d.isNull=u;function h(M){return M==null}d.isNullOrUndefined=h;function p(M){return typeof M=="number"}d.isNumber=p;function 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 O(M){return typeof M=="function"}d.isFunction=O;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,j=[N(M.getHours()),N(M.getMinutes()),N(M.getSeconds())].join(":");return[M.getDate(),D[M.getMonth()],j].join(" ")}d.log=function(){console.log("%s - %s",R(),d.format.apply(d,arguments))},d.inherits=H("inherits"),d._extend=function(M,j){if(!j||!T(j))return M;for(var F=Object.keys(j),U=F.length;U--;)M[F[U]]=j[F[U]];return M};function k(M,j){return Object.prototype.hasOwnProperty.call(M,j)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(H,B,d){"use strict";(function(){"use strict";d.stripBOM=function(_){return _[0]==="\uFEFF"?_.substring(1):_}}).call(void 0)},{}],245:[function(H,B,d){"use strict";var _=H("babel-runtime/helpers/typeof"),E=w(_),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 l,t,a;this.options={},t=f["0.2"];for(l in t){if(!i.call(t,l))continue;a=t[l],this.options[l]=a}for(l in e){if(!i.call(e,l))continue;a=e[l],this.options[l]=a}}return n.prototype.buildObject=function(e){var l,t,a,s,u;return l=this.options.attrkey,t=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===f["0.2"].rootName?(u=(0,A.default)(e)[0],e=e[u]):u=this.options.rootName,a=function(h){return function(p,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===l){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),s=m.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),a(s,e).end(this.options.renderOpts)},n}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(H,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 _=H("babel-runtime/core-js/promise"),E=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,l,t,a,s,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"),s=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},l=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),s(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(O){if(b.saxParser.resume(),!b.saxParser.errThrown)return b.saxParser.errThrown=!0,b.emit("error",O)}}(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(O){var I,L,N,D,R;if(N={},N[x]="",!b.options.ignoreAttrs){R=O.attributes;for(I in R){if(!p.call(R,I))continue;!(y in N)&&!b.options.mergeAttrs&&(N[y]={}),L=b.options.attrValueProcessors?l(b.options.attrValueProcessors,O.attributes[I],I):O.attributes[I],D=b.options.attrNameProcessors?l(b.options.attrNameProcessors,I):I,b.options.mergeAttrs?b.assignOrPush(N,D,L):N[y][D]=L}}return N["#name"]=b.options.tagNameProcessors?l(b.options.tagNameProcessors,O.name):O.name,b.options.xmlns&&(N[b.options.xmlnskey]={uri:O.uri,local:O.local}),S.push(N)}}(this),this.saxParser.onclosetag=function(b){return function(){var O,I,L,N,D,R,k,M,j,F;if(R=S.pop(),D=R["#name"],(!b.options.explicitChildren||!b.options.preserveChildrenOrder)&&delete R["#name"],R.cdata===!0&&(O=R.cdata,delete R.cdata),j=S[S.length-1],R[x].match(/^\s*$/)&&!O?(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?l(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 U,K,V;for(V=[],U=0,K=S.length;U<K;U++)N=S[U],V.push(N["#name"]);return V}().concat(D).join("/"),function(){var U;try{return R=b.options.validator(F,j&&j[D],R)}catch(K){return U=K,b.emit("error",U)}}()),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(j){j[b.options.childkey]=j[b.options.childkey]||[],k={};for(L in R){if(!p.call(R,L))continue;k[L]=R[L]}j[b.options.childkey].push(k),delete R["#name"],(0,m.default)(R).length===1&&x in R&&!b.EXPLICIT_CHARKEY&&(R=R[x])}}return S.length>0?b.assignOrPush(j,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(O){var I,L;if(L=S[S.length-1],L)return L[x]+=O,b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||O.replace(/\\n/g,"").trim()!=="")&&(L[b.options.childkey]=L[b.options.childkey]||[],I={"#name":"__text__"},I[x]=O,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(O){var I;if(I=T(O),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,s(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,O){return b?S(b):T(O)})}}(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 _;_=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(_,"")},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 _,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"),_=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=_.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 _=H("babel-runtime/core-js/object/get-prototype-of"),E=f(_),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,l,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},l=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=l,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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _=H("babel-runtime/core-js/object/keys"),E=w(_),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 _;B.exports=_=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 _;B.exports=_=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 _;B.exports=_=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 _,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"),_=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=_.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 _,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"),_=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=_.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 _,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"),_=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=_.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 _,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"),_=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=_.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 _,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"),_=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=_.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 _,E,C,A,w,m,f,c,o,r=function(e,l){for(var t in l)i.call(l,t)&&(e[t]=l[t]);function a(){this.constructor=e}return a.prototype=l.prototype,e.prototype=new a,e.__super__=l.prototype,e},i={}.hasOwnProperty;o=H("./Utility").isObject,c=H("./XMLNode"),_=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(l,t,a){var s,u,h,p,g,v;if(e.__super__.constructor.call(this,l),this.type=_.DocType,l.children){for(p=l.children,u=0,h=p.length;u<h;u++)if(s=p[u],s.type===_.Element){this.name=s.name;break}}this.documentObject=l,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,s,u,h;for(u={},h=this.children,a=0,s=h.length;a<s;a++)t=h[a],t.type===_.EntityDeclaration&&!t.pe&&(u[t.name]=t);return new f(u)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var t,a,s,u,h;for(u={},h=this.children,a=0,s=h.length;a<s;a++)t=h[a],t.type===_.NotationDeclaration&&(u[t.name]=t);return new f(u)}}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.element=function(l,t){var a;return a=new C(this,l,t),this.children.push(a),this},e.prototype.attList=function(l,t,a,s,u){var h;return h=new E(this,l,t,a,s,u),this.children.push(h),this},e.prototype.entity=function(l,t){var a;return a=new A(this,!1,l,t),this.children.push(a),this},e.prototype.pEntity=function(l,t){var a;return a=new A(this,!0,l,t),this.children.push(a),this},e.prototype.notation=function(l,t){var a;return a=new w(this,l,t),this.children.push(a),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,t){return this.element(l,t)},e.prototype.att=function(l,t,a,s,u){return this.attList(l,t,a,s,u)},e.prototype.ent=function(l,t){return this.entity(l,t)},e.prototype.pent=function(l,t){return this.pEntity(l,t)},e.prototype.not=function(l,t){return this.notation(l,t)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(l){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?l.name!==this.name||l.publicId!==this.publicId?!1:!(l.systemId!==this.systemId):!1},e}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(H,B,d){"use strict";(function(){var _,E,C,A,w,m,f,c,o=function(n,e){for(var l in e)r.call(e,l)&&(n[l]=e[l]);function t(){this.constructor=n}return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;c=H("./Utility").isPlainObject,C=H("./XMLDOMImplementation"),E=H("./XMLDOMConfiguration"),w=H("./XMLNode"),_=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=_.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 l,t,a,s;for(s=this.children,t=0,a=s.length;t<a;t++)if(l=s[t],l.type===_.DocType)return l;return null}}),Object.defineProperty(n.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===_.Declaration?this.children[0].encoding:null}}),Object.defineProperty(n.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===_.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===_.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(n.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(n.prototype,"origin",{get:function(){return null}}),Object.defineProperty(n.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(n.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(n.prototype,"contentType",{get:function(){return null}}),n.prototype.end=function(e){var l;return l={},e?c(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},n.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},n.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.renameNode=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createNodeIterator=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(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 _,E,C,A,w,m,f,c,o,r,i,n,e,l,t,a,s,u,h,p,g,v,y,x,T={}.hasOwnProperty;x=H("./Utility"),v=x.isObject,g=x.isFunction,y=x.isPlainObject,p=x.getValue,_=H("./NodeType"),n=H("./XMLDocument"),l=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"),s=H("./XMLStringWriter"),E=H("./WriterState"),B.exports=e=function(){function S(b,O,I){var L;this.name="?xml",this.type=_.Document,b||(b={}),L={},b.writer?y(b.writer)&&(L=b.writer,b.writer=new s):b.writer=new s,this.options=b,this.writer=b.writer,this.writerOptions=this.writer.filterOptions(L),this.stringify=new u(b),this.onDataCallback=O||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return S.prototype.createChildNode=function(b){var O,I,L,N,D,R,k,M;switch(b.type){case _.CData:this.cdata(b.value);break;case _.Comment:this.comment(b.value);break;case _.Element:L={},k=b.attribs;for(I in k){if(!T.call(k,I))continue;O=k[I],L[I]=O.value}this.node(b.name,L);break;case _.Dummy:this.dummy();break;case _.Raw:this.raw(b.value);break;case _.Text:this.text(b.value);break;case _.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===_.Element&&this.up();return this},S.prototype.dummy=function(){return this},S.prototype.node=function(b,O,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),O==null&&(O={}),O=p(O),v(O)||(L=[O,I],I=L[0],O=L[1]),this.currentNode=new l(this,b,O),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},S.prototype.element=function(b,O,I){var L,N,D,R,k,M;if(this.currentNode&&this.currentNode.type===_.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,k=M.children,N=0,D=k.length;N<D;N++)L=k[N],this.createChildNode(L),L.type===_.Element&&this.up();else this.node(b,O,I);return this},S.prototype.attribute=function(b,O){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(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.currentNode.attribs[b]=new C(this,b,""):O!=null&&(this.currentNode.attribs[b]=new C(this,b,O));return this},S.prototype.text=function(b){var O;return this.openCurrent(),O=new h(this,b),this.onData(this.writer.text(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.cdata=function(b){var O;return this.openCurrent(),O=new A(this,b),this.onData(this.writer.cdata(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.comment=function(b){var O;return this.openCurrent(),O=new w(this,b),this.onData(this.writer.comment(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.raw=function(b){var O;return this.openCurrent(),O=new a(this,b),this.onData(this.writer.raw(O,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.instruction=function(b,O){var I,L,N,D,R;if(this.openCurrent(),b!=null&&(b=p(b)),O!=null&&(O=p(O)),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(O)&&(O=O.apply()),R=new t(this,b,O),this.onData(this.writer.processingInstruction(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},S.prototype.declaration=function(b,O,I){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,b,O,I),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.doctype=function(b,O,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,O,I),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},S.prototype.dtdElement=function(b,O){var I;return this.openCurrent(),I=new f(this,b,O),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.attList=function(b,O,I,L,N){var D;return this.openCurrent(),D=new m(this,b,O,I,L,N),this.onData(this.writer.dtdAttList(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.entity=function(b,O){var I;return this.openCurrent(),I=new c(this,!1,b,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.pEntity=function(b,O){var I;return this.openCurrent(),I=new c(this,!0,b,O),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},S.prototype.notation=function(b,O){var I;return this.openCurrent(),I=new o(this,b,O),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 O,I,L,N;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===_.Element&&(this.root=b),I="",b.type===_.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;O=N[L],I+=this.writer.attribute(O,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 O;if(!b.isClosed)return O="",this.writerOptions.state=E.CloseTag,b.type===_.Element?O=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel):O=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(O,this.currentLevel),b.isClosed=!0},S.prototype.onData=function(b,O){return this.documentStarted=!0,this.onDataCallback(b,O+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,O,I){return this.node(b,O,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,O){return this.instruction(b,O)},S.prototype.dec=function(b,O,I){return this.declaration(b,O,I)},S.prototype.dtd=function(b,O,I){return this.doctype(b,O,I)},S.prototype.e=function(b,O,I){return this.element(b,O,I)},S.prototype.n=function(b,O,I){return this.node(b,O,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,O){return this.instruction(b,O)},S.prototype.att=function(){return this.currentNode&&this.currentNode.type===_.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},S.prototype.a=function(){return this.currentNode&&this.currentNode.type===_.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},S.prototype.ent=function(b,O){return this.entity(b,O)},S.prototype.pent=function(b,O){return this.pEntity(b,O)},S.prototype.not=function(b,O){return this.notation(b,O)},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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _=H("babel-runtime/core-js/object/create"),E=C(_);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,w,m,f,c,o,r,i,n,e=function(a,s){for(var u in s)l.call(s,u)&&(a[u]=s[u]);function h(){this.constructor=a}return h.prototype=s.prototype,a.prototype=new h,a.__super__=s.prototype,a},l={}.hasOwnProperty;n=H("./Utility"),i=n.isObject,r=n.isFunction,o=n.getValue,c=H("./XMLNode"),A=H("./NodeType"),w=H("./XMLAttribute"),f=H("./XMLNamedNodeMap"),B.exports=m=function(t){e(a,t);function a(s,u,h){var p,g,v,y;if(a.__super__.constructor.call(this,s),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,h!=null&&this.attribute(h),s.type===A.Document&&(this.isRoot=!0,this.documentObject=s,s.rootObject=this,s.children)){for(y=s.children,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 s,u,h,p;h=(0,E.default)(this),h.isRoot&&(h.documentObject=null),h.attribs={},p=this.attribs;for(u in p){if(!l.call(p,u))continue;s=p[u],h.attribs[u]=s.clone()}return h.children=[],this.children.forEach(function(g){var v;return v=g.clone(),v.parent=h,h.children.push(v)}),h},a.prototype.attribute=function(s,u){var h,p;if(s!=null&&(s=o(s)),i(s))for(h in s){if(!l.call(s,h))continue;p=s[h],this.attribute(h,p)}else r(u)&&(u=u.apply()),this.options.keepNullAttributes&&u==null?this.attribs[s]=new w(this,s,""):u!=null&&(this.attribs[s]=new w(this,s,u));return this},a.prototype.removeAttribute=function(s){var u,h,p;if(s==null)throw new Error("Missing attribute name. "+this.debugInfo());if(s=o(s),Array.isArray(s))for(h=0,p=s.length;h<p;h++)u=s[h],delete this.attribs[u];else delete this.attribs[s];return this},a.prototype.toString=function(s){return this.options.writer.element(this,this.options.writer.filterOptions(s))},a.prototype.att=function(s,u){return this.attribute(s,u)},a.prototype.a=function(s,u){return this.attribute(s,u)},a.prototype.getAttribute=function(s){return this.attribs.hasOwnProperty(s)?this.attribs[s].value:null},a.prototype.setAttribute=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(s){return this.attribs.hasOwnProperty(s)?this.attribs[s]:null},a.prototype.setAttributeNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(s,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(s){return this.attribs.hasOwnProperty(s)},a.prototype.hasAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(s,u){return this.attribs.hasOwnProperty(s)?this.attribs[s].isId:u},a.prototype.setIdAttributeNS=function(s,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(s){var u,h,p;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(s))return!1;if(s.namespaceURI!==this.namespaceURI)return!1;if(s.prefix!==this.prefix)return!1;if(s.localName!==this.localName)return!1;if(s.attribs.length!==this.attribs.length)return!1;for(u=h=0,p=this.attribs.length-1;0<=p?h<=p:h>=p;u=0<=p?++h:--h)if(!this.attribs[u].isEqualNode(s.attribs[u]))return!1;return!0},a}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(H,B,d){"use strict";var _=H("babel-runtime/core-js/object/keys"),E=C(_);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 _,E,C,A,w,m,f,c,o,r,i,n,e,l,t,a,s,u,h,p={}.hasOwnProperty;h=H("./Utility"),u=h.isObject,s=h.isFunction,a=h.isEmpty,t=h.getValue,c=null,C=null,A=null,w=null,m=null,e=null,l=null,n=null,f=null,E=null,i=null,o=null,_=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"),l=H("./XMLText"),n=H("./XMLProcessingInstruction"),f=H("./XMLDummy"),E=H("./NodeType"),i=H("./XMLNodeList"),o=H("./XMLNamedNodeMap"),_=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,O,I,L,N,D,R,k,M;if(L=null,y===null&&x==null&&(R=[{},null],y=R[0],x=R[1]),y==null&&(y={}),y=t(y),u(y)||(k=[y,x],x=k[0],y=k[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(s(v))L=this.element(v.apply());else if(u(v))for(I in v){if(!p.call(v,I))continue;if(M=v[I],s(M)&&(M=M.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(I.substr(this.stringify.convertAttKey.length),M);else if(!this.options.separateArrayItems&&Array.isArray(M)&&a(M))L=this.dummy();else if(u(M)&&a(M))L=this.element(I);else if(!this.options.keepNullNodes&&M==null)L=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(M))for(O=0,D=M.length;O<D;O++)S=M[O],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,O,I;if(v!=null?v.type:void 0)return b=v,O=y,b.setParent(this),O?(S=children.indexOf(O),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 l(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,O;if(v!=null&&(v=t(v)),y!=null&&(y=t(y)),Array.isArray(v))for(b=0,O=v.length;b<O;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 s(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,O,I,L,N,D,R;for(T=this.document(),S=new m(T,v,y),D=T.children,b=O=0,L=D.length;O<L;b=++O)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=_.Disconnected|_.ImplementationSpecific,Math.random()<.5?x|=_.Preceding:x|=_.Following,x):y.isAncestor(v)?_.Contains|_.Preceding:y.isDescendant(v)?_.Contains|_.Following:y.isPreceding(v)?_.Preceding:_.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,O;for(v||(v=this.document()),b=v.children,T=0,S=b.length;T<S;T++){if(x=b[T],O=y(x))return O;if(O=this.foreachTreeNode(x,y),O)return O}},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 _;B.exports=_=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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _=H("babel-runtime/core-js/object/create"),E=C(_);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 _,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;_=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,l,t,a,s,u,h;for(s=o.children,n=e=0,t=s.length;e<t;n=++e)i=s[n],i.isLastRootNode=n===o.children.length-1;for(r=this.filterOptions(r),u=o.children,h=[],l=0,a=u.length;l<a;l++)i=u[l],h.push(this.writeChildNode(i,r,0));return h},c.prototype.attribute=function(o,r,i){return this.stream.write(c.__super__.attribute.call(this,o,r,i))},c.prototype.cdata=function(o,r,i){return this.stream.write(c.__super__.cdata.call(this,o,r,i))},c.prototype.comment=function(o,r,i){return this.stream.write(c.__super__.comment.call(this,o,r,i))},c.prototype.declaration=function(o,r,i){return this.stream.write(c.__super__.declaration.call(this,o,r,i))},c.prototype.docType=function(o,r,i){var n,e,l,t;if(i||(i=0),this.openNode(o,r,i),r.state=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,l=t.length;e<l;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,l,t,a,s,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(l=o.children.length,t=l===0?null:o.children[0],l===0||o.children.every(function(v){return(v.type===_.Text||v.type===_.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&&l===1&&(t.type===_.Text||t.type===_.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,s=g.length;a<s;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 _,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=_=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 _,E=function(w,m){return function(){return w.apply(m,arguments)}},C={}.hasOwnProperty;B.exports=_=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 _=H("babel-runtime/core-js/object/create"),E=C(_);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,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,n=this.nextSibling;n;)l=l+n.data,n=n.nextSibling;return l}}),r.prototype.clone=function(){return(0,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 _,E,C,A,w,m,f,c,o,r,i,n,e,l,t,a,s,u={}.hasOwnProperty;s=H("./Utility").assign,_=H("./NodeType"),o=H("./XMLDeclaration"),r=H("./XMLDocType"),C=H("./XMLCData"),A=H("./XMLComment"),n=H("./XMLElement"),l=H("./XMLRaw"),t=H("./XMLText"),e=H("./XMLProcessingInstruction"),i=H("./XMLDummy"),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,O;return p||(p={}),p=s({},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=(O=p.spaceBeforeSlash)!=null?O: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,O,I,L,N,D,R,k,M,j;v||(v=0),D=!1,R="",this.openNode(p,g,v),g.state=E.OpenTag,R+=this.indent(p,g,v)+"<"+p.name,k=p.attribs;for(N in k){if(!u.call(k,N))continue;y=k[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===_.Text||F.type===_.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===_.Text||S.type===_.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===_.Text||x.type===_.Raw)&&x.value!=null){g.suppressPrettyCount++,D=!0;break}}for(R+=">"+this.endline(p,g,v),g.state=E.InsideTag,j=p.children,O=0,L=j.length;O<L;O++)x=j[O],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 _.CData:return this.cdata(p,g,v);case _.Comment:return this.comment(p,g,v);case _.Element:return this.element(p,g,v);case _.Raw:return this.raw(p,g,v);case _.Text:return this.text(p,g,v);case _.ProcessingInstruction:return this.processingInstruction(p,g,v);case _.Dummy:return"";case _.Declaration:return this.declaration(p,g,v);case _.DocType:return this.docType(p,g,v);case _.AttributeDeclaration:return this.dtdAttList(p,g,v);case _.ElementDeclaration:return this.dtdElement(p,g,v);case _.EntityDeclaration:return this.dtdEntity(p,g,v);case _.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 _,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"),_=H("./NodeType"),E=H("./WriterState"),B.exports.create=function(i,n,e,l){var t,a;if(i==null)throw new Error("Root element needs a name.");return l=c({},n,e,l),t=new A(l),a=t.element(i),l.headless||(t.declaration(l),(l.pubID!=null||l.sysID!=null)&&t.dtd(l)),a},B.exports.begin=function(i,n,e){var l;return o(i)&&(l=[i,n],n=l[0],e=l[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=_,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 _=Object.prototype.hasOwnProperty;function E(){for(var C={},A=0;A<arguments.length;A++){var w=arguments[A];for(var m in w)_.call(w,m)&&(C[m]=w[m])}return C}},{}],284:[function(H,B,d){"use strict";var _=H("buffer").Buffer,E=H("./sha"),C=H("./md5"),A={sha1:E,md5:C},w=64,m=_.alloc(w);m.fill(0);function f(r,i,n){_.isBuffer(i)||(i=_.from(i)),_.isBuffer(n)||(n=_.from(n)),i.length>w?i=r(i):i.length<w&&(i=_.concat([i,m],w));for(var e=_.alloc(w),l=_.alloc(w),t=0;t<w;t++)e[t]=i[t]^54,l[t]=i[t]^92;var a=r(_.concat([e,n]));return r(_.concat([l,a]))}function c(r,i){r=r||"sha1";var n=A[r],e=[],l=0;return n||o("algorithm:",r,"is not yet supported"),{update:function(a){return _.isBuffer(a)||(a=_.from(a)),e.push(a),l+=a.length,this},digest:function(a){var s=_.concat(e),u=i?f(n,i,s):n(s);return e=null,a?u.toString(a):u}}}function o(){var r=[].slice.call(arguments).join(" ");throw new Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}d.createHash=function(r){return c(r)},d.createHmac=function(r,i){return c(r,i)},d.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},d.createCipher=function(){o("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){o("sorry,createSign is not implemented yet")},d.createVerify=function(){o("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(H,B,d){"use strict";var _=H("buffer").Buffer,E=4,C=_.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=_.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=_.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){_.isBuffer(c)||(c=_.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 _=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,l=-271733879,t=-1732584194,a=271733878,s=0;s<i.length;s+=16){var u=e,h=l,p=t,g=a;e=w(e,l,t,a,i[s+0],7,-680876936),a=w(a,e,l,t,i[s+1],12,-389564586),t=w(t,a,e,l,i[s+2],17,606105819),l=w(l,t,a,e,i[s+3],22,-1044525330),e=w(e,l,t,a,i[s+4],7,-176418897),a=w(a,e,l,t,i[s+5],12,1200080426),t=w(t,a,e,l,i[s+6],17,-1473231341),l=w(l,t,a,e,i[s+7],22,-45705983),e=w(e,l,t,a,i[s+8],7,1770035416),a=w(a,e,l,t,i[s+9],12,-1958414417),t=w(t,a,e,l,i[s+10],17,-42063),l=w(l,t,a,e,i[s+11],22,-1990404162),e=w(e,l,t,a,i[s+12],7,1804603682),a=w(a,e,l,t,i[s+13],12,-40341101),t=w(t,a,e,l,i[s+14],17,-1502002290),l=w(l,t,a,e,i[s+15],22,1236535329),e=m(e,l,t,a,i[s+1],5,-165796510),a=m(a,e,l,t,i[s+6],9,-1069501632),t=m(t,a,e,l,i[s+11],14,643717713),l=m(l,t,a,e,i[s+0],20,-373897302),e=m(e,l,t,a,i[s+5],5,-701558691),a=m(a,e,l,t,i[s+10],9,38016083),t=m(t,a,e,l,i[s+15],14,-660478335),l=m(l,t,a,e,i[s+4],20,-405537848),e=m(e,l,t,a,i[s+9],5,568446438),a=m(a,e,l,t,i[s+14],9,-1019803690),t=m(t,a,e,l,i[s+3],14,-187363961),l=m(l,t,a,e,i[s+8],20,1163531501),e=m(e,l,t,a,i[s+13],5,-1444681467),a=m(a,e,l,t,i[s+2],9,-51403784),t=m(t,a,e,l,i[s+7],14,1735328473),l=m(l,t,a,e,i[s+12],20,-1926607734),e=f(e,l,t,a,i[s+5],4,-378558),a=f(a,e,l,t,i[s+8],11,-2022574463),t=f(t,a,e,l,i[s+11],16,1839030562),l=f(l,t,a,e,i[s+14],23,-35309556),e=f(e,l,t,a,i[s+1],4,-1530992060),a=f(a,e,l,t,i[s+4],11,1272893353),t=f(t,a,e,l,i[s+7],16,-155497632),l=f(l,t,a,e,i[s+10],23,-1094730640),e=f(e,l,t,a,i[s+13],4,681279174),a=f(a,e,l,t,i[s+0],11,-358537222),t=f(t,a,e,l,i[s+3],16,-722521979),l=f(l,t,a,e,i[s+6],23,76029189),e=f(e,l,t,a,i[s+9],4,-640364487),a=f(a,e,l,t,i[s+12],11,-421815835),t=f(t,a,e,l,i[s+15],16,530742520),l=f(l,t,a,e,i[s+2],23,-995338651),e=c(e,l,t,a,i[s+0],6,-198630844),a=c(a,e,l,t,i[s+7],10,1126891415),t=c(t,a,e,l,i[s+14],15,-1416354905),l=c(l,t,a,e,i[s+5],21,-57434055),e=c(e,l,t,a,i[s+12],6,1700485571),a=c(a,e,l,t,i[s+3],10,-1894986606),t=c(t,a,e,l,i[s+10],15,-1051523),l=c(l,t,a,e,i[s+1],21,-2054922799),e=c(e,l,t,a,i[s+8],6,1873313359),a=c(a,e,l,t,i[s+15],10,-30611744),t=c(t,a,e,l,i[s+6],15,-1560198380),l=c(l,t,a,e,i[s+13],21,1309151649),e=c(e,l,t,a,i[s+4],6,-145523070),a=c(a,e,l,t,i[s+11],10,-1120210379),t=c(t,a,e,l,i[s+2],15,718787259),l=c(l,t,a,e,i[s+9],21,-343485551),e=o(e,u),l=o(l,h),t=o(t,p),a=o(a,g)}return Array(e,l,t,a)}function A(i,n,e,l,t,a){return o(r(o(o(n,i),o(l,a)),t),e)}function w(i,n,e,l,t,a,s){return A(n&e|~n&l,i,n,t,a,s)}function m(i,n,e,l,t,a,s){return A(n&l|e&~l,i,n,t,a,s)}function f(i,n,e,l,t,a,s){return A(n^e^l,i,n,t,a,s)}function c(i,n,e,l,t,a,s){return A(e^(n|~l),i,n,t,a,s)}function o(i,n){var e=(i&65535)+(n&65535),l=(i>>16)+(n>>16)+(e>>16);return l<<16|e&65535}function r(i,n){return i<<n|i>>>32-n}B.exports=function(n){return _.hash(n,C,16)}},{"./helpers":285}],287:[function(H,B,d){"use strict";var _=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,l=-1009589776,t=0;t<f.length;t+=16){for(var a=r,s=i,u=n,h=e,p=l,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(l,o[g]),A(g)));l=e,e=n,n=m(i,30),i=r,r=v}r=w(r,a),i=w(i,s),n=w(n,u),e=w(e,h),l=w(l,p)}return Array(r,i,n,e,l)}function C(f,c,o,r){return f<20?c&o|~c&r:f<40?c^o^r:f<60?c&o|c&r|o&r:c^o^r}function A(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function 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 _.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(_){"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=_.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(_){try{return encodeURIComponent(_)}catch(E){return _}},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(_,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"),l,t=0,a=Math.pow(2,31)-10,s=/^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):(l||(l=H("any-promise")),new l(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 O=Date.now(),I;typeof v=="string"?(s.test(v)||(v="http://"+v),I=o.parse(v)):I=v;var L=(y.type||y.method||I.method||"GET").toUpperCase(),N=I.port||80,D=r,R=u(y.agent,d.agent),k=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 j=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<j.length;F++){var U=j[F];y.hasOwnProperty(U)&&(M[U]=y[U])}M.rejectUnauthorized===!1&&!M.hasOwnProperty("secureOptions")&&(M.secureOptions=H("constants").SSL_OP_NO_TLSv1_2);var K=y.auth||I.auth;K&&(M.auth=K);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 Q=M.headers["Content-Type"]||M.headers["content-type"];Q||(y.contentType==="json"?Q="application/json":Q="application/x-www-form-urlencoded",M.headers["Content-Type"]=Q),parseContentType(Q).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 Z=0;if(V){var le=V.length;E.isBuffer(V)||(le=E.byteLength(V)),Z=M.headers["Content-Length"]=le}y.dataType==="json"&&(M.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(M);var ne=null,ve=null,xe=null,_e=!1,Be=!1,me=0,Fe=-1,ie=!1,te="",Ge="",oe=null;y.timing&&(oe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Y(){ne&&(clearTimeout(ne),ne=null)}function G(){ve&&(clearTimeout(ve),ve=null)}function X(Re,Lt,$e){if(G(),!x){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),S,_.pid,M.method,v),Re&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),S,_.pid,Re.name,Re.message,Re.stack);return}var Et=x;x=null;var Ut={};if($e&&(Fe=$e.statusCode,Ut=$e.headers),Fe===401&&Ut["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var Bt=Ut["www-authenticate"];if(Bt.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",S,v,Bt),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(M.method,M.path,Bt,y.digestAuth),n("Request#%d %s: auth with digest header: %s",S,v,y.headers.Authorization),$e.headers["set-cookie"]&&(y.headers.Cookie=$e.headers["set-cookie"].join(";")),d.requestWithCallback(v,y,Et)}var _t=Date.now()-O;oe&&(oe.contentDownload=_t),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",_t,me,Fe,M.method,M.host,M.path,Be,oe);var jt={status:Fe,statusCode:Fe,headers:Ut,size:me,aborted:ie,rt:_t,keepAliveSocket:Be,data:Lt,requestUrls:y.requestUrls,timing:oe,remoteAddress:te,remotePort:Ge};if(Re){var He="";R&&typeof R.getCurrentStatus=="function"&&(He=", agent status: "+(0,A.default)(R.getCurrentStatus())),Re.message+=", "+M.method+" "+v+" "+Fe+" (connected: "+_e+", keepalive socket: "+Be+He+`)
|
|
|
headers: `+(0,A.default)(Ut),Re.data=Lt,Re.path=M.path,Re.status=Fe,Re.headers=Ut,Re.res=jt}Et(Re,Lt,y.streaming?$e:jt),y.emitter&&(b.url=v,b.socket=At&&At.connection,b.options=M,b.size=Z,y.emitter.emit("response",{requestId:S,error:Re,ctx:y.ctx,req:b,res:jt}))}function fe(Re){var Lt=null;if(y.followRedirect&&statuses.redirect[Re.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var $e=Re.headers.location;if(!$e)Lt=new Error("Got statusCode "+Re.statusCode+" but cannot resolve next location from headers"),Lt.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)Lt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+v),Lt.name="MaxRedirectError";else{var Et=y.formatRedirectUrl?y.formatRedirectUrl(v,$e):o.resolve(v,$e);n("Request#%d %s: `redirected` from %s to %s",S,M.path,v,Et),G(),y.headers&&y.headers.Host&&s.test($e)&&(y.headers.Host=null);var Ut=x;return x=null,d.requestWithCallback(Et,y,Ut),{redirect:!0,error:null}}}return{redirect:!1,error:Lt}}!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(Re,Lt,$e){var Et=Re.headers["content-encoding"];return $e(null,Lt,Et)}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 Me(Re){if(oe&&(oe.waiting=Date.now()-O),n("Request#%d %s `req response` event emit: status %d, headers: %j",S,v,Re.statusCode,Re.headers),y.streaming){var Lt=fe(Re);if(Lt.redirect){Re.resume();return}return Lt.error?(Re.resume(),X(Lt.error,null,Re)):X(null,null,Re)}if(Re.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",S,v,me)}),Re.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",S,v,me)}),Re.on("aborted",function(){ie=!0,n("Request#%d %s: `res aborted` event emit, total size %d",S,v,me)}),Ce){var Lt=fe(Re);if(Lt.redirect){Re.resume();return}return Lt.error?(Re.resume(),Ce.end(),X(Lt.error,null,Re)):(y.consumeWriteStream===!1?Re.on("end",X.bind(null,null,null,Re)):isNode010||isNode012?first([[Ce,"close"],[Re,"aborted"]],function(Ut,Bt,_t){n("Request#%d %s: writeStream or res %s event emitted",S,v,_t),X(xe||null,null,Re)}):Ce.on("close",function(){n("Request#%d %s: writeStream close event emitted",S,v),X(xe||null,null,Re)}),Re.pipe(Ce))}var $e=[];Re.on("data",function(Et){n("Request#%d %s: `res data` event emit, size %d",S,v,Et.length),me+=Et.length,$e.push(Et)}),Re.on("end",function(){var Et=E.concat($e,me);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",S,v,me,Re._dumped),xe)return X(xe,Et,Re);var Ut=fe(Re);if(Ut.error)return X(Ut.error,Et,Re);if(Ut.redirect)return;de(Re,Et,function(Bt,_t,jt){if(Bt)return X(Bt,Et,Re);if(!jt&&p.indexOf(y.dataType)>=0){try{_t=decodeBodyByCharset(_t,Re)}catch(se){return n("decodeBodyByCharset error: %s",se),X(null,_t,Re)}if(y.dataType==="json")if(me===0)_t=null;else{var He=parseJSON(_t,k);He.error?Bt=He.error:_t=He.data}}ie&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",S,v),X(Bt,_t,Re)})})}var ue,Ae;Array.isArray(y.timeout)?(ue=e(y.timeout[0]),Ae=e(y.timeout[1])):ue=Ae=e(y.timeout),n("ConnectTimeout: %d, ResponseTimeout: %d",ue,Ae);function Te(){n("Connect timer ticking, timeout: %d",ue),ne=setTimeout(function(){ne=null,Fe===-1&&(Fe=-2);var Re="Connect timeout for "+ue+"ms",Lt="ConnectionTimeoutError";At.socket||(Lt="SocketAssignTimeoutError",Re+=", working sockets is full"),xe=new Error(Re),xe.name=Lt,xe.requestId=S,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",S,v,xe.name,Re,_e),qe()},ue)}function Je(){n("Response timer ticking, timeout: %d",Ae),ve=setTimeout(function(){ve=null;var Re="Response timeout for "+Ae+"ms",Lt="ResponseTimeoutError";xe=new Error(Re),xe.name=Lt,xe.requestId=S,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",S,v,xe.name,Re,_e),qe()},Ae)}var At;M.mode=y.mode?y.mode:"";try{At=D.request(M,Me)}catch(Re){return X(Re)}typeof window=="undefined"?Te():At.on("requestTimeout",function(){Fe===-1&&(Fe=-2);var Re="Connect timeout for "+ue+"ms",Lt="ConnectionTimeoutError";xe=new Error(Re),xe.name=Lt,xe.requestId=S,qe()});function qe(){n("Request#%d %s abort, connected: %s",S,v,_e),At.socket||(xe.noSocket=!0,X(xe)),At.abort()}return oe&&At.on("finish",function(){oe.requestSent=Date.now()-O}),At.once("socket",function(Re){oe&&(oe.queuing=Date.now()-O),isNode010&&Re.socket&&(Re=Re.socket);var Lt=Re.readyState;if(Lt==="opening"){Re.once("lookup",function($e,Et,Ut){n("Request#%d %s lookup: %s, %s, %s",S,v,$e,Et,Ut),oe&&(oe.dnslookup=Date.now()-O),Et&&(te=Et)}),Re.once("connect",function(){oe&&(oe.connected=Date.now()-O),Y(),Je(),n("Request#%d %s new socket connected",S,v),_e=!0,te||(te=Re.remoteAddress),Ge=Re.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",S,v,Lt),_e=!0,Be=!0,te||(te=Re.remoteAddress),Ge=Re.remotePort,Y(),Je()}),At.on("error",function(Re){(Re.name==="Error"||Re.name==="TypeError")&&(Re.name=_e?"ResponseError":"RequestError"),Re.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",S,v,Re.name,Re.message),X(xe||Re)}),Ce&&Ce.once("error",function(Re){Re.message+=' (writeStream "error")',xe=Re,n("Request#%d %s `writeStream error` event emit, %s: %s",S,v,Re.name,Re.message),qe()}),y.stream?(y.stream.pipe(At),y.stream.once("error",function(Re){Re.message+=' (stream "error")',xe=Re,n("Request#%d %s `readStream error` event emit, %s: %s",S,v,Re.name,Re.message),qe()})):At.end(V),At.requestId=S,At}}).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 _=d("hX1E"),E=_.normalizeRadian,C=Math.PI*2;function A(w,m,f,c,o,r,i,n,e){if(i===0)return!1;var l=i;n-=w,e-=m;var t=Math.sqrt(n*n+e*e);if(t-l>f||t+l<f)return!1;if(Math.abs(c-o)%C<1e-4)return!0;if(r){var a=c;c=E(o),o=E(a)}else c=E(c),o=E(o);c>o&&(o+=C);var s=Math.atan2(e,n);return s<0&&(s+=C),s>=c&&s<=o||s+C>=c&&s+C<=o}B.containStroke=A},n4Lv:function(H,B,d){var _=d("7hqr"),E=_.isDimensionStacked,C=d("bYtY"),A=C.map;function w(c,o,r){var i=c.getBaseAxis(),n=c.getOtherAxis(i),e=m(n,r),l=i.dim,t=n.dim,a=o.mapDimension(t),s=o.mapDimension(l),u=t==="x"||t==="radius"?1:0,h=A(c.dimensions,function(v){return o.mapDimension(v)}),p,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:l,stacked:!!p,valueDim:a,baseDim:s,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,l=[];return l[e]=r.get(c.baseDim,i),l[1-e]=n,o.dataToPoint(l)}B.prepareDataCoordInfo=w,B.getStackedOnPoint=f},n6Mw:function(H,B,d){var _=d("SrGk"),E=d("bYtY"),C=d("Fofx");function A(m,f){_.call(this,m,f,"clipPath","__clippath_in_use__")}E.inherits(A,_),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 l=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!c){var t=Array.prototype.slice.call(r.transform);C.mul(r.transform,r.parent.invTransform,r.transform),l.brush(r),r.transform=t}else l.brush(r);var a=this.getSvgElement(r);i.innerHTML="",i.appendChild(a.cloneNode()),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&&_.prototype.markUsed.call(f,c._dom),c._textDom&&_.prototype.markUsed.call(f,c._textDom)})};var w=A;H.exports=w},nCxF:function(H,B,d){var _=d("QBsz"),E=_.min,C=_.max,A=_.scale,w=_.distance,m=_.add,f=_.clone,c=_.sub;function o(r,i,n,e){var l=[],t=[],a=[],s=[],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){l.push(f(r[v]));continue}else u=r[v-1],h=r[v+1];c(t,h,u),A(t,t,i);var T=w(x,u),S=w(x,h),b=T+S;b!==0&&(T/=b,S/=b),A(a,t,-T),A(s,t,S);var O=m([],x,a),I=m([],x,s);e&&(C(O,O,p),E(O,O,g),C(I,I,p),E(I,I,g)),l.push(O),l.push(I)}return n&&l.push(l.shift()),l}H.exports=o},nKiI:function(H,B,d){var _=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=_.retrieve,i=_.each,n=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],t=["upperLabel","height"],a={seriesType:"treemap",reset:function(O,I,L,N){var D=L.getWidth(),R=L.getHeight(),k=O.option,M=m.getLayoutRect(O.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),j=k.size||[],F=A(r(M.width,j[0]),D),U=A(r(M.height,j[1]),R),K=N&&N.type,V=["treemapZoomToNode","treemapRootToNode"],z=f.retrieveTargetInfo(N,V,O),Q=K==="treemapRender"||K==="treemapMove"?N.rootRect:null,Z=O.getViewRoot(),le=f.getPathToRoot(Z);if(K!=="treemapMove"){var ne=K==="treemapZoomToNode"?x(O,z,Z,F,U):Q?[Q.width,Q.height]:[F,U],ve=k.sort;ve&&ve!=="asc"&&ve!=="desc"&&(ve="desc");var xe={squareRatio:k.squareRatio,sort:ve,leafDepth:k.leafDepth};Z.hostTree.clearLayouts();var _e={x:0,y:0,width:ne[0],height:ne[1],area:ne[0]*ne[1]};Z.setLayout(_e),s(Z,xe,!1,0);var _e=Z.getLayout();i(le,function(me,Fe){var ie=(le[Fe+1]||Z).getValue();me.setLayout(_.extend({dataExtent:[ie,ie],borderWidth:0,upperHeight:0},_e))})}var Be=O.getData().tree.root;Be.setLayout(T(M,Q,z),!0),O.setLayoutInfo(M),S(Be,new E(-M.x,-M.y,D,R),le,Z,0)}};function s(O,I,L,N){var D,R;if(O.isRemoved())return;var k=O.getLayout();D=k.width,R=k.height;var M=O.getModel(),j=M.get(n),F=M.get(e)/2,U=b(M),K=Math.max(j,U),V=j-F,z=K-F,M=O.getModel();O.setLayout({borderWidth:j,upperHeight:K,upperLabelHeight:U},!0),D=c(D-2*V,0),R=c(R-V-z,0);var Q=D*R,Z=u(O,M,Q,I,L,N);if(!Z.length)return;var le={x:V,y:z,width:D,height:R},ne=o(D,R),ve=Infinity,xe=[];xe.area=0;for(var _e=0,Be=Z.length;_e<Be;){var me=Z[_e];xe.push(me),xe.area+=me.getLayout().area;var Fe=v(xe,ne,I.squareRatio);Fe<=ve?(_e++,ve=Fe):(xe.area-=xe.pop().getLayout().area,y(xe,ne,le,F,!1),ne=o(le.width,le.height),xe.length=xe.area=0,ve=Infinity)}if(xe.length&&y(xe,ne,le,F,!0),!L){var ie=M.get("childrenVisibleMin");ie!=null&&Q<ie&&(L=!0)}for(var _e=0,Be=Z.length;_e<Be;_e++)s(Z[_e],I,L,N+1)}function u(O,I,L,N,D,R){var k=O.children||[],M=N.sort;M!=="asc"&&M!=="desc"&&(M=null);var j=N.leafDepth!=null&&N.leafDepth<=R;if(D&&!j)return O.viewChildren=[];k=_.filter(k,function(z){return!z.isRemoved()}),p(k,M);var F=g(I,k,M);if(F.sum===0)return O.viewChildren=[];if(F.sum=h(I,L,F.sum,M,k),F.sum===0)return O.viewChildren=[];for(var U=0,K=k.length;U<K;U++){var V=k[U].getValue()/F.sum*L;k[U].setLayout({area:V})}return j&&(k.length&&O.setLayout({isLeafRoot:!0},!0),k.length=0),O.viewChildren=k,O.setLayout({dataExtent:F.dataExtent},!0),k}function h(O,I,L,N,D){if(!N)return L;for(var R=O.get("visibleMin"),k=D.length,M=k,j=k-1;j>=0;j--){var F=D[N==="asc"?k-j-1:j].getValue();F/L*I<R&&(M=j,L-=F)}return N==="asc"?D.splice(0,k-M):D.splice(M,k-M),L}function p(O,I){return I&&O.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}),O}function g(O,I,L){for(var N=0,D=0,R=I.length;D<R;D++)N+=I[D].getValue();var k=O.get("visualDimension"),M;if(!I||!I.length)M=[NaN,NaN];else if(k==="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 U=F.getValue(k);U<M[0]&&(M[0]=U),U>M[1]&&(M[1]=U)})}return{sum:N,dataExtent:M}}function v(O,I,L){for(var N=0,D=Infinity,R=0,k,M=O.length;R<M;R++)k=O[R].getLayout().area,k&&(k<D&&(D=k),k>N&&(N=k));var j=O.area*O.area,F=I*I*L;return j?c(F*N/j,j/(F*D)):Infinity}function y(O,I,L,N,D){var R=I===L.width?0:1,k=1-R,M=["x","y"],j=["width","height"],F=L[M[R]],U=I?O.area/I:0;(D||U>L[j[k]])&&(U=L[j[k]]);for(var K=0,V=O.length;K<V;K++){var z=O[K],Q={},Z=U?z.getLayout().area/U:0,le=Q[j[k]]=c(U-2*N,0),ne=L[M[R]]+L[j[R]]-F,ve=K===V-1||ne<Z?ne:Z,xe=Q[j[R]]=c(ve-2*N,0);Q[M[k]]=L[M[k]]+o(N,le/2),Q[M[R]]=F+o(N,xe/2),F+=ve,z.setLayout(Q,!0)}L[M[k]]+=U,L[j[k]]-=U}function x(O,I,L,N,D){var R=(I||{}).node,k=[N,D];if(!R||R===L)return k;for(var M,j=N*D,F=j*O.option.zoomToNodeRatio;M=R.parentNode;){for(var U=0,K=M.children,V=0,z=K.length;V<z;V++)U+=K[V].getValue();var Q=R.getValue();if(Q===0)return k;F*=U/Q;var Z=M.getModel(),le=Z.get(n),ne=Math.max(le,b(Z,le));F+=4*le*le+(3*le+ne)*Math.pow(F,.5),F>w&&(F=w),R=M}F<j&&(F=j);var ve=Math.pow(F/j,.5);return[N*ve,D*ve]}function T(O,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 k=[R.width/2,R.height/2],M=D;M;){var j=M.getLayout();k[0]+=j.x,k[1]+=j.y,M=M.parentNode}return{x:O.width/2-k[0],y:O.height/2-k[1]}}function S(O,I,L,N,D){var R=O.getLayout(),k=L[D],M=k&&k===O;if(k&&!M||D===L.length&&O!==N)return;O.setLayout({isInView:!0,invisible:!M&&!I.intersect(R),isAboveViewRoot:M},!0);var j=new E(I.x-R.x,I.y-R.y,I.width,I.height);i(O.viewChildren||[],function(F){S(F,j,L,N,D+1)})}function b(O){return O.get(l)?O.get(t):0}H.exports=a},nPnh:function(H,B){var d=Math.round;function _(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=_,B.subPixelOptimizeRect=E,B.subPixelOptimize=C},nRaC:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("0fbx"),A=d.n(C),w=d("OaEy"),m=d("R9oj")},nVfU:function(H,B,d){var _=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(),O=0;O<y.count||0;O++)x.push(_.defaults({bandWidth:b,axisKey:S,stackId:f+O},y));for(var I=a(x),L=[],O=0;O<y.count;O++){var N=I[S][f+O];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 l(y){var x={};_.each(y,function(N){var D=N.coordinateSystem,R=D.getBaseAxis();if(R.type!=="time"&&R.type!=="value")return;for(var k=N.getData(),M=R.dim+"_"+R.index,j=k.mapDimension(R.dim),F=0,U=k.count();F<U;++F){var K=k.get(j,F);x[M]?x[M].push(K):x[M]=[K]}});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 O=null,I=1;I<b.length;++I){var L=b[I]-b[I-1];L>0&&(O=O===null?L:Math.min(O,L))}T[S]=O}}return T}function t(y){var x=l(y),T=[];return _.each(y,function(S){var b=S.coordinateSystem,O=b.getBaseAxis(),I=O.getExtent(),L;if(O.type==="category")L=O.getBandWidth();else if(O.type==="value"||O.type==="time"){var N=O.dim+"_"+O.index,D=x[N],R=Math.abs(I[1]-I[0]),k=O.scale.getExtent(),M=Math.abs(k[1]-k[0]);L=D?R/M*D:R}else{var j=S.getData();L=Math.abs(I[1]-I[0])/j.count()}var F=C(S.get("barWidth"),L),U=C(S.get("barMaxWidth"),L),K=C(S.get("barMinWidth")||1,L),V=S.get("barGap"),z=S.get("barCategoryGap");T.push({bandWidth:L,barWidth:F,barMaxWidth:U,barMinWidth:K,barGap:V,barCategoryGap:z,axisKey:i(O),stackId:r(S)})}),a(T)}function a(y){var x={};_.each(y,function(S,b){var O=S.axisKey,I=S.bandWidth,L=x[O]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},N=L.stacks;x[O]=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 k=S.barMaxWidth;k&&(N[D].maxWidth=k);var M=S.barMinWidth;M&&(N[D].minWidth=M);var j=S.barGap;j!=null&&(L.gap=j);var F=S.barCategoryGap;F!=null&&(L.categoryGap=F)});var T={};return _.each(x,function(S,b){T[b]={};var O=S.stacks,I=S.bandWidth,L=C(S.categoryGap,I),N=C(S.gap,1),D=S.remainedWidth,R=S.autoWidthCount,k=(D-L)/(R+(R-1)*N);k=Math.max(k,0),_.each(O,function(U){var K=U.maxWidth,V=U.minWidth;if(U.width){var z=U.width;K&&(z=Math.min(z,K)),V&&(z=Math.max(z,V)),U.width=z,D-=z+N*z,R--}else{var z=k;K&&K<z&&(z=Math.min(K,D)),V&&V>z&&(z=V),z!==k&&(U.width=z,D-=z+N*z,R--)}}),k=(D-L)/(R+(R-1)*N),k=Math.max(k,0);var M=0,j;_.each(O,function(U,K){U.width||(U.width=k),j=U,M+=U.width*(1+N)}),j&&(M-=j.width*N);var F=-M/2;_.each(O,function(U,K){T[b][K]=T[b][K]||{bandWidth:I,offset:F,width:U.width},F+=U.width*(1+N)})}),T}function s(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),k=S[i(D)][R],M=k.offset,j=k.width,F=N.getOtherAxis(D),U=I.get("barMinHeight")||0;b[R]=b[R]||[],O[R]=O[R]||[],L.setLayout({bandWidth:k.bandWidth,offset:M,size:j});for(var K=L.mapDimension(F.dim),V=L.mapDimension(D.dim),z=w(L,K),Q=F.isHorizontal(),Z=v(D,F,z),le=0,ne=L.count();le<ne;le++){var ve=L.get(K,le),xe=L.get(V,le),_e=ve>=0?"p":"n",Be=Z;z&&(b[R][xe]||(b[R][xe]={p:Z,n:Z}),Be=b[R][xe][_e]);var me,Fe,ie,te;if(Q){var Ge=N.dataToPoint([ve,xe]);me=Be,Fe=Ge[1]+M,ie=Ge[0]-Z,te=j,Math.abs(ie)<U&&(ie=(ie<0?-1:1)*U),isNaN(ie)||z&&(b[R][xe][_e]+=ie)}else{var Ge=N.dataToPoint([xe,ve]);me=Ge[0]+M,Fe=Be,ie=j,te=Ge[1]-Z,Math.abs(te)<U&&(te=(te<=0?-1:1)*U),isNaN(te)||z&&(b[R][xe][_e]+=te)}L.setItemLayout(le,{x:me,y:Fe,width:ie,height:te})}},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(),O=T.getOtherAxis(b),I=x.mapDimension(O.dim),L=x.mapDimension(b.dim),N=O.isHorizontal(),D=N?0:1,R=s(t([y]),b,y).width;return R>c||(R=c),{progress:k};function k(M,j){for(var F=M.count,U=new o(F*2),K=new o(F*2),V=new o(F),z,Q=[],Z=[],le=0,ne=0;(z=M.next())!=null;)Z[D]=j.get(I,z),Z[1-D]=j.get(L,z),Q=T.dataToPoint(Z,null,Q),K[le]=N?S.x+S.width:Q[0],U[le++]=Q[0],K[le]=N?Q[1]:S.y+S.height,U[le++]=Q[1],V[ne++]=z;j.setLayout({largePoints:U,largeDataIndices:V,largeBackgroundPoints:K,barWidth:R,valueAxisStart:v(b,O,!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=s,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 _=d("q1tI"),E=d.n(_),C=d("dI71"),A=d("wx14"),w=d("ANjH"),m=d("/MKj");function f(De,q){if(De.length!==q.length)return!1;for(var ye=0;ye<De.length;ye++)if(De[ye]!==q[ye])return!1;return!0}function c(De,q){var ye=Object(_.useState)(function(){return{inputs:q,result:De()}})[0],Ve=Object(_.useRef)(!0),it=Object(_.useRef)(ye),Rt=Ve.current||Boolean(q&&it.current.inputs&&f(q,it.current.inputs)),zt=Rt?it.current:{inputs:q,result:De()};return Object(_.useEffect)(function(){Ve.current=!1,it.current=zt},[zt]),zt.result}function o(De,q){return c(function(){return De},q)}var r=c,i=o,n=d("9R94"),e=function(q){var ye=q.top,Ve=q.right,it=q.bottom,Rt=q.left,zt=Ve-Rt,Xt=it-ye,Nr={top:ye,right:Ve,bottom:it,left:Rt,width:zt,height:Xt,x:Rt,y:ye,center:{x:(Ve+Rt)/2,y:(it+ye)/2}};return Nr},l=function(q,ye){return{top:q.top-ye.top,left:q.left-ye.left,bottom:q.bottom+ye.bottom,right:q.right+ye.right}},t=function(q,ye){return{top:q.top+ye.top,left:q.left+ye.left,bottom:q.bottom-ye.bottom,right:q.right-ye.right}},a=function(q,ye){return{top:q.top+ye.y,left:q.left+ye.x,bottom:q.bottom+ye.y,right:q.right+ye.x}},s={top:0,right:0,bottom:0,left:0},u=function(q){var ye=q.borderBox,Ve=q.margin,it=Ve===void 0?s:Ve,Rt=q.border,zt=Rt===void 0?s:Rt,Xt=q.padding,Nr=Xt===void 0?s:Xt,Qr=e(l(ye,it)),Cr=e(t(ye,zt)),Er=e(t(Cr,Nr));return{marginBox:Qr,borderBox:e(ye),paddingBox:Cr,contentBox:Er,margin:it,border:zt,padding:Nr}},h=function(q){var ye=q.slice(0,-2),Ve=q.slice(-2);if(Ve!=="px")return 0;var it=Number(ye);return isNaN(it)&&Object(n.a)(!1),it},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},g=function(q,ye){var Ve=q.borderBox,it=q.border,Rt=q.margin,zt=q.padding,Xt=a(Ve,ye);return u({borderBox:Xt,border:it,margin:Rt,padding:zt})},v=function(q,ye){return ye===void 0&&(ye=p()),g(q,ye)},y=function(q,ye){var Ve={top:h(ye.marginTop),right:h(ye.marginRight),bottom:h(ye.marginBottom),left:h(ye.marginLeft)},it={top:h(ye.paddingTop),right:h(ye.paddingRight),bottom:h(ye.paddingBottom),left:h(ye.paddingLeft)},Rt={top:h(ye.borderTopWidth),right:h(ye.borderRightWidth),bottom:h(ye.borderBottomWidth),left:h(ye.borderLeftWidth)};return u({borderBox:q,margin:Ve,padding:it,border:Rt})},x=function(q){var ye=q.getBoundingClientRect(),Ve=window.getComputedStyle(q);return y(ye,Ve)},T=Number.isNaN||function(q){return typeof q=="number"&&q!==q};function S(De,q){return De===q?!0:!!(T(De)&&T(q))}function b(De,q){if(De.length!==q.length)return!1;for(var ye=0;ye<De.length;ye++)if(!S(De[ye],q[ye]))return!1;return!0}function O(De,q){q===void 0&&(q=b);var ye,Ve=[],it,Rt=!1;function zt(){for(var Xt=[],Nr=0;Nr<arguments.length;Nr++)Xt[Nr]=arguments[Nr];return Rt&&ye===this&&q(Xt,Ve)||(it=De.apply(this,Xt),Rt=!0,ye=this,Ve=Xt),it}return zt}var I=O,L=function(q){var ye=[],Ve=null,it=function(){for(var zt=arguments.length,Xt=new Array(zt),Nr=0;Nr<zt;Nr++)Xt[Nr]=arguments[Nr];if(ye=Xt,Ve)return;Ve=requestAnimationFrame(function(){Ve=null,q.apply(void 0,ye)})};return it.cancel=function(){if(!Ve)return;cancelAnimationFrame(Ve),Ve=null},it},N=L,D=d("i8i4"),R=d.n(D),k=!0,M=/[ \t]{2,}/g,j=/^[ \t]*/gm,F=function(q){return q.replace(M," ").replace(j,"").trim()},U=function(q){return F(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+F(q)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},K=function(q){return[U(q),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},V="__react-beautiful-dnd-disable-dev-warnings";function z(De,q){var ye;if(k)return;if(typeof window!="undefined"&&window[V])return;(ye=console)[De].apply(ye,K(q))}var Q=z.bind(null,"warn"),Z=z.bind(null,"error");function le(){}function ne(De,q){return Object(A.a)({},De,{},q)}function ve(De,q,ye){var Ve=q.map(function(it){var Rt=ne(ye,it.options);return De.addEventListener(it.eventName,it.fn,Rt),function(){De.removeEventListener(it.eventName,it.fn,Rt)}});return function(){Ve.forEach(function(Rt){Rt()})}}var xe=!0,_e="Invariant failed";function Be(De){this.message=De}Be.prototype.toString=function(){return this.message};function me(De,q){if(De)return;throw xe?new Be(_e):new Be(_e+": "+(q||""))}var Fe=function(De){Object(C.a)(q,De);function q(){for(var Ve,it=arguments.length,Rt=new Array(it),zt=0;zt<it;zt++)Rt[zt]=arguments[zt];return Ve=De.call.apply(De,[this].concat(Rt))||this,Ve.callbacks=null,Ve.unbind=le,Ve.onWindowError=function(Xt){var Nr=Ve.getCallbacks();Nr.isDragging()&&Nr.tryAbort();var Qr=Xt.error;Qr instanceof Be&&Xt.preventDefault()},Ve.getCallbacks=function(){if(!Ve.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ve.callbacks},Ve.setCallbacks=function(Xt){Ve.callbacks=Xt},Ve}var ye=q.prototype;return ye.componentDidMount=function(){this.unbind=ve(window,[{eventName:"error",fn:this.onWindowError}])},ye.componentWillUnmount=function(){this.unbind()},ye.componentDidCatch=function(it){if(it instanceof Be){this.setState({});return}throw it},ye.render=function(){return this.props.children(this.setCallbacks)},q}(E.a.Component),ie=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,te=function(q){return q+1},Ge=function(q){return`
|
|
|
You have lifted an item in position `+te(q.source.index)+`
|
|
|
`},oe=function(q,ye){var Ve=q.droppableId===ye.droppableId,it=te(q.index),Rt=te(ye.index);return Ve?`
|
|
|
You have moved the item from position `+it+`
|
|
|
to position `+Rt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+it+`
|
|
|
in list `+q.droppableId+`
|
|
|
to list `+ye.droppableId+`
|
|
|
in position `+Rt+`
|
|
|
`},Y=function(q,ye,Ve){var it=ye.droppableId===Ve.droppableId;return it?`
|
|
|
The item `+q+`
|
|
|
has been combined with `+Ve.draggableId:`
|
|
|
The item `+q+`
|
|
|
in list `+ye.droppableId+`
|
|
|
has been combined with `+Ve.draggableId+`
|
|
|
in list `+Ve.droppableId+`
|
|
|
`},G=function(q){var ye=q.destination;if(ye)return oe(q.source,ye);var Ve=q.combine;return Ve?Y(q.draggableId,q.source,Ve):"You are over an area that cannot be dropped on"},X=function(q){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+te(q.index)+`
|
|
|
`},fe=function(q){if(q.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+X(q.source)+`
|
|
|
`;var ye=q.destination,Ve=q.combine;return ye?`
|
|
|
You have dropped the item.
|
|
|
`+oe(q.source,ye)+`
|
|
|
`:Ve?`
|
|
|
You have dropped the item.
|
|
|
`+Y(q.draggableId,q.source,Ve)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+X(q.source)+`
|
|
|
`},de={dragHandleUsageInstructions:ie,onDragStart:Ge,onDragUpdate:G,onDragEnd:fe},Ce={x:0,y:0},Me=function(q,ye){return{x:q.x+ye.x,y:q.y+ye.y}},ue=function(q,ye){return{x:q.x-ye.x,y:q.y-ye.y}},Ae=function(q,ye){return q.x===ye.x&&q.y===ye.y},Te=function(q){return{x:q.x!==0?-q.x:0,y:q.y!==0?-q.y:0}},Je=function(q,ye,Ve){var it;return Ve===void 0&&(Ve=0),it={},it[q]=ye,it[q==="x"?"y":"x"]=Ve,it},At=function(q,ye){return Math.sqrt(Math.pow(ye.x-q.x,2)+Math.pow(ye.y-q.y,2))},qe=function(q,ye){return Math.min.apply(Math,ye.map(function(Ve){return At(q,Ve)}))},Re=function(q){return function(ye){return{x:q(ye.x),y:q(ye.y)}}},Lt=function(q,ye){var Ve=e({top:Math.max(ye.top,q.top),right:Math.min(ye.right,q.right),bottom:Math.min(ye.bottom,q.bottom),left:Math.max(ye.left,q.left)});return Ve.width<=0||Ve.height<=0?null:Ve},$e=function(q,ye){return{top:q.top+ye.y,left:q.left+ye.x,bottom:q.bottom+ye.y,right:q.right+ye.x}},Et=function(q){return[{x:q.left,y:q.top},{x:q.right,y:q.top},{x:q.left,y:q.bottom},{x:q.right,y:q.bottom}]},Ut={top:0,right:0,bottom:0,left:0},Bt=function(q,ye){return ye?$e(q,ye.scroll.diff.displacement):q},_t=function(q,ye,Ve){if(Ve&&Ve.increasedBy){var it;return Object(A.a)({},q,(it={},it[ye.end]=q[ye.end]+Ve.increasedBy[ye.line],it))}return q},jt=function(q,ye){return ye&&ye.shouldClipSubject?Lt(ye.pageMarginBox,q):e(q)},He=function(q){var ye=q.page,Ve=q.withPlaceholder,it=q.axis,Rt=q.frame,zt=Bt(ye.marginBox,Rt),Xt=_t(zt,it,Ve),Nr=jt(Xt,Rt);return{page:ye,withPlaceholder:Ve,active:Nr}},se=function(q,ye){q.frame||me(!1);var Ve=q.frame,it=ue(ye,Ve.scroll.initial),Rt=Te(it),zt=Object(A.a)({},Ve,{scroll:{initial:Ve.scroll.initial,current:ye,diff:{value:it,displacement:Rt},max:Ve.scroll.max}}),Xt=He({page:q.subject.page,withPlaceholder:q.subject.withPlaceholder,axis:q.axis,frame:zt}),Nr=Object(A.a)({},q,{frame:zt,subject:Xt});return Nr};function J(De){return Number.isInteger?Number.isInteger(De):typeof De=="number"&&isFinite(De)&&Math.floor(De)===De}function Ue(De){return Object.values?Object.values(De):Object.keys(De).map(function(q){return De[q]})}function Le(De,q){if(De.findIndex)return De.findIndex(q);for(var ye=0;ye<De.length;ye++)if(q(De[ye]))return ye;return-1}function ee(De,q){if(De.find)return De.find(q);var ye=Le(De,q);return ye!==-1?De[ye]:void 0}function ct(De){return Array.prototype.slice.call(De)}var Mt=I(function(De){return De.reduce(function(q,ye){return q[ye.descriptor.id]=ye,q},{})}),ot=I(function(De){return De.reduce(function(q,ye){return q[ye.descriptor.id]=ye,q},{})}),Yt=I(function(De){return Ue(De)}),or=I(function(De){return Ue(De)}),Zr=I(function(De,q){var ye=or(q).filter(function(Ve){return De===Ve.descriptor.droppableId}).sort(function(Ve,it){return Ve.descriptor.index-it.descriptor.index});return ye});function ir(De){return De.at&&De.at.type==="REORDER"?De.at.destination:null}function dr(De){return De.at&&De.at.type==="COMBINE"?De.at.combine:null}var qt=I(function(De,q){return q.filter(function(ye){return ye.descriptor.id!==De.descriptor.id})}),Ht=function(q){var ye=q.isMovingForward,Ve=q.draggable,it=q.destination,Rt=q.insideDestination,zt=q.previousImpact;if(!it.isCombineEnabled)return null;var Xt=ir(zt);if(!Xt)return null;function Nr(hi){var ji={type:"COMBINE",combine:{draggableId:hi,droppableId:it.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=qt(Ve,Rt);if(!Cr){if(!Er.length)return null;var Kr=Er[Er.length-1];return Nr(Kr.descriptor.id)}var qr=Le(Er,function(hi){return hi.descriptor.id===Cr});qr!==-1||me(!1);var Cn=qr-1;if(Cn<0)return null;var oi=Er[Cn];return Nr(oi.descriptor.id)},lt=function(q,ye){return q.descriptor.droppableId===ye.descriptor.id},Hr={point:Ce,value:0},dn={invisible:{},visible:{},all:[]},Nn={displaced:dn,displacedBy:Hr,at:null},Wn=function(q,ye){return function(Ve){return q<=Ve&&Ve<=ye}},gi=function(q){var ye=Wn(q.top,q.bottom),Ve=Wn(q.left,q.right);return function(it){var Rt=ye(it.top)&&ye(it.bottom)&&Ve(it.left)&&Ve(it.right);if(Rt)return!0;var zt=ye(it.top)||ye(it.bottom),Xt=Ve(it.left)||Ve(it.right),Nr=zt&&Xt;if(Nr)return!0;var Qr=it.top<q.top&&it.bottom>q.bottom,Cr=it.left<q.left&&it.right>q.right,Er=Qr&&Cr;if(Er)return!0;var Kr=Qr&&Xt||Cr&&zt;return Kr}},yn=function(q){var ye=Wn(q.top,q.bottom),Ve=Wn(q.left,q.right);return function(it){var Rt=ye(it.top)&&ye(it.bottom)&&Ve(it.left)&&Ve(it.right);return Rt}},Mn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Ft={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},bt=function(q){return function(ye){var Ve=Wn(ye.top,ye.bottom),it=Wn(ye.left,ye.right);return function(Rt){return q===Mn?Ve(Rt.top)&&Ve(Rt.bottom):it(Rt.left)&&it(Rt.right)}}},Oe=function(q,ye){var Ve=ye.frame?ye.frame.scroll.diff.displacement:Ce;return $e(q,Ve)},Ee=function(q,ye,Ve){return ye.subject.active?Ve(ye.subject.active)(q):!1},Ie=function(q,ye,Ve){return Ve(ye)(q)},Ye=function(q){var ye=q.target,Ve=q.destination,it=q.viewport,Rt=q.withDroppableDisplacement,zt=q.isVisibleThroughFrameFn,Xt=Rt?Oe(ye,Ve):ye;return Ee(Xt,Ve,zt)&&Ie(Xt,it,zt)},rt=function(q){return Ye(Object(A.a)({},q,{isVisibleThroughFrameFn:gi}))},ut=function(q){return Ye(Object(A.a)({},q,{isVisibleThroughFrameFn:yn}))},Ot=function(q){return Ye(Object(A.a)({},q,{isVisibleThroughFrameFn:bt(q.destination.axis)}))},Ar=function(q,ye,Ve){if(typeof Ve=="boolean")return Ve;if(!ye)return!0;var it=ye.invisible,Rt=ye.visible;if(it[q])return!1;var zt=Rt[q];return zt?zt.shouldAnimate:!0};function Pr(De,q){var ye=De.page.marginBox,Ve={top:q.point.y,right:0,bottom:0,left:q.point.x};return e(l(ye,Ve))}function un(De){var q=De.afterDragging,ye=De.destination,Ve=De.displacedBy,it=De.viewport,Rt=De.forceShouldAnimate,zt=De.last;return q.reduce(function(Nr,Qr){var Cr=Pr(Qr,Ve),Er=Qr.descriptor.id;Nr.all.push(Er);var Kr=rt({target:Cr,destination:ye,viewport:it,withDroppableDisplacement:!0});if(!Kr)return Nr.invisible[Qr.descriptor.id]=!0,Nr;var qr=Ar(Er,zt,Rt),Cn={draggableId:Er,shouldAnimate:qr};return Nr.visible[Er]=Cn,Nr},{all:[],visible:{},invisible:{}})}function It(De,q){if(!De.length)return 0;var ye=De[De.length-1].descriptor.index;return q.inHomeList?ye:ye+1}function nt(De){var q=De.insideDestination,ye=De.inHomeList,Ve=De.displacedBy,it=De.destination,Rt=It(q,{inHomeList:ye});return{displaced:dn,displacedBy:Ve,at:{type:"REORDER",destination:{droppableId:it.descriptor.id,index:Rt}}}}function at(De){var q=De.draggable,ye=De.insideDestination,Ve=De.destination,it=De.viewport,Rt=De.displacedBy,zt=De.last,Xt=De.index,Nr=De.forceShouldAnimate,Qr=lt(q,Ve);if(Xt==null)return nt({insideDestination:ye,inHomeList:Qr,displacedBy:Rt,destination:Ve});var Cr=ee(ye,function(oi){return oi.descriptor.index===Xt});if(!Cr)return nt({insideDestination:ye,inHomeList:Qr,displacedBy:Rt,destination:Ve});var Er=qt(q,ye),Kr=ye.indexOf(Cr),qr=Er.slice(Kr),Cn=un({afterDragging:qr,destination:Ve,displacedBy:Rt,last:zt,viewport:it.frame,forceShouldAnimate:Nr});return{displaced:Cn,displacedBy:Rt,at:{type:"REORDER",destination:{droppableId:Ve.descriptor.id,index:Xt}}}}function rr(De,q){return Boolean(q.effected[De])}var Pt=function(q){var ye=q.isMovingForward,Ve=q.destination,it=q.draggables,Rt=q.combine,zt=q.afterCritical;if(!Ve.isCombineEnabled)return null;var Xt=Rt.draggableId,Nr=it[Xt],Qr=Nr.descriptor.index,Cr=rr(Xt,zt);return Cr?ye?Qr:Qr-1:ye?Qr+1:Qr},xt=function(q){var ye=q.isMovingForward,Ve=q.isInHomeList,it=q.insideDestination,Rt=q.location;if(!it.length)return null;var zt=Rt.index,Xt=ye?zt+1:zt-1,Nr=it[0].descriptor.index,Qr=it[it.length-1].descriptor.index,Cr=Ve?Qr:Qr+1;return Xt<Nr||Xt>Cr?null:Xt},Kt=function(q){var ye=q.isMovingForward,Ve=q.isInHomeList,it=q.draggable,Rt=q.draggables,zt=q.destination,Xt=q.insideDestination,Nr=q.previousImpact,Qr=q.viewport,Cr=q.afterCritical,Er=Nr.at;if(Er||me(!1),Er.type==="REORDER"){var Kr=xt({isMovingForward:ye,isInHomeList:Ve,location:Er.destination,insideDestination:Xt});return Kr==null?null:at({draggable:it,insideDestination:Xt,destination:zt,viewport:Qr,last:Nr.displaced,displacedBy:Nr.displacedBy,index:Kr})}var qr=Pt({isMovingForward:ye,destination:zt,displaced:Nr.displaced,draggables:Rt,combine:Er.combine,afterCritical:Cr});return qr==null?null:at({draggable:it,insideDestination:Xt,destination:zt,viewport:Qr,last:Nr.displaced,displacedBy:Nr.displacedBy,index:qr})},yt=function(q){var ye=q.displaced,Ve=q.afterCritical,it=q.combineWith,Rt=q.displacedBy,zt=Boolean(ye.visible[it]||ye.invisible[it]);return rr(it,Ve)?zt?Ce:Te(Rt.point):zt?Rt.point:Ce},kt=function(q){var ye=q.afterCritical,Ve=q.impact,it=q.draggables,Rt=dr(Ve);Rt||me(!1);var zt=Rt.draggableId,Xt=it[zt].page.borderBox.center,Nr=yt({displaced:Ve.displaced,afterCritical:ye,combineWith:zt,displacedBy:Ve.displacedBy});return Me(Xt,Nr)},Sr=function(q,ye){return ye.margin[q.start]+ye.borderBox[q.size]/2},hr=function(q,ye){return ye.margin[q.end]+ye.borderBox[q.size]/2},gr=function(q,ye,Ve){return ye[q.crossAxisStart]+Ve.margin[q.crossAxisStart]+Ve.borderBox[q.crossAxisSize]/2},Jr=function(q){var ye=q.axis,Ve=q.moveRelativeTo,it=q.isMoving;return Je(ye.line,Ve.marginBox[ye.end]+Sr(ye,it),gr(ye,Ve.marginBox,it))},$r=function(q){var ye=q.axis,Ve=q.moveRelativeTo,it=q.isMoving;return Je(ye.line,Ve.marginBox[ye.start]-hr(ye,it),gr(ye,Ve.marginBox,it))},kn=function(q){var ye=q.axis,Ve=q.moveInto,it=q.isMoving;return Je(ye.line,Ve.contentBox[ye.start]+Sr(ye,it),gr(ye,Ve.contentBox,it))},Dn=function(q){var ye=q.impact,Ve=q.draggable,it=q.draggables,Rt=q.droppable,zt=q.afterCritical,Xt=Zr(Rt.descriptor.id,it),Nr=Ve.page,Qr=Rt.axis;if(!Xt.length)return kn({axis:Qr,moveInto:Rt.page,isMoving:Nr});var Cr=ye.displaced,Er=ye.displacedBy,Kr=Cr.all[0];if(Kr){var qr=it[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=Xt[Xt.length-1];if(oi.descriptor.id===Ve.descriptor.id)return Nr.borderBox.center;if(rr(oi.descriptor.id,zt)){var hi=g(oi.page,Te(zt.displacedBy.point));return Jr({axis:Qr,moveRelativeTo:hi,isMoving:Nr})}return Jr({axis:Qr,moveRelativeTo:oi.page,isMoving:Nr})},Zn=function(q,ye){var Ve=q.frame;return Ve?Me(ye,Ve.scroll.diff.displacement):ye},li=function(q){var ye=q.impact,Ve=q.draggable,it=q.droppable,Rt=q.draggables,zt=q.afterCritical,Xt=Ve.page.borderBox.center,Nr=ye.at;return it&&Nr?Nr.type==="REORDER"?Dn({impact:ye,draggable:Ve,draggables:Rt,droppable:it,afterCritical:zt}):kt({impact:ye,draggables:Rt,afterCritical:zt}):Xt},Ai=function(q){var ye=li(q),Ve=q.droppable,it=Ve?Zn(Ve,ye):ye;return it},Ii=function(q,ye){var Ve=ue(ye,q.scroll.initial),it=Te(Ve),Rt=e({top:ye.y,bottom:ye.y+q.frame.height,left:ye.x,right:ye.x+q.frame.width}),zt={frame:Rt,scroll:{initial:q.scroll.initial,max:q.scroll.max,current:ye,diff:{value:Ve,displacement:it}}};return zt};function Qe(De,q){return De.map(function(ye){return q[ye]})}function Se(De,q){for(var ye=0;ye<q.length;ye++){var Ve=q[ye].visible[De];if(Ve)return Ve}return null}var Ne=function(q){var ye=q.impact,Ve=q.viewport,it=q.destination,Rt=q.draggables,zt=q.maxScrollChange,Xt=Ii(Ve,Me(Ve.scroll.current,zt)),Nr=it.frame?se(it,Me(it.frame.scroll.current,zt)):it,Qr=ye.displaced,Cr=un({afterDragging:Qe(Qr.all,Rt),destination:it,displacedBy:ye.displacedBy,viewport:Xt.frame,last:Qr,forceShouldAnimate:!1}),Er=un({afterDragging:Qe(Qr.all,Rt),destination:Nr,displacedBy:ye.displacedBy,viewport:Ve.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(q,ye){return Me(q.scroll.diff.displacement,ye)},Xe=function(q){var ye=q.pageBorderBoxCenter,Ve=q.draggable,it=q.viewport,Rt=je(it,ye),zt=ue(Rt,Ve.page.borderBox.center);return Me(Ve.client.borderBox.center,zt)},ze=function(q){var ye=q.draggable,Ve=q.destination,it=q.newPageBorderBoxCenter,Rt=q.viewport,zt=q.withDroppableDisplacement,Xt=q.onlyOnMainAxis,Nr=Xt===void 0?!1:Xt,Qr=ue(it,ye.page.borderBox.center),Cr=$e(ye.page.borderBox,Qr),Er={target:Cr,destination:Ve,withDroppableDisplacement:zt,viewport:Rt};return Nr?Ot(Er):ut(Er)},Ze=function(q){var ye=q.isMovingForward,Ve=q.draggable,it=q.destination,Rt=q.draggables,zt=q.previousImpact,Xt=q.viewport,Nr=q.previousPageBorderBoxCenter,Qr=q.previousClientSelection,Cr=q.afterCritical;if(!it.isEnabled)return null;var Er=Zr(it.descriptor.id,Rt),Kr=lt(Ve,it),qr=Ht({isMovingForward:ye,draggable:Ve,destination:it,insideDestination:Er,previousImpact:zt})||Kt({isMovingForward:ye,isInHomeList:Kr,draggable:Ve,draggables:Rt,destination:it,insideDestination:Er,previousImpact:zt,viewport:Xt,afterCritical:Cr});if(!qr)return null;var Cn=Ai({impact:qr,draggable:Ve,droppable:it,draggables:Rt,afterCritical:Cr}),oi=ze({draggable:Ve,destination:it,newPageBorderBoxCenter:Cn,viewport:Xt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(oi){var hi=Xe({pageBorderBoxCenter:Cn,draggable:Ve,viewport:Xt});return{clientSelection:hi,impact:qr,scrollJumpRequest:null}}var ji=ue(Cn,Nr),Oi=Ne({impact:qr,viewport:Xt,destination:it,draggables:Rt,maxScrollChange:ji});return{clientSelection:Qr,impact:Oi,scrollJumpRequest:ji}},wt=function(q){var ye=q.subject.active;return ye||me(!1),ye},st=function(q){var ye=q.isMovingForward,Ve=q.pageBorderBoxCenter,it=q.source,Rt=q.droppables,zt=q.viewport,Xt=it.subject.active;if(!Xt)return null;var Nr=it.axis,Qr=Wn(Xt[Nr.start],Xt[Nr.end]),Cr=Yt(Rt).filter(function(Kr){return Kr!==it}).filter(function(Kr){return Kr.isEnabled}).filter(function(Kr){return Boolean(Kr.subject.active)}).filter(function(Kr){return gi(zt.frame)(wt(Kr))}).filter(function(Kr){var qr=wt(Kr);return ye?Xt[Nr.crossAxisEnd]<qr[Nr.crossAxisEnd]:qr[Nr.crossAxisStart]<Xt[Nr.crossAxisStart]}).filter(function(Kr){var qr=wt(Kr),Cn=Wn(qr[Nr.start],qr[Nr.end]);return Qr(qr[Nr.start])||Qr(qr[Nr.end])||Cn(Xt[Nr.start])||Cn(Xt[Nr.end])}).sort(function(Kr,qr){var Cn=wt(Kr)[Nr.crossAxisStart],oi=wt(qr)[Nr.crossAxisStart];return ye?Cn-oi:oi-Cn}).filter(function(Kr,qr,Cn){return wt(Kr)[Nr.crossAxisStart]===wt(Cn[0])[Nr.crossAxisStart]});if(!Cr.length)return null;if(Cr.length===1)return Cr[0];var Er=Cr.filter(function(Kr){var qr=Wn(wt(Kr)[Nr.start],wt(Kr)[Nr.end]);return qr(Ve[Nr.line])});return Er.length===1?Er[0]:Er.length>1?Er.sort(function(Kr,qr){return wt(Kr)[Nr.start]-wt(qr)[Nr.start]})[0]:Cr.sort(function(Kr,qr){var Cn=qe(Ve,Et(wt(Kr))),oi=qe(Ve,Et(wt(qr)));return Cn!==oi?Cn-oi:wt(Kr)[Nr.start]-wt(qr)[Nr.start]})[0]},Jt=function(q,ye){var Ve=q.page.borderBox.center;return rr(q.descriptor.id,ye)?ue(Ve,ye.displacedBy.point):Ve},Rr=function(q,ye){var Ve=q.page.borderBox;return rr(q.descriptor.id,ye)?$e(Ve,Te(ye.displacedBy.point)):Ve},Ir=function(q){var ye=q.pageBorderBoxCenter,Ve=q.viewport,it=q.destination,Rt=q.insideDestination,zt=q.afterCritical,Xt=Rt.filter(function(Nr){return ut({target:Rr(Nr,zt),destination:it,viewport:Ve.frame,withDroppableDisplacement:!0})}).sort(function(Nr,Qr){var Cr=At(ye,Zn(it,Jt(Nr,zt))),Er=At(ye,Zn(it,Jt(Qr,zt)));return Cr<Er?-1:Er<Cr?1:Nr.descriptor.index-Qr.descriptor.index});return Xt[0]||null},Xr=I(function(q,ye){var Ve=ye[q.line];return{value:Ve,point:Je(q.line,Ve)}}),er=function(q,ye,Ve){var it=q.axis;if(q.descriptor.mode==="virtual")return Je(it.line,ye[it.line]);var Rt=q.subject.page.contentBox[it.size],zt=Zr(q.descriptor.id,Ve),Xt=zt.reduce(function(Cr,Er){return Cr+Er.client.marginBox[it.size]},0),Nr=Xt+ye[it.line],Qr=Nr-Rt;return Qr<=0?null:Je(it.line,Qr)},pn=function(q,ye){return Object(A.a)({},q,{scroll:Object(A.a)({},q.scroll,{max:ye})})},fr=function(q,ye,Ve){var it=q.frame;lt(ye,q)&&me(!1),q.subject.withPlaceholder&&me(!1);var Rt=Xr(q.axis,ye.displaceBy).point,zt=er(q,Rt,Ve),Xt={placeholderSize:Rt,increasedBy:zt,oldFrameMaxScroll:q.frame?q.frame.scroll.max:null};if(!it){var Nr=He({page:q.subject.page,withPlaceholder:Xt,axis:q.axis,frame:q.frame});return Object(A.a)({},q,{subject:Nr})}var Qr=zt?Me(it.scroll.max,zt):it.scroll.max,Cr=pn(it,Qr),Er=He({page:q.subject.page,withPlaceholder:Xt,axis:q.axis,frame:Cr});return Object(A.a)({},q,{subject:Er,frame:Cr})},mn=function(q){var ye=q.subject.withPlaceholder;ye||me(!1);var Ve=q.frame;if(!Ve){var it=He({page:q.subject.page,axis:q.axis,frame:null,withPlaceholder:null});return Object(A.a)({},q,{subject:it})}var Rt=ye.oldFrameMaxScroll;Rt||me(!1);var zt=pn(Ve,Rt),Xt=He({page:q.subject.page,axis:q.axis,frame:zt,withPlaceholder:null});return Object(A.a)({},q,{subject:Xt,frame:zt})},en=function(q){var ye=q.previousPageBorderBoxCenter,Ve=q.moveRelativeTo,it=q.insideDestination,Rt=q.draggable,zt=q.draggables,Xt=q.destination,Nr=q.viewport,Qr=q.afterCritical;if(!Ve){if(it.length)return null;var Cr={displaced:dn,displacedBy:Hr,at:{type:"REORDER",destination:{droppableId:Xt.descriptor.id,index:0}}},Er=Ai({impact:Cr,draggable:Rt,droppable:Xt,draggables:zt,afterCritical:Qr}),Kr=lt(Rt,Xt)?Xt:fr(Xt,Rt,zt),qr=ze({draggable:Rt,destination:Kr,newPageBorderBoxCenter:Er,viewport:Nr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return qr?Cr:null}var Cn=Boolean(ye[Xt.axis.line]<=Ve.page.borderBox.center[Xt.axis.line]),oi=function(){var ji=Ve.descriptor.index;return Ve.descriptor.id===Rt.descriptor.id||Cn?ji:ji+1}(),hi=Xr(Xt.axis,Rt.displaceBy);return at({draggable:Rt,insideDestination:it,destination:Xt,viewport:Nr,displacedBy:hi,last:dn,index:oi})},Mr=function(q){var ye=q.isMovingForward,Ve=q.previousPageBorderBoxCenter,it=q.draggable,Rt=q.isOver,zt=q.draggables,Xt=q.droppables,Nr=q.viewport,Qr=q.afterCritical,Cr=st({isMovingForward:ye,pageBorderBoxCenter:Ve,source:Rt,droppables:Xt,viewport:Nr});if(!Cr)return null;var Er=Zr(Cr.descriptor.id,zt),Kr=Ir({pageBorderBoxCenter:Ve,viewport:Nr,destination:Cr,insideDestination:Er,afterCritical:Qr}),qr=en({previousPageBorderBoxCenter:Ve,destination:Cr,draggable:it,draggables:zt,moveRelativeTo:Kr,insideDestination:Er,viewport:Nr,afterCritical:Qr});if(!qr)return null;var Cn=Ai({impact:qr,draggable:it,droppable:Cr,draggables:zt,afterCritical:Qr}),oi=Xe({pageBorderBoxCenter:Cn,draggable:it,viewport:Nr});return{clientSelection:oi,impact:qr,scrollJumpRequest:null}},Gn=function(q){var ye=q.at;return ye?ye.type==="REORDER"?ye.destination.droppableId:ye.combine.droppableId:null},di=function(q,ye){var Ve=Gn(q);return Ve?ye[Ve]:null},_i=function(q){var ye=q.state,Ve=q.type,it=di(ye.impact,ye.dimensions.droppables),Rt=Boolean(it),zt=ye.dimensions.droppables[ye.critical.droppable.id],Xt=it||zt,Nr=Xt.axis.direction,Qr=Nr==="vertical"&&(Ve==="MOVE_UP"||Ve==="MOVE_DOWN")||Nr==="horizontal"&&(Ve==="MOVE_LEFT"||Ve==="MOVE_RIGHT");if(Qr&&!Rt)return null;var Cr=Ve==="MOVE_DOWN"||Ve==="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?Ze({isMovingForward:Cr,previousPageBorderBoxCenter:Kr,draggable:Er,destination:Xt,draggables:Cn,viewport:ye.viewport,previousClientSelection:ye.current.client.selection,previousImpact:ye.impact,afterCritical:ye.afterCritical}):Mr({isMovingForward:Cr,previousPageBorderBoxCenter:Kr,draggable:Er,isOver:Xt,draggables:Cn,droppables:oi,viewport:ye.viewport,afterCritical:ye.afterCritical})};function Br(De){return De.phase==="DRAGGING"||De.phase==="COLLECTING"}function sn(De){var q=Wn(De.top,De.bottom),ye=Wn(De.left,De.right);return function(it){return q(it.y)&&ye(it.x)}}function Sn(De,q){return De.left<q.right&&De.right>q.left&&De.top<q.bottom&&De.bottom>q.top}function Dt(De){var q=De.pageBorderBox,ye=De.draggable,Ve=De.candidates,it=ye.page.borderBox.center,Rt=Ve.map(function(zt){var Xt=zt.axis,Nr=Je(zt.axis.line,q.center[Xt.line],zt.page.borderBox.center[Xt.crossAxisLine]);return{id:zt.descriptor.id,distance:At(it,Nr)}}).sort(function(zt,Xt){return Xt.distance-zt.distance});return Rt[0]?Rt[0].id:null}function ft(De){var q=De.pageBorderBox,ye=De.draggable,Ve=De.droppables,it=Yt(Ve).filter(function(Rt){if(!Rt.isEnabled)return!1;var zt=Rt.subject.active;if(!zt)return!1;if(!Sn(q,zt))return!1;if(sn(zt)(q.center))return!0;var Xt=Rt.axis,Nr=zt.center[Xt.crossAxisLine],Qr=q[Xt.crossAxisStart],Cr=q[Xt.crossAxisEnd],Er=Wn(zt[Xt.crossAxisStart],zt[Xt.crossAxisEnd]),Kr=Er(Qr),qr=Er(Cr);return!Kr&&!qr?!0:Kr?Qr<Nr:Cr>Nr});return it.length?it.length===1?it[0].descriptor.id:Dt({pageBorderBox:q,draggable:ye,candidates:it}):null}var St=function(q,ye){return e($e(q,ye))},Ct=function(q,ye){var Ve=q.frame;return Ve?St(ye,Ve.scroll.diff.value):ye};function Nt(De){var q=De.displaced,ye=De.id;return Boolean(q.visible[ye]||q.invisible[ye])}function gt(De){var q=De.draggable,ye=De.closest,Ve=De.inHomeList;return ye?Ve&&ye.descriptor.index>q.descriptor.index?ye.descriptor.index-1:ye.descriptor.index:null}var Qt=function(q){var ye=q.pageBorderBoxWithDroppableScroll,Ve=q.draggable,it=q.destination,Rt=q.insideDestination,zt=q.last,Xt=q.viewport,Nr=q.afterCritical,Qr=it.axis,Cr=Xr(it.axis,Ve.displaceBy),Er=Cr.value,Kr=ye[Qr.start],qr=ye[Qr.end],Cn=qt(Ve,Rt),oi=ee(Cn,function(ji){var Oi=ji.descriptor.id,wa=ji.page.borderBox.center[Qr.line],Qi=rr(Oi,Nr),Ua=Nt({displaced:zt,id:Oi});return Qi?Ua?qr<=wa:Kr<wa-Er:Ua?qr<=wa+Er:Kr<wa}),hi=gt({draggable:Ve,closest:oi,inHomeList:lt(Ve,it)});return at({draggable:Ve,insideDestination:Rt,destination:it,viewport:Xt,last:zt,displacedBy:Cr,index:hi})},tr=4,ar=function(q){var ye=q.draggable,Ve=q.pageBorderBoxWithDroppableScroll,it=q.previousImpact,Rt=q.destination,zt=q.insideDestination,Xt=q.afterCritical;if(!Rt.isCombineEnabled)return null;var Nr=Rt.axis,Qr=Xr(Rt.axis,ye.displaceBy),Cr=Qr.value,Er=Ve[Nr.start],Kr=Ve[Nr.end],qr=qt(ye,zt),Cn=ee(qr,function(hi){var ji=hi.descriptor.id,Oi=hi.page.borderBox,wa=Oi[Nr.size],Qi=wa/tr,Ua=rr(ji,Xt),Sa=Nt({displaced:it.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:it.displaced,at:{type:"COMBINE",combine:{draggableId:Cn.descriptor.id,droppableId:Rt.descriptor.id}}};return oi},yr=function(q){var ye=q.pageOffset,Ve=q.draggable,it=q.draggables,Rt=q.droppables,zt=q.previousImpact,Xt=q.viewport,Nr=q.afterCritical,Qr=St(Ve.page.borderBox,ye),Cr=ft({pageBorderBox:Qr,draggable:Ve,droppables:Rt});if(!Cr)return Nn;var Er=Rt[Cr],Kr=Zr(Er.descriptor.id,it),qr=Ct(Er,Qr);return ar({pageBorderBoxWithDroppableScroll:qr,draggable:Ve,previousImpact:zt,destination:Er,insideDestination:Kr,afterCritical:Nr})||Qt({pageBorderBoxWithDroppableScroll:qr,draggable:Ve,destination:Er,insideDestination:Kr,last:zt.displaced,viewport:Xt,afterCritical:Nr})},xn=function(q,ye){var Ve;return Object(A.a)({},q,(Ve={},Ve[ye.descriptor.id]=ye,Ve))},vn=function(q){var ye=q.previousImpact,Ve=q.impact,it=q.droppables,Rt=Gn(ye),zt=Gn(Ve);if(!Rt)return it;if(Rt===zt)return it;var Xt=it[Rt];if(!Xt.subject.withPlaceholder)return it;var Nr=mn(Xt);return xn(it,Nr)},zn=function(q){var ye=q.draggable,Ve=q.draggables,it=q.droppables,Rt=q.previousImpact,zt=q.impact,Xt=vn({previousImpact:Rt,impact:zt,droppables:it}),Nr=Gn(zt);if(!Nr)return Xt;var Qr=it[Nr];if(lt(ye,Qr))return Xt;if(Qr.subject.withPlaceholder)return Xt;var Cr=fr(Qr,ye,Ve);return xn(Xt,Cr)},Yr=function(q){var ye=q.state,Ve=q.clientSelection,it=q.dimensions,Rt=q.viewport,zt=q.impact,Xt=q.scrollJumpRequest,Nr=Rt||ye.viewport,Qr=it||ye.dimensions,Cr=Ve||ye.current.client.selection,Er=ue(Cr,ye.initial.client.selection),Kr={offset:Er,selection:Cr,borderBoxCenter:Me(ye.initial.client.borderBoxCenter,Er)},qr={selection:Me(Kr.selection,Nr.scroll.current),borderBoxCenter:Me(Kr.borderBoxCenter,Nr.scroll.current),offset:Me(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=zn({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:Xt||null,forceShouldAnimate:Xt?!1:null});return Oi};function xr(De,q){return De.map(function(ye){return q[ye]})}var ln=function(q){var ye=q.impact,Ve=q.viewport,it=q.draggables,Rt=q.destination,zt=q.forceShouldAnimate,Xt=ye.displaced,Nr=xr(Xt.all,it),Qr=un({afterDragging:Nr,destination:Rt,displacedBy:ye.displacedBy,viewport:Ve.frame,forceShouldAnimate:zt,last:Xt});return Object(A.a)({},ye,{displaced:Qr})},On=function(q){var ye=q.impact,Ve=q.draggable,it=q.droppable,Rt=q.draggables,zt=q.viewport,Xt=q.afterCritical,Nr=Ai({impact:ye,draggable:Ve,draggables:Rt,droppable:it,afterCritical:Xt});return Xe({pageBorderBoxCenter:Nr,draggable:Ve,viewport:zt})},In=function(q){var ye=q.state,Ve=q.dimensions,it=q.viewport;ye.movementMode==="SNAP"||me(!1);var Rt=ye.impact,zt=it||ye.viewport,Xt=Ve||ye.dimensions,Nr=Xt.draggables,Qr=Xt.droppables,Cr=Nr[ye.critical.draggable.id],Er=Gn(Rt);Er||me(!1);var Kr=Qr[Er],qr=ln({impact:Rt,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:Xt,viewport:zt})},Un=function(q){return{index:q.index,droppableId:q.droppableId}},ti=function(q){var ye=q.draggable,Ve=q.home,it=q.draggables,Rt=q.viewport,zt=Xr(Ve.axis,ye.displaceBy),Xt=Zr(Ve.descriptor.id,it),Nr=Xt.indexOf(ye);Nr!==-1||me(!1);var Qr=Xt.slice(Nr+1),Cr=Qr.reduce(function(Cn,oi){return Cn[oi.descriptor.id]=!0,Cn},{}),Er={inVirtualList:Ve.descriptor.mode==="virtual",displacedBy:zt,effected:Cr},Kr=un({afterDragging:Qr,destination:Ve,displacedBy:zt,last:null,viewport:Rt.frame,forceShouldAnimate:!1}),qr={displaced:Kr,displacedBy:zt,at:{type:"REORDER",destination:Un(ye.descriptor)}};return{impact:qr,afterCritical:Er}},ui=function(q,ye){return{draggables:q.draggables,droppables:xn(q.droppables,ye)}},si=function(q){},ki=function(q){},zi=function(q){var ye=q.draggable,Ve=q.offset,it=q.initialWindowScroll,Rt=g(ye.client,Ve),zt=v(Rt,it),Xt=Object(A.a)({},ye,{placeholder:Object(A.a)({},ye.placeholder,{client:Rt}),client:Rt,page:zt});return Xt},Ri=function(q){var ye=q.frame;return ye||me(!1),ye},Yi=function(q){var ye=q.additions,Ve=q.updatedDroppables,it=q.viewport,Rt=it.scroll.diff.value;return ye.map(function(zt){var Xt=zt.descriptor.droppableId,Nr=Ve[Xt],Qr=Ri(Nr),Cr=Qr.scroll.diff.value,Er=Me(Rt,Cr),Kr=zi({draggable:zt,offset:Er,initialWindowScroll:it.scroll.initial});return Kr})},$n=function(q){var ye=q.state,Ve=q.published;si();var it=Ve.modified.map(function(Qi){var Ua=ye.dimensions.droppables[Qi.droppableId],Sa=se(Ua,Qi.scroll);return Sa}),Rt=Object(A.a)({},ye.dimensions.droppables,{},Mt(it)),zt=ot(Yi({additions:Ve.additions,updatedDroppables:Rt,viewport:ye.viewport})),Xt=Object(A.a)({},ye.dimensions.draggables,{},zt);Ve.removals.forEach(function(Qi){delete Xt[Qi]});var Nr={droppables:Rt,draggables:Xt},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:Xt,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});ki();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(q){return q.movementMode==="SNAP"},mi=function(q,ye,Ve){var it=ui(q.dimensions,ye);return!gn(q)||Ve?Yr({state:q,dimensions:it}):In({state:q,dimensions:it})};function Hi(De){return De.isDragging&&De.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},De,{scrollJumpRequest:null}):De}var Li={phase:"IDLE",completed:null,shouldFlush:!1},Bi=function(q,ye){if(q===void 0&&(q=Li),ye.type==="FLUSH")return Object(A.a)({},Li,{shouldFlush:!0});if(ye.type==="INITIAL_PUBLISH"){q.phase==="IDLE"||me(!1);var Ve=ye.payload,it=Ve.critical,Rt=Ve.clientSelection,zt=Ve.viewport,Xt=Ve.dimensions,Nr=Ve.movementMode,Qr=Xt.draggables[it.draggable.id],Cr=Xt.droppables[it.droppable.id],Er={selection:Rt,borderBoxCenter:Qr.client.borderBox.center,offset:Ce},Kr={client:Er,page:{selection:Me(Er.selection,zt.scroll.initial),borderBoxCenter:Me(Er.selection,zt.scroll.initial),offset:Me(Er.selection,zt.scroll.diff.value)}},qr=Yt(Xt.droppables).every(function(Wo){return!Wo.isFixedOnPage}),Cn=ti({draggable:Qr,home:Cr,draggables:Xt.draggables,viewport:zt}),oi=Cn.impact,hi=Cn.afterCritical,ji={phase:"DRAGGING",isDragging:!0,critical:it,movementMode:Nr,dimensions:Xt,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(q.phase==="COLLECTING"||q.phase==="DROP_PENDING")return q;q.phase==="DRAGGING"||me(!1);var Oi=Object(A.a)({phase:"COLLECTING"},q,{phase:"COLLECTING"});return Oi}if(ye.type==="PUBLISH_WHILE_DRAGGING")return q.phase==="COLLECTING"||q.phase==="DROP_PENDING"||me(!1),$n({state:q,published:ye.payload});if(ye.type==="MOVE"){if(q.phase==="DROP_PENDING")return q;Br(q)||me(!1);var wa=ye.payload.client;return Ae(wa,q.current.client.selection)?q:Yr({state:q,clientSelection:wa,impact:gn(q)?q.impact:null})}if(ye.type==="UPDATE_DROPPABLE_SCROLL"){if(q.phase==="DROP_PENDING")return Hi(q);if(q.phase==="COLLECTING")return Hi(q);Br(q)||me(!1);var Qi=ye.payload,Ua=Qi.id,Sa=Qi.newScroll,So=q.dimensions.droppables[Ua];if(!So)return q;var Fo=se(So,Sa);return mi(q,Fo,!1)}if(ye.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(q.phase==="DROP_PENDING")return q;Br(q)||me(!1);var P=ye.payload,W=P.id,$=P.isEnabled,re=q.dimensions.droppables[W];re||me(!1),re.isEnabled!==$||me(!1);var ce=Object(A.a)({},re,{isEnabled:$});return mi(q,ce,!0)}if(ye.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(q.phase==="DROP_PENDING")return q;Br(q)||me(!1);var ke=ye.payload,ht=ke.id,Wt=ke.isCombineEnabled,sr=q.dimensions.droppables[ht];sr||me(!1),sr.isCombineEnabled!==Wt||me(!1);var pr=Object(A.a)({},sr,{isCombineEnabled:Wt});return mi(q,pr,!0)}if(ye.type==="MOVE_BY_WINDOW_SCROLL"){if(q.phase==="DROP_PENDING"||q.phase==="DROP_ANIMATING")return q;Br(q)||me(!1),q.isWindowScrollAllowed||me(!1);var wn=ye.payload.newScroll;if(Ae(q.viewport.scroll.current,wn))return Hi(q);var Rn=Ii(q.viewport,wn);return gn(q)?In({state:q,viewport:Rn}):Yr({state:q,viewport:Rn})}if(ye.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Br(q))return q;var ei=ye.payload.maxScroll;if(Ae(ei,q.viewport.scroll.max))return q;var ni=Object(A.a)({},q.viewport,{scroll:Object(A.a)({},q.viewport.scroll,{max:ei})});return Object(A.a)({phase:"DRAGGING"},q,{viewport:ni})}if(ye.type==="MOVE_UP"||ye.type==="MOVE_DOWN"||ye.type==="MOVE_LEFT"||ye.type==="MOVE_RIGHT"){if(q.phase==="COLLECTING"||q.phase==="DROP_PENDING")return q;q.phase==="DRAGGING"||me(!1);var Mi=_i({state:q,type:ye.type});return Mi?Yr({state:q,impact:Mi.impact,clientSelection:Mi.clientSelection,scrollJumpRequest:Mi.scrollJumpRequest}):q}if(ye.type==="DROP_PENDING"){var Zi=ye.payload.reason;q.phase==="COLLECTING"||me(!1);var da=Object(A.a)({phase:"DROP_PENDING"},q,{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;q.phase==="DRAGGING"||q.phase==="DROP_PENDING"||me(!1);var To={phase:"DROP_ANIMATING",completed:na,dropDuration:xa,newHomeClientOffset:Ma,dimensions:q.dimensions};return To}if(ye.type==="DROP_COMPLETE"){var no=ye.payload.completed;return{phase:"IDLE",completed:no,shouldFlush:!1}}return q},wr=function(q){return{type:"BEFORE_INITIAL_CAPTURE",payload:q}},lr=function(q){return{type:"LIFT",payload:q}},on=function(q){return{type:"INITIAL_PUBLISH",payload:q}},Zt=function(q){return{type:"PUBLISH_WHILE_DRAGGING",payload:q}},br=function(){return{type:"COLLECTION_STARTING",payload:null}},Or=function(q){return{type:"UPDATE_DROPPABLE_SCROLL",payload:q}},Wr=function(q){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:q}},An=function(q){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:q}},vt=function(q){return{type:"MOVE",payload:q}},mr=function(q){return{type:"MOVE_BY_WINDOW_SCROLL",payload:q}},vr=function(q){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:q}},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(q){return{type:"DROP_ANIMATE",payload:q}},Xn=function(q){return{type:"DROP_COMPLETE",payload:q}},ci=function(q){return{type:"DROP",payload:q}},Jn=function(q){return{type:"DROP_PENDING",payload:q}},pi=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Si(De){if(De.length<=1)return;for(var q=De.map(function(Xt){return Xt.descriptor.index}),ye={},Ve=1;Ve<q.length;Ve++){var it=q[Ve],Rt=q[Ve-1];it!==Rt+1&&(ye[it]=!0)}if(!Object.keys(ye).length)return;var zt=q.map(function(Xt){var Nr=Boolean(ye[Xt]);return Nr?"[\u{1F525}"+Xt+"]":""+Xt}).join(", ")}function Ni(De,q){if(!1)var ye}var xi=function(q){return function(ye){var Ve=ye.getState,it=ye.dispatch;return function(Rt){return function(zt){if(zt.type!=="LIFT"){Rt(zt);return}var Xt=zt.payload,Nr=Xt.id,Qr=Xt.clientSelection,Cr=Xt.movementMode,Er=Ve();Er.phase==="DROP_ANIMATING"&&it(Xn({completed:Er.completed})),Ve().phase==="IDLE"||me(!1),it(Ln()),it(wr({draggableId:Nr,movementMode:Cr}));var Kr={shouldPublishImmediately:Cr==="SNAP"},qr={draggableId:Nr,scrollOptions:Kr},Cn=q.startPublishing(qr),oi=Cn.critical,hi=Cn.dimensions,ji=Cn.viewport;Ni(oi,hi),it(on({critical:oi,dimensions:hi,clientSelection:Qr,movementMode:Cr,viewport:ji}))}}}},yi=function(q){return function(){return function(ye){return function(Ve){Ve.type==="INITIAL_PUBLISH"&&q.dragging(),Ve.type==="DROP_ANIMATE"&&q.dropping(Ve.payload.completed.result.reason),(Ve.type==="FLUSH"||Ve.type==="DROP_COMPLETE")&&q.resting(),ye(Ve)}}}},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(q){var ye=q+"s "+vi.drop;return"transform "+ye+", opacity "+ye},outOfTheWay:"transform "+$i,placeholder:"height "+$i+", width "+$i+", margin "+$i},ua=function(q){return Ae(q,Ce)?null:"translate("+q.x+"px, "+q.y+"px)"},aa={moveTo:ua,drop:function(q,ye){var Ve=ua(q);return Ve?ye?Ve+" scale("+Ti.scale.drop+")":Ve:null}},Gi=Ui.minDropTime,Vi=Ui.maxDropTime,ta=Vi-Gi,Xi=1500,ga=.6,ra=function(q){var ye=q.current,Ve=q.destination,it=q.reason,Rt=At(ye,Ve);if(Rt<=0)return Gi;if(Rt>=Xi)return Vi;var zt=Rt/Xi,Xt=Gi+ta*zt,Nr=it==="CANCEL"?Xt*ga:Xt;return Number(Nr.toFixed(2))},pa=function(q){var ye=q.impact,Ve=q.draggable,it=q.dimensions,Rt=q.viewport,zt=q.afterCritical,Xt=it.draggables,Nr=it.droppables,Qr=Gn(ye),Cr=Qr?Nr[Qr]:null,Er=Nr[Ve.descriptor.droppableId],Kr=On({impact:ye,draggable:Ve,draggables:Xt,afterCritical:zt,droppable:Cr||Er,viewport:Rt}),qr=ue(Kr,Ve.client.borderBox.center);return qr},_a=function(q){var ye=q.draggables,Ve=q.reason,it=q.lastImpact,Rt=q.home,zt=q.viewport,Xt=q.onLiftImpact;if(!it.at||Ve!=="DROP"){var Nr=ln({draggables:ye,impact:Xt,destination:Rt,viewport:zt,forceShouldAnimate:!0});return{impact:Nr,didDropInsideDroppable:!1}}if(it.at.type==="REORDER")return{impact:it,didDropInsideDroppable:!0};var Qr=Object(A.a)({},it,{displaced:dn});return{impact:Qr,didDropInsideDroppable:!0}},Da=function(q){var ye=q.getState,Ve=q.dispatch;return function(it){return function(Rt){if(Rt.type!=="DROP"){it(Rt);return}var zt=ye(),Xt=Rt.payload.reason;if(zt.phase==="COLLECTING"){Ve(Jn({reason:Xt}));return}if(zt.phase==="IDLE")return;var Nr=zt.phase==="DROP_PENDING"&&zt.isWaiting;Nr&&me(!1),zt.phase==="DRAGGING"||zt.phase==="DROP_PENDING"||me(!1);var Qr=zt.critical,Cr=zt.dimensions,Er=Cr.draggables[zt.critical.draggable.id],Kr=_a({reason:Xt,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?ir(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:Xt,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=!Ae(zt.current.client.offset,wa)||Boolean(Oi.combine);if(!Ua){Ve(Xn({completed:Qi}));return}var Sa=ra({current:zt.current.client.offset,destination:wa,reason:Xt}),So={newHomeClientOffset:wa,dropDuration:Sa,completed:Qi};Ve(Tn(So))}}},Ra=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ao(De){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ye){if(ye.target!==window&&ye.target!==window.document)return;De()}}}function ja(De){var q=De.onWindowScroll;function ye(){q(Ra())}var Ve=N(ye),it=Ao(Ve),Rt=le;function zt(){return Rt!==le}function Xt(){zt()&&me(!1),Rt=ve(window,[it])}function Nr(){zt()||me(!1),Ve.cancel(),Rt(),Rt=le}return{start:Xt,stop:Nr,isActive:zt}}var Ya=function(q){return q.type==="DROP_COMPLETE"||q.type==="DROP_ANIMATE"||q.type==="FLUSH"},Ia=function(q){var ye=ja({onWindowScroll:function(it){q.dispatch(mr({newScroll:it}))}});return function(Ve){return function(it){!ye.isActive()&&it.type==="INITIAL_PUBLISH"&&ye.start(),ye.isActive()&&Ya(it)&&ye.stop(),Ve(it)}}},Va=function(q){var ye=!1,Ve=!1,it=setTimeout(function(){Ve=!0}),Rt=function(Xt){if(ye)return;if(Ve)return;ye=!0,q(Xt),clearTimeout(it)};return Rt.wasCalled=function(){return ye},Rt},co=function(){var q=[],ye=function(zt){var Xt=Le(q,function(Cr){return Cr.timerId===zt});Xt!==-1||me(!1);var Nr=q.splice(Xt,1),Qr=Nr[0];Qr.callback()},Ve=function(zt){var Xt=setTimeout(function(){return ye(Xt)}),Nr={timerId:Xt,callback:zt};q.push(Nr)},it=function(){if(!q.length)return;var zt=[].concat(q);q.length=0,zt.forEach(function(Xt){clearTimeout(Xt.timerId),Xt.callback()})};return{add:Ve,flush:it}},Ca=function(q,ye){return q==null&&ye==null?!0:q==null||ye==null?!1:q.droppableId===ye.droppableId&&q.index===ye.index},yo=function(q,ye){return q==null&&ye==null?!0:q==null||ye==null?!1:q.draggableId===ye.draggableId&&q.droppableId===ye.droppableId},uo=function(q,ye){if(q===ye)return!0;var Ve=q.draggable.id===ye.draggable.id&&q.draggable.droppableId===ye.draggable.droppableId&&q.draggable.type===ye.draggable.type&&q.draggable.index===ye.draggable.index,it=q.droppable.id===ye.droppable.id&&q.droppable.type===ye.droppable.type;return Ve&&it},Ga=function(q,ye){si(),ye(),ki()},Oo=function(q,ye){return{draggableId:q.draggable.id,type:q.droppable.type,source:{droppableId:q.droppable.id,index:q.draggable.index},mode:ye}},oa=function(q,ye,Ve,it){if(!q){Ve(it(ye));return}var Rt=Va(Ve),zt={announce:Rt};q(ye,zt),Rt.wasCalled()||Ve(it(ye))},qa=function(q,ye){var Ve=co(),it=null,Rt=function(qr,Cn){it&&me(!1),Ga("onBeforeCapture",function(){var oi=q().onBeforeCapture;if(oi){var hi={draggableId:qr,mode:Cn};oi(hi)}})},zt=function(qr,Cn){it&&me(!1),Ga("onBeforeDragStart",function(){var oi=q().onBeforeDragStart;oi&&oi(Oo(qr,Cn))})},Xt=function(qr,Cn){it&&me(!1);var oi=Oo(qr,Cn);it={mode:Cn,lastCritical:qr,lastLocation:oi.source,lastCombine:null},Ve.add(function(){Ga("onDragStart",function(){return oa(q().onDragStart,oi,ye,de.onDragStart)})})},Nr=function(qr,Cn){var oi=ir(Cn),hi=dr(Cn);it||me(!1);var ji=!uo(qr,it.lastCritical);ji&&(it.lastCritical=qr);var Oi=!Ca(it.lastLocation,oi);Oi&&(it.lastLocation=oi);var wa=!yo(it.lastCombine,hi);if(wa&&(it.lastCombine=hi),!ji&&!Oi&&!wa)return;var Qi=Object(A.a)({},Oo(qr,it.mode),{combine:hi,destination:oi});Ve.add(function(){Ga("onDragUpdate",function(){return oa(q().onDragUpdate,Qi,ye,de.onDragUpdate)})})},Qr=function(){it||me(!1),Ve.flush()},Cr=function(qr){it||me(!1),it=null,Ga("onDragEnd",function(){return oa(q().onDragEnd,qr,ye,de.onDragEnd)})},Er=function(){if(!it)return;var qr=Object(A.a)({},Oo(it.lastCritical,it.mode),{combine:null,destination:null,reason:"CANCEL"});Cr(qr)};return{beforeCapture:Rt,beforeStart:zt,start:Xt,update:Nr,flush:Qr,drop:Cr,abort:Er}},oo=function(q,ye){var Ve=qa(q,ye);return function(it){return function(Rt){return function(zt){if(zt.type==="BEFORE_INITIAL_CAPTURE"){Ve.beforeCapture(zt.payload.draggableId,zt.payload.movementMode);return}if(zt.type==="INITIAL_PUBLISH"){var Xt=zt.payload.critical;Ve.beforeStart(Xt,zt.payload.movementMode),Rt(zt),Ve.start(Xt,zt.payload.movementMode);return}if(zt.type==="DROP_COMPLETE"){var Nr=zt.payload.completed.result;Ve.flush(),Rt(zt),Ve.drop(Nr);return}if(Rt(zt),zt.type==="FLUSH"){Ve.abort();return}var Qr=it.getState();Qr.phase==="DRAGGING"&&Ve.update(Qr.critical,Qr.impact)}}}},Ro=function(q){return function(ye){return function(Ve){if(Ve.type!=="DROP_ANIMATION_FINISHED"){ye(Ve);return}var it=q.getState();it.phase==="DROP_ANIMATING"||me(!1),q.dispatch(Xn({completed:it.completed}))}}},Xa=function(q){var ye=null,Ve=null;function it(){Ve&&(cancelAnimationFrame(Ve),Ve=null),ye&&(ye(),ye=null)}return function(Rt){return function(zt){if((zt.type==="FLUSH"||zt.type==="DROP_COMPLETE"||zt.type==="DROP_ANIMATION_FINISHED")&&it(),Rt(zt),zt.type!=="DROP_ANIMATE")return;var Xt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Qr=q.getState();Qr.phase==="DROP_ANIMATING"&&q.dispatch(pi())}};Ve=requestAnimationFrame(function(){Ve=null,ye=ve(window,[Xt])})}}},_o=function(q){return function(){return function(ye){return function(Ve){(Ve.type==="DROP_COMPLETE"||Ve.type==="FLUSH"||Ve.type==="DROP_ANIMATE")&&q.stopPublishing(),ye(Ve)}}}},go=function(q){var ye=!1;return function(){return function(Ve){return function(it){if(it.type==="INITIAL_PUBLISH"){ye=!0,q.tryRecordFocus(it.payload.critical.draggable.id),Ve(it),q.tryRestoreFocusRecorded();return}if(Ve(it),!ye)return;if(it.type==="FLUSH"){ye=!1,q.tryRestoreFocusRecorded();return}if(it.type==="DROP_COMPLETE"){ye=!1;var Rt=it.payload.completed.result;Rt.combine&&q.tryShiftRecord(Rt.draggableId,Rt.combine.draggableId),q.tryRestoreFocusRecorded()}}}}},Ja=function(q){return q.type==="DROP_COMPLETE"||q.type==="DROP_ANIMATE"||q.type==="FLUSH"},Fa=function(q){return function(ye){return function(Ve){return function(it){if(Ja(it)){q.stop(),Ve(it);return}if(it.type==="INITIAL_PUBLISH"){Ve(it);var Rt=ye.getState();Rt.phase==="DRAGGING"||me(!1),q.start(Rt);return}Ve(it),q.scroll(ye.getState())}}}},ha=function(q){return function(ye){return function(Ve){if(ye(Ve),Ve.type!=="PUBLISH_WHILE_DRAGGING")return;var it=q.getState();if(it.phase!=="DROP_PENDING")return;if(it.isWaiting)return;q.dispatch(ci({reason:it.reason}))}}},tt=w.d,cr=function(q){var ye=q.dimensionMarshal,Ve=q.focusMarshal,it=q.styleMarshal,Rt=q.getResponders,zt=q.announce,Xt=q.autoScroller;return Object(w.e)(Bi,tt(Object(w.a)(yi(it),_o(ye),xi(ye),Da,Ro,Xa,ha,Fa(Xt),Ia,go(Ve),oo(Rt,zt))))},kr=function(){return{additions:{},removals:{},modified:{}}};function Lr(De){var q=De.registry,ye=De.callbacks,Ve=kr(),it=null,Rt=function(){if(it)return;ye.collectionStarting(),it=requestAnimationFrame(function(){it=null,si();var Cr=Ve,Er=Cr.additions,Kr=Cr.removals,qr=Cr.modified,Cn=Object.keys(Er).map(function(ji){return q.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=q.droppable.getById(ji),wa=Oi.callbacks.getScrollWhileDragging();return{droppableId:ji,scroll:wa}}),hi={additions:Cn,removals:Object.keys(Kr),modified:oi};Ve=kr(),ki(),ye.publish(hi)})},zt=function(Cr){var Er=Cr.descriptor.id;Ve.additions[Er]=Cr,Ve.modified[Cr.descriptor.droppableId]=!0,Ve.removals[Er]&&delete Ve.removals[Er],Rt()},Xt=function(Cr){var Er=Cr.descriptor;Ve.removals[Er.id]=!0,Ve.modified[Er.droppableId]=!0,Ve.additions[Er.id]&&delete Ve.additions[Er.id],Rt()},Nr=function(){if(!it)return;cancelAnimationFrame(it),it=null,Ve=kr()};return{add:zt,remove:Xt,stop:Nr}}var _n=function(q){var ye=q.scrollHeight,Ve=q.scrollWidth,it=q.height,Rt=q.width,zt=ue({x:Ve,y:ye},{x:Rt,y:it}),Xt={x:Math.max(0,zt.x),y:Math.max(0,zt.y)};return Xt},Vr=function(){var q=document.documentElement;return q||me(!1),q},_r=function(){var q=Vr(),ye=_n({scrollHeight:q.scrollHeight,scrollWidth:q.scrollWidth,width:q.clientWidth,height:q.clientHeight});return ye},Pn=function(){var q=Ra(),ye=_r(),Ve=q.y,it=q.x,Rt=Vr(),zt=Rt.clientWidth,Xt=Rt.clientHeight,Nr=it+zt,Qr=Ve+Xt,Cr=e({top:Ve,left:it,right:Nr,bottom:Qr}),Er={frame:Cr,scroll:{initial:q,current:q,max:ye,diff:{value:Ce,displacement:Ce}}};return Er},Ur=function(q){var ye=q.critical,Ve=q.scrollOptions,it=q.registry;si();var Rt=Pn(),zt=Rt.scroll.current,Xt=ye.droppable,Nr=it.droppable.getAllByType(Xt.type).map(function(Kr){return Kr.callbacks.getDimensionAndWatchScroll(zt,Ve)}),Qr=it.draggable.getAllByType(ye.draggable.type).map(function(Kr){return Kr.getDimension(zt)}),Cr={draggables:ot(Qr),droppables:Mt(Nr)};ki();var Er={dimensions:Cr,critical:ye,viewport:Rt};return Er};function En(De,q,ye){if(ye.descriptor.id===q.id)return!1;if(ye.descriptor.type!==q.type)return!1;var Ve=De.droppable.getById(ye.descriptor.droppableId);return!(Ve.descriptor.mode!=="virtual")}var jn=function(q,ye){var Ve=null,it=Lr({callbacks:{publish:ye.publishWhileDragging,collectionStarting:ye.collectionStarting},registry:q}),Rt=function(Cn,oi){if(q.droppable.exists(Cn)||me(!1),!Ve)return;ye.updateDroppableIsEnabled({id:Cn,isEnabled:oi})},zt=function(Cn,oi){if(!Ve)return;q.droppable.exists(Cn)||me(!1),ye.updateDroppableIsCombineEnabled({id:Cn,isCombineEnabled:oi})},Xt=function(Cn,oi){if(!Ve)return;q.droppable.exists(Cn)||me(!1),ye.updateDroppableScroll({id:Cn,newScroll:oi})},Nr=function(Cn,oi){if(!Ve)return;q.droppable.getById(Cn).callbacks.scroll(oi)},Qr=function(){if(!Ve)return;it.stop();var Cn=Ve.critical.droppable;q.droppable.getAllByType(Cn.type).forEach(function(oi){return oi.callbacks.dragStopped()}),Ve.unsubscribe(),Ve=null},Cr=function(Cn){Ve||me(!1);var oi=Ve.critical.draggable;Cn.type==="ADDITION"&&(En(q,oi,Cn.value)&&it.add(Cn.value)),Cn.type==="REMOVAL"&&(En(q,oi,Cn.value)&&it.remove(Cn.value))},Er=function(Cn){Ve&&me(!1);var oi=q.draggable.getById(Cn.draggableId),hi=q.droppable.getById(oi.descriptor.droppableId),ji={draggable:oi.descriptor,droppable:hi.descriptor},Oi=q.subscribe(Cr);return Ve={critical:ji,unsubscribe:Oi},Ur({critical:ji,registry:q,scrollOptions:Cn.scrollOptions})},Kr={updateDroppableIsEnabled:Rt,updateDroppableIsCombineEnabled:zt,scrollDroppable:Nr,updateDroppableScroll:Xt,startPublishing:Er,stopPublishing:Qr};return Kr},Hn=function(q,ye){return q.phase==="IDLE"?!0:q.phase!=="DROP_ANIMATING"||q.completed.result.draggableId===ye?!1:q.completed.result.reason==="DROP"},Bn=function(q){window.scrollBy(q.x,q.y)},ri=I(function(De){return Yt(De).filter(function(q){return q.isEnabled?!!q.frame:!1})}),Yn=function(q,ye){var Ve=ee(ri(ye),function(it){return it.frame||me(!1),sn(it.frame.pageMarginBox)(q)});return Ve},ii=function(q){var ye=q.center,Ve=q.destination,it=q.droppables;if(Ve){var Rt=it[Ve];return Rt.frame?Rt:null}var zt=Yn(ye,it);return zt},ai={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(q){return Math.pow(q,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Pi=function(q,ye){var Ve=q[ye.size]*ai.startFromPercentage,it=q[ye.size]*ai.maxScrollAtPercentage,Rt={startScrollingFrom:Ve,maxScrollValueAt:it};return Rt},bi=function(q){var ye=q.startOfRange,Ve=q.endOfRange,it=q.current,Rt=Ve-ye;if(Rt===0)return 0;var zt=it-ye,Xt=zt/Rt;return Xt},Ki=1,Aa=function(q,ye){if(q>ye.startScrollingFrom)return 0;if(q<=ye.maxScrollValueAt)return ai.maxPixelScroll;if(q===ye.startScrollingFrom)return Ki;var Ve=bi({startOfRange:ye.maxScrollValueAt,endOfRange:ye.startScrollingFrom,current:q}),it=1-Ve,Rt=ai.maxPixelScroll*ai.ease(it);return Math.ceil(Rt)},ea=ai.durationDampening.accelerateAt,Ji=ai.durationDampening.stopDampeningAt,sa=function(q,ye){var Ve=ye,it=Ji,Rt=Date.now(),zt=Rt-Ve;if(zt>=Ji)return q;if(zt<ea)return Ki;var Xt=bi({startOfRange:ea,endOfRange:it,current:zt}),Nr=q*ai.ease(Xt);return Math.ceil(Nr)},fa=function(q){var ye=q.distanceToEdge,Ve=q.thresholds,it=q.dragStartTime,Rt=q.shouldUseTimeDampening,zt=Aa(ye,Ve);return zt===0?0:Rt?Math.max(sa(zt,it),Ki):zt},xo=function(q){var ye=q.container,Ve=q.distanceToEdges,it=q.dragStartTime,Rt=q.axis,zt=q.shouldUseTimeDampening,Xt=Pi(ye,Rt),Nr=Ve[Rt.end]<Ve[Rt.start];return Nr?fa({distanceToEdge:Ve[Rt.end],thresholds:Xt,dragStartTime:it,shouldUseTimeDampening:zt}):-1*fa({distanceToEdge:Ve[Rt.start],thresholds:Xt,dragStartTime:it,shouldUseTimeDampening:zt})},Qa=function(q){var ye=q.container,Ve=q.subject,it=q.proposedScroll,Rt=Ve.height>ye.height,zt=Ve.width>ye.width;return!zt&&!Rt?it:zt&&Rt?null:{x:zt?0:it.x,y:Rt?0:it.y}},Wi=Re(function(De){return De===0?0:De}),qi=function(q){var ye=q.dragStartTime,Ve=q.container,it=q.subject,Rt=q.center,zt=q.shouldUseTimeDampening,Xt={top:Rt.y-Ve.top,right:Ve.right-Rt.x,bottom:Ve.bottom-Rt.y,left:Rt.x-Ve.left},Nr=xo({container:Ve,distanceToEdges:Xt,dragStartTime:ye,axis:Mn,shouldUseTimeDampening:zt}),Qr=xo({container:Ve,distanceToEdges:Xt,dragStartTime:ye,axis:Ft,shouldUseTimeDampening:zt}),Cr=Wi({x:Qr,y:Nr});if(Ae(Cr,Ce))return null;var Er=Qa({container:Ve,subject:it,proposedScroll:Cr});return Er?Ae(Er,Ce)?null:Er:null},ca=Re(function(De){return De===0?0:De>0?1:-1}),ma=function(){var De=function(ye,Ve){return ye<0?ye:ye>Ve?ye-Ve:0};return function(q){var ye=q.current,Ve=q.max,it=q.change,Rt=Me(ye,it),zt={x:De(Rt.x,Ve.x),y:De(Rt.y,Ve.y)};return Ae(zt,Ce)?null:zt}}(),Pa=function(q){var ye=q.max,Ve=q.current,it=q.change,Rt={x:Math.max(Ve.x,ye.x),y:Math.max(Ve.y,ye.y)},zt=ca(it),Xt=ma({max:Rt,current:Ve,change:zt});return Xt?zt.x!==0&&Xt.x===0?!0:zt.y!==0&&Xt.y===0:!0},La=function(q,ye){return Pa({current:q.scroll.current,max:q.scroll.max,change:ye})},Za=function(q,ye){if(!La(q,ye))return null;var Ve=q.scroll.max,it=q.scroll.current;return ma({current:it,max:Ve,change:ye})},eo=function(q,ye){var Ve=q.frame;return Ve?Pa({current:Ve.scroll.current,max:Ve.scroll.max,change:ye}):!1},ko=function(q,ye){var Ve=q.frame;return Ve&&eo(q,ye)?ma({current:Ve.scroll.current,max:Ve.scroll.max,change:ye}):null},jo=function(q){var ye=q.viewport,Ve=q.subject,it=q.center,Rt=q.dragStartTime,zt=q.shouldUseTimeDampening,Xt=qi({dragStartTime:Rt,container:ye.frame,subject:Ve,center:it,shouldUseTimeDampening:zt});return Xt&&La(ye,Xt)?Xt:null},cs=function(q){var ye=q.droppable,Ve=q.subject,it=q.center,Rt=q.dragStartTime,zt=q.shouldUseTimeDampening,Xt=ye.frame;if(!Xt)return null;var Nr=qi({dragStartTime:Rt,container:Xt.pageMarginBox,subject:Ve,center:it,shouldUseTimeDampening:zt});return Nr&&eo(ye,Nr)?Nr:null},Mo=function(q){var ye=q.state,Ve=q.dragStartTime,it=q.shouldUseTimeDampening,Rt=q.scrollWindow,zt=q.scrollDroppable,Xt=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:Ve,viewport:Cr,subject:Qr,center:Xt,shouldUseTimeDampening:it});if(Er){Rt(Er);return}}var Kr=ii({center:Xt,destination:Gn(ye.impact),droppables:ye.dimensions.droppables});if(!Kr)return;var qr=cs({dragStartTime:Ve,droppable:Kr,subject:Qr,center:Xt,shouldUseTimeDampening:it});qr&&zt(Kr.descriptor.id,qr)},Lo=function(q){var ye=q.scrollWindow,Ve=q.scrollDroppable,it=N(ye),Rt=N(Ve),zt=null,Xt=function(Er){zt||me(!1);var Kr=zt,qr=Kr.shouldUseTimeDampening,Cn=Kr.dragStartTime;Mo({state:Er,scrollWindow:it,scrollDroppable:Rt,dragStartTime:Cn,shouldUseTimeDampening:qr})},Nr=function(Er){si(),zt&&me(!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},ki(),qr&&Xt(Er)},Qr=function(){if(!zt)return;it.cancel(),Rt.cancel(),zt=null};return{start:Nr,stop:Qr,scroll:Xt}},Ba=function(q){var ye=q.move,Ve=q.scrollDroppable,it=q.scrollWindow,Rt=function(Cr,Er){var Kr=Me(Cr.current.client.selection,Er);ye({client:Kr})},zt=function(Cr,Er){if(!eo(Cr,Er))return Er;var Kr=ko(Cr,Er);if(!Kr)return Ve(Cr.descriptor.id,Er),null;var qr=ue(Er,Kr);Ve(Cr.descriptor.id,qr);var Cn=ue(Er,qr);return Cn},Xt=function(Cr,Er,Kr){if(!Cr)return Kr;if(!La(Er,Kr))return Kr;var qr=Za(Er,Kr);if(!qr)return it(Kr),null;var Cn=ue(Kr,qr);it(Cn);var oi=ue(Kr,Cn);return oi},Nr=function(Cr){var Er=Cr.scrollJumpRequest;if(!Er)return;var Kr=Gn(Cr.impact);Kr||me(!1);var qr=zt(Cr.dimensions.droppables[Kr],Er);if(!qr)return;var Cn=Cr.viewport,oi=Xt(Cr.isWindowScrollAllowed,Cn,qr);if(!oi)return;Rt(Cr,oi)};return Nr},za=function(q){var ye=q.scrollDroppable,Ve=q.scrollWindow,it=q.move,Rt=Lo({scrollWindow:Ve,scrollDroppable:ye}),zt=Ba({move:it,scrollWindow:Ve,scrollDroppable:ye}),Xt=function(Cr){if(Cr.phase!=="DRAGGING")return;if(Cr.movementMode==="FLUID"){Rt.scroll(Cr);return}if(!Cr.scrollJumpRequest)return;zt(Cr)},Nr={scroll:Xt,start:Rt.start,stop:Rt.stop};return Nr},Ta="data-rbd",Po=function(){var De=Ta+"-drag-handle";return{base:De,draggableId:De+"-draggable-id",contextId:De+"-context-id"}}(),Qo=function(){var De=Ta+"-draggable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),so=function(){var De=Ta+"-droppable";return{base:De,contextId:De+"-context-id",id:De+"-id"}}(),Os={contextId:Ta+"-scroll-container-context-id"},ho=function(q){return function(ye){return"["+ye+'="'+q+'"]'}},bo=function(q,ye){return q.map(function(Ve){var it=Ve.styles[ye];return it?Ve.selector+" { "+it+" }":""}).join(" ")},ds="pointer-events: none;",Ho=function(q){var ye=ho(q),Ve=function(){var Nr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ye(Po.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}}}(),it=function(){var Nr=`
|
|
|
transition: `+Di.outOfTheWay+`;
|
|
|
`;return{selector:ye(Qo.contextId),styles:{dragging:Nr,dropAnimating:Nr,userCancel:Nr}}}(),Rt={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;
|
|
|
`}},Xt=[it,Ve,Rt,zt];return{always:bo(Xt,"always"),resting:bo(Xt,"resting"),dragging:bo(Xt,"dragging"),dropAnimating:bo(Xt,"dropAnimating"),userCancel:bo(Xt,"userCancel")}},zo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?_.useLayoutEffect:_.useEffect,rn=function(){var q=document.querySelector("head");return q||me(!1),q},es=function(q){var ye=document.createElement("style");return q&&ye.setAttribute("nonce",q),ye.type="text/css",ye};function Js(De,q){var ye=r(function(){return Ho(De)},[De]),Ve=Object(_.useRef)(null),it=Object(_.useRef)(null),Rt=i(I(function(Er){var Kr=it.current;Kr||me(!1),Kr.textContent=Er}),[]),zt=i(function(Er){var Kr=Ve.current;Kr||me(!1),Kr.textContent=Er},[]);zo(function(){!Ve.current&&!it.current||me(!1);var Er=es(q),Kr=es(q);return Ve.current=Er,it.current=Kr,Er.setAttribute(Ta+"-always",De),Kr.setAttribute(Ta+"-dynamic",De),rn().appendChild(Er),rn().appendChild(Kr),zt(ye.always),Rt(ye.resting),function(){var qr=function(oi){var hi=oi.current;hi||me(!1),rn().removeChild(hi),oi.current=null};qr(Ve),qr(it)}},[q,zt,Rt,ye.always,ye.resting,De]);var Xt=i(function(){return Rt(ye.dragging)},[Rt,ye.dragging]),Nr=i(function(Er){if(Er==="DROP"){Rt(ye.dropAnimating);return}Rt(ye.userCancel)},[Rt,ye.dropAnimating,ye.userCancel]),Qr=i(function(){if(!it.current)return;Rt(ye.resting)},[Rt,ye.resting]),Cr=r(function(){return{dragging:Xt,dropping:Nr,resting:Qr}},[Xt,Nr,Qr]);return Cr}var Es=function(q){return q&&q.ownerDocument?q.ownerDocument.defaultView:window};function gs(De){return De instanceof Es(De).HTMLElement}function Ko(De,q){var ye="["+Po.contextId+'="'+De+'"]',Ve=ct(document.querySelectorAll(ye));if(!Ve.length)return null;var it=ee(Ve,function(Rt){return Rt.getAttribute(Po.draggableId)===q});return it&&gs(it)?it:null}function hs(De){var q=Object(_.useRef)({}),ye=Object(_.useRef)(null),Ve=Object(_.useRef)(null),it=Object(_.useRef)(!1),Rt=i(function(Kr,qr){var Cn={id:Kr,focus:qr};return q.current[Kr]=Cn,function(){var hi=q.current,ji=hi[Kr];ji!==Cn&&delete hi[Kr]}},[]),zt=i(function(Kr){var qr=Ko(De,Kr);qr&&qr!==document.activeElement&&qr.focus()},[De]),Xt=i(function(Kr,qr){ye.current===Kr&&(ye.current=qr)},[]),Nr=i(function(){if(Ve.current)return;if(!it.current)return;Ve.current=requestAnimationFrame(function(){Ve.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(Po.draggableId)!==Kr)return;ye.current=Kr},[]);zo(function(){return it.current=!0,function(){it.current=!1;var Kr=Ve.current;Kr&&cancelAnimationFrame(Kr)}},[]);var Cr=r(function(){return{register:Rt,tryRecordFocus:Qr,tryRestoreFocusRecorded:Nr,tryShiftRecord:Xt}},[Rt,Qr,Nr,Xt]);return Cr}function bs(){var De={draggables:{},droppables:{}},q=[];function ye(Er){return q.push(Er),function(){var qr=q.indexOf(Er);if(qr===-1)return;q.splice(qr,1)}}function Ve(Er){q.length&&q.forEach(function(Kr){return Kr(Er)})}function it(Er){return De.draggables[Er]||null}function Rt(Er){var Kr=it(Er);return Kr||me(!1),Kr}var zt={register:function(Kr){De.draggables[Kr.descriptor.id]=Kr,Ve({type:"ADDITION",value:Kr})},update:function(Kr,qr){var Cn=De.draggables[qr.descriptor.id];if(!Cn)return;if(Cn.uniqueId!==Kr.uniqueId)return;delete De.draggables[qr.descriptor.id],De.draggables[Kr.descriptor.id]=Kr},unregister:function(Kr){var qr=Kr.descriptor.id,Cn=it(qr);if(!Cn)return;if(Kr.uniqueId!==Cn.uniqueId)return;delete De.draggables[qr],Ve({type:"REMOVAL",value:Kr})},getById:Rt,findById:it,exists:function(Kr){return Boolean(it(Kr))},getAllByType:function(Kr){return Ue(De.draggables).filter(function(qr){return qr.descriptor.type===Kr})}};function Xt(Er){return De.droppables[Er]||null}function Nr(Er){var Kr=Xt(Er);return Kr||me(!1),Kr}var Qr={register:function(Kr){De.droppables[Kr.descriptor.id]=Kr},unregister:function(Kr){var qr=Xt(Kr.descriptor.id);if(!qr)return;if(Kr.uniqueId!==qr.uniqueId)return;delete De.droppables[Kr.descriptor.id]},getById:Nr,findById:Xt,exists:function(Kr){return Boolean(Xt(Kr))},getAllByType:function(Kr){return Ue(De.droppables).filter(function(qr){return qr.descriptor.type===Kr})}};function Cr(){De.draggables={},De.droppables={},q.length=0}return{draggable:zt,droppable:Qr,subscribe:ye,clean:Cr}}function ws(){var De=r(bs,[]);return Object(_.useEffect)(function(){return function(){requestAnimationFrame(De.clean)}},[De]),De}var qo=E.a.createContext(null),us=function(){var q=document.body;return q||me(!1),q},_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(q){return"rbd-announcement-"+q};function vo(De){var q=r(function(){return vs(De)},[De]),ye=Object(_.useRef)(null);Object(_.useEffect)(function(){var Rt=document.createElement("div");return ye.current=Rt,Rt.id=q,Rt.setAttribute("aria-live","assertive"),Rt.setAttribute("aria-atomic","true"),Object(A.a)(Rt.style,_s),us().appendChild(Rt),function(){setTimeout(function(){var Nr=us();Nr.contains(Rt)&&Nr.removeChild(Rt),Rt===ye.current&&(ye.current=null)})}},[q]);var Ve=i(function(it){var Rt=ye.current;if(Rt){Rt.textContent=it;return}},[]);return Ve}var to=0,Jo={separator:"::"};function ts(){to=0}function Ha(De,q){return q===void 0&&(q=Jo),r(function(){return""+De+q.separator+to++},[q.separator,De])}function Tt(De){var q=De.contextId,ye=De.uniqueId;return"rbd-hidden-text-"+q+"-"+ye}function Vt(De){var q=De.contextId,ye=De.text,Ve=Ha("hidden-text",{separator:"-"}),it=r(function(){return Tt({contextId:q,uniqueId:Ve})},[Ve,q]);return Object(_.useEffect)(function(){var zt=document.createElement("div");return zt.id=it,zt.textContent=ye,zt.style.display="none",us().appendChild(zt),function(){var Nr=us();Nr.contains(zt)&&Nr.removeChild(zt)}},[it,ye]),it}var hn=E.a.createContext(null),Vn={react:"^16.8.5","react-dom":"^16.8.5"},pt=/(\d+)\.(\d+)\.(\d+)/,ae=function(q){var ye=pt.exec(q);ye!=null||me(!1);var Ve=Number(ye[1]),it=Number(ye[2]),Rt=Number(ye[3]);return{major:Ve,minor:it,patch:Rt,raw:q}},pe=function(q,ye){return ye.major>q.major?!0:ye.major<q.major?!1:ye.minor>q.minor?!0:ye.minor<q.minor?!1:ye.patch>=q.patch},be=function(q,ye){var Ve=ae(q),it=ae(ye);if(pe(Ve,it))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
|
|
|
`,mt=function(q){var ye=q.doctype;if(!ye)return;ye.name.toLowerCase()!=="html",ye.publicId!==""};function Gt(De){}function Dr(De,q){Gt(function(){Object(_.useEffect)(function(){try{De()}catch(ye){Z(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ye.message+`
|
|
|
`)}},q)})}function Gr(){Dr(function(){be(Vn.react,E.a.version),mt(document)},[])}function fn(De){var q=Object(_.useRef)(De);return Object(_.useEffect)(function(){q.current=De}),q}function Kn(){var De=null;function q(){return Boolean(De)}function ye(zt){return zt===De}function Ve(zt){De&&me(!1);var Xt={abandon:zt};return De=Xt,Xt}function it(){De||me(!1),De=null}function Rt(){De&&(De.abandon(),it())}return{isClaimed:q,isActive:ye,claim:Ve,release:it,tryAbandon:Rt}}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(q){Ka[q.keyCode]&&q.preventDefault()},Is=function(){var De="visibilitychange";if(typeof document=="undefined")return De;var q=[De,"ms"+De,"webkit"+De,"moz"+De,"o"+De],ye=ee(q,function(Ve){return"on"+Ve in document});return ye||De}(),Go=0,la=5;function Vs(De,q){return Math.abs(q.x-De.x)>=la||Math.abs(q.y-De.y)>=la}var Hs={type:"IDLE"};function fs(De){var q=De.cancel,ye=De.completed,Ve=De.getPhase,it=De.setPhase;return[{eventName:"mousemove",fn:function(zt){var Xt=zt.button,Nr=zt.clientX,Qr=zt.clientY;if(Xt!==Go)return;var Cr={x:Nr,y:Qr},Er=Ve();if(Er.type==="DRAGGING"){zt.preventDefault(),Er.actions.move(Cr);return}Er.type==="PENDING"||me(!1);var Kr=Er.point;if(!Vs(Kr,Cr))return;zt.preventDefault();var qr=Er.actions.fluidLift(Cr);it({type:"DRAGGING",actions:qr})}},{eventName:"mouseup",fn:function(zt){var Xt=Ve();if(Xt.type!=="DRAGGING"){q();return}zt.preventDefault(),Xt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"mousedown",fn:function(zt){Ve().type==="DRAGGING"&&zt.preventDefault(),q()}},{eventName:"keydown",fn:function(zt){var Xt=Ve();if(Xt.type==="PENDING"){q();return}if(zt.keyCode===Ei){zt.preventDefault(),q();return}is(zt)}},{eventName:"resize",fn:q},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ve().type==="PENDING"&&q()}},{eventName:"webkitmouseforcedown",fn:function(zt){var Xt=Ve();if(Xt.type!=="IDLE"||me(!1),Xt.actions.shouldRespectForcePress()){q();return}zt.preventDefault()}},{eventName:Is,fn:q}]}function as(De){var q=Object(_.useRef)(Hs),ye=Object(_.useRef)(le),Ve=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=De.findClosestDraggableId(Er);if(!Kr)return;var qr=De.tryGetLock(Kr,zt,{sourceEvent:Er});if(!qr)return;Er.preventDefault();var Cn={x:Er.clientX,y:Er.clientY};ye.current(),Qr(qr,Cn)}}},[De]),it=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Er){if(Er.defaultPrevented)return;var Kr=De.findClosestDraggableId(Er);if(!Kr)return;var qr=De.findOptionsForDraggable(Kr);if(!qr)return;if(qr.shouldRespectForcePress)return;if(!De.canGetLock(Kr))return;Er.preventDefault()}}},[De]),Rt=i(function(){var Er={passive:!1,capture:!0};ye.current=ve(window,[it,Ve],Er)},[it,Ve]),zt=i(function(){var Cr=q.current;if(Cr.type==="IDLE")return;q.current=Hs,ye.current(),Rt()},[Rt]),Xt=i(function(){var Cr=q.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:Xt,completed:zt,getPhase:function(){return q.current},setPhase:function(Cn){q.current=Cn}});ye.current=ve(window,Kr,Er)},[Xt,zt]),Qr=i(function(Er,Kr){q.current.type==="IDLE"||me(!1),q.current={type:"PENDING",point:Kr,actions:Er},Nr()},[Nr]);zo(function(){return Rt(),function(){ye.current()}},[Rt])}var Ss;function xl(){}var vl=(Ss={},Ss[Oa]=!0,Ss[va]=!0,Ss[wo]=!0,Ss[fo]=!0,Ss);function zs(De,q){function ye(){q(),De.cancel()}function Ve(){q(),De.drop()}return[{eventName:"keydown",fn:function(Rt){if(Rt.keyCode===Ei){Rt.preventDefault(),ye();return}if(Rt.keyCode===Fi){Rt.preventDefault(),Ve();return}if(Rt.keyCode===No){Rt.preventDefault(),De.moveDown();return}if(Rt.keyCode===Yo){Rt.preventDefault(),De.moveUp();return}if(Rt.keyCode===Vo){Rt.preventDefault(),De.moveRight();return}if(Rt.keyCode===lo){Rt.preventDefault(),De.moveLeft();return}if(vl[Rt.keyCode]){Rt.preventDefault();return}is(Rt)}},{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(De){var q=Object(_.useRef)(xl),ye=r(function(){return{eventName:"keydown",fn:function(Rt){if(Rt.defaultPrevented)return;if(Rt.keyCode!==Fi)return;var zt=De.findClosestDraggableId(Rt);if(!zt)return;var Xt=De.tryGetLock(zt,Cr,{sourceEvent:Rt});if(!Xt)return;Rt.preventDefault();var Nr=!0,Qr=Xt.snapLift();q.current();function Cr(){Nr||me(!1),Nr=!1,q.current(),Ve()}q.current=ve(window,zs(Qr,Cr),{capture:!0,passive:!1})}}},[De]),Ve=i(function(){var Rt={passive:!1,capture:!0};q.current=ve(window,[ye],Rt)},[ye]);zo(function(){return Ve(),function(){q.current()}},[Ve])}var As={type:"IDLE"},nl=120,ks=.15;function po(De){var q=De.cancel,ye=De.getPhase;return[{eventName:"orientationchange",fn:q},{eventName:"resize",fn:q},{eventName:"contextmenu",fn:function(it){it.preventDefault()}},{eventName:"keydown",fn:function(it){if(ye().type!=="DRAGGING"){q();return}it.keyCode===Ei&&it.preventDefault(),q()}},{eventName:Is,fn:q}]}function Wa(De){var q=De.cancel,ye=De.completed,Ve=De.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Rt){var zt=Ve();if(zt.type!=="DRAGGING"){q();return}zt.hasMoved=!0;var Xt=Rt.touches[0],Nr=Xt.clientX,Qr=Xt.clientY,Cr={x:Nr,y:Qr};Rt.preventDefault(),zt.actions.move(Cr)}},{eventName:"touchend",fn:function(Rt){var zt=Ve();if(zt.type!=="DRAGGING"){q();return}Rt.preventDefault(),zt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"touchcancel",fn:function(Rt){if(Ve().type!=="DRAGGING"){q();return}Rt.preventDefault(),q()}},{eventName:"touchforcechange",fn:function(Rt){var zt=Ve();zt.type!=="IDLE"||me(!1);var Xt=Rt.touches[0];if(!Xt)return;var Nr=Xt.force>=ks;if(!Nr)return;var Qr=zt.actions.shouldRespectForcePress();if(zt.type==="PENDING"){Qr&&q();return}if(Qr){if(zt.hasMoved){Rt.preventDefault();return}q();return}Rt.preventDefault()}},{eventName:Is,fn:q}]}function Eo(De){var q=Object(_.useRef)(As),ye=Object(_.useRef)(le),Ve=i(function(){return q.current},[]),it=i(function(qr){q.current=qr},[]),Rt=r(function(){return{eventName:"touchstart",fn:function(qr){if(qr.defaultPrevented)return;var Cn=De.findClosestDraggableId(qr);if(!Cn)return;var oi=De.tryGetLock(Cn,Xt,{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)}}},[De]),zt=i(function(){var qr={capture:!0,passive:!1};ye.current=ve(window,[Rt],qr)},[Rt]),Xt=i(function(){var Kr=q.current;if(Kr.type==="IDLE")return;Kr.type==="PENDING"&&clearTimeout(Kr.longPressTimerId),it(As),ye.current(),zt()},[zt,it]),Nr=i(function(){var Kr=q.current;Xt(),Kr.type==="DRAGGING"&&Kr.actions.cancel({shouldBlockNextClick:!0}),Kr.type==="PENDING"&&Kr.actions.abort()},[Xt]),Qr=i(function(){var qr={capture:!0,passive:!1},Cn={cancel:Nr,completed:Xt,getPhase:Ve},oi=ve(window,Wa(Cn),qr),hi=ve(window,po(Cn),qr);ye.current=function(){oi(),hi()}},[Nr,Ve,Xt]),Cr=i(function(){var qr=Ve();qr.type==="PENDING"||me(!1);var Cn=qr.actions.fluidLift(qr.point);it({type:"DRAGGING",actions:Cn,hasMoved:!1})},[Ve,it]),Er=i(function(qr,Cn){Ve().type==="IDLE"||me(!1);var oi=setTimeout(Cr,nl);it({type:"PENDING",point:Cn,actions:qr,longPressTimerId:oi}),Qr()},[Qr,Ve,it,Cr]);zo(function(){return zt(),function(){ye.current();var Cn=Ve();Cn.type==="PENDING"&&(clearTimeout(Cn.longPressTimerId),it(As))}},[Ve,zt,it]),zo(function(){var qr=ve(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qr},[])}function Xo(De){Gt(function(){var q=fn(De);Dr(function(){q.current.length===De.length||me(!1)})})}var $o={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Co(De,q){if(q==null)return!1;var ye=Boolean($o[q.tagName.toLowerCase()]);if(ye)return!0;var Ve=q.getAttribute("contenteditable");return Ve==="true"||Ve===""?!0:q===De?!1:Co(De,q.parentElement)}function rs(De,q){var ye=q.target;return gs(ye)?Co(De,ye):!1}var os=function(q){return e(q.getBoundingClientRect()).center};function Fs(De){return De instanceof Es(De).Element}var ol=function(){var De="matches";if(typeof document=="undefined")return De;var q=[De,"msMatchesSelector","webkitMatchesSelector"],ye=ee(q,function(Ve){return Ve in Element.prototype});return ye||De}();function Zs(De,q){return De==null?null:De[ol](q)?De:Zs(De.parentElement,q)}function dl(De,q){return De.closest?De.closest(q):Zs(De,q)}function hl(De){return"["+Po.contextId+'="'+De+'"]'}function sl(De,q){var ye=q.target;if(!Fs(ye))return null;var Ve=hl(De),it=dl(ye,Ve);return it&&gs(it)?it:null}function yl(De,q){var ye=sl(De,q);return ye?ye.getAttribute(Po.draggableId):null}function Ns(De,q){var ye="["+Qo.contextId+'="'+De+'"]',Ve=ct(document.querySelectorAll(ye)),it=ee(Ve,function(Rt){return Rt.getAttribute(Qo.id)===q});return it&&gs(it)?it:null}function ys(De){De.preventDefault()}function Ds(De){var q=De.expected,ye=De.phase,Ve=De.isLockActive,it=De.shouldWarn;return Ve()?!(q!==ye):!1}function xs(De){var q=De.lockAPI,ye=De.store,Ve=De.registry,it=De.draggableId;if(q.isClaimed())return!1;var Rt=Ve.draggable.findById(it);return Rt&&Rt.options.isEnabled?!!Hn(ye.getState(),it):!1}function Xs(De){var q=De.lockAPI,ye=De.contextId,Ve=De.store,it=De.registry,Rt=De.draggableId,zt=De.forceSensorStop,Xt=De.sourceEvent,Nr=xs({lockAPI:q,store:Ve,registry:it,draggableId:Rt});if(!Nr)return null;var Qr=it.draggable.getById(Rt),Cr=Ns(ye,Qr.descriptor.id);if(!Cr)return null;if(Xt&&!Qr.options.canDragInteractiveElements&&rs(Cr,Xt))return null;var Er=q.claim(zt||le),Kr="PRE_DRAG";function qr(){return Qr.options.shouldRespectForcePress}function Cn(){return q.isActive(Er)}function oi(Sa,So){Ds({expected:Sa,phase:Kr,isLockActive:Cn,shouldWarn:!0})&&Ve.dispatch(So())}var hi=oi.bind(null,"DRAGGING");function ji(Sa){function So(){q.release(),Kr="COMPLETED"}Kr!=="PRE_DRAG"&&(So(),Kr==="PRE_DRAG"||me(!1)),Ve.dispatch(lr(Sa.liftActionArgs)),Kr="DRAGGING";function Fo(P,W){if(W===void 0&&(W={shouldBlockNextClick:!1}),Sa.cleanup(),W.shouldBlockNextClick){var $=ve(window,[{eventName:"click",fn:ys,options:{once:!0,passive:!1,capture:!0}}]);setTimeout($)}So(),Ve.dispatch(ci({reason:P}))}return Object(A.a)({isActive:function(){return Ds({expected:"DRAGGING",phase:Kr,isLockActive:Cn,shouldWarn:!1})},shouldRespectForcePress:qr,drop:function(W){return Fo("DROP",W)},cancel:function(W){return Fo("CANCEL",W)}},Sa.actions)}function Oi(Sa){var So=N(function(P){hi(function(){return vt({client:P})})}),Fo=ji({liftActionArgs:{id:Rt,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:Rt,clientSelection:os(Cr),movementMode:"SNAP"},cleanup:le,actions:Sa})}function Qi(){var Sa=Ds({expected:"PRE_DRAG",phase:Kr,isLockActive:Cn,shouldWarn:!0});Sa&&q.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(De){var q=De.contextId,ye=De.store,Ve=De.registry,it=De.customSensors,Rt=De.enableDefaultSensors,zt=[].concat(Rt?ll:[],it||[]),Xt=Object(_.useState)(function(){return Kn()})[0],Nr=i(function(Oi,wa){Oi.isDragging&&!wa.isDragging&&Xt.tryAbandon()},[Xt]);zo(function(){var Oi=ye.getState(),wa=ye.subscribe(function(){var Qi=ye.getState();Nr(Oi,Qi),Oi=Qi});return wa},[Xt,ye,Nr]),zo(function(){return Xt.tryAbandon},[Xt.tryAbandon]);var Qr=i(function(ji){return xs({lockAPI:Xt,registry:Ve,store:ye,draggableId:ji})},[Xt,Ve,ye]),Cr=i(function(ji,Oi,wa){return Xs({lockAPI:Xt,registry:Ve,contextId:q,store:ye,draggableId:ji,forceSensorStop:Oi,sourceEvent:wa&&wa.sourceEvent?wa.sourceEvent:null})},[q,Xt,Ve,ye]),Er=i(function(ji){return yl(q,ji)},[q]),Kr=i(function(ji){var Oi=Ve.draggable.findById(ji);return Oi?Oi.options:null},[Ve.draggable]),qr=i(function(){if(!Xt.isClaimed())return;Xt.tryAbandon(),ye.getState().phase!=="IDLE"&&ye.dispatch(Ln())},[Xt,ye]),Cn=i(Xt.isClaimed,[Xt]),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(q){return{onBeforeCapture:q.onBeforeCapture,onBeforeDragStart:q.onBeforeDragStart,onDragStart:q.onDragStart,onDragEnd:q.onDragEnd,onDragUpdate:q.onDragUpdate}};function $s(De){return De.current||me(!1),De.current}function Nl(De){var q=De.contextId,ye=De.setCallbacks,Ve=De.sensors,it=De.nonce,Rt=De.dragHandleUsageInstructions,zt=Object(_.useRef)(null);Gr();var Xt=fn(De),Nr=i(function(){return jl(Xt.current)},[Xt]),Qr=vo(q),Cr=Vt({contextId:q,text:Rt}),Er=Js(q,it),Kr=i(function(P){$s(zt).dispatch(P)},[]),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:vt},Kr)))},[oi.scrollDroppable,Kr]),ji=hs(q),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 P=$s(zt),W=P.getState();W.phase!=="IDLE"&&P.dispatch(Ln())},[]),Qi=i(function(){var P=$s(zt).getState();return P.isDragging||P.phase==="DROP_ANIMATING"},[]),Ua=r(function(){return{isDragging:Qi,tryAbort:wa}},[Qi,wa]);ye(Ua);var Sa=i(function(P){return Hn($s(zt).getState(),P)},[]),So=i(function(){return Br($s(zt).getState())},[]),Fo=r(function(){return{marshal:oi,focus:ji,contextId:q,canLift:Sa,isMovementAllowed:So,dragHandleUsageInstructionsId:Cr,registry:Cn}},[q,oi,Cr,ji,Sa,So,Cn]);return El({contextId:q,store:Oi,registry:Cn,customSensors:Ve,enableDefaultSensors:De.enableDefaultSensors!==!1}),Object(_.useEffect)(function(){return wa},[wa]),E.a.createElement(hn.Provider,{value:Fo},E.a.createElement(m.a,{context:qo,store:Oi},De.children))}var Pl=0;function yu(){Pl=0}function cu(){return r(function(){return""+Pl++},[])}function eu(){yu(),ts()}function tu(De){var q=cu(),ye=De.dragHandleUsageInstructions||de.dragHandleUsageInstructions;return E.a.createElement(Fe,null,function(Ve){return E.a.createElement(Nl,{nonce:De.nonce,contextId:q,setCallbacks:Ve,dragHandleUsageInstructions:ye,enableDefaultSensors:De.enableDefaultSensors,sensors:De.sensors,onBeforeCapture:De.onBeforeCapture,onBeforeDragStart:De.onBeforeDragStart,onDragStart:De.onDragStart,onDragUpdate:De.onDragUpdate,onDragEnd:De.onDragEnd},De.children)})}var Vl=function(q){return function(ye){return q===ye}},Ys=Vl("scroll"),il=Vl("auto"),fl=Vl("visible"),kl=function(q,ye){return ye(q.overflowX)||ye(q.overflowY)},du=function(q,ye){return ye(q.overflowX)&&ye(q.overflowY)},ru=function(q){var ye=window.getComputedStyle(q),Ve={overflowX:ye.overflowX,overflowY:ye.overflowY};return kl(Ve,Ys)||kl(Ve,il)},nu=function(){return!1;var q,ye;if(!ru(q))return!1;var Ve,it;if(du(it,fl))return!1},Qs=function De(q){return q==null?null:q===document.body?nu()?q:null:q===document.documentElement?null:ru(q)?q:De(q.parentElement)},iu=function(q){if(!q)return;var ye=Qs(q.parentElement);if(!ye)return},au=function(q){return{x:q.scrollLeft,y:q.scrollTop}},bu=function De(q){if(!q)return!1;var ye=window.getComputedStyle(q);return ye.position==="fixed"?!0:De(q.parentElement)},bl=function(q){var ye=Qs(q),Ve=bu(q);return{closestScrollable:ye,isFixedOnPage:Ve}},Fl=function(q){var ye=q.descriptor,Ve=q.isEnabled,it=q.isCombineEnabled,Rt=q.isFixedOnPage,zt=q.direction,Xt=q.client,Nr=q.page,Qr=q.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:Ft,Kr=He({page:Nr,withPlaceholder:null,axis:Er,frame:Cr}),qr={descriptor:ye,isCombineEnabled:it,isFixedOnPage:Rt,axis:Er,isEnabled:Ve,client:Xt,page:Nr,frame:Cr,subject:Kr};return qr},Hl=function(q,ye){var Ve=x(q);if(!ye)return Ve;if(q!==ye)return Ve;var it=Ve.paddingBox.top-ye.scrollTop,Rt=Ve.paddingBox.left-ye.scrollLeft,zt=it+ye.scrollHeight,Xt=Rt+ye.scrollWidth,Nr={top:it,right:Xt,bottom:zt,left:Rt},Qr=l(Nr,Ve.border),Cr=u({borderBox:Qr,margin:Ve.margin,border:Ve.border,padding:Ve.padding});return Cr},Gl=function(q){var ye=q.ref,Ve=q.descriptor,it=q.env,Rt=q.windowScroll,zt=q.direction,Xt=q.isDropDisabled,Nr=q.isCombineEnabled,Qr=q.shouldClipSubject,Cr=it.closestScrollable,Er=Hl(ye,Cr),Kr=v(Er,Rt),qr=function(){if(!Cr)return null;var oi=x(Cr),hi={scrollHeight:Cr.scrollHeight,scrollWidth:Cr.scrollWidth};return{client:oi,page:v(oi,Rt),scroll:au(Cr),scrollSize:hi,shouldClipSubject:Qr}}(),Cn=Fl({descriptor:Ve,isEnabled:!Xt,isCombineEnabled:Nr,isFixedOnPage:it.isFixedOnPage,direction:zt,client:Er,page:Kr,closest:qr});return Cn},Tl={passive:!1},Tu={passive:!0},Cu=function(q){return q.shouldPublishImmediately?Tl:Tu};function Cl(De){var q=Object(_.useContext)(De);return q||me(!1),q}var ou=function(q){return q&&q.env.closestScrollable||null};function hu(De){var q=Object(_.useRef)(null),ye=Cl(hn),Ve=Ha("droppable"),it=ye.registry,Rt=ye.marshal,zt=fn(De),Xt=r(function(){return{id:De.droppableId,type:De.type,mode:De.mode}},[De.droppableId,De.mode,De.type]),Nr=Object(_.useRef)(Xt),Qr=r(function(){return I(function(Qi,Ua){q.current||me(!1);var Sa={x:Qi,y:Ua};Rt.updateDroppableScroll(Xt.id,Sa)})},[Xt.id,Rt]),Cr=i(function(){var Qi=q.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=q.current,Ua=ou(Qi);Qi&&Ua||me(!1);var Sa=Qi.scrollOptions;if(Sa.shouldPublishImmediately){Er();return}Kr()},[Kr,Er]),Cn=i(function(Qi,Ua){q.current&&me(!1);var Sa=zt.current,So=Sa.getDroppableRef();So||me(!1);var Fo=bl(So),P={ref:So,descriptor:Xt,env:Fo,scrollOptions:Ua};q.current=P;var W=Gl({ref:So,descriptor:Xt,env:Fo,windowScroll:Qi,direction:Sa.direction,isDropDisabled:Sa.isDropDisabled,isCombineEnabled:Sa.isCombineEnabled,shouldClipSubject:!Sa.ignoreContainerClipping}),$=Fo.closestScrollable;return $&&($.setAttribute(Os.contextId,ye.contextId),$.addEventListener("scroll",qr,Cu(P.scrollOptions))),W},[ye.contextId,Xt,qr,zt]),oi=i(function(){var Qi=q.current,Ua=ou(Qi);return Qi&&Ua||me(!1),au(Ua)},[]),hi=i(function(){var Qi=q.current;Qi||me(!1);var Ua=ou(Qi);if(q.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=q.current;Ua||me(!1);var Sa=ou(Ua);Sa||me(!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:Ve,descriptor:Xt,callbacks:Oi}},[Oi,Xt,Ve]);zo(function(){return Nr.current=wa.descriptor,it.droppable.register(wa),function(){q.current&&hi(),it.droppable.unregister(wa)}},[Oi,Xt,hi,wa,Rt,it.droppable]),zo(function(){if(!q.current)return;Rt.updateDroppableIsEnabled(Nr.current.id,!De.isDropDisabled)},[De.isDropDisabled,Rt]),zo(function(){if(!q.current)return;Rt.updateDroppableIsCombineEnabled(Nr.current.id,De.isCombineEnabled)},[De.isCombineEnabled,Rt])}function su(){}var Rs={width:0,height:0,margin:Ut},el=function(q){var ye=q.isAnimatingOpenOnMount,Ve=q.placeholder,it=q.animate;return ye||it==="close"?Rs:{height:Ve.client.borderBox.height,width:Ve.client.borderBox.width,margin:Ve.client.margin}},Bl=function(q){var ye=q.isAnimatingOpenOnMount,Ve=q.placeholder,it=q.animate,Rt=el({isAnimatingOpenOnMount:ye,placeholder:Ve,animate:it});return{display:Ve.display,boxSizing:"border-box",width:Rt.width,height:Rt.height,marginTop:Rt.margin.top,marginRight:Rt.margin.right,marginBottom:Rt.margin.bottom,marginLeft:Rt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:it!=="none"?Di.placeholder:null}};function wu(De){var q=Object(_.useRef)(null),ye=i(function(){if(!q.current)return;clearTimeout(q.current),q.current=null},[]),Ve=De.animate,it=De.onTransitionEnd,Rt=De.onClose,zt=De.contextId,Xt=Object(_.useState)(De.animate==="open"),Nr=Xt[0],Qr=Xt[1];Object(_.useEffect)(function(){return Nr?Ve!=="open"?(ye(),Qr(!1),su):q.current?su:(q.current=setTimeout(function(){q.current=null,Qr(!1)}),ye):su},[Ve,Nr,ye]);var Cr=i(function(Kr){if(Kr.propertyName!=="height")return;it(),Ve==="close"&&Rt()},[Ve,Rt,it]),Er=Bl({isAnimatingOpenOnMount:Nr,animate:De.animate,placeholder:De.placeholder});return E.a.createElement(De.placeholder.tagName,{style:Er,"data-rbd-placeholder-context-id":zt,onTransitionEnd:Cr,ref:De.innerRef})}var fu=E.a.memo(wu),Xl=E.a.createContext(null);function Kl(De){De&&gs(De)||me(!1)}function lu(De){return typeof De=="boolean"}function pu(De,q){q.forEach(function(ye){return ye(De)})}var mu=[function(q){var ye=q.props;ye.droppableId||me(!1),typeof ye.droppableId=="string"||me(!1)},function(q){var ye=q.props;lu(ye.isDropDisabled)||me(!1),lu(ye.isCombineEnabled)||me(!1),lu(ye.ignoreContainerClipping)||me(!1)},function(q){var ye=q.getDroppableRef;Kl(ye())}],pl=[function(q){var ye=q.props,Ve=q.getPlaceholderRef;if(!ye.placeholder)return;var it=Ve();if(it)return}],wl=[function(q){var ye=q.props;ye.renderClone||me(!1)},function(q){var ye=q.getPlaceholderRef;ye()&&me(!1)}];function Dl(De){Dr(function(){pu(De,mu),De.props.mode==="standard"&&pu(De,pl),De.props.mode==="virtual"&&pu(De,wl)})}var Bo=function(De){Object(C.a)(q,De);function q(){for(var Ve,it=arguments.length,Rt=new Array(it),zt=0;zt<it;zt++)Rt[zt]=arguments[zt];return Ve=De.call.apply(De,[this].concat(Rt))||this,Ve.state={isVisible:Boolean(Ve.props.on),data:Ve.props.on,animate:Ve.props.shouldAnimate&&Ve.props.on?"open":"none"},Ve.onClose=function(){if(Ve.state.animate!=="close")return;Ve.setState({isVisible:!1})},Ve}q.getDerivedStateFromProps=function(it,Rt){return it.shouldAnimate?it.on?{isVisible:!0,data:it.on,animate:"open"}:Rt.isVisible?{isVisible:!0,data:Rt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(it.on),data:it.on,animate:"none"}};var ye=q.prototype;return ye.render=function(){if(!this.state.isVisible)return null;var it={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(it)},q}(E.a.PureComponent),Na={dragging:5e3,dropAnimating:4500},ro=function(q,ye){return ye?Di.drop(ye.duration):q?Di.snap:Di.fluid},Io=function(q,ye){return q?ye?Ti.opacity.drop:Ti.opacity.combining:null},Bs=function(q){return q.forceShouldAnimate!=null?q.forceShouldAnimate:q.mode==="SNAP"};function Ol(De){var q=De.dimension,ye=q.client,Ve=De.offset,it=De.combineWith,Rt=De.dropping,zt=Boolean(it),Xt=Bs(De),Nr=Boolean(Rt),Qr=Nr?aa.drop(Ve,zt):aa.moveTo(Ve),Cr={position:"fixed",top:ye.marginBox.top,left:ye.marginBox.left,boxSizing:"border-box",width:ye.borderBox.width,height:ye.borderBox.height,transition:ro(Xt,Rt),transform:Qr,opacity:Io(zt,Nr),zIndex:Nr?Na.dropAnimating:Na.dragging,pointerEvents:"none"};return Cr}function _l(De){return{transform:aa.moveTo(De.offset),transition:De.shouldAnimateDisplacement?null:"none"}}function ml(De){return De.type==="DRAGGING"?Ol(De):_l(De)}function Al(De,q,ye){ye===void 0&&(ye=Ce);var Ve=window.getComputedStyle(q),it=q.getBoundingClientRect(),Rt=y(it,Ve),zt=v(Rt,ye),Xt={client:Rt,tagName:q.tagName.toLowerCase(),display:Ve.display},Nr={x:Rt.marginBox.width,y:Rt.marginBox.height},Qr={descriptor:De,placeholder:Xt,displaceBy:Nr,client:Rt,page:zt};return Qr}function Il(De){var q=Ha("draggable"),ye=De.descriptor,Ve=De.registry,it=De.getDraggableRef,Rt=De.canDragInteractiveElements,zt=De.shouldRespectForcePress,Xt=De.isEnabled,Nr=r(function(){return{canDragInteractiveElements:Rt,shouldRespectForcePress:zt,isEnabled:Xt}},[Rt,Xt,zt]),Qr=i(function(qr){var Cn=it();return Cn||me(!1),Al(ye,Cn,qr)},[ye,it]),Cr=r(function(){return{uniqueId:q,descriptor:ye,options:Nr,getDimension:Qr}},[ye,Qr,Nr,q]),Er=Object(_.useRef)(Cr),Kr=Object(_.useRef)(!0);zo(function(){return Ve.draggable.register(Er.current),function(){return Ve.draggable.unregister(Er.current)}},[Ve.draggable]),zo(function(){if(Kr.current){Kr.current=!1;return}var qr=Er.current;Er.current=Cr,Ve.draggable.update(Cr,qr)},[Cr,Ve.draggable])}function Ll(De,q,ye){Dr(function(){function Ve(Rt){return"Draggable[id: "+Rt+"]: "}var it=De.draggableId;if(it||me(!1),typeof it=="string"||me(!1),J(De.index)||me(!1),De.mapped.type==="DRAGGING")return;Kl(ye()),De.isEnabled&&(Ko(q,it)||me(!1))})}function Ks(De){Gt(function(){var q=Object(_.useRef)(De);Dr(function(){De===q.current||me(!1)},[De])})}function Yl(De){De.preventDefault()}function gu(De){var q=Object(_.useRef)(null),ye=i(function(P){q.current=P},[]),Ve=i(function(){return q.current},[]),it=Cl(hn),Rt=it.contextId,zt=it.dragHandleUsageInstructionsId,Xt=it.registry,Nr=Cl(Xl),Qr=Nr.type,Cr=Nr.droppableId,Er=r(function(){return{id:De.draggableId,index:De.index,type:Qr,droppableId:Cr}},[De.draggableId,De.index,Qr,Cr]),Kr=De.children,qr=De.draggableId,Cn=De.isEnabled,oi=De.shouldRespectForcePress,hi=De.canDragInteractiveElements,ji=De.isClone,Oi=De.mapped,wa=De.dropAnimationFinished;if(Ll(De,Rt,Ve),Ks(ji),!ji){var Qi=r(function(){return{descriptor:Er,registry:Xt,getDraggableRef:Ve,canDragInteractiveElements:hi,shouldRespectForcePress:oi,isEnabled:Cn}},[Er,Xt,Ve,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":Rt,draggable:!1,onDragStart:Yl}:null},[Rt,zt,qr,Cn]),Sa=i(function(P){if(Oi.type!=="DRAGGING")return;if(!Oi.dropping)return;if(P.propertyName!=="transform")return;wa()},[wa,Oi]),So=r(function(){var P=ml(Oi),W=Oi.type==="DRAGGING"&&Oi.dropping?Sa:null,$={innerRef:ye,draggableProps:{"data-rbd-draggable-context-id":Rt,"data-rbd-draggable-id":qr,style:P,onTransitionEnd:W},dragHandleProps:Ua};return $},[Rt,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(q,ye){return q===ye},Ou=function(q){var ye=q.combine,Ve=q.destination;return Ve?Ve.droppableId:ye?ye.droppableId:null},Vu=function(q){return q.combine?q.combine.draggableId:null},Fu=function(q){return q.at&&q.at.type==="COMBINE"?q.at.combine.draggableId:null};function ec(){var De=I(function(it,Rt){return{x:it,y:Rt}}),q=I(function(it,Rt,zt,Xt,Nr){return{isDragging:!0,isClone:Rt,isDropAnimating:Boolean(Nr),dropAnimation:Nr,mode:it,draggingOver:zt,combineWith:Xt,combineTargetFor:null}}),ye=I(function(it,Rt,zt,Xt,Nr,Qr,Cr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Nr,combineWith:Qr,mode:Rt,offset:it,dimension:zt,forceShouldAnimate:Cr,snapshot:q(Rt,Xt,Nr,Qr,null)}}}),Ve=function(Rt,zt){if(Rt.isDragging){if(Rt.critical.draggable.id!==zt.draggableId)return null;var Xt=Rt.current.client.offset,Nr=Rt.dimensions.draggables[zt.draggableId],Qr=Gn(Rt.impact),Cr=Fu(Rt.impact),Er=Rt.forceShouldAnimate;return ye(De(Xt.x,Xt.y),Rt.movementMode,Nr,zt.isClone,Qr,Cr,Er)}if(Rt.phase==="DROP_ANIMATING"){var Kr=Rt.completed;if(Kr.result.draggableId!==zt.draggableId)return null;var qr=zt.isClone,Cn=Rt.dimensions.draggables[zt.draggableId],oi=Kr.result,hi=oi.mode,ji=Ou(oi),Oi=Vu(oi),wa=Rt.dropDuration,Qi={duration:wa,curve:vi.drop,moveTo:Rt.newHomeClientOffset,opacity:Oi?Ti.opacity.drop:null,scale:Oi?Ti.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Rt.newHomeClientOffset,dimension:Cn,dropping:Qi,draggingOver:ji,combineWith:Oi,mode:hi,forceShouldAnimate:null,snapshot:q(hi,qr,ji,Oi,Qi)}}}return null};return Ve}function Bu(De){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:De,combineWith:null}}var Gu={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bu(null)}};function Xu(){var De=I(function(zt,Xt){return{x:zt,y:Xt}}),q=I(Bu),ye=I(function(zt,Xt,Nr){return Xt===void 0&&(Xt=null),{mapped:{type:"SECONDARY",offset:zt,combineTargetFor:Xt,shouldAnimateDisplacement:Nr,snapshot:q(Xt)}}}),Ve=function(Xt){return Xt?ye(Ce,Xt,!0):null},it=function(Xt,Nr,Qr,Cr){var Er=Qr.displaced.visible[Xt],Kr=Boolean(Cr.inVirtualList&&Cr.effected[Xt]),qr=dr(Qr),Cn=qr&&qr.draggableId===Xt?Nr:null;if(!Er){if(!Kr)return Ve(Cn);if(Qr.displaced.invisible[Xt])return null;var oi=Te(Cr.displacedBy.point),hi=De(oi.x,oi.y);return ye(hi,Cn,!0)}if(Kr)return Ve(Cn);var ji=Qr.displacedBy.point,Oi=De(ji.x,ji.y);return ye(Oi,Cn,Er.shouldAnimate)},Rt=function(Xt,Nr){if(Xt.isDragging)return Xt.critical.draggable.id===Nr.draggableId?null:it(Nr.draggableId,Xt.critical.draggable.id,Xt.impact,Xt.afterCritical);if(Xt.phase==="DROP_ANIMATING"){var Qr=Xt.completed;return Qr.result.draggableId===Nr.draggableId?null:it(Nr.draggableId,Qr.result.draggableId,Qr.impact,Qr.afterCritical)}return null};return Rt}var Yu=function(){var q=ec(),ye=Xu(),Ve=function(Rt,zt){return q(Rt,zt)||ye(Rt,zt)||Gu};return Ve},Uu={dropAnimationFinished:pi},_u=Object(m.c)(Yu,Uu,null,{context:qo,pure:!0,areStatePropsEqual:uu})(gu);function Ul(De){var q=Cl(Xl),ye=q.isUsingCloneFor;return ye===De.draggableId&&!De.isClone?null:E.a.createElement(_u,De)}function Iu(De){var q=typeof De.isDragDisabled=="boolean"?!De.isDragDisabled:!0,ye=Boolean(De.disableInteractiveElementBlocking),Ve=Boolean(De.shouldRespectForcePress);return E.a.createElement(Ul,Object(A.a)({},De,{isClone:!1,isEnabled:q,canDragInteractiveElements:ye,shouldRespectForcePress:Ve}))}function Wl(De){var q=Object(_.useContext)(hn);q||me(!1);var ye=q.contextId,Ve=q.isMovementAllowed,it=Object(_.useRef)(null),Rt=Object(_.useRef)(null),zt=De.children,Xt=De.droppableId,Nr=De.type,Qr=De.mode,Cr=De.direction,Er=De.ignoreContainerClipping,Kr=De.isDropDisabled,qr=De.isCombineEnabled,Cn=De.snapshot,oi=De.useClone,hi=De.updateViewportMaxScroll,ji=De.getContainerForClone,Oi=i(function(){return it.current},[]),wa=i(function(re){it.current=re},[]),Qi=i(function(){return Rt.current},[]),Ua=i(function(re){Rt.current=re},[]);Dl({props:De,getDroppableRef:Oi,getPlaceholderRef:Qi});var Sa=i(function(){Ve()&&hi({maxScroll:_r()})},[Ve,hi]);hu({droppableId:Xt,type:Nr,mode:Qr,direction:Cr,isDropDisabled:Kr,isCombineEnabled:qr,ignoreContainerClipping:Er,getDroppableRef:Oi});var So=E.a.createElement(Bo,{on:De.placeholder,shouldAnimate:De.shouldAnimatePlaceholder},function(re){var ce=re.onClose,ke=re.data,ht=re.animate;return E.a.createElement(fu,{placeholder:ke,onClose:ce,innerRef:Ua,animate:ht,contextId:ye,onTransitionEnd:Sa})}),Fo=r(function(){return{innerRef:wa,placeholder:So,droppableProps:{"data-rbd-droppable-id":Xt,"data-rbd-droppable-context-id":ye}}},[ye,Xt,So,wa]),P=oi?oi.dragging.draggableId:null,W=r(function(){return{droppableId:Xt,type:Nr,isUsingCloneFor:P}},[Xt,P,Nr]);function $(){if(!oi)return null;var re=oi.dragging,ce=oi.render,ke=E.a.createElement(Ul,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ht,Wt){return ce(ht,Wt,re)});return R.a.createPortal(ke,ji())}return E.a.createElement(Xl.Provider,{value:W},zt(Fo,Cn),$())}var Su=function(q,ye){return q===ye.droppable.type},ge=function(q,ye){return ye.draggables[q.draggable.id]},We=function(){var q={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ye=Object(A.a)({},q,{shouldAnimatePlaceholder:!1}),Ve=I(function(zt){return{draggableId:zt.id,type:zt.type,source:{index:zt.index,droppableId:zt.droppableId}}}),it=I(function(zt,Xt,Nr,Qr,Cr,Er){var Kr=Cr.descriptor.id,qr=Cr.descriptor.droppableId===zt;if(qr){var Cn=Er?{render:Er,dragging:Ve(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(!Xt)return ye;if(!Qr)return q;var hi={isDraggingOver:Nr,draggingOverWith:Kr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Cr.placeholder,shouldAnimatePlaceholder:!0,snapshot:hi,useClone:null}}),Rt=function(Xt,Nr){var Qr=Nr.droppableId,Cr=Nr.type,Er=!Nr.isDropDisabled,Kr=Nr.renderClone;if(Xt.isDragging){var qr=Xt.critical;if(!Su(Cr,qr))return ye;var Cn=ge(qr,Xt.dimensions),oi=Gn(Xt.impact)===Qr;return it(Qr,Er,oi,oi,Cn,Kr)}if(Xt.phase==="DROP_ANIMATING"){var hi=Xt.completed;if(!Su(Cr,hi.critical))return ye;var ji=ge(hi.critical,Xt.dimensions);return it(Qr,Er,Ou(hi.result)===Qr,Gn(hi.impact)===Qr,ji,Kr)}if(Xt.phase==="IDLE"&&Xt.completed&&!Xt.shouldFlush){var Oi=Xt.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?q:ye:Ua?q:ye}return ye};return Rt},dt={updateViewportMaxScroll:vr};function nr(){return document.body||me(!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,dt,null,{context:qo,pure:!0,areStatePropsEqual:uu})(Wl);zr.defaultProps=Tr},ni6a:function(H,B,d){var _=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&&_.normalizeTextStyle(i,!0);var n=i.text;if(n!=null&&(n+=""),!_.needDrawText(n,i))return;o.save();var e=this.transform;i.transformText?this.setTransform(o):e&&(w.copy(r),w.applyTransform(e),r=w),_.renderText(this,o,n,i,r,A),o.restore()}};var f=m;H.exports=f},nkfE:function(H,B,d){var _=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){_.each(c,function(l){i.extend({type:r+"Axis."+l,mergeDefaultAndTheme:function(t,a){var s=this.layoutMode,u=s?w(t):{},h=a.getTheme();_.merge(t,h.get(l+"Axis")),_.merge(t,this.getDefaultOption()),t.type=n(r,t),s&&m(t,u,s)},optionUpdated:function(){var t=this.option;t.type==="category"&&(this.__ordinalMeta=f.createByAxisModel(this))},getCategories:function(t){var a=this.option;if(a.type==="category")return t?a.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:_.mergeAll([{},E[l+"Axis"],e],!0)})}),C.registerSubTypeDefaulter(r+"Axis",_.curry(n,r))}H.exports=o},noeP:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("UOVi");_.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 _=d("IwbS"),E=d("OS9S"),C=d("loD1"),A=d("aKvl"),w=_.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,r){var i=r.segs,n=r.curveness;if(r.polyline)for(var e=0;e<i.length;){var l=i[e++];if(l>0){o.moveTo(i[e++],i[e++]);for(var t=1;t<l;t++)o.lineTo(i[e++],i[e++])}}else for(var e=0;e<i.length;){var a=i[e++],s=i[e++],u=i[e++],h=i[e++];if(o.moveTo(a,s),n>0){var p=(a+u)/2-(s-h)*n,g=(s+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 l=0,t=0;t<n.length;){var a=n[t++];if(a>0)for(var s=n[t++],u=n[t++],h=1;h<a;h++){var p=n[t++],g=n[t++];if(C.containStroke(s,u,p,g))return l}l++}else for(var l=0,t=0;t<n.length;){var s=n[t++],u=n[t++],p=n[t++],g=n[t++];if(e>0){var v=(s+p)/2-(u-g)*e,y=(u+g)/2-(p-s)*e;if(A.containStroke(s,u,v,y,p,g))return l}else if(C.containStroke(s,u,p,g))return l;l++}return-1}});function m(){this.group=new _.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(l){o.dataIndex=null;var t=o.findDataIndex(l.offsetX,l.offsetY);t>0&&(o.dataIndex=t+o.__startIndex)}))},f._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var c=m;H.exports=c},oBaM:function(H,B,d){var _=d("T4UG"),E=d("5GtS"),C=d("bYtY"),A=d("7aKB"),w=A.encodeHTML,m=d("xKMd"),f=_.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(l,t){var a=r.get(r.mapDimension(l.dim),o);return w(l.name+" : "+a)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var r=this.getData(),i=this.coordinateSystem,n=r.getValues(C.map(i.dimensions,function(a){return r.mapDimension(a)}),o,!0),e=0,l=n.length;e<l;e++)if(!isNaN(n[e])){var t=i.getIndicatorAxes();return i.coordToPoint(t[e].dataToCoord(n[e]),e)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=f;H.exports=c},oE7X:function(H,B,d){var _=d("bLfw");_.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(H,B,d){},oRuE:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.pad.Iso10126={pad:function(C,A){var w=A*4,m=w-C.sigBytes%w;C.concat(_.lib.WordArray.random(m-1)).concat(_.lib.WordArray.create([m<<24],1))},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}},_.pad.Iso10126})},oVpE:function(H,B,d){var _=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,s){var u=s.cx,h=s.cy,p=s.width/2,g=s.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,s){var u=s.cx,h=s.cy,p=s.width/2,g=s.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,s){var u=s.x,h=s.y,p=s.width/5*3,g=Math.max(p,s.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),O=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+O*I,u,h-L,u,h),a.bezierCurveTo(u,h-L,u-S+b*I,x+y+O*I,u-S,x+y),a.closePath()}}),o=E.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,s){var u=s.height,h=s.width,p=s.x,g=s.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,s,u,h,p){p.x1=a,p.y1=s+h/2,p.x2=a+u,p.y2=s+h/2},rect:function(a,s,u,h,p){p.x=a,p.y=s,p.width=u,p.height=h},roundRect:function(a,s,u,h,p){p.x=a,p.y=s,p.width=u,p.height=h,p.r=Math.min(u,h)/4},square:function(a,s,u,h,p){var g=Math.min(u,h);p.x=a,p.y=s,p.width=g,p.height=g},circle:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.r=Math.min(u,h)/2},diamond:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.width=u,p.height=h},pin:function(a,s,u,h,p){p.x=a+u/2,p.y=s+h/2,p.width=u,p.height=h},arrow:function(a,s,u,h,p){p.x=a+u/2,p.y=s+h/2,p.width=u,p.height=h},triangle:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.width=u,p.height=h}},n={};_.each(r,function(a,s){n[s]=new a});var e=E.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,s,u){var h=w(a,s,u),p=this.shape;return p&&p.symbolType==="pin"&&s.textPosition==="inside"&&(h.y=u.y+u.height*.4),h},buildPath:function(a,s,u){var h=s.symbolType;if(h!=="none"){var p=n[h];p||(h="rect",p=n[h]),i[h](s.x,s.y,s.width,s.height,p.shape),p.buildPath(a,p.shape,u)}}});function l(a,s){if(this.type!=="image"){var u=this.style,h=this.shape;h&&h.symbolType==="line"?u.stroke=a:this.__isEmptyBrush?(u.stroke=a,u.fill=s||"#fff"):(u.fill&&(u.fill=a),u.stroke&&(u.stroke=a)),this.dirty(!1)}}function t(a,s,u,h,p,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(s,u,h,p),v?"center":"cover"):a.indexOf("path://")===0?x=E.makePath(a.slice(7),{},new C(s,u,h,p),v?"center":"cover"):x=new e({shape:{symbolType:a,x:s,y:u,width:h,height:p}}),x.__isEmptyBrush=y,x.setColor=l,x.setColor(g),x}B.createSymbol=t},oY9F:function(H,B,d){var _=d("OlYY"),E=_.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(_){_(d("VrN/"))})(function(_){"use strict";var E=_.Pos;function C(s,u){return s.line-u.line||s.ch-u.ch}var A="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",w=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",m=new RegExp("<(/?)(["+A+"]["+w+"]*)","g");function f(s,u,h,p){this.line=u,this.ch=h,this.cm=s,this.text=s.getLine(u),this.min=p?Math.max(p.from,s.firstLine()):s.firstLine(),this.max=p?Math.min(p.to-1,s.lastLine()):s.lastLine()}function c(s,u){var h=s.cm.getTokenTypeAt(E(s.line,u));return h&&/\btag\b/.test(h)}function o(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function r(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function i(s){for(;;){var u=s.text.indexOf(">",s.ch);if(u==-1){if(o(s))continue;return}if(!c(s,u+1)){s.ch=u+1;continue}var h=s.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(s.text.slice(h+1,u));return s.ch=u+1,p?"selfClose":"regular"}}function n(s){for(;;){var u=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(u==-1){if(r(s))continue;return}if(!c(s,u+1)){s.ch=u;continue}m.lastIndex=u,s.ch=u;var h=m.exec(s.text);if(h&&h.index==u)return h}}function e(s){for(;;){m.lastIndex=s.ch;var u=m.exec(s.text);if(!u){if(o(s))continue;return}if(!c(s,u.index+1)){s.ch=u.index+1;continue}return s.ch=u.index+u[0].length,u}}function l(s){for(;;){var u=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(u==-1){if(r(s))continue;return}if(!c(s,u+1)){s.ch=u;continue}var h=s.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(s.text.slice(h+1,u));return s.ch=u+1,p?"selfClose":"regular"}}function t(s,u){for(var h=[];;){var p=e(s),g,v=s.line,y=s.ch-(p?p[0].length:0);if(!p||!(g=i(s)))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(s.line,s.ch)}}else h.push(p[2])}}function a(s,u){for(var h=[];;){var p=l(s);if(!p)return;if(p=="selfClose"){n(s);continue}var g=s.line,v=s.ch,y=n(s);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(s.line,s.ch),to:E(g,v)}}}}_.registerHelper("fold","xml",function(s,u){for(var h=new f(s,u.line,0);;){var p=e(h);if(!p||h.line!=u.line)return;var 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}}}),_.findMatchingTag=function(s,u,h){var p=new f(s,u.line,u.ch,h);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var 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(s,v.line,v.ch,h),{open:x,close:t(p,y[2]),at:"open"})},_.findEnclosingTag=function(s,u,h,p){for(var g=new f(s,u.line,u.ch,h);;){var v=a(g,p);if(!v)break;var y=new f(s,u.line,u.ch,h),x=t(y,v.tag);if(x)return{open:v,close:x}}},_.scanForClosingTag=function(s,u,h,p){var g=new f(s,u.line,u.ch,p?{from:0,to:p}:null);return t(g,h)}})},ozfa:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),C=d("KxFI"),A=d.n(C)},"p+If":function(H,B,d){var _=d("ProS");d("cpOr"),d("rkZ5");var E=d("ZYIC"),C=d("7ph2");_.registerLayout(E),_.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 _(E,C){E==="china"&&C.name==="\u53F0\u6E7E"&&C.geometries.push({type:"polygon",exterior:d[0]})}H.exports=_},p1MT:function(H,B,d){var _=d("Hw7h"),E=d("IwbS"),C=d("6Ic6"),A=d("OELB"),w=A.parsePercent,m=A.round,f=A.linearMap;function c(e,l){var t=e.get("center"),a=l.getWidth(),s=l.getHeight(),u=Math.min(a,s),h=w(t[0],l.getWidth()),p=w(t[1],l.getHeight()),g=w(e.get("radius"),u/2);return{cx:h,cy:p,r:g}}function o(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var r=Math.PI*2,i=C.extend({type:"gauge",render:function(e,l,t){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),s=c(e,t);this._renderMain(e,l,t,a,s)},dispose:function(){},_renderMain:function(e,l,t,a,s){for(var u=this.group,h=e.getModel("axisLine"),p=h.getModel("lineStyle"),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"),O=0;b&&O<a.length;O++){var I=Math.min(Math.max(a[O][0],0),1),y=v+x*I,L=new E.Sector({shape:{startAngle:T,endAngle:y,cx:s.cx,cy:s.cy,clockwise:g,r0:s.r-S,r:s.r},silent:!0});L.setStyle({fill:a[O][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 k=0;k<a.length;k++)if(a[k][0]>=R&&(k===0?0:a[k-1][0])<R)return a[k][1];return a[k-1][1]};if(!g){var D=v;v=y,y=D}this._renderTicks(e,l,t,N,s,v,y,g),this._renderPointer(e,l,t,N,s,v,y,g),this._renderTitle(e,l,t,N,s),this._renderDetail(e,l,t,N,s)},_renderTicks:function(e,l,t,a,s,u,h,p){for(var g=this.group,v=s.cx,y=s.cy,x=s.r,T=+e.get("min"),S=+e.get("max"),b=e.getModel("splitLine"),O=e.getModel("axisTick"),I=e.getModel("axisLabel"),L=e.get("splitNumber"),N=O.get("splitNumber"),D=w(b.get("length"),x),R=w(O.get("length"),x),k=u,M=(h-u)/L,j=M/N,F=b.getModel("lineStyle").getLineStyle(),U=O.getModel("lineStyle").getLineStyle(),K=0;K<=L;K++){var V=Math.cos(k),z=Math.sin(k);if(b.get("show")){var Q=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"&&Q.setStyle({stroke:a(K/L)}),g.add(Q)}if(I.get("show")){var Z=o(m(K/L*(S-T)+T),I.get("formatter")),le=I.get("distance"),ne=a(K/L);g.add(new E.Text({style:E.setTextStyle({},I,{text:Z,x:V*(x-D-le)+v,y:z*(x-D-le)+y,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:V<-.4?"left":V>.4?"right":"center"},{autoColor:ne}),silent:!0}))}if(O.get("show")&&K!==L){for(var ve=0;ve<=N;ve++){var V=Math.cos(k),z=Math.sin(k),xe=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:U});U.stroke==="auto"&&xe.setStyle({stroke:a((K+ve/N)/L)}),g.add(xe),k+=j}k-=j}else k+=M}},_renderPointer:function(e,l,t,a,s,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 O=new _({shape:{angle:u}});E.initProps(O,{shape:{angle:f(T.get(S,b),y,x,!0)}},e),g.add(O),T.setItemGraphicEl(b,O)}).update(function(b,O){var I=v.getItemGraphicEl(O);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 O=v.getItemGraphicEl(b);g.remove(O)}).execute(),T.eachItemGraphicEl(function(b,O){var I=T.getItemModel(O),L=I.getModel("pointer");b.setShape({x:s.cx,y:s.cy,width:w(L.get("width"),s.r),r:w(L.get("length"),s.r)}),b.useStyle(I.getModel("itemStyle").getItemStyle()),b.style.fill==="auto"&&b.setStyle("fill",a(f(T.get(S,O),y,[0,1],!0))),E.setHoverStyle(b,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=T},_renderTitle:function(e,l,t,a,s){var u=e.getData(),h=u.mapDimension("value"),p=e.getModel("title");if(p.get("show")){var g=p.get("offsetCenter"),v=s.cx+w(g[0],s.r),y=s.cy+w(g[1],s.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,l,t,a,s){var u=e.getModel("detail"),h=+e.get("min"),p=+e.get("max");if(u.get("show")){var g=u.get("offsetCenter"),v=s.cx+w(g[0],s.r),y=s.cy+w(g[1],s.r),x=w(u.get("width"),s.r),T=w(u.get("height"),s.r),S=e.getData(),b=S.get(S.mapDimension("value"),0),O=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:O,forceRich:!0})}))}}}),n=i;H.exports=n},"p77/":function(H,B,d){},pA7S:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(_){return function(){var E=_,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 s=this._key,u=s.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(s,u){this._doCryptBlock(s,u,this._subKeys)},decryptBlock:function(s,u){this._doCryptBlock(s,u,this._invSubKeys)},_doCryptBlock:function(s,u,h){this._lBlock=s[u],this._rBlock=s[u+1],e.call(this,4,252645135),e.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var p=0;p<16;p++){for(var 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),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),s[u]=this._lBlock,s[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,s){var u=(this._lBlock>>>a^this._rBlock)&s;this._rBlock^=u,this._lBlock^=u<<a}function l(a,s){var u=(this._rBlock>>>a^this._lBlock)&s;this._lBlock^=u,this._rBlock^=u<<a}E.DES=w._createHelper(n);var t=m.TripleDES=w.extend({_doReset:function(){var s=this._key,u=s.words;if(u.length!==2&&u.length!==4&&u.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=u.slice(0,2),p=u.length<4?u.slice(0,2):u.slice(2,4),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(s,u){this._des1.encryptBlock(s,u),this._des2.decryptBlock(s,u),this._des3.encryptBlock(s,u)},decryptBlock:function(s,u){this._des3.decryptBlock(s,u),this._des2.encryptBlock(s,u),this._des1.decryptBlock(s,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});E.TripleDES=w._createHelper(t)}(),_.TripleDES})},pC0b:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),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 _=E(d("WXVj"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},pLH3:function(H,B,d){var _=d("ProS");d("ALo7"),d("TWL2");var E=d("mOdp"),C=d("JLnu"),A=d("0/Rx");_.registerVisual(E("funnel")),_.registerLayout(C),_.registerProcessor(A("funnel"))},pP6R:function(H,B,d){var _=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]={})}_.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),B.take=C,B.release=A,B.isTaken=w},pmaE:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("IwbS"),A=d("DEFe"),w="__seriesMapHighDown",m="__seriesMapCallKey",f=_.extendChartView({type:"map",render:function(r,i,n,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),r.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===r.id){var t=this._mapDraw;t&&l.add(t.group)}else if(r.needsDrawMap){var t=this._mapDraw||new A(n,!0);l.add(t.group),t.draw(r,i,n,this,e),this._mapDraw=t}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(r,i,n)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(r,i,n){var e=r.originalData,l=this.group;e.each(e.mapDimension("value"),function(t,a){if(isNaN(t))return;var s=e.getItemLayout(a);if(!s||!s.point)return;var u=s.point,h=s.offset,p=new C.Circle({style:{fill:r.getData().getVisual("color")},shape:{cx:u[0]+h*9,cy:u[1],r:3},silent:!0,z2:8+(h?0:C.Z2_EMPHASIS_LIFT+1)});if(!h){var 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),O=E.retrieve2(r.getFormattedLabel(y,"normal"),v),I=E.retrieve2(r.getFormattedLabel(y,"emphasis"),O),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}),o(L,!1)}l.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,l=r.hoverLabelModel,t=r.emphasisText,a=r.normalText;i?(n.style.extendFrom(C.setTextStyle({},l,{text:l.get("show")?t:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=C.Z2_EMPHASIS_LIFT):(C.setTextStyle(n.style,e,{text:e.get("show")?a:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),n.__mapOriginalZ2!=null&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}H.exports=f},pwpV:function(H,B,d){},pzxd:function(H,B,d){var _=d("bYtY"),E=_.retrieve2,C=_.retrieve3,A=_.each,w=_.normalizeCssArray,m=_.isString,f=_.isObject,c=d("6GrX"),o=d("VpOo"),r=d("Xnb7"),i=d("fW2E"),n=d("gut8"),e=n.ContextCachedBy,l=n.WILL_BE_RESTORED,t=c.DEFAULT_FONT,a={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},u=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},p={};function g(K){return v(K),A(K.rich,v),K}function v(K){if(K){K.font=c.makeFont(K);var V=K.textAlign;V==="middle"&&(V="center"),K.textAlign=V==null||a[V]?V:"left";var z=K.textVerticalAlign||K.textBaseline;z==="center"&&(z="middle"),K.textVerticalAlign=z==null||s[z]?z:"top";var Q=K.textPadding;Q&&(K.textPadding=w(K.textPadding))}}function y(K,V,z,Q,Z,le){Q.rich?T(K,V,z,Q,Z,le):x(K,V,z,Q,Z,le)}function x(K,V,z,Q,Z,le){"use strict";var ne=I(Q),ve,xe=!1,_e=V.__attrCachedBy===e.PLAIN_TEXT;le!==l?(le&&(ve=le.style,xe=!ne&&_e&&ve),V.__attrCachedBy=ne?e.NONE:e.PLAIN_TEXT):_e&&(V.__attrCachedBy=e.NONE);var Be=Q.font||t;(!xe||Be!==(ve.font||t))&&(V.font=Be);var me=K.__computedFont;K.__styleFont!==Be&&(K.__styleFont=Be,me=K.__computedFont=V.font);var Fe=Q.textPadding,ie=Q.textLineHeight,te=K.__textCotentBlock;(!te||K.__dirtyText)&&(te=K.__textCotentBlock=c.parsePlainText(z,me,Fe,ie,Q.truncate));var Ge=te.outerHeight,oe=te.lines,Y=te.lineHeight,G=D(p,K,Q,Z),X=G.baseX,fe=G.baseY,de=G.textAlign||"left",Ce=G.textVerticalAlign;b(V,Q,Z,X,fe);var Me=c.adjustTextY(fe,Ge,Ce),ue=X,Ae=Me;if(ne||Fe){var Te=c.getWidth(z,me),Je=Te;Fe&&(Je+=Fe[1]+Fe[3]);var At=c.adjustTextX(X,Je,de);ne&&L(K,V,Q,At,Me,Je,Ge),Fe&&(ue=F(X,de,Fe),Ae+=Fe[0])}V.textAlign=de,V.textBaseline="middle",V.globalAlpha=Q.opacity||1;for(var qe=0;qe<u.length;qe++){var Re=u[qe],Lt=Re[0],$e=Re[1],Et=Q[Lt];(!xe||Et!==ve[Lt])&&(V[$e]=i(V,$e,Et||Re[2]))}Ae+=Y/2;var Ut=Q.textStrokeWidth,Bt=xe?ve.textStrokeWidth:null,_t=!xe||Ut!==Bt,jt=!xe||_t||Q.textStroke!==ve.textStroke,He=k(Q.textStroke,Ut),se=M(Q.textFill);if(He&&(_t&&(V.lineWidth=Ut),jt&&(V.strokeStyle=He)),se&&((!xe||Q.textFill!==ve.textFill)&&(V.fillStyle=se)),oe.length===1)He&&V.strokeText(oe[0],ue,Ae),se&&V.fillText(oe[0],ue,Ae);else for(var qe=0;qe<oe.length;qe++)He&&V.strokeText(oe[qe],ue,Ae),se&&V.fillText(oe[qe],ue,Ae),Ae+=Y}function T(K,V,z,Q,Z,le){le!==l&&(V.__attrCachedBy=e.NONE);var ne=K.__textCotentBlock;(!ne||K.__dirtyText)&&(ne=K.__textCotentBlock=c.parseRichText(z,Q)),S(K,V,ne,Q,Z)}function S(K,V,z,Q,Z){var le=z.width,ne=z.outerWidth,ve=z.outerHeight,xe=Q.textPadding,_e=D(p,K,Q,Z),Be=_e.baseX,me=_e.baseY,Fe=_e.textAlign,ie=_e.textVerticalAlign;b(V,Q,Z,Be,me);var te=c.adjustTextX(Be,ne,Fe),Ge=c.adjustTextY(me,ve,ie),oe=te,Y=Ge;xe&&(oe+=xe[3],Y+=xe[0]);var G=oe+le;I(Q)&&L(K,V,Q,te,Ge,ne,ve);for(var X=0;X<z.lines.length;X++){for(var fe=z.lines[X],de=fe.tokens,Ce=de.length,Me=fe.lineHeight,ue=fe.width,Ae=0,Te=oe,Je=G,At=Ce-1,qe;Ae<Ce&&(qe=de[Ae],!qe.textAlign||qe.textAlign==="left");)O(K,V,qe,Q,Me,Y,Te,"left"),ue-=qe.width,Te+=qe.width,Ae++;for(;At>=0&&(qe=de[At],qe.textAlign==="right");)O(K,V,qe,Q,Me,Y,Je,"right"),ue-=qe.width,Je-=qe.width,At--;for(Te+=(le-(Te-oe)-(G-Je)-ue)/2;Ae<=At;)qe=de[Ae],O(K,V,qe,Q,Me,Y,Te+qe.width/2,"center"),Te+=qe.width,Ae++;Y+=Me}}function b(K,V,z,Q,Z){if(z&&V.textRotation){var le=V.textOrigin;le==="center"?(Q=z.width/2+z.x,Z=z.height/2+z.y):le&&(Q=le[0]+z.x,Z=le[1]+z.y),K.translate(Q,Z),K.rotate(-V.textRotation),K.translate(-Q,-Z)}}function O(K,V,z,Q,Z,le,ne,ve){var xe=Q.rich[z.styleName]||{};xe.text=z.text;var _e=z.textVerticalAlign,Be=le+Z/2;_e==="top"?Be=le+z.height/2:_e==="bottom"&&(Be=le+Z-z.height/2),!z.isLineHolder&&I(xe)&&L(K,V,xe,ve==="right"?ne-z.width:ve==="center"?ne-z.width/2:ne,Be-z.height/2,z.width,z.height);var me=z.textPadding;me&&(ne=F(ne,ve,me),Be-=z.height/2-me[2]-z.textHeight/2),R(V,"shadowBlur",C(xe.textShadowBlur,Q.textShadowBlur,0)),R(V,"shadowColor",xe.textShadowColor||Q.textShadowColor||"transparent"),R(V,"shadowOffsetX",C(xe.textShadowOffsetX,Q.textShadowOffsetX,0)),R(V,"shadowOffsetY",C(xe.textShadowOffsetY,Q.textShadowOffsetY,0)),R(V,"textAlign",ve),R(V,"textBaseline","middle"),R(V,"font",z.font||t);var Fe=k(xe.textStroke||Q.textStroke,te),ie=M(xe.textFill||Q.textFill),te=E(xe.textStrokeWidth,Q.textStrokeWidth);Fe&&(R(V,"lineWidth",te),R(V,"strokeStyle",Fe),V.strokeText(z.text,ne,Be)),ie&&(R(V,"fillStyle",ie),V.fillText(z.text,ne,Be))}function I(K){return!!(K.textBackgroundColor||K.textBorderWidth&&K.textBorderColor)}function L(K,V,z,Q,Z,le,ne){var ve=z.textBackgroundColor,xe=z.textBorderWidth,_e=z.textBorderColor,Be=m(ve);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),Be||xe&&_e){V.beginPath();var me=z.textBorderRadius;me?o.buildPath(V,{x:Q,y:Z,width:le,height:ne,r:me}):V.rect(Q,Z,le,ne),V.closePath()}if(Be)if(R(V,"fillStyle",ve),z.fillOpacity!=null){var Fe=V.globalAlpha;V.globalAlpha=z.fillOpacity*z.opacity,V.fill(),V.globalAlpha=Fe}else V.fill();else if(f(ve)){var ie=ve.image;ie=r.createOrUpdateImage(ie,null,K,N,ve),ie&&r.isImageReady(ie)&&V.drawImage(ie,Q,Z,le,ne)}if(xe&&_e)if(R(V,"lineWidth",xe),R(V,"strokeStyle",_e),z.strokeOpacity!=null){var Fe=V.globalAlpha;V.globalAlpha=z.strokeOpacity*z.opacity,V.stroke(),V.globalAlpha=Fe}else V.stroke()}function N(K,V){V.image=K}function D(K,V,z,Q){var Z=z.x||0,le=z.y||0,ne=z.textAlign,ve=z.textVerticalAlign;if(Q){var xe=z.textPosition;if(xe instanceof Array)Z=Q.x+j(xe[0],Q.width),le=Q.y+j(xe[1],Q.height);else{var _e=V&&V.calculateTextPosition?V.calculateTextPosition(h,z,Q):c.calculateTextPosition(h,z,Q);Z=_e.x,le=_e.y,ne=ne||_e.textAlign,ve=ve||_e.textVerticalAlign}var Be=z.textOffset;Be&&(Z+=Be[0],le+=Be[1])}return K=K||{},K.baseX=Z,K.baseY=le,K.textAlign=ne,K.textVerticalAlign=ve,K}function R(K,V,z){return K[V]=i(K,V,z),K[V]}function k(K,V){return K==null||V<=0||K==="transparent"||K==="none"?null:K.image||K.colorStops?"#000":K}function M(K){return K==null||K==="none"?null:K.image||K.colorStops?"#000":K}function j(K,V){return typeof K=="string"?K.lastIndexOf("%")>=0?parseFloat(K)/100*V:parseFloat(K):K}function F(K,V,z){return V==="right"?K-z[1]:V==="center"?K+z[3]/2-z[1]/2:K+z[3]}function U(K,V){return K!=null&&(K||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}B.normalizeTextStyle=g,B.renderText=y,B.getBoxPosition=D,B.getStroke=k,B.getFill=M,B.parsePercent=j,B.needDrawText=U},"q/+u":function(H,B,d){var _=d("ProS"),E=d("9wZj"),C=d("yWXo"),A=d("h8O9");_.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"],_={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(),l={normal:i.opacity,active:r,inactive:o};e.setVisual("color",c);function t(a,s){n.eachActiveState(s,function(u,h){var p=l[u];if(u==="normal"&&s.hasItemOption){var g=s.getItemModel(h).get(d,!0);g!=null&&(p=g)}s.setItemVisual(h,"opacity",p)},a.start,a.end)}return{progress:t}}};H.exports=_},q4HE:function(H,B){var d="\\ud800-\\udfff",_="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=_+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",l=o+"?",t="["+w+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+l+")*",s=t+l+a,u="(?:"+[r+f+"?",f,i,n,m].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+s,"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(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.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}},_.pad.Ansix923})},qH13:function(H,B,d){var _=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"),l=d("QuXc"),t=d("06Qe"),a=e.CMD,s=Math.round,u=Math.sqrt,h=Math.abs,p=Math.cos,g=Math.sin,v=Math.max;if(!_.canvasSupported){var y=",",x="progid:DXImageTransform.Microsoft",T=21600,S=T/2,b=1e5,O=1e3,I=function(fe){fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",fe.coordsize=T+","+T,fe.coordorigin="0,0"},L=function(fe){return String(fe).replace(/&/g,"&").replace(/"/g,""")},N=function(fe,de,Ce){return"rgb("+[fe,de,Ce].join(",")+")"},D=function(fe,de){de&&fe&&de.parentNode!==fe&&fe.appendChild(de)},R=function(fe,de){de&&fe&&de.parentNode===fe&&fe.removeChild(de)},k=function(fe,de,Ce){return(parseFloat(fe)||0)*b+(parseFloat(de)||0)*O+Ce},M=f.parsePercent,j=function(fe,de,Ce){var Me=w.parse(de);Ce=+Ce,isNaN(Ce)&&(Ce=1),Me&&(fe.color=N(Me[0],Me[1],Me[2]),fe.opacity=Ce*Me[3])},F=function(fe){var de=w.parse(fe);return[N(de[0],de[1],de[2]),de[3]]},U=function(fe,de,Ce){var Me=de.fill;if(Me!=null)if(Me instanceof l){var ue,Ae=0,Te=[0,0],Je=0,At=1,qe=Ce.getBoundingRect(),Re=qe.width,Lt=qe.height;if(Me.type==="linear"){ue="gradient";var $e=Ce.transform,Et=[Me.x*Re,Me.y*Lt],Ut=[Me.x2*Re,Me.y2*Lt];$e&&(C(Et,Et,$e),C(Ut,Ut,$e));var Bt=Ut[0]-Et[0],_t=Ut[1]-Et[1];Ae=Math.atan2(Bt,_t)*180/Math.PI,Ae<0&&(Ae+=360),Ae<1e-6&&(Ae=0)}else{ue="gradientradial";var Et=[Me.x*Re,Me.y*Lt],$e=Ce.transform,jt=Ce.scale,He=Re,se=Lt;Te=[(Et[0]-qe.x)/He,(Et[1]-qe.y)/se],$e&&C(Et,Et,$e),He/=jt[0]*T,se/=jt[1]*T;var J=v(He,se);Je=2*0/J,At=2*Me.r/J-Je}var Ue=Me.colorStops.slice();Ue.sort(function(qt,Ht){return qt.offset-Ht.offset});for(var Le=Ue.length,ee=[],ct=[],Mt=0;Mt<Le;Mt++){var ot=Ue[Mt],Yt=F(ot.color);ct.push(ot.offset*At+Je+" "+Yt[0]),(Mt===0||Mt===Le-1)&&ee.push(Yt)}if(Le>=2){var or=ee[0][0],Zr=ee[1][0],ir=ee[0][1]*de.opacity,dr=ee[1][1]*de.opacity;fe.type=ue,fe.method="none",fe.focus="100%",fe.angle=Ae,fe.color=or,fe.color2=Zr,fe.colors=ct.join(","),fe.opacity=dr,fe.opacity2=ir}ue==="radial"&&(fe.focusposition=Te.join(","))}else j(fe,Me,de.opacity)},K=function(fe,de){de.lineDash&&(fe.dashstyle=de.lineDash.join(" ")),de.stroke!=null&&!(de.stroke instanceof l)&&j(fe,de.stroke,de.opacity)},V=function(fe,de,Ce,Me){var ue=de==="fill",Ae=fe.getElementsByTagName(de)[0];Ce[de]!=null&&Ce[de]!=="none"&&(ue||!ue&&Ce.lineWidth)?(fe[ue?"filled":"stroked"]="true",Ce[de]instanceof l&&R(fe,Ae),Ae||(Ae=t.createNode(de)),ue?U(Ae,Ce,Me):K(Ae,Ce),D(fe,Ae)):(fe[ue?"filled":"stroked"]="false",R(fe,Ae))},z=[[],[],[]],Q=function(fe,de){var Ce=a.M,Me=a.C,ue=a.L,Ae=a.A,Te=a.Q,Je=[],At,qe,Re,Lt,$e,Et,Ut=fe.data,Bt=fe.len();for(Lt=0;Lt<Bt;){Re=Ut[Lt++],qe="",At=0;switch(Re){case Ce:qe=" m ",At=1,$e=Ut[Lt++],Et=Ut[Lt++],z[0][0]=$e,z[0][1]=Et;break;case ue:qe=" l ",At=1,$e=Ut[Lt++],Et=Ut[Lt++],z[0][0]=$e,z[0][1]=Et;break;case Te:case Me:qe=" c ",At=3;var _t=Ut[Lt++],jt=Ut[Lt++],He=Ut[Lt++],se=Ut[Lt++],J,Ue;Re===Te?(J=He,Ue=se,He=(He+2*_t)/3,se=(se+2*jt)/3,_t=($e+2*_t)/3,jt=(Et+2*jt)/3):(J=Ut[Lt++],Ue=Ut[Lt++]),z[0][0]=_t,z[0][1]=jt,z[1][0]=He,z[1][1]=se,z[2][0]=J,z[2][1]=Ue,$e=J,Et=Ue;break;case Ae:var Le=0,ee=0,ct=1,Mt=1,ot=0;de&&(Le=de[4],ee=de[5],ct=u(de[0]*de[0]+de[1]*de[1]),Mt=u(de[2]*de[2]+de[3]*de[3]),ot=Math.atan2(-de[1]/Mt,de[0]/ct));var Yt=Ut[Lt++],or=Ut[Lt++],Zr=Ut[Lt++],ir=Ut[Lt++],dr=Ut[Lt++]+ot,qt=Ut[Lt++]+dr+ot;Lt++;var Ht=Ut[Lt++],lt=Yt+p(dr)*Zr,Hr=or+g(dr)*ir,_t=Yt+p(qt)*Zr,jt=or+g(qt)*ir,dn=Ht?" wa ":" at ";Math.abs(lt-_t)<1e-4&&(Math.abs(qt-dr)>.01?Ht&&(lt+=270/T):Math.abs(Hr-or)<1e-4?Ht&<<Yt||!Ht&<>Yt?jt-=270/T:jt+=270/T:Ht&&Hr<or||!Ht&&Hr>or?_t+=270/T:_t-=270/T),Je.push(dn,s(((Yt-Zr)*ct+Le)*T-S),y,s(((or-ir)*Mt+ee)*T-S),y,s(((Yt+Zr)*ct+Le)*T-S),y,s(((or+ir)*Mt+ee)*T-S),y,s((lt*ct+Le)*T-S),y,s((Hr*Mt+ee)*T-S),y,s((_t*ct+Le)*T-S),y,s((jt*Mt+ee)*T-S)),$e=_t,Et=jt;break;case a.R:var Nn=z[0],Wn=z[1];Nn[0]=Ut[Lt++],Nn[1]=Ut[Lt++],Wn[0]=Nn[0]+Ut[Lt++],Wn[1]=Nn[1]+Ut[Lt++],de&&(C(Nn,Nn,de),C(Wn,Wn,de)),Nn[0]=s(Nn[0]*T-S),Wn[0]=s(Wn[0]*T-S),Nn[1]=s(Nn[1]*T-S),Wn[1]=s(Wn[1]*T-S),Je.push(" m ",Nn[0],y,Nn[1]," l ",Wn[0],y,Nn[1]," l ",Wn[0],y,Wn[1]," l ",Nn[0],y,Wn[1]);break;case a.Z:Je.push(" x ")}if(At>0){Je.push(qe);for(var gi=0;gi<At;gi++){var yn=z[gi];de&&C(yn,yn,de),Je.push(s(yn[0]*T-S),y,s(yn[1]*T-S),gi<At-1?y:"")}}}return Je.join("")};n.prototype.brushVML=function(X){var fe=this.style,de=this._vmlEl;de||(de=t.createNode("shape"),I(de),this._vmlEl=de),V(de,"fill",fe,this),V(de,"stroke",fe,this);var Ce=this.transform,Me=Ce!=null,ue=de.getElementsByTagName("stroke")[0];if(ue){var Ae=fe.lineWidth;if(Me&&!fe.strokeNoScale){var Te=Ce[0]*Ce[3]-Ce[1]*Ce[2];Ae*=u(h(Te))}ue.weight=Ae+"px"}var Je=this.path||(this.path=new e);this.__dirtyPath&&(Je.beginPath(),Je.subPixelOptimize=!1,this.buildPath(Je,this.shape),Je.toStatic(),this.__dirtyPath=!1),de.path=Q(Je,this.transform),de.style.zIndex=k(this.zlevel,this.z,this.z2),D(X,de),fe.text!=null?this.drawRectText(X,this.getBoundingRect()):this.removeRectText(X)},n.prototype.onRemove=function(X){R(X,this._vmlEl),this.removeRectText(X)},n.prototype.onAdd=function(X){D(X,this._vmlEl),this.appendRectText(X)};var Z=function(fe){return typeof fe=="object"&&fe.tagName&&fe.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(X){var fe=this.style,de=fe.image,Ce,Me;if(Z(de)){var ue=de.src;if(ue===this._imageSrc)Ce=this._imageWidth,Me=this._imageHeight;else{var Ae=de.runtimeStyle,Te=Ae.width,Je=Ae.height;Ae.width="auto",Ae.height="auto",Ce=de.width,Me=de.height,Ae.width=Te,Ae.height=Je,this._imageSrc=ue,this._imageWidth=Ce,this._imageHeight=Me}de=ue}else de===this._imageSrc&&(Ce=this._imageWidth,Me=this._imageHeight);if(!de)return;var At=fe.x||0,qe=fe.y||0,Re=fe.width,Lt=fe.height,$e=fe.sWidth,Et=fe.sHeight,Ut=fe.sx||0,Bt=fe.sy||0,_t=$e&&Et,jt=this._vmlEl;jt||(jt=t.doc.createElement("div"),I(jt),this._vmlEl=jt);var He=jt.style,se=!1,J,Ue=1,Le=1;if(this.transform&&(J=this.transform,Ue=u(J[0]*J[0]+J[1]*J[1]),Le=u(J[2]*J[2]+J[3]*J[3]),se=J[1]||J[2]),se){var ee=[At,qe],ct=[At+Re,qe],Mt=[At,qe+Lt],ot=[At+Re,qe+Lt];C(ee,ee,J),C(ct,ct,J),C(Mt,Mt,J),C(ot,ot,J);var Yt=v(ee[0],ct[0],Mt[0],ot[0]),or=v(ee[1],ct[1],Mt[1],ot[1]),Zr=[];Zr.push("M11=",J[0]/Ue,y,"M12=",J[2]/Le,y,"M21=",J[1]/Ue,y,"M22=",J[3]/Le,y,"Dx=",s(At*Ue+J[4]),y,"Dy=",s(qe*Le+J[5])),He.padding="0 "+s(Yt)+"px "+s(or)+"px 0",He.filter=x+".Matrix("+Zr.join("")+", SizingMethod=clip)"}else J&&(At=At*Ue+J[4],qe=qe*Le+J[5]),He.filter="",He.left=s(At)+"px",He.top=s(qe)+"px";var ir=this._imageEl,dr=this._cropEl;ir||(ir=t.doc.createElement("div"),this._imageEl=ir);var qt=ir.style;if(_t){if(Ce&&Me)qt.width=s(Ue*Ce*Re/$e)+"px",qt.height=s(Le*Me*Lt/Et)+"px";else{var Ht=new Image,lt=this;Ht.onload=function(){Ht.onload=null,Ce=Ht.width,Me=Ht.height,qt.width=s(Ue*Ce*Re/$e)+"px",qt.height=s(Le*Me*Lt/Et)+"px",lt._imageWidth=Ce,lt._imageHeight=Me,lt._imageSrc=de},Ht.src=de}dr||(dr=t.doc.createElement("div"),dr.style.overflow="hidden",this._cropEl=dr);var Hr=dr.style;Hr.width=s((Re+Ut*Re/$e)*Ue),Hr.height=s((Lt+Bt*Lt/Et)*Le),Hr.filter=x+".Matrix(Dx="+-Ut*Re/$e*Ue+",Dy="+-Bt*Lt/Et*Le+")",dr.parentNode||jt.appendChild(dr),ir.parentNode!==dr&&dr.appendChild(ir)}else qt.width=s(Ue*Re)+"px",qt.height=s(Le*Lt)+"px",jt.appendChild(ir),dr&&dr.parentNode&&(jt.removeChild(dr),this._cropEl=null);var dn="",Nn=fe.opacity;Nn<1&&(dn+=".Alpha(opacity="+s(Nn*100)+") "),dn+=x+".AlphaImageLoader(src="+de+", SizingMethod=scale)",qt.filter=dn,jt.style.zIndex=k(this.zlevel,this.z,this.z2),D(X,jt),fe.text!=null&&this.drawRectText(X,this.getBoundingRect())},r.prototype.onRemove=function(X){R(X,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(X)},r.prototype.onAdd=function(X){D(X,this._vmlEl),this.appendRectText(X)};var le="normal",ne={},ve=0,xe=100,_e=document.createElement("div"),Be=function(fe){var de=ne[fe];if(!de){ve>xe&&(ve=0,ne={});var Ce=_e.style,Me;try{Ce.font=fe,Me=Ce.fontFamily.split(",")[0]}catch(ue){}de={style:Ce.fontStyle||le,variant:Ce.fontVariant||le,weight:Ce.fontWeight||le,size:parseFloat(Ce.fontSize||12)|0,family:Me||"Microsoft YaHei"},ne[fe]=de,ve++}return de},me;m.$override("measureText",function(X,fe){var de=t.doc;me||(me=de.createElement("div"),me.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",t.doc.body.appendChild(me));try{me.style.font=fe}catch(Ce){}return me.innerHTML="",me.appendChild(de.createTextNode(X)),{width:me.offsetWidth}});for(var Fe=new A,ie=function(fe,de,Ce,Me){var ue=this.style;this.__dirty&&f.normalizeTextStyle(ue,!0);var Ae=ue.text;if(Ae!=null&&(Ae+=""),!Ae)return;if(ue.rich){var Te=m.parseRichText(Ae,ue);Ae=[];for(var Je=0;Je<Te.lines.length;Je++){for(var At=Te.lines[Je].tokens,qe=[],Re=0;Re<At.length;Re++)qe.push(At[Re].text);Ae.push(qe.join(""))}Ae=Ae.join(`
|
|
|
`)}var Lt,$e,Et=ue.textAlign,Ut=ue.textVerticalAlign,Bt=Be(ue.font),_t=Bt.style+" "+Bt.variant+" "+Bt.weight+" "+Bt.size+'px "'+Bt.family+'"';Ce=Ce||m.getBoundingRect(Ae,_t,Et,Ut,ue.textPadding,ue.textLineHeight);var jt=this.transform;if(jt&&!Me&&(Fe.copy(de),Fe.applyTransform(jt),de=Fe),Me)Lt=de.x,$e=de.y;else{var He=ue.textPosition;if(He instanceof Array)Lt=de.x+M(He[0],de.width),$e=de.y+M(He[1],de.height),Et=Et||"left";else{var se=this.calculateTextPosition?this.calculateTextPosition({},ue,de):m.calculateTextPosition({},ue,de);Lt=se.x,$e=se.y,Et=Et||se.textAlign,Ut=Ut||se.textVerticalAlign}}Lt=m.adjustTextX(Lt,Ce.width,Et),$e=m.adjustTextY($e,Ce.height,Ut),$e+=Ce.height/2;var J=t.createNode,Ue=this._textVmlEl,Le,ee,ct;Ue?(ct=Ue.firstChild,Le=ct.nextSibling,ee=Le.nextSibling):(Ue=J("line"),Le=J("path"),ee=J("textpath"),ct=J("skew"),ee.style["v-text-align"]="left",I(Ue),Le.textpathok=!0,ee.on=!0,Ue.from="0 0",Ue.to="1000 0.05",D(Ue,ct),D(Ue,Le),D(Ue,ee),this._textVmlEl=Ue);var Mt=[Lt,$e],ot=Ue.style;jt&&Me?(C(Mt,Mt,jt),ct.on=!0,ct.matrix=jt[0].toFixed(3)+y+jt[2].toFixed(3)+y+jt[1].toFixed(3)+y+jt[3].toFixed(3)+",0,0",ct.offset=(s(Mt[0])||0)+","+(s(Mt[1])||0),ct.origin="0 0",ot.left="0px",ot.top="0px"):(ct.on=!1,ot.left=s(Lt)+"px",ot.top=s($e)+"px"),ee.string=L(Ae);try{ee.style.font=_t}catch(Yt){}V(Ue,"fill",{fill:ue.textFill,opacity:ue.opacity},this),V(Ue,"stroke",{stroke:ue.textStroke,opacity:ue.opacity,lineDash:ue.lineDash||null},this),Ue.style.zIndex=k(this.zlevel,this.z,this.z2),D(fe,Ue)},te=function(fe){R(fe,this._textVmlEl),this._textVmlEl=null},Ge=function(fe){D(fe,this._textVmlEl)},oe=[c,o,r,n,i],Y=0;Y<oe.length;Y++){var G=oe[Y].prototype;G.drawRectText=ie,G.removeRectText=te,G.appendRectText=Ge}i.prototype.brushVML=function(X){var fe=this.style;fe.text!=null?this.drawRectText(X,{x:fe.x||0,y:fe.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(X)},i.prototype.onRemove=function(X){this.removeRectText(X)},i.prototype.onAdd=function(X){this.appendRectText(X)}}},qJCg:function(H,B,d){var _=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])&&_.contain(i.range,o[0],o[1])},rect:function(o,r,i){var n=i.range;if(!o||n.length<=1)return!1;var e=o.x,l=o.y,t=o.width,a=o.height,s=n[0];if(_.contain(n,e,l)||_.contain(n,e+t,l)||_.contain(n,e,l+a)||_.contain(n,e+t,l+a)||E.create(o).contain(s[0],s[1])||A(e,l,e+t,l,n)||A(e,l,e,l+a,n)||A(e+t,l,e+t,l+a,n)||A(e,l+a,e+t,l+a,n))return!0}}};function m(o){var r=["x","y"],i=["width","height"];return{point:function(n,e,l){if(n){var t=l.range,a=n[o];return f(a,t)}},rect:function(n,e,l){if(n){var t=l.range,a=[n[r[o]],n[r[o]]+n[i[o]]];return a[1]<a[0]&&a.reverse(),f(a[0],t)||f(a[1],t)||f(t[0],a)||f(t[1],a)}}}}function f(o,r){return r[0]<=o&&o<=r[1]}var c=w;H.exports=c},qM6L:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(){var E=_,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 l=r[e>>>2]>>>16-e%4*8&65535;n.push(String.fromCharCode(l))}return n.join("")},parse:function(o){for(var r=o.length,i=[],n=0;n<r;n++)i[n>>>1]|=o.charCodeAt(n)<<16-n%2*16;return A.create(i,r*2)}};w.Utf16LE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var l=f(r[e>>>2]>>>16-e%4*8&65535);n.push(String.fromCharCode(l))}return n.join("")},parse:function(o){for(var r=o.length,i=[],n=0;n<r;n++)i[n>>>1]|=f(o.charCodeAt(n)<<16-n%2*16);return A.create(i,r*2)}};function f(c){return c<<8&4278255360|c>>>8&16711935}}(),_.enc.Utf16})},qMZE:function(H,B,d){var _=d("JEkh"),E=_.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 _=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 l=c.get(e)||new Set;l.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 s=c.get(a)||new Set;s.forEach(function(u){var h=u.parent,p=u.node;if(r(p)||!u.parent||t.has(u.parent.key))return;if(r(u.parent.node)){t.add(h.key);return}var 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),l=0;l<=r;l+=1){var t=o.get(l)||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,s=r;s>=0;s-=1){var u=o.get(s)||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(s){var u=!!o[s];return u||i.push(s),u})),l=new Map,t=0;Object.keys(o).forEach(function(s){var u=o[s],h=u.level,p=l.get(h);p||(p=new Set,l.set(h,p)),p.add(u),t=Math.max(t,h)}),Object(_.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return c===!0?a=A(e,l,t,n):a=w(e,c.halfCheckedKeys,l,t,n),a}},qPY4:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=E(d("u4NN"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},qWUW:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("ProS"),E=_.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 _=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 l=n[0],t=o.dataToCoord(l+1)-o.dataToCoord(l),a=Math.abs(t),s=E.getBoundingRect(l,r.getFont(),"center","top"),u=Math.max(s.height,7),h=u/a;isNaN(h)&&(h=Infinity);var p=Math.max(0,Math.floor(h)),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}},_.inherits(f,C);var c=f;H.exports=c},qgGe:function(H,B,d){var _=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;_.each(c.children,function(i){f(i);var n=i.value;_.isArray(n)&&(n=n[0]),o+=n});var r=c.value;_.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=o),r<0&&(r=0),_.isArray(c.value)?c.value[0]=r:c.value=r}H.exports=m},qj72:function(H,B,d){var _=d("bYtY");function E(A,w){return w=w||[0,0],_.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:_.bind(E,A)}}}H.exports=C},"qt/9":function(H,B,d){var _=d("ProS"),E=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var C=d("nVfU"),A=C.layout,w=d("f5Yq");d("Ae16"),_.registerLayout(E.curry(A,"pictorialBar")),_.registerVisual(w("pictorialBar","roundRect"))},qu8F:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return _.mode.CTRGladman=function(){var E=_.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 l=0;l<r;l++)f[c+l]^=e[l]}});return E.Decryptor=w,E}(),_.mode.CTRGladman})},quyA:function(H,B){var d="\\ud800-\\udfff",_="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=_+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 _=d("ProS"),E=d("bYtY"),C=d("K4ya"),A=d("XxSj"),w=_.PRIORITY.VISUAL.COMPONENT;_.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}}),_.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),l=o.getDimensionInfo(e);l!=null&&(n.dimension=l.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")},l=0,t=n.length;l<t;l++){var a=n[l],s=i[a==="opacity"?"__alphaForOpacity":a];s&&s.applyVisual(o,u,h)}return e.color;function u(p){return e[p]}function h(p,g){e[p]=g}}},"r+aA":function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=E(d("+Zaj"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},r6Bn:function(H,B,d){var _=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,l=o;e;)e.parent=l,e.updateTransform(),r.push(e),l=e,e=e.clipPath}if(o.isGroup){for(var t=o._children,a=0;a<t.length;a++){var s=t[a];o.__dirty&&(s.__dirty=!0),this._updateAndAddDisplayable(s,r,i)}o.__dirty=!1}else o.__clipPaths=r,this._displayList[this._displayListLen++]=o},addRoot:function(o){if(o.__storage===this)return;o instanceof C&&o.addChildrenToStorage(this),this.addToStorage(o),this._roots.push(o)},delRoot:function(o){if(o==null){for(var r=0;r<this._roots.length;r++){var i=this._roots[r];i instanceof C&&i.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var r=0,n=o.length;r<n;r++)this.delRoot(o[r]);return}var e=_.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 _=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,l,t){var a=e.cpx2,s=e.cpy2;return a===null||s===null?[(t?o:f)(e.x1,e.cpx1,e.cpx2,e.x2,l),(t?o:f)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(t?c:m)(e.x1,e.cpx1,e.x2,l),(t?c:m)(e.y1,e.cpy1,e.y2,l)]}var n=_.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(l,t){var a=t.x1,s=t.y1,u=t.x2,h=t.y2,p=t.cpx1,g=t.cpy1,v=t.cpx2,y=t.cpy2,x=t.percent;if(x===0)return;l.moveTo(a,s),v==null||y==null?(x<1&&(A(a,p,u,x,r),p=r[1],u=r[2],A(s,g,h,x,r),g=r[1],h=r[2]),l.quadraticCurveTo(p,g,u,h)):(x<1&&(w(a,p,v,u,x,r),p=r[1],v=r[2],u=r[3],w(s,g,y,h,x,r),g=r[1],y=r[2],h=r[3]),l.bezierCurveTo(p,g,v,y,u,h))},pointAt:function(l){return i(this.shape,l,!1)},tangentAt:function(l){var t=i(this.shape,l,!0);return E.normalize(t,t)}});H.exports=n},"rAM+":function(H,B,d){"use strict";d.d(B,"a",function(){return E});var _=d("Qw5x");function E(C,A){var w;if(typeof Symbol=="undefined"||C[Symbol.iterator]==null){if(Array.isArray(C)||(w=Object(_.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 _=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){s(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:l(h)}function e(h){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},e(h)}function l(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function t(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),p&&a(h,p)}function a(h,p){return a=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},a(h,p)}function s(h,p,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))),s(l(v),"onClick",function(S){var b=v.props,O=b.text,I=b.onCopy,L=b.children,N=b.options,D=_.default.Children.only(L),R=(0,E.default)(O,N);I&&I(O,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 _.default.cloneElement(O,m({},b,{onClick:this.onClick}))}}]),p}(_.default.PureComponent);B.CopyToClipboard=u,s(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="ReloadOutlined";var f=B.a=E.forwardRef(m)},rUJ1:function(H,B){var d=/[&<>"']/,_=/[&<>"']/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(_,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 O;try{O=decodeURIComponent(c(b)).replace(i,"").toLowerCase()}catch(I){return null}if(O.indexOf("javascript:")===0||O.indexOf("vbscript:")===0||O.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 l={},t=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(T,S){l[" "+T]||(t.test(T)?l[" "+T]=T+"/":l[" "+T]=v(T,"/",!0)),T=l[" "+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(s,"$1")+S:T+S}var h={exec:function(){}};function p(T){for(var S=1,b,O;S<arguments.length;S++){b=arguments[S];for(O in b)Object.prototype.hasOwnProperty.call(b,O)&&(T[O]=b[O])}return T}function g(T,S){var b=T.replace(/\|/g,function(L,N,D){for(var R=!1,k=N;--k>=0&&D[k]==="\\";)R=!R;return R?"|":" |"}),O=b.split(/ \|/),I=0;if(O.length>S)O.splice(S);else for(;O.length<S;)O.push("");for(;I<O.length;I++)O[I]=O[I].trim().replace(/\\\|/g,"|");return O}function v(T,S,b){var O=T.length;if(O===0)return"";for(var I=0;I<O;){var L=T.charAt(O-I-1);if(L===S&&!b)I++;else if(L!==S&&b)I++;else break}return T.substr(0,O-I)}function y(T,S){if(T.indexOf(S[1])===-1)return-1;for(var b=T.length,O=0,I=0;I<b;I++)if(T[I]==="\\")I++;else if(T[I]===S[0])O++;else if(T[I]===S[1]&&(O--,O<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 _=d("MFOe"),E=_.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 _=d("lOQZ"),E=_.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 _=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=_.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,s=c(t,function(D){return D[2]}),u=[];s.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],O=u[x].dataList.length,I=-1,L=0;L<O;++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 s=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=s.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(),s=[],u=0;u<a;++u)s[u]=u;var h=t.mapDimension("single"),p=c(s,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,s){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 O=u.get(t[0],h[y].indices[b]),I=Math.abs(O-a);I<=x&&(v=O,x=I,T=h[y].indices[b])}p.push(T)}return{dataIndices:p,nestestValue:v}},formatTooltip:function(t){var a=this.getData(),s=a.getName(t),u=a.get(a.mapDimension("value"),t);return(isNaN(u)||u==null)&&(u="-"),r(s+" : "+u)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),l=e;H.exports=l},rkZ5:function(H,B,d){var _=d("Tghj"),E=_.__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(l,t,a){var s=l.getData(),u=this._updateLineDraw(s,l),h=l.get("zlevel"),p=l.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(l)&&p&&(v||g.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),u.updateData(s);var y=l.get("clip",!0)&&n(l.coordinateSystem,!1,l);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(l,t,a){var s=l.getData(),u=this._updateLineDraw(s,l);u.incrementalPrepareUpdate(s),this._clearLayer(a),this._finished=!1},incrementalRender:function(l,t,a){this._lineDraw.incrementalUpdate(l,t.getData()),this._finished=l.end===t.getData().count()},updateTransform:function(l,t,a){var s=l.getData(),u=l.pipelineContext;if(!this._finished||u.large||u.progressiveRender)return{update:!0};var h=r.reset(l);h.progress&&h.progress({start:0,end:s.count()},s),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(l,t){var a=this._lineDraw,s=this._showEffect(t),u=!!t.get("polyline"),h=t.pipelineContext,p=h.large;return(!a||s!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=p?new o:new A(u?s?c:f:s?w:m),this._hasEffet=s,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var t=l.getZr(),a=t.painter.getType()==="svg";!a&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});H.exports=e},rmlV:function(H,B,d){var _=d("y+Vt"),E=_.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 _=d("bYtY"),E=["rect","polygon","keep","clear"];function C(w,m){var f=w&&w.brush;if(_.isArray(f)||(f=f?[f]:[]),!f.length)return;var c=[];_.each(f,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(c=c.concat(l))});var o=w&&w.toolbox;_.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={};_.each(w,function(f){m[f]=1}),w.length=0,_.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 _=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=!_.supportsCursorURIs||_.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 l=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=e;var t;try{t=new ImageData(new Uint8ClampedArray(o),n,e)}catch(s){t=l.createImageData(n,e),t.data.set(new Uint8ClampedArray(o))}if(l.clearRect(0,0,n,e),l.putImageData(t,0,0),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 _={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=_},s2lz:function(H,B,d){var _=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,l=E.bind,t=C.Group,a=C.Rect,s=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,k,M){var j=R.findComponents({mainType:"series",subType:"treemap",query:M});if(E.indexOf(j,D)<0)return;this.seriesModel=D,this.api=k,this.ecModel=R;var F=["treemapZoomToNode","treemapRootToNode"],U=w.retrieveTargetInfo(M,F,D),K=M&&M.type,V=D.layoutInfo,z=!this._oldTree,Q=this._storage,Z=K==="treemapRootToNode"&&U&&Q?{rootNodeGroup:Q.nodeGroup[U.node.getRawIndex()],direction:M.direction}:null,le=this._giveContainerGroup(V),ne=this._doRender(le,D,Z);!z&&(!K||K==="treemapZoomToNode"||K==="treemapRootToNode")?this._doAnimation(le,ne,D,Z):ne.renderFinally(),this._resetController(k),this._renderBreadcrumb(D,k,U)},_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,k){var M=R.getData().tree,j=this._oldTree,F=I(),U=I(),K=this._storage,V=[],z=E.curry(L,R,U,K,k,F,V);Z(M.root?[M.root]:[],j&&j.root?[j.root]:[],D,M===j||!j,0);var Q=le(K);return this._oldTree=M,this._storage=U,{lastsForAnimation:F,willDeleteEls:Q,renderFinally:ne};function Z(ve,xe,_e,Be,me){Be?(xe=ve,s(ve,function(te,Ge){!te.isRemoved()&&ie(Ge,Ge)})):new A(xe,ve,Fe,Fe).add(ie).update(ie).remove(E.curry(ie,null)).execute();function Fe(te){return te.getId()}function ie(te,Ge){var oe=te!=null?ve[te]:null,Y=Ge!=null?xe[Ge]:null,G=z(oe,Y,_e,me);G&&Z(oe&&oe.viewChildren||[],Y&&Y.viewChildren||[],G,Be,me+1)}}function le(ve){var xe=I();return ve&&s(ve,function(_e,Be){var me=xe[Be];s(_e,function(Fe){Fe&&(me.push(Fe),Fe.__tmWillDelete=1)})}),xe}function ne(){s(Q,function(ve){s(ve,function(xe){xe.parent&&xe.parent.remove(xe)})}),s(V,function(ve){ve.invisible=!0,ve.dirty()})}},_doAnimation:function(D,R,k,M){if(!k.get("animation"))return;var j=k.get("animationDurationUpdate"),F=k.get("animationEasing"),U=r.createWrap();s(R.willDeleteEls,function(K,V){s(K,function(z,Q){if(z.invisible)return;var Z=z.parent,le;if(M&&M.direction==="drillDown")le=Z===M.rootNodeGroup?{shape:{x:0,y:0,width:Z.__tmNodeWidth,height:Z.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var ne=0,ve=0;Z.__tmWillDelete||(ne=Z.__tmNodeWidth/2,ve=Z.__tmNodeHeight/2),le=V==="nodeGroup"?{position:[ne,ve],style:{opacity:0}}:{shape:{x:ne,y:ve,width:0,height:0},style:{opacity:0}}}le&&U.add(z,le,j,F)})}),s(this._storage,function(K,V){s(K,function(z,Q){var Z=R.lastsForAnimation[V][Q],le={};if(!Z)return;V==="nodeGroup"?Z.old&&(le.position=z.position.slice(),z.attr("position",Z.old)):(Z.old&&(le.shape=E.extend({},z.shape),z.setShape(Z.old)),Z.fadein?(z.setStyle("opacity",0),le.style={opacity:1}):z.style.opacity!==1&&(le.style={opacity:1})),U.add(z,le,j,F)})},this),this._state="animating",U.done(l(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",l(this._onPan,this)),R.on("zoom",l(this._onZoom,this)));var k=new c(0,0,D.getWidth(),D.getHeight());R.setPointerChecker(function(M,j,F){return k.contain(j,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 k=R.getLayout();if(!k)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:k.x+D.dx,y:k.y+D.dy,width:k.width,height:k.height}})}},_onZoom:function(D){var R=D.originX,k=D.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var j=M.getLayout();if(!j)return;var F=new c(j.x,j.y,j.width,j.height),U=this.seriesModel.layoutInfo;R-=U.x,k-=U.y;var K=o.create();o.translate(K,K,[-R,-k]),o.scale(K,K,[D.scale,D.scale]),o.translate(K,K,[R,k]),F.applyTransform(K),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 k=this.seriesModel.get("nodeClick",!0);if(!k)return;var M=this.findTarget(R.offsetX,R.offsetY);if(!M)return;var j=M.node;if(j.getLayout().isLeafRoot)this._rootToNode(M);else if(k==="zoomToNode")this._zoomToNode(M);else if(k==="link"){var F=j.hostTree.data.getItemModel(j.dataIndex),U=F.get("link",!0),K=F.get("target",!0)||"blank";U&&e(U,K)}},this)},_renderBreadcrumb:function(D,R,k){k||(k=D.get("leafDepth",!0)!=null?{node:D.getViewRoot()}:this.findTarget(R.getWidth()/2,R.getHeight()/2),k||(k={node:D.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new m(this.group))).render(D,R,k.node,l(M,this));function M(j){this._state!=="animating"&&(w.aboveViewRoot(D.getViewRoot(),j)?this._rootToNode({node:j}):this._zoomToNode({node:j}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=I(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(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 k,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(j){var F=this._storage.background[j.getRawIndex()];if(F){var U=F.transformCoordToLocal(D,R),K=F.shape;if(K.x<=U[0]&&U[0]<=K.x+K.width&&K.y<=U[1]&&U[1]<=K.y+K.height)k={node:j,offsetX:U[0],offsetY:U[1]};else return!1}},this),k}});function I(){return{nodeGroup:[],background:[],content:[]}}function L(D,R,k,M,j,F,U,K,V,z){if(!U)return;var Q=U.getLayout(),Z=D.getData();if(Z.setItemGraphicEl(U.dataIndex,null),!Q||!Q.isInView)return;var le=Q.width,ne=Q.height,ve=Q.borderWidth,xe=Q.invisible,_e=U.getRawIndex(),Be=K&&K.getRawIndex(),me=U.viewChildren,Fe=Q.upperHeight,ie=me&&me.length,te=U.getModel("itemStyle"),Ge=U.getModel("emphasis.itemStyle"),oe=Ae("nodeGroup",t);if(!oe)return;if(V.add(oe),oe.attr("position",[Q.x||0,Q.y||0]),oe.__tmNodeWidth=le,oe.__tmNodeHeight=ne,Q.isAboveViewRoot)return oe;var Y=U.getModel(),G=Ae("background",a,z,x);if(G&&fe(oe,G,ie&&Q.upperLabelHeight),ie)C.isHighDownDispatcher(oe)&&C.setAsHighDownDispatcher(oe,!1),G&&(C.setAsHighDownDispatcher(G,!0),Z.setItemGraphicEl(U.dataIndex,G));else{var X=Ae("content",a,z,T);X&&de(oe,X),G&&C.isHighDownDispatcher(G)&&C.setAsHighDownDispatcher(G,!1),C.setAsHighDownDispatcher(oe,!0),Z.setItemGraphicEl(U.dataIndex,oe)}return oe;function fe(At,qe,Re){if(qe.dataIndex=U.dataIndex,qe.seriesIndex=D.seriesIndex,qe.setShape({x:0,y:0,width:le,height:ne}),xe)Ce(qe);else{qe.invisible=!1;var Lt=U.getVisual("borderColor",!0),$e=Ge.get("borderColor"),Et=b(te);Et.fill=Lt;var Ut=S(Ge);if(Ut.fill=$e,Re){var Bt=le-2*ve;Me(Et,Ut,Lt,Bt,Fe,{x:ve,y:0,width:Bt,height:Fe})}else Et.text=Ut.text=null;qe.setStyle(Et),C.setElementHoverStyle(qe,Ut)}At.add(qe)}function de(At,qe){qe.dataIndex=U.dataIndex,qe.seriesIndex=D.seriesIndex;var Re=Math.max(le-2*ve,0),Lt=Math.max(ne-2*ve,0);if(qe.culling=!0,qe.setShape({x:ve,y:ve,width:Re,height:Lt}),xe)Ce(qe);else{qe.invisible=!1;var $e=U.getVisual("color",!0),Et=b(te);Et.fill=$e;var Ut=S(Ge);Me(Et,Ut,$e,Re,Lt),qe.setStyle(Et),C.setElementHoverStyle(qe,Ut)}At.add(qe)}function Ce(At){!At.invisible&&F.push(At)}function Me(At,qe,Re,Lt,$e,Et){var Ut=Y.get("name"),Bt=Y.getModel(Et?g:h),_t=Y.getModel(Et?v:p),jt=Bt.getShallow("show");C.setLabelStyle(At,qe,Bt,_t,{defaultText:jt?Ut:null,autoColor:Re,isRectText:!0,labelFetcher:D,labelDataIndex:U.dataIndex,labelProp:Et?"upperLabel":"label"}),ue(At,Et,Q),ue(qe,Et,Q),Et&&(At.textRect=E.clone(Et)),At.truncate=jt&&Bt.get("ellipsis")?{outerWidth:Lt,outerHeight:$e,minChar:2}:null}function ue(At,qe,Re){var Lt=At.text;if(!qe&&Re.isLeafRoot&&Lt!=null){var $e=D.get("drillDownIcon",!0);At.text=$e?$e+" "+Lt:Lt}}function Ae(At,qe,Re,Lt){var $e=Be!=null&&k[At][Be],Et=j[At];return $e?(k[At][Be]=null,Te(Et,$e,At)):xe||($e=new qe({z:N(Re,Lt)}),$e.__tmDepth=Re,$e.__tmStorageName=At,Je(Et,$e,At)),R[At][_e]=$e}function Te(At,qe,Re){var Lt=At[_e]={};Lt.old=Re==="nodeGroup"?qe.position.slice():E.extend({},qe.shape)}function Je(At,qe,Re){var Lt=At[_e]={},$e=U.parentNode;if($e&&(!M||M.direction==="drillDown")){var Et=0,Ut=0,Bt=j.background[$e.getRawIndex()];!M&&Bt&&Bt.old&&(Et=Bt.old.width,Ut=Bt.old.height),Lt.old=Re==="nodeGroup"?[0,Ut]:{x:Et,y:Ut,width:0,height:0}}Lt.fadein=Re!=="nodeGroup"}}function N(D,R){var k=D*y+R;return(k-1)/k}H.exports=O},sAZ8:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("+rIm"),A=d("/IIm"),w=d("9KIM"),m=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=_.extendComponentView({type:"parallelAxis",init:function(e,l){c.superApply(this,"init",arguments),(this._brushController=new A(l.getZr())).on("brush",E.bind(this._onBrush,this))},render:function(e,l,t,a){if(o(e,l,a))return;this.axisModel=e,this.api=t,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new m.Group,this.group.add(this._axisGroup),!e.get("show"))return;var u=i(e,l),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(s,this._axisGroup,S)},_refreshBrushController:function(e,l,t,a,s,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:-s/2,width:p,height:s});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:l,removeOnClick:!0}).updateCovers(r(t))},_onBrush:function(e,l){var t=this.axisModel,a=t.axis,s=E.map(e,function(u){return[a.coordToData(u.range[0],!0),a.coordToData(u.range[1],!0)]});(!t.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:s})},dispose:function(){this._brushController.dispose()}});function o(e,l,t){return t&&t.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:t})[0]===e}function r(e){var l=e.axis;return E.map(e.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(t[0],!0),l.dataToCoord(t[1],!0)]}})}function i(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var n=c;H.exports=n},sE09:function(H,B,d){},sGsY:function(H,B,d){"use strict";var _=d("lSNA"),E=d.n(_),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(U){var K=U.value,V=U.formatter,z=U.precision,Q=U.decimalSeparator,Z=U.groupSeparator,le=Z===void 0?"":Z,ne=U.prefixCls,ve;if(typeof V=="function")ve=V(K);else{var xe=String(K),_e=xe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!_e||xe==="-")ve=xe;else{var Be=_e[1],me=_e[2]||"0",Fe=_e[4]||"";me=me.replace(/\B(?=(\d{3})+(?!\d))/g,le),typeof z=="number"&&(Fe=r()(Fe,z,"0").slice(0,z)),Fe&&(Fe="".concat(Q).concat(Fe)),ve=[w.createElement("span",{key:"int",className:"".concat(ne,"-content-value-int")},Be,me),Fe&&w.createElement("span",{key:"decimal",className:"".concat(ne,"-content-value-decimal")},Fe)]}}return w.createElement("span",{className:"".concat(ne,"-content-value")},ve)},n=i,e=function(U){var K=U.prefixCls,V=U.className,z=U.style,Q=U.valueStyle,Z=U.value,le=Z===void 0?0:Z,ne=U.title,ve=U.valueRender,xe=U.prefix,_e=U.suffix,Be=U.direction,me=U.onMouseEnter,Fe=U.onMouseLeave,ie=w.createElement(n,A()({},U,{value:le})),te=f()(K,V,E()({},"".concat(K,"-rtl"),Be==="rtl"));return w.createElement("div",{className:te,style:z,onMouseEnter:me,onMouseLeave:Fe},ne&&w.createElement("div",{className:"".concat(K,"-title")},ne),w.createElement("div",{style:Q,className:"".concat(K,"-content")},xe&&w.createElement("span",{className:"".concat(K,"-content-prefix")},xe),ve?ve(ie):ie,_e&&w.createElement("span",{className:"".concat(K,"-content-suffix")},_e)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(c.c)({prefixCls:"statistic"})(e),t=l,a=d("lwsE"),s=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),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),O=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(F,U){var K=F,V=/\[[^\]]*]/g,z=(U.match(V)||[]).map(function(ne){return ne.slice(1,-1)}),Q=U.replace(V,"[]"),Z=O.reduce(function(ne,ve){var xe=T()(ve,2),_e=xe[0],Be=xe[1];if(ne.indexOf(_e)!==-1){var me=Math.floor(K/Be);return K-=me*Be,ne.replace(new RegExp("".concat(_e,"+"),"g"),function(Fe){var ie=Fe.length;return b()(me.toString(),ie,"0")})}return ne},Q),le=0;return Z.replace(V,function(){var ne=z[le];return le+=1,ne})}function L(F,U){var K=U.format,V=K===void 0?"":K,z=new Date(F).getTime(),Q=Date.now(),Z=Math.max(z-Q,0);return I(Z,V)}var N=d("0n0R"),D=1e3/30;function R(F){return new Date(F).getTime()}var k=function(F){g()(K,F);var U=y()(K);function K(){var V;return s()(this,K),V=U.apply(this,arguments),V.syncTimer=function(){var z=V.props.value,Q=R(z);Q>=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,Q=z.onFinish,Z=z.value;if(V.countdownId){clearInterval(V.countdownId),V.countdownId=void 0;var le=R(Z);Q&&le<Date.now()&&Q()}},V.formatCountdown=function(z,Q){var Z=V.props.format;return L(z,A()(A()({},Q),{format:Z}))},V.valueRender=function(z){return Object(N.a)(z,{title:void 0})},V}return h()(K,[{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}))}}]),K}(w.Component);k.defaultProps={format:"HH:mm:ss"};var M=k;t.Countdown=M;var j=B.a=t},"sK/D":function(H,B,d){var _=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,l=r.width,t=r.height,a=o.get("lineStyle.width")||2;n-=a/2,e-=a/2,l+=a,t+=a,n=Math.floor(n),l=Math.round(l);var s=new _.Rect({shape:{x:n,y:e,width:l,height:t}});return c&&(s.shape[i?"width":"height"]=0,_.initProps(s,{shape:{width:l,height:t}},o)),s}function w(f,c,o){var r=f.getArea(),i=new _.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,_.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,_=Math.floor;function E(C,A){var w="";if(!C||A<1||A>d)return w;do A%2&&(w+=C),A=_(A/2),A&&(C+=C);while(A);return w}H.exports=E},sPJy:function(H,B,d){"use strict";var _=d("cIOH"),E=d.n(_),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 _=d("q1tI"),E=d.n(_),C=d("hkKa");function A(w){var m=_.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 _=d("4fz+"),E=d("iRjW"),C=d("Yl7c"),A=function(){this.group=new _,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 _=d("SrGk"),E=d("bYtY"),C=d("SUKs"),A=d("Qe9p");function w(f,c){_.call(this,f,c,["linearGradient","radialGradient"],"__gradient_in_use__")}E.inherits(w,_),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 l=e.getAttribute("id");f.setAttribute(r,"url(#"+l+")")}})}},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;_.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 l=A.parse(e)[3],t=A.toHex(e);n.setAttribute("stop-color","#"+t),n.setAttribute("stop-opacity",l)}else n.setAttribute("stop-color",o[r].color);c.appendChild(n)}f._dom=c},w.prototype.markUsed=function(f){if(f.style){var c=f.style.fill;c&&c._dom&&_.prototype.markUsed.call(this,c._dom),c=f.style.stroke,c&&c._dom&&_.prototype.markUsed.call(this,c._dom)}};var m=w;H.exports=m},sdST:function(H,B,d){var _=d("hi0g");function E(C,A){return A=A||{},_(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 _=30,E=12;function C(A,w){var m,f,c,o,r,i,n,e,l,t,a,s,u,h,p,g,v,y,x,T,S,b,O,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,l=m.whave,t=m.wnext,a=m.window,s=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&&(s+=I[f++]<<u,u+=8,s+=I[f++]<<u,u+=8),y=h[s&g];t:for(;;){if(x=y>>>24,s>>>=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&&(s+=I[f++]<<u,u+=8),T+=s&(1<<x)-1,s>>>=x,u-=x),u<15&&(s+=I[f++]<<u,u+=8,s+=I[f++]<<u,u+=8),y=p[s&v];r:for(;;){if(x=y>>>24,s>>>=x,u-=x,x=y>>>16&255,x&16){if(S=y&65535,x&=15,u<x&&(s+=I[f++]<<u,u+=8,u<x&&(s+=I[f++]<<u,u+=8)),S+=s&(1<<x)-1,S>n){A.msg="invalid distance too far back",m.mode=_;break e}if(s>>>=x,u-=x,x=o-r,S>x){if(x=S-x,x>l&&m.sane){A.msg="invalid distance too far back",m.mode=_;break e}if(b=0,O=a,t===0){if(b+=e-x,x<T){T-=x;do L[o++]=a[b++];while(--x);b=o-S,O=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,O=L}}}else if(b+=t-x,x<T){T-=x;do L[o++]=a[b++];while(--x);b=o-S,O=L}for(;T>2;)L[o++]=O[b++],L[o++]=O[b++],L[o++]=O[b++],T-=3;T&&(L[o++]=O[b++],T>1&&(L[o++]=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)+(s&(1<<x)-1)];continue r}else{A.msg="invalid distance code",m.mode=_;break e}break}}else if((x&64)===0){y=h[(y&65535)+(s&(1<<x)-1)];continue t}else if(x&32){m.mode=E;break e}else{A.msg="invalid literal/length code",m.mode=_;break e}break}}while(f<c&&o<i);T=u>>3,f-=T,u-=T<<3,s&=(1<<u)-1,A.next_in=f,A.next_out=o,A.avail_in=f<c?5+(c-f):5-(f-c),A.avail_out=o<i?257+(i-o):257-(o-i),m.hold=s,m.bits=u;return}},szbU:function(H,B,d){var _=d("bYtY"),E=_.each;function C(w){var m=w&&w.visualMap;_.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&&_.isArray(c)&&E(c,function(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 _=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(O){var I,L=O.target;(I=o.get(L))===null||I===void 0||I.forEach(function(N){return N(L)})})}var i=new c.default(r),n=null,e=null;function l(b,O){o.has(b)||(o.set(b,new Set),i.observe(b)),o.get(b).add(O)}function t(b,O){o.has(b)&&(o.get(b).delete(O),o.get(b).size||(i.unobserve(b),o.delete(b)))}var a=d("1OyB"),s=d("vuIU"),u=d("Ji7U"),h=d("LK+K"),p=function(b){Object(u.a)(I,b);var O=Object(h.a)(I);function I(){return Object(a.a)(this,I),O.apply(this,arguments)}return Object(s.a)(I,[{key:"render",value:function(){return this.props.children}}]),I}(E.Component),g=E.createContext(null);function v(b){var O=b.children,I=b.onBatchResize,L=E.useRef(0),N=E.useRef([]),D=E.useContext(g),R=E.useCallback(function(k,M,j){L.current+=1;var F=L.current;N.current.push({size:k,element:M,data:j}),Promise.resolve().then(function(){F===L.current&&(I==null||I(N.current),N.current=[])}),D==null||D(k,M,j)},[I,D]);return E.createElement(g.Provider,{value:R},O)}function y(b){var O=b.children,I=b.disabled,L=E.useRef(null),N=E.useRef(null),D=E.useContext(g),R=typeof O=="function",k=R?O(L):O,M=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),j=!R&&E.isValidElement(k)&&Object(m.c)(k),F=j?k.ref:null,U=E.useMemo(function(){return Object(m.a)(F,L)},[F,L]),K=E.useRef(b);K.current=b;var V=E.useCallback(function(z){var Q=K.current,Z=Q.onResize,le=Q.data,ne=z.getBoundingClientRect(),ve=ne.width,xe=ne.height,_e=z.offsetWidth,Be=z.offsetHeight,me=Math.floor(ve),Fe=Math.floor(xe);if(M.current.width!==me||M.current.height!==Fe||M.current.offsetWidth!==_e||M.current.offsetHeight!==Be){var ie={width:me,height:Fe,offsetWidth:_e,offsetHeight:Be};M.current=ie;var te=_e===Math.round(ve)?ve:_e,Ge=Be===Math.round(xe)?xe:Be,oe=Object(w.a)(Object(w.a)({},ie),{},{offsetWidth:te,offsetHeight:Ge});D==null||D(oe,z,le),Z&&Promise.resolve().then(function(){Z(oe,z)})}},[]);return E.useEffect(function(){var z=Object(f.a)(L.current)||Object(f.a)(N.current);return z&&!I&&l(z,V),function(){return t(z,V)}},[L.current,I]),E.createElement(p,{ref:N},j?E.cloneElement(k,{ref:U}):k)}var x="rc-observer-key";function T(b){var O=b.children,I=typeof O=="function"?[O]:Object(C.a)(O);return I.map(function(L,N){var D=(L==null?void 0:L.key)||"".concat(x,"-").concat(N);return E.createElement(y,Object(_.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 _=Object.assign||function(a){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},E=function(){function a(s,u){for(var h=0;h<u.length;h++){var p=u[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,u,h){return u&&a(s.prototype,u),h&&a(s,h),s}}(),C=d("q1tI"),A=i(C),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,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function e(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function l(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var t=function(a){l(s,a);function s(u){n(this,s);var h=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return h.getEchartsInstance=function(){return h.echartsLib.getInstanceByDom(h.echartsElement)||h.echartsLib.init(h.echartsElement,h.props.theme,h.props.opts)},h.dispose=function(){if(h.echartsElement){try{(0,o.clear)(h.echartsElement)}catch(p){console.warn(p)}h.echartsLib.dispose(h.echartsElement)}},h.rerender=function(){var p=h.props,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(s,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(h){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(h,this.props))return;if(!(0,c.default)(h.theme,this.props.theme)||!(0,c.default)(h.opts,this.props.opts)||!(0,c.default)(h.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,c.default)((0,r.pick)(this.props,p),(0,r.pick)(h,p)))return;var 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=_({height:300},g);return A.default.createElement("div",{ref:function(T){h.echartsElement=T},style:y,className:"echarts-for-react "+v})}}]),s}(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 _=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 l=i.coordToPoint([n[0],e]),t=i.coordToPoint([n[1],e]);return{x1:l[0],y1:l[1],x2:t[0],y2:t[1]}}function c(i){var n=i.getRadiusAxis();return n.inverse?0:1}function o(i){var n=i[0],e=i[i.length-1];n&&e&&Math.abs(Math.abs(n.coord-e.coord)-360)<1e-4&&i.pop()}var r=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(i,n){if(this.group.removeAll(),!i.get("show"))return;var e=i.axis,l=e.polar,t=l.getRadiusAxis().getExtent(),a=e.getTicksCoords(),s=e.getMinorTicksCoords(),u=_.map(e.getViewLabels(),function(h){var h=_.clone(h);return h.coord=e.dataToCoord(h.tickValue),h});o(u),o(a),_.each(m,function(h){i.get(h+".show")&&(!e.scale.isBlank()||h==="axisLine")&&this["_"+h](i,l,a,s,t,u)},this)},_axisLine:function(i,n,e,l,t){var a=i.getModel("axisLine.lineStyle"),s=c(n),u=s?0:1,h;t[u]===0?h=new E.Circle({shape:{cx:n.cx,cy:n.cy,r:t[s]},style:a.getLineStyle(),z2:1,silent:!0}):h=new E.Ring({shape:{cx:n.cx,cy:n.cy,r:t[s],r0:t[u]},style:a.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(i,n,e,l,t){var a=i.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=t[c(n)],h=_.map(e,function(p){return new E.Line({shape:f(n,[u,u+s],p.coord)})});this.group.add(E.mergePath(h,{style:_.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")})}))},_minorTick:function(i,n,e,l,t){if(!l.length)return;for(var a=i.getModel("axisTick"),s=i.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),h=t[c(n)],p=[],g=0;g<l.length;g++)for(var v=0;v<l[g].length;v++)p.push(new E.Line({shape:f(n,[h,h+u],l[g][v].coord)}));this.group.add(E.mergePath(p,{style:_.defaults(s.getModel("lineStyle").getLineStyle(),_.defaults(a.getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(i,n,e,l,t,a){var s=i.getCategories(!0),u=i.getModel("axisLabel"),h=u.get("margin"),p=i.get("triggerEvent");_.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,O=n.cy,I=Math.abs(S[0]-b)/T<.3?"center":S[0]>b?"left":"right",L=Math.abs(S[1]-O)/T<.3?"middle":S[1]>O?"top":"bottom";s&&s[x]&&s[x].textStyle&&(y=new C(s[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,l,t){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],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:_.defaults({stroke:u[g%u.length]},s.getLineStyle()),silent:!0,z:i.get("z")}))},_minorSplitLine:function(i,n,e,l,t){if(!l.length)return;for(var a=i.getModel("minorSplitLine"),s=a.getModel("lineStyle"),u=[],h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++)u.push(new E.Line({shape:f(n,t,l[h][p].coord)}));this.group.add(E.mergePath(u,{style:s.getLineStyle(),silent:!0,z:i.get("z")}))},_splitArea:function(i,n,e,l,t){if(!e.length)return;var a=i.getModel("splitArea"),s=a.getModel("areaStyle"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],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:_.defaults({fill:u[S%u.length]},s.getAreaStyle()),silent:!0}))}});H.exports=r},tSko:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("KCsZ"),E=_([["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 _=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=_(w),c=_(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 l=w instanceof RegExp,t=m instanceof RegExp;if(l!=t)return!1;if(l&&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 _=d("aX58");B.zrender=_;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 l=d("Qxkt");B.Model=l;var t=d("hM6l");B.Axis=t;var a=d("ItGF");B.env=a;var s=n,u={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(p){u[p]=A[p]});var h={};A.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(p){h[p]=m[p]}),B.parseGeoJson=s,B.util=u,B.graphic=h},u3DP:function(H,B,d){var _=d("6GrX"),E=d("OELB"),C=E.parsePercent,A=Math.PI/180;function w(o,r,i,n,e,l,t,a,s,u){o.sort(function(I,L){return I.y-L.y});function h(I,L,N,D){for(var R=I;R<L&&!(o[R].y+N>s+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<s);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,k){for(var M=(k>0,L?Number.MAX_VALUE:0),j=0,F=I.length;j<F;j++){if(I[j].labelAlignTo!=="none")continue;var U=Math.abs(I[j].y-D),K=I[j].len,V=I[j].len2,z=U<R+K?Math.sqrt((R+K+V)*(R+K+V)-U*U):Math.abs(I[j].x-N);L&&z>=M&&(z=M-10),!L&&z<=M&&(z=M+10),I[j].x=N+z*k,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=o[b].x-u;o[b].linePoints[1][0]+=O,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,l,t,a){for(var s=[],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),s.push(o[g])):(p=Math.max(p,o[g].x),u.push(o[g]))}w(u,r,i,n,1,e,l,t,a,p),w(s,r,i,n,-1,e,l,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=_.truncateText(v.text,S,v.font),v.labelAlignTo==="edge"&&(T=_.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,l){var t=o.getData(),a=[],s,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"),O=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 k=(v.startAngle+v.endAngle)/2,M=Math.cos(k),j=Math.sin(k),F,U,K,V;s=v.cx,u=v.cy;var z=o.getFormattedLabel(g,"normal")||t.getName(g),Q=_.getBoundingRect(z,L,V,"top"),Z=T==="inside"||T==="inner";if(T==="center")F=v.cx,U=v.cy,V="center";else{var le=(Z?(v.r+v.r0)/2*M:v.r*M)+s,ne=(Z?(v.r+v.r0)/2*j:v.r*j)+u;if(F=le+M*3,U=ne+j*3,!Z){var ve=le+M*(D+r-v.r),xe=ne+j*(D+r-v.r),_e=ve+(M<0?-1:1)*R,Be=xe;b==="edge"?F=M<0?e+O:e+i-O:F=_e+(M<0?-S:S),U=Be,K=[[le,ne],[ve,xe],[_e,Be]]}V=Z?"center":b==="edge"?M>0?"right":"left":M>0?"left":"right"}var me,Fe=x.get("rotate");typeof Fe=="number"?me=Fe*(Math.PI/180):me=Fe?M<0?-k+Math.PI:-k:0,h=!!me,v.label={x:F,y:U,position:T,height:Q.height,len:D,len2:R,linePoints:K,textAlign:V,verticalAlign:"middle",rotation:me,inside:Z,labelDistance:S,labelAlignTo:b,labelMargin:O,bleedMargin:I,textRect:Q,text:z,font:L},Z||a.push(v.label)}),!h&&o.get("avoidLabelOverlap")&&m(a,s,u,r,i,n,e,l)}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 _=d("P4Qj"),E=function(m,f){var c=(0,_.getSensor)(m);return c.bind(f),function(){c.unbind(f)}};B.bind=E;var C=function(m){var f=(0,_.getSensor)(m);(0,_.removeSensor)(f)};B.clear=C;var A="1.0.1";B.ver=A},u4NN:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=E(d("b80e"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},uAnK:function(H,B,d){var _=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 l=h();l?e=s(u("general.withTitle"),{title:l}):e=u("general.withoutTitle");var t=[],a=o>1?"series.multiple.prefix":"series.single.prefix";e+=s(u(a),{seriesCount:o}),f.eachSeries(function(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=s(y,{seriesId:g.seriesIndex,seriesName:g.get("name"),seriesType:p(g.subType)});var S=g.getData();window.data=S,S.count()>r?y+=s(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var b=[],O=0;O<S.count();O++)if(O<r){var I=S.getName(O),L=A(S,O);b.push(s(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 s(g,v){if(typeof g!="string")return g;var y=g;return _.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(_,E,C){H.exports=B=E(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(_){return function(){var E=_,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)}(),_.SHA384})},uGxW:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("OLod"))})(this,function(_){return _.pad.NoPadding={pad:function(){},unpad:function(){}},_.pad.NoPadding})},uK0f:function(H,B,d){(function(_,E){H.exports=E()})(this,function(){"use strict";function _(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 _})},uOyE:function(H,B,d){var _=d("ProS");_.registerAction({type:"brush",event:"brush"},function(E,C){C.eachComponent({mainType:"brush",query:E},function(A){A.setAreas(E.areas)})}),_.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),_.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(H,B,d){H.exports=_;function _(){return d("gaXo"),{}}},uciX:function(H,B,d){"use strict";var _=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"),l=d("c+Xe"),t=d("zT1h"),a=d("QC+M"),s=d("TSYQ"),u=d.n(s);function h(ie,te,Ge){return Ge?ie[0]===te[0]:ie[0]===te[0]&&ie[1]===te[1]}function p(ie,te,Ge){var oe=ie[te]||{};return Object(_.a)(Object(_.a)({},oe),Ge)}function g(ie,te,Ge,oe){for(var Y=Ge.points,G=Object.keys(ie),X=0;X<G.length;X+=1){var fe=G[X];if(h(ie[fe].points,Y,oe))return"".concat(te,"-placement-").concat(fe)}return""}var v=d("ODXe"),y=d("Ff2n"),x=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=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(ie)||/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(ie==null?void 0:ie.substr(0,4))},T=d("8XRh");function S(ie){var te=ie.prefixCls,Ge=ie.motion,oe=ie.animation,Y=ie.transitionName;return Ge||(oe?{motionName:"".concat(te,"-").concat(oe)}:Y?{motionName:Y}:null)}function b(ie){var te=ie.prefixCls,Ge=ie.visible,oe=ie.zIndex,Y=ie.mask,G=ie.maskMotion,X=ie.maskAnimation,fe=ie.maskTransitionName;if(!Y)return null;var de={};return(G||fe||X)&&(de=Object(_.a)({motionAppear:!0},S({motion:G,prefixCls:te,transitionName:fe,animation:X}))),c.createElement(T.b,Object(E.a)({},de,{visible:Ge,removeOnLeave:!0}),function(Ce){var Me=Ce.className;return c.createElement("div",{style:{zIndex:oe},className:u()("".concat(te,"-mask"),Me)})})}var O=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 ie};var ie={},te=Object.prototype,Ge=te.hasOwnProperty,oe=typeof Symbol=="function"?Symbol:{},Y=oe.iterator||"@@iterator",G=oe.asyncIterator||"@@asyncIterator",X=oe.toStringTag||"@@toStringTag";function fe(se,J,Ue){return Object.defineProperty(se,J,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),se[J]}try{fe({},"")}catch(se){fe=function(Ue,Le,ee){return Ue[Le]=ee}}function de(se,J,Ue,Le){var ee=J&&J.prototype instanceof ue?J:ue,ct=Object.create(ee.prototype),Mt=new _t(Le||[]);return ct._invoke=function(ot,Yt,or){var Zr="suspendedStart";return function(ir,dr){if(Zr==="executing")throw new Error("Generator is already running");if(Zr==="completed"){if(ir==="throw")throw dr;return He()}for(or.method=ir,or.arg=dr;;){var qt=or.delegate;if(qt){var Ht=Et(qt,or);if(Ht){if(Ht===Me)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 lt=Ce(ot,Yt,or);if(lt.type==="normal"){if(Zr=or.done?"completed":"suspendedYield",lt.arg===Me)continue;return{value:lt.arg,done:or.done}}lt.type==="throw"&&(Zr="completed",or.method="throw",or.arg=lt.arg)}}}(se,Ue,Mt),ct}function Ce(se,J,Ue){try{return{type:"normal",arg:se.call(J,Ue)}}catch(Le){return{type:"throw",arg:Le}}}ie.wrap=de;var Me={};function ue(){}function Ae(){}function Te(){}var Je={};fe(Je,Y,function(){return this});var At=Object.getPrototypeOf,qe=At&&At(At(jt([])));qe&&qe!==te&&Ge.call(qe,Y)&&(Je=qe);var Re=Te.prototype=ue.prototype=Object.create(Je);function Lt(se){["next","throw","return"].forEach(function(J){fe(se,J,function(Ue){return this._invoke(J,Ue)})})}function $e(se,J){function Ue(ee,ct,Mt,ot){var Yt=Ce(se[ee],se,ct);if(Yt.type!=="throw"){var or=Yt.arg,Zr=or.value;return Zr&&Object(L.a)(Zr)=="object"&&Ge.call(Zr,"__await")?J.resolve(Zr.__await).then(function(ir){Ue("next",ir,Mt,ot)},function(ir){Ue("throw",ir,Mt,ot)}):J.resolve(Zr).then(function(ir){or.value=ir,Mt(or)},function(ir){return Ue("throw",ir,Mt,ot)})}ot(Yt.arg)}var Le;this._invoke=function(ee,ct){function Mt(){return new J(function(ot,Yt){Ue(ee,ct,ot,Yt)})}return Le=Le?Le.then(Mt,Mt):Mt()}}function Et(se,J){var Ue=se.iterator[J.method];if(Ue===void 0){if(J.delegate=null,J.method==="throw"){if(se.iterator.return&&(J.method="return",J.arg=void 0,Et(se,J),J.method==="throw"))return Me;J.method="throw",J.arg=new TypeError("The iterator does not provide a 'throw' method")}return Me}var Le=Ce(Ue,se.iterator,J.arg);if(Le.type==="throw")return J.method="throw",J.arg=Le.arg,J.delegate=null,Me;var ee=Le.arg;return ee?ee.done?(J[se.resultName]=ee.value,J.next=se.nextLoc,J.method!=="return"&&(J.method="next",J.arg=void 0),J.delegate=null,Me):ee:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,Me)}function Ut(se){var J={tryLoc:se[0]};1 in se&&(J.catchLoc=se[1]),2 in se&&(J.finallyLoc=se[2],J.afterLoc=se[3]),this.tryEntries.push(J)}function Bt(se){var J=se.completion||{};J.type="normal",delete J.arg,se.completion=J}function _t(se){this.tryEntries=[{tryLoc:"root"}],se.forEach(Ut,this),this.reset(!0)}function jt(se){if(se){var J=se[Y];if(J)return J.call(se);if(typeof se.next=="function")return se;if(!isNaN(se.length)){var Ue=-1,Le=function ee(){for(;++Ue<se.length;)if(Ge.call(se,Ue))return ee.value=se[Ue],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return Le.next=Le}}return{next:He}}function He(){return{value:void 0,done:!0}}return Ae.prototype=Te,fe(Re,"constructor",Te),fe(Te,"constructor",Ae),Ae.displayName=fe(Te,X,"GeneratorFunction"),ie.isGeneratorFunction=function(se){var J=typeof se=="function"&&se.constructor;return!!J&&(J===Ae||(J.displayName||J.name)==="GeneratorFunction")},ie.mark=function(se){return Object.setPrototypeOf?Object.setPrototypeOf(se,Te):(se.__proto__=Te,fe(se,X,"GeneratorFunction")),se.prototype=Object.create(Re),se},ie.awrap=function(se){return{__await:se}},Lt($e.prototype),fe($e.prototype,G,function(){return this}),ie.AsyncIterator=$e,ie.async=function(se,J,Ue,Le,ee){ee===void 0&&(ee=Promise);var ct=new $e(de(se,J,Ue,Le),ee);return ie.isGeneratorFunction(J)?ct:ct.next().then(function(Mt){return Mt.done?Mt.value:ct.next()})},Lt(Re),fe(Re,X,"Generator"),fe(Re,Y,function(){return this}),fe(Re,"toString",function(){return"[object Generator]"}),ie.keys=function(se){var J=[];for(var Ue in se)J.push(Ue);return J.reverse(),function Le(){for(;J.length;){var ee=J.pop();if(ee in se)return Le.value=ee,Le.done=!1,Le}return Le.done=!0,Le}},ie.values=jt,_t.prototype={constructor:_t,reset:function(J){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(Bt),!J)for(var Ue in this)Ue.charAt(0)==="t"&&Ge.call(this,Ue)&&!isNaN(+Ue.slice(1))&&(this[Ue]=void 0)},stop:function(){this.done=!0;var J=this.tryEntries[0].completion;if(J.type==="throw")throw J.arg;return this.rval},dispatchException:function(J){if(this.done)throw J;var Ue=this;function Le(or,Zr){return Mt.type="throw",Mt.arg=J,Ue.next=or,Zr&&(Ue.method="next",Ue.arg=void 0),!!Zr}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var ct=this.tryEntries[ee],Mt=ct.completion;if(ct.tryLoc==="root")return Le("end");if(ct.tryLoc<=this.prev){var ot=Ge.call(ct,"catchLoc"),Yt=Ge.call(ct,"finallyLoc");if(ot&&Yt){if(this.prev<ct.catchLoc)return Le(ct.catchLoc,!0);if(this.prev<ct.finallyLoc)return Le(ct.finallyLoc)}else if(ot){if(this.prev<ct.catchLoc)return Le(ct.catchLoc,!0)}else{if(!Yt)throw new Error("try statement without catch or finally");if(this.prev<ct.finallyLoc)return Le(ct.finallyLoc)}}}},abrupt:function(J,Ue){for(var Le=this.tryEntries.length-1;Le>=0;--Le){var ee=this.tryEntries[Le];if(ee.tryLoc<=this.prev&&Ge.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var ct=ee;break}}ct&&(J==="break"||J==="continue")&&ct.tryLoc<=Ue&&Ue<=ct.finallyLoc&&(ct=null);var Mt=ct?ct.completion:{};return Mt.type=J,Mt.arg=Ue,ct?(this.method="next",this.next=ct.finallyLoc,Me):this.complete(Mt)},complete:function(J,Ue){if(J.type==="throw")throw J.arg;return J.type==="break"||J.type==="continue"?this.next=J.arg:J.type==="return"?(this.rval=this.arg=J.arg,this.method="return",this.next="end"):J.type==="normal"&&Ue&&(this.next=Ue),Me},finish:function(J){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Le=this.tryEntries[Ue];if(Le.finallyLoc===J)return this.complete(Le.completion,Le.afterLoc),Bt(Le),Me}},catch:function(J){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var Le=this.tryEntries[Ue];if(Le.tryLoc===J){var ee=Le.completion;if(ee.type==="throw"){var ct=ee.arg;Bt(Le)}return ct}}throw new Error("illegal catch attempt")},delegateYield:function(J,Ue,Le){return this.delegate={iterator:jt(J),resultName:Ue,nextLoc:Le},this.method==="next"&&(this.arg=void 0),Me}},ie}var D=d("HaE+"),R=d("dm2S"),k=["measure","alignPre","align",null,"motion"],M=function(ie,te){var Ge=Object(R.a)(null),oe=Object(v.a)(Ge,2),Y=oe[0],G=oe[1],X=Object(c.useRef)();function fe(Me){G(Me,!0)}function de(){i.a.cancel(X.current)}function Ce(Me){de(),X.current=Object(i.a)(function(){fe(function(ue){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return ue}),Me==null||Me()})}return Object(c.useEffect)(function(){fe("measure")},[ie]),Object(c.useEffect)(function(){switch(Y){case"measure":te();break;default:}Y&&(X.current=Object(i.a)(Object(D.a)(N().mark(function Me(){var ue,Ae;return N().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:ue=k.indexOf(Y),Ae=k[ue+1],Ae&&ue!==-1&&fe(Ae);case 3:case"end":return Je.stop()}},Me)}))))},[Y]),Object(c.useEffect)(function(){return function(){de()}},[]),[Y,Ce]},j=function(ie){var te=c.useState({width:0,height:0}),Ge=Object(v.a)(te,2),oe=Ge[0],Y=Ge[1];function G(fe){Y({width:fe.offsetWidth,height:fe.offsetHeight})}var X=c.useMemo(function(){var fe={};if(ie){var de=oe.width,Ce=oe.height;ie.indexOf("height")!==-1&&Ce?fe.height=Ce:ie.indexOf("minHeight")!==-1&&Ce&&(fe.minHeight=Ce),ie.indexOf("width")!==-1&&de?fe.width=de:ie.indexOf("minWidth")!==-1&&de&&(fe.minWidth=de)}return fe},[ie,oe]);return[X,G]},F=c.forwardRef(function(ie,te){var Ge=ie.visible,oe=ie.prefixCls,Y=ie.className,G=ie.style,X=ie.children,fe=ie.zIndex,de=ie.stretch,Ce=ie.destroyPopupOnHide,Me=ie.forceRender,ue=ie.align,Ae=ie.point,Te=ie.getRootDomNode,Je=ie.getClassNameFromAlign,At=ie.onAlign,qe=ie.onMouseEnter,Re=ie.onMouseLeave,Lt=ie.onMouseDown,$e=ie.onTouchStart,Et=ie.onClick,Ut=Object(c.useRef)(),Bt=Object(c.useRef)(),_t=Object(c.useState)(),jt=Object(v.a)(_t,2),He=jt[0],se=jt[1],J=j(de),Ue=Object(v.a)(J,2),Le=Ue[0],ee=Ue[1];function ct(){de&&ee(Te())}var Mt=M(Ge,ct),ot=Object(v.a)(Mt,2),Yt=ot[0],or=ot[1],Zr=Object(c.useState)(0),ir=Object(v.a)(Zr,2),dr=ir[0],qt=ir[1],Ht=Object(c.useRef)();Object(I.a)(function(){Yt==="alignPre"&&qt(0)},[Yt]);function lt(){return Ae||Te}function Hr(){var Ft;(Ft=Ut.current)===null||Ft===void 0||Ft.forceAlign()}function dn(Ft,bt){var Oe=Je(bt);He!==Oe&&se(Oe),qt(function(Ee){return Ee+1}),Yt==="align"&&(At==null||At(Ft,bt))}Object(I.a)(function(){Yt==="align"&&(dr<2?Hr():or(function(){var Ft;(Ft=Ht.current)===null||Ft===void 0||Ft.call(Ht)}))},[dr]);var Nn=Object(_.a)({},S(ie));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ft){var bt=Nn[Ft];Nn[Ft]=function(Oe,Ee){return or(),bt==null?void 0:bt(Oe,Ee)}});function Wn(){return new Promise(function(Ft){Ht.current=Ft})}c.useEffect(function(){!Nn.motionName&&Yt==="motion"&&or()},[Nn.motionName,Yt]),c.useImperativeHandle(te,function(){return{forceAlign:Hr,getElement:function(){return Bt.current}}});var gi=Object(_.a)(Object(_.a)({},Le),{},{zIndex:fe,opacity:Yt==="motion"||Yt==="stable"||!Ge?void 0:0,pointerEvents:!Ge&&Yt!=="stable"?"none":void 0},G),yn=!0;(ue==null?void 0:ue.points)&&(Yt==="align"||Yt==="stable")&&(yn=!1);var Mn=X;return c.Children.count(X)>1&&(Mn=c.createElement("div",{className:"".concat(oe,"-content")},X)),c.createElement(T.b,Object(E.a)({visible:Ge,ref:Bt,leavedClassName:"".concat(oe,"-hidden")},Nn,{onAppearPrepare:Wn,onEnterPrepare:Wn,removeOnLeave:Ce,forceRender:Me}),function(Ft,bt){var Oe=Ft.className,Ee=Ft.style,Ie=u()(oe,Y,He,Oe);return c.createElement(O.a,{target:lt(),key:"popup",ref:Ut,monitorWindowResize:!0,disabled:yn,align:ue,onAlign:dn},c.createElement("div",{ref:bt,className:Ie,onMouseEnter:qe,onMouseLeave:Re,onMouseDownCapture:Lt,onTouchStartCapture:$e,onClick:Et,style:Object(_.a)(Object(_.a)({},Ee),gi)},Mn))})});F.displayName="PopupInner";var U=F,K=c.forwardRef(function(ie,te){var Ge=ie.prefixCls,oe=ie.visible,Y=ie.zIndex,G=ie.children,X=ie.mobile;X=X===void 0?{}:X;var fe=X.popupClassName,de=X.popupStyle,Ce=X.popupMotion,Me=Ce===void 0?{}:Ce,ue=X.popupRender,Ae=ie.onClick,Te=c.useRef();c.useImperativeHandle(te,function(){return{forceAlign:function(){},getElement:function(){return Te.current}}});var Je=Object(_.a)({zIndex:Y},de),At=G;return c.Children.count(G)>1&&(At=c.createElement("div",{className:"".concat(Ge,"-content")},G)),ue&&(At=ue(At)),c.createElement(T.b,Object(E.a)({visible:oe,ref:Te,removeOnLeave:!0},Me),function(qe,Re){var Lt=qe.className,$e=qe.style,Et=u()(Ge,fe,Lt);return c.createElement("div",{ref:Re,className:Et,onClick:Ae,style:Object(_.a)(Object(_.a)({},$e),Je)},At)})});K.displayName="MobilePopupInner";var V=K,z=["visible","mobile"],Q=c.forwardRef(function(ie,te){var Ge=ie.visible,oe=ie.mobile,Y=Object(y.a)(ie,z),G=Object(c.useState)(Ge),X=Object(v.a)(G,2),fe=X[0],de=X[1],Ce=Object(c.useState)(!1),Me=Object(v.a)(Ce,2),ue=Me[0],Ae=Me[1],Te=Object(_.a)(Object(_.a)({},Y),{},{visible:fe});Object(c.useEffect)(function(){de(Ge),Ge&&oe&&Ae(x())},[Ge,oe]);var Je=ue?c.createElement(V,Object(E.a)({},Te,{mobile:oe,ref:te})):c.createElement(U,Object(E.a)({},Te,{ref:te}));return c.createElement("div",null,c.createElement(b,Te),Je)});Q.displayName="Popup";var Z=Q,le=c.createContext(null),ne=le;function ve(){}function xe(){return""}function _e(ie){return ie?ie.ownerDocument:window.document}var Be=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function me(ie){var te=function(Ge){Object(m.a)(Y,Ge);var oe=Object(f.a)(Y);function Y(G){var X;Object(C.a)(this,Y),X=oe.call(this,G),X.popupRef=c.createRef(),X.triggerRef=c.createRef(),X.portalContainer=void 0,X.attachId=void 0,X.clickOutsideHandler=void 0,X.touchOutsideHandler=void 0,X.contextMenuOutsideHandler1=void 0,X.contextMenuOutsideHandler2=void 0,X.mouseDownTimeout=void 0,X.focusTime=void 0,X.preClickTime=void 0,X.preTouchTime=void 0,X.delayTimer=void 0,X.hasPopupMouseDown=void 0,X.onMouseEnter=function(de){var Ce=X.props.mouseEnterDelay;X.fireEvents("onMouseEnter",de),X.delaySetPopupVisible(!0,Ce,Ce?null:de)},X.onMouseMove=function(de){X.fireEvents("onMouseMove",de),X.setPoint(de)},X.onMouseLeave=function(de){X.fireEvents("onMouseLeave",de),X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onPopupMouseEnter=function(){X.clearDelayTimer()},X.onPopupMouseLeave=function(de){var Ce;if(de.relatedTarget&&!de.relatedTarget.setTimeout&&Object(n.a)((Ce=X.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement(),de.relatedTarget))return;X.delaySetPopupVisible(!1,X.props.mouseLeaveDelay)},X.onFocus=function(de){X.fireEvents("onFocus",de),X.clearDelayTimer(),X.isFocusToShow()&&(X.focusTime=Date.now(),X.delaySetPopupVisible(!0,X.props.focusDelay))},X.onMouseDown=function(de){X.fireEvents("onMouseDown",de),X.preClickTime=Date.now()},X.onTouchStart=function(de){X.fireEvents("onTouchStart",de),X.preTouchTime=Date.now()},X.onBlur=function(de){X.fireEvents("onBlur",de),X.clearDelayTimer(),X.isBlurToHide()&&X.delaySetPopupVisible(!1,X.props.blurDelay)},X.onContextMenu=function(de){de.preventDefault(),X.fireEvents("onContextMenu",de),X.setPopupVisible(!0,de)},X.onContextMenuClose=function(){X.isContextMenuToShow()&&X.close()},X.onClick=function(de){if(X.fireEvents("onClick",de),X.focusTime){var Ce;if(X.preClickTime&&X.preTouchTime?Ce=Math.min(X.preClickTime,X.preTouchTime):X.preClickTime?Ce=X.preClickTime:X.preTouchTime&&(Ce=X.preTouchTime),Math.abs(Ce-X.focusTime)<20)return;X.focusTime=0}X.preClickTime=0,X.preTouchTime=0,X.isClickToShow()&&(X.isClickToHide()||X.isBlurToHide())&&de&&de.preventDefault&&de.preventDefault();var Me=!X.state.popupVisible;(X.isClickToHide()&&!Me||Me&&X.isClickToShow())&&X.setPopupVisible(!X.state.popupVisible,de)},X.onPopupMouseDown=function(){if(X.hasPopupMouseDown=!0,clearTimeout(X.mouseDownTimeout),X.mouseDownTimeout=window.setTimeout(function(){X.hasPopupMouseDown=!1},0),X.context){var de;(de=X.context).onPopupMouseDown.apply(de,arguments)}},X.onDocumentClick=function(de){if(X.props.mask&&!X.props.maskClosable)return;var Ce=de.target,Me=X.getRootDomNode(),ue=X.getPopupDomNode();(!Object(n.a)(Me,Ce)||X.isContextMenuOnly())&&!Object(n.a)(ue,Ce)&&!X.hasPopupMouseDown&&X.close()},X.getRootDomNode=function(){var de=X.props.getTriggerDOMNode;if(de)return de(X.triggerRef.current);try{var Ce=Object(e.a)(X.triggerRef.current);if(Ce)return Ce}catch(Me){}return r.a.findDOMNode(Object(w.a)(X))},X.getPopupClassNameFromAlign=function(de){var Ce=[],Me=X.props,ue=Me.popupPlacement,Ae=Me.builtinPlacements,Te=Me.prefixCls,Je=Me.alignPoint,At=Me.getPopupClassNameFromAlign;return ue&&Ae&&Ce.push(g(Ae,Te,de,Je)),At&&Ce.push(At(de)),Ce.join(" ")},X.getComponent=function(){var de=X.props,Ce=de.prefixCls,Me=de.destroyPopupOnHide,ue=de.popupClassName,Ae=de.onPopupAlign,Te=de.popupMotion,Je=de.popupAnimation,At=de.popupTransitionName,qe=de.popupStyle,Re=de.mask,Lt=de.maskAnimation,$e=de.maskTransitionName,Et=de.maskMotion,Ut=de.zIndex,Bt=de.popup,_t=de.stretch,jt=de.alignPoint,He=de.mobile,se=de.forceRender,J=de.onPopupClick,Ue=X.state,Le=Ue.popupVisible,ee=Ue.point,ct=X.getPopupAlign(),Mt={};return X.isMouseEnterToShow()&&(Mt.onMouseEnter=X.onPopupMouseEnter),X.isMouseLeaveToHide()&&(Mt.onMouseLeave=X.onPopupMouseLeave),Mt.onMouseDown=X.onPopupMouseDown,Mt.onTouchStart=X.onPopupMouseDown,c.createElement(Z,Object(E.a)({prefixCls:Ce,destroyPopupOnHide:Me,visible:Le,point:jt&&ee,className:ue,align:ct,onAlign:Ae,animation:Je,getClassNameFromAlign:X.getPopupClassNameFromAlign},Mt,{stretch:_t,getRootDomNode:X.getRootDomNode,style:qe,mask:Re,zIndex:Ut,transitionName:At,maskAnimation:Lt,maskTransitionName:$e,maskMotion:Et,ref:X.popupRef,motion:Te,mobile:He,forceRender:se,onClick:J}),typeof Bt=="function"?Bt():Bt)},X.attachParent=function(de){i.a.cancel(X.attachId);var Ce=X.props,Me=Ce.getPopupContainer,ue=Ce.getDocument,Ae=X.getRootDomNode(),Te;Me?(Ae||Me.length===0)&&(Te=Me(Ae)):Te=ue(X.getRootDomNode()).body,Te?Te.appendChild(de):X.attachId=Object(i.a)(function(){X.attachParent(de)})},X.getContainer=function(){if(!X.portalContainer){var de=X.props.getDocument,Ce=de(X.getRootDomNode()).createElement("div");Ce.style.position="absolute",Ce.style.top="0",Ce.style.left="0",Ce.style.width="100%",X.portalContainer=Ce}return X.attachParent(X.portalContainer),X.portalContainer},X.setPoint=function(de){var Ce=X.props.alignPoint;if(!Ce||!de)return;X.setState({point:{pageX:de.pageX,pageY:de.pageY}})},X.handlePortalUpdate=function(){X.state.prevPopupVisible!==X.state.popupVisible&&X.props.afterPopupVisibleChange(X.state.popupVisible)},X.triggerContextValue={onPopupMouseDown:X.onPopupMouseDown};var fe;return"popupVisible"in G?fe=!!G.popupVisible:fe=!!G.defaultPopupVisible,X.state={prevPopupVisible:fe,popupVisible:fe},Be.forEach(function(de){X["fire".concat(de)]=function(Ce){X.fireEvents(de,Ce)}}),X}return Object(A.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var X=this.props,fe=this.state;if(fe.popupVisible){var de;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(de=X.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(t.a)(de,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(de=de||X.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(t.a)(de,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(de=de||X.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 X;return((X=this.popupRef.current)===null||X===void 0?void 0:X.getElement())||null}},{key:"getPopupAlign",value:function(){var X=this.props,fe=X.popupPlacement,de=X.popupAlign,Ce=X.builtinPlacements;return fe&&Ce?p(Ce,fe,de):de}},{key:"setPopupVisible",value:function(X,fe){var de=this.props.alignPoint,Ce=this.state.popupVisible;this.clearDelayTimer(),Ce!==X&&("popupVisible"in this.props||this.setState({popupVisible:X,prevPopupVisible:Ce}),this.props.onPopupVisibleChange(X)),de&&fe&&X&&this.setPoint(fe)}},{key:"delaySetPopupVisible",value:function(X,fe,de){var Ce=this,Me=fe*1e3;if(this.clearDelayTimer(),Me){var ue=de?{pageX:de.pageX,pageY:de.pageY}:null;this.delayTimer=window.setTimeout(function(){Ce.setPopupVisible(X,ue),Ce.clearDelayTimer()},Me)}else this.setPopupVisible(X,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(X){var fe=this.props.children.props,de=this.props;return fe[X]&&de[X]?this["fire".concat(X)]:fe[X]||de[X]}},{key:"isClickToShow",value:function(){var X=this.props,fe=X.action,de=X.showAction;return fe.indexOf("click")!==-1||de.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var X=this.props.action;return X==="contextMenu"||X.length===1&&X[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var X=this.props,fe=X.action,de=X.showAction;return fe.indexOf("contextMenu")!==-1||de.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var X=this.props,fe=X.action,de=X.hideAction;return fe.indexOf("click")!==-1||de.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var X=this.props,fe=X.action,de=X.showAction;return fe.indexOf("hover")!==-1||de.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var X=this.props,fe=X.action,de=X.hideAction;return fe.indexOf("hover")!==-1||de.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var X=this.props,fe=X.action,de=X.showAction;return fe.indexOf("focus")!==-1||de.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var X=this.props,fe=X.action,de=X.hideAction;return fe.indexOf("focus")!==-1||de.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var X;(X=this.popupRef.current)===null||X===void 0||X.forceAlign()}}},{key:"fireEvents",value:function(X,fe){var de=this.props.children.props[X];de&&de(fe);var Ce=this.props[X];Ce&&Ce(fe)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var X=this.state.popupVisible,fe=this.props,de=fe.children,Ce=fe.forceRender,Me=fe.alignPoint,ue=fe.className,Ae=fe.autoDestroy,Te=c.Children.only(de),Je={key:"trigger"};this.isContextMenuToShow()?Je.onContextMenu=this.onContextMenu:Je.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Je.onClick=this.onClick,Je.onMouseDown=this.onMouseDown,Je.onTouchStart=this.onTouchStart):(Je.onClick=this.createTwoChains("onClick"),Je.onMouseDown=this.createTwoChains("onMouseDown"),Je.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Je.onMouseEnter=this.onMouseEnter,Me&&(Je.onMouseMove=this.onMouseMove)):Je.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Je.onMouseLeave=this.onMouseLeave:Je.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Je.onFocus=this.onFocus,Je.onBlur=this.onBlur):(Je.onFocus=this.createTwoChains("onFocus"),Je.onBlur=this.createTwoChains("onBlur"));var At=u()(Te&&Te.props&&Te.props.className,ue);At&&(Je.className=At);var qe=Object(_.a)({},Je);Object(l.c)(Te)&&(qe.ref=Object(l.a)(this.triggerRef,Te.ref));var Re=c.cloneElement(Te,qe),Lt;return(X||this.popupRef.current||Ce)&&(Lt=c.createElement(ie,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!X&&Ae&&(Lt=null),c.createElement(ne.Provider,{value:this.triggerContextValue},Re,Lt)}}],[{key:"getDerivedStateFromProps",value:function(X,fe){var de=X.popupVisible,Ce={};return de!==void 0&&fe.popupVisible!==de&&(Ce.popupVisible=de,Ce.prevPopupVisible=fe.popupVisible),Ce}}]),Y}(c.Component);return te.contextType=ne,te.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:xe,getDocument:_e,onPopupVisibleChange:ve,afterPopupVisibleChange:ve,onPopupAlign:ve,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},te}var Fe=B.a=me(a.a)},ugBc:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},ulZh:function(H,B,d){typeof window!="undefined"&&function(E,C){H.exports=C()}(this,function(){return function(_){var E={};function C(A){if(E[A])return E[A].exports;var w=E[A]={i:A,l:!1,exports:{}};return _[A].call(w.exports,w,w.exports,C),w.l=!0,w.exports}return C.m=_,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,l){this.fn=n,this.context=e,this.once=l||!1}function o(n,e,l,t,a){if(typeof l!="function")throw new TypeError("The listener must be a function");var s=new c(l,t||n,a),u=m?m+e:e;return n._events[u]?n._events[u].fn?n._events[u]=[n._events[u],s]:n._events[u].push(s):(n._events[u]=s,n._eventsCount++),n}function r(n,e){--n._eventsCount===0?n._events=new f:delete n._events[e]}function i(){this._events=new f,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],l,t;if(this._eventsCount===0)return e;for(t in l=this._events)w.call(l,t)&&e.push(m?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(l)):e},i.prototype.listeners=function(e){var l=m?m+e:e,t=this._events[l];if(!t)return[];if(t.fn)return[t.fn];for(var a=0,s=t.length,u=new Array(s);a<s;a++)u[a]=t[a].fn;return u},i.prototype.listenerCount=function(e){var l=m?m+e:e,t=this._events[l];return t?t.fn?1:t.length:0},i.prototype.emit=function(e,l,t,a,s,u){var h=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,l),!0;case 3:return p.fn.call(p.context,l,t),!0;case 4:return p.fn.call(p.context,l,t,a),!0;case 5:return p.fn.call(p.context,l,t,a,s),!0;case 6:return p.fn.call(p.context,l,t,a,s,u),!0}for(y=1,v=new Array(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,l);break;case 3:p[y].fn.call(p[y].context,l,t);break;case 4:p[y].fn.call(p[y].context,l,t,a);break;default:if(!v)for(T=1,v=new Array(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,l,t){return o(this,e,l,t,!1)},i.prototype.once=function(e,l,t){return o(this,e,l,t,!0)},i.prototype.removeListener=function(e,l,t,a){var s=m?m+e:e;if(!this._events[s])return this;if(!l)return r(this,s),this;var u=this._events[s];if(u.fn)u.fn===l&&(!a||u.once)&&(!t||u.context===t)&&r(this,s);else{for(var h=0,p=[],g=u.length;h<g;h++)(u[h].fn!==l||a&&!u[h].once||t&&u[h].context!==t)&&p.push(u[h]);p.length?this._events[s]=p.length===1?p[0]:p:r(this,s)}return this},i.prototype.removeAllListeners=function(e){var l;return e?(l=m?m+e:e,this._events[l]&&r(this,l)):(this._events=new f,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=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,l){if(l=l||{},n=n.trim(),e=e.trim(),!e){if(!l.alwaysNormalize)return n;var t=r.parseURL(n);if(!t)throw new Error("Error trying to parse base URL.");return t.path=r.normalizePath(t.path),r.buildURLFromParts(t)}var a=r.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return l.alwaysNormalize?(a.path=r.normalizePath(a.path),r.buildURLFromParts(a)):e;var s=r.parseURL(n);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&s.path[0]!=="/"){var u=f.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var h={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(h.netLoc=s.netLoc,a.path[0]!=="/"))if(!a.path)h.path=s.path,a.params||(h.params=s.params,a.query||(h.query=s.query));else{var p=s.path,g=p.substring(0,p.lastIndexOf("/")+1)+a.path;h.path=r.normalizePath(g)}return h.path===null&&(h.path=l.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 l={};function t(s){if(l[s])return l[s].exports;var u=l[s]={i:s,l:!1,exports:{}};return e[s].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=l,t.i=function(s){return s},t.d=function(s,u,h){t.o(s,u)||Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:h})},t.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},t.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return t.d(u,"a",u),u},t.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},t.p="/",t.oe=function(s){throw console.error(s),s};var a=t(t.s=ENTRY_MODULE);return a.default||a}var m="[\\.|\\-|\\+|\\w|/|@]+",f="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+m+").*?\\)";function c(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e){return!isNaN(1*e)}function r(e,l,t){var a={};a[t]=[];var s=l.toString(),u=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return a;for(var h=u[1],p=new RegExp("(\\\\n|\\W)"+c(h)+f,"g"),g;g=p.exec(s);){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(s);)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 l=Object.keys(e);return l.reduce(function(t,a){return t||e[a].length>0},!1)}function n(e,l){for(var t={main:[l]},a={main:[]},s={main:{}};i(t);)for(var u=Object.keys(t),h=0;h<u.length;h++){var p=u[h],g=t[p],v=g.pop();if(s[p]=s[p]||{},s[p][v]||!e[p][v])continue;s[p][v]=!0,a[p]=a[p]||[],a[p].push(v);for(var y=r(e,e[p][v],p),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,l){l=l||{};var t={main:A.m},a=l.all?{main:Object.keys(t.main)}:n(t,e),s="";Object.keys(a).filter(function(v){return v!=="main"}).forEach(function(v){for(var y=0;a[v][y];)y++;a[v].push(y),t[v][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",s=s+"var "+v+" = ("+w.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+a[v].map(function(x){return""+JSON.stringify(x)+": "+t[v][x].toString()}).join(",")+`});
|
|
|
`}),s=s+"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([s],{type:"text/javascript"});if(l.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 O});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"),l=A("./src/controller/eme-controller.ts"),t=A("./src/controller/cmcd-controller.ts"),a=A("./src/utils/xhr-loader.ts"),s=A("./src/utils/fetch-loader.ts"),u=A("./src/utils/cues.ts"),h=A("./src/utils/mediakeys-helper.ts"),p=A("./src/utils/logger.ts");function 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:l.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 O(I){var L=I.loader;if(L!==s.default&&L!==a.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),I.progressive=!1;else{var N=Object(s.fetchSupported)();N&&(I.loader=s.default,I.progressive=!0,I.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(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/errors.ts"),o=A("./src/types/loader.ts"),r=A("./src/utils/logger.ts");function i(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function n(l,t,a){return t&&i(l.prototype,t),a&&i(l,a),Object.defineProperty(l,"prototype",{writable:!1}),l}var e=function(){function l(a){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=a;var s=a.config;this.bwEstimator=new m.default(s.abrEwmaSlowVoD,s.abrEwmaFastVoD,s.abrEwmaDefaultEstimate),this.registerListeners()}var t=l.prototype;return t.registerListeners=function(){var s=this.hls;s.on(f.Events.FRAG_LOADING,this.onFragLoading,this),s.on(f.Events.FRAG_LOADED,this.onFragLoaded,this),s.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.on(f.Events.ERROR,this.onError,this)},t.unregisterListeners=function(){var s=this.hls;s.off(f.Events.FRAG_LOADING,this.onFragLoading,this),s.off(f.Events.FRAG_LOADED,this.onFragLoaded,this),s.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),s.off(f.Events.ERROR,this.onError,this)},t.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},t.onFragLoading=function(s,u){var h=u.frag;if(h.type===o.PlaylistLevelType.MAIN&&!this.timer){var p;this.fragCurrent=h,this.partCurrent=(p=u.part)!=null?p:null,this.timer=self.setInterval(this.onCheck,100)}},t.onLevelLoaded=function(s,u){var h=this.hls.config;u.details.live?this.bwEstimator.update(h.abrEwmaSlowLive,h.abrEwmaFastLive):this.bwEstimator.update(h.abrEwmaSlowVoD,h.abrEwmaFastVoD)},t._abandonRulesCheck=function(){var s=this.fragCurrent,u=this.partCurrent,h=this.hls,p=h.autoLevelEnabled,g=h.config,v=h.media;if(!s||!v)return;var y=u?u.stats:s.stats,x=u?u.duration:s.duration;if(y.aborted||y.loaded&&y.loaded===y.total||s.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!p||v.paused||!v.playbackRate||!v.readyState)return;var T=h.mainForwardBufferInfo;if(T===null)return;var S=performance.now()-y.loading.start,b=Math.abs(v.playbackRate);if(S<=500*x/b)return;var O=y.loaded&&y.loading.first,I=this.bwEstimator.getEstimate(),L=h.levels,N=h.minAutoLevel,D=L[s.level],R=y.total||Math.max(y.loaded,Math.round(x*D.maxBitrate/8)),k=O?y.loaded*1e3/S:0,M=k?(R-y.loaded)/k:R*8/I,j=T.len/b;if(M<=j)return;var F=Number.POSITIVE_INFINITY,U;for(U=s.level-1;U>N;U--){var K=L[U].maxBitrate;if(F=k?x*K/(8*.8*k):x*K/I,F<j)break}if(F>=M)return;r.logger.warn("Fragment "+s.sn+(u?" part "+u.index:"")+" of level "+s.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+U+`
|
|
|
Current BW estimate: `+(Object(w.isFiniteNumber)(I)?(I/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+M.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+F.toFixed(3)+` s
|
|
|
Time to underbuffer: `+j.toFixed(3)+" s"),h.nextLoadLevel=U,O&&this.bwEstimator.sample(S,y.loaded),this.clearTimer(),s.loader&&(this.fragCurrent=this.partCurrent=null,s.loader.abort()),h.trigger(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:s,part:u,stats:y})},t.onFragLoaded=function(s,u){var h=u.frag,p=u.part;if(h.type===o.PlaylistLevelType.MAIN&&Object(w.isFiniteNumber)(h.sn)){var g=p?p.stats:h.stats,v=p?p.duration:h.duration;if(this.clearTimer(),this.lastLoadedFragLevel=h.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var y=this.hls.levels[h.level],x=(y.loaded?y.loaded.bytes:0)+g.loaded,T=(y.loaded?y.loaded.duration:0)+v;y.loaded={bytes:x,duration:T},y.realBitrate=Math.round(8*x/T)}if(h.bitrateTest){var S={stats:g,frag:h,part:p,id:h.type};this.onFragBuffered(f.Events.FRAG_BUFFERED,S)}}},t.onFragBuffered=function(s,u){var h=u.frag,p=u.part,g=p?p.stats:h.stats;if(g.aborted)return;if(h.type!==o.PlaylistLevelType.MAIN||h.sn==="initSegment")return;var v=g.parsing.end-g.loading.start;this.bwEstimator.sample(v,g.loaded),g.bwEstimate=this.bwEstimator.getEstimate(),h.bitrateTest?this.bitrateTestDelay=v/1e3:this.bitrateTestDelay=0},t.onError=function(s,u){switch(u.details){case c.ErrorDetails.FRAG_LOAD_ERROR:case c.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},t.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},t.getNextABRAutoLevel=function(){var s=this.fragCurrent,u=this.partCurrent,h=this.hls,p=h.maxAutoLevel,g=h.config,v=h.minAutoLevel,y=h.media,x=u?u.duration:s?s.duration:0,T=y?y.currentTime:0,S=y&&y.playbackRate!==0?Math.abs(y.playbackRate):1,b=this.bwEstimator?this.bwEstimator.getEstimate():g.abrEwmaDefaultEstimate,O=h.mainForwardBufferInfo,I=(O?O.len:0)/S,L=this.findBestLevel(b,v,p,I,g.abrBandWidthFactor,g.abrBandWidthUpFactor);if(L>=0)return L;r.logger.trace((I?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var N=x?Math.min(x,g.maxStarvationDelay):g.maxStarvationDelay,D=g.abrBandWidthFactor,R=g.abrBandWidthUpFactor;if(!I){var k=this.bitrateTestDelay;if(k){var M=x?Math.min(x,g.maxLoadingDelay):g.maxLoadingDelay;N=M-k,r.logger.trace("bitrate test took "+Math.round(1e3*k)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*N)+" ms"),D=R=1}}return L=this.findBestLevel(b,v,p,I+N,D,R),Math.max(L,0)},t.findBestLevel=function(s,u,h,p,g,v){for(var y,x=this.fragCurrent,T=this.partCurrent,S=this.lastLoadedFragLevel,b=this.hls.levels,O=b[S],I=!!(O!=null&&(y=O.details)!==null&&y!==void 0&&y.live),L=O==null?void 0:O.codecSet,N=T?T.duration:x?x.duration:0,D=h;D>=u;D--){var R=b[D];if(!R||L&&R.codecSet!==L)continue;var k=R.details,M=(T?k==null?void 0:k.partTarget:k==null?void 0:k.averagetargetduration)||N,j=void 0;D<=S?j=g*s:j=v*s;var F=b[D].maxBitrate,U=F*M/j;if(r.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+D+"/"+Math.round(j)+"/"+F+"/"+M+"/"+p+"/"+U),j>F&&(U===0||!Object(w.isFiniteNumber)(U)||I&&!this.bitrateTestDelay||U<p))return D}return-1},n(l,[{key:"nextAutoLevel",get:function(){var s=this._nextAutoLevel,u=this.bwEstimator;if(s!==-1&&!u.canEstimate())return s;var h=this.getNextABRAutoLevel();return s!==-1&&this.hls.levels[h].loadError?s:(s!==-1&&(h=Math.min(s,h)),h)},set:function(s){this._nextAutoLevel=s}}]),l}();C.default=e},"./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"),l=A("./src/demux/transmuxer-interface.ts"),t=A("./src/types/transmuxer.ts"),a=A("./src/controller/fragment-finders.ts"),s=A("./src/utils/discontinuities.ts"),u=A("./src/errors.ts");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,O){return b.__proto__=O,b},g(x,T)}var v=100,y=function(x){p(T,x);function T(b,O){var I;return I=x.call(this,b,O,"[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 O=this.hls;O.on(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),O.on(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),O.on(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),O.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),O.on(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),O.on(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),O.on(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),O.on(f.Events.ERROR,this.onError,this),O.on(f.Events.BUFFER_RESET,this.onBufferReset,this),O.on(f.Events.BUFFER_CREATED,this.onBufferCreated,this),O.on(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),O.on(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),O.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S._unregisterListeners=function(){var O=this.hls;O.off(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),O.off(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),O.off(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),O.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),O.off(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),O.off(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),O.off(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),O.off(f.Events.ERROR,this.onError,this),O.off(f.Events.BUFFER_RESET,this.onBufferReset,this),O.off(f.Events.BUFFER_CREATED,this.onBufferCreated,this),O.off(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),O.off(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),O.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S.onInitPtsFound=function(O,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(O){if(!this.levels){this.startPosition=O,this.state=m.State.STOPPED;return}var I=this.lastCurrentTime;this.stopLoad(),this.setInterval(v),this.fragLoadError=0,I>0&&O===-1?(this.log("Override startPosition with lastCurrentTime @"+I.toFixed(3)),O=I,this.state=m.State.IDLE):(this.loadedmetadata=!1,this.state=m.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=O,this.tick()},S.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_TRACK:{var O,I=this.levels,L=this.trackId,N=I==null||((O=I[L])===null||O===void 0)?void 0:O.details;if(N){if(this.waitForCdnTuneIn(N))break;this.state=m.State.WAITING_INIT_PTS}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var D,R=performance.now(),k=this.retryDate;(!k||R>=k||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=m.State.IDLE);break}case m.State.WAITING_INIT_PTS:{var M=this.waitingData;if(M){var j=M.frag,F=M.part,U=M.cache,K=M.complete;if(this.initPTS[j.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.FRAG_LOADING;var V=U.flush(),z={frag:j,part:F,payload:V,networkDetails:null};this._handleFragmentLoadProgress(z),K&&x.prototype._handleFragmentLoadComplete.call(this,z)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc ("+j.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Q=this.getLoadPosition(),Z=c.BufferHelper.bufferInfo(this.mediaBuffer,Q,this.config.maxBufferHole),le=Object(a.fragmentWithinToleranceTest)(Z.end,this.config.maxFragLookUpTolerance,j);le<0&&(this.log("Waiting fragment cc ("+j.cc+") @ "+j.start+" cancelled because another fragment at "+Z.end+" is needed"),this.clearWaitingFragment())}}else this.state=m.State.IDLE}}this.onTickEnd()},S.clearWaitingFragment=function(){var O=this.waitingData;O&&(this.fragmentTracker.removeFragment(O.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 O=this.media;if(!O||!O.readyState)return;var I=this.mediaBuffer?this.mediaBuffer:O,L=I.buffered;!this.loadedmetadata&&L.length&&(this.loadedmetadata=!0),this.lastCurrentTime=O.currentTime},S.doTickIdle=function(){var O,I,L=this.hls,N=this.levels,D=this.media,R=this.trackId,k=L.config;if(!N||!N[R])return;if(!D&&(this.startFragRequested||!k.startFragPrefetch))return;var M=N[R],j=M.details;if(!j||j.live&&this.levelLastLoaded!==R||this.waitForCdnTuneIn(j)){this.state=m.State.WAITING_TRACK;return}var F=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&F&&(this.bufferFlushed=!1,this.afterBufferFlushed(F,n.ElementaryStreamTypes.AUDIO,i.PlaylistLevelType.AUDIO));var U=this.getFwdBufferInfo(F,i.PlaylistLevelType.AUDIO);if(U===null)return;var K=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,i.PlaylistLevelType.MAIN),V=U.len,z=this.getMaxBufferLength(K==null?void 0:K.len),Q=this.audioSwitch;if(V>=z&&!Q)return;if(!Q&&this._streamEnded(U,j)){L.trigger(f.Events.BUFFER_EOS,{type:"audio"}),this.state=m.State.ENDED;return}var Z=j.fragments,le=Z[0].start,ne=U.end;if(Q&&D){var ve=this.getLoadPosition();ne=ve,j.PTSKnown&&ve<le&&((U.end>le||U.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),D.currentTime=le+.05))}if(K&&ne>K.end+j.targetduration)return;if((!K||!K.len)&&U.len)return;var xe=this.getNextFragment(ne,j);if(!xe){this.bufferFlushed=!0;return}((O=xe.decryptdata)===null||O===void 0?void 0:O.keyFormat)==="identity"&&!((I=xe.decryptdata)!==null&&I!==void 0&&I.key)?this.loadKey(xe,j):this.loadFragment(xe,j,ne)},S.getMaxBufferLength=function(O){var I=x.prototype.getMaxBufferLength.call(this);return O?Math.max(I,O):I},S.onMediaDetaching=function(){this.videoBuffer=null,x.prototype.onMediaDetaching.call(this)},S.onAudioTracksUpdated=function(O,I){var L=I.audioTracks;this.resetTransmuxer(),this.levels=L.map(function(N){return new r.Level(N)})},S.onAudioTrackSwitching=function(O,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(O,I){this.mainDetails=I.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(f.Events.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)},S.onAudioTrackLoaded=function(O,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 k=N[R],M=0;if(D.live||(L=k.details)!==null&&L!==void 0&&L.live){var j=this.mainDetails;if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed||!j)return;!k.details&&D.hasProgramDateTime&&j.hasProgramDateTime?(Object(s.alignMediaPlaylistByPDT)(D,j),M=D.fragments[0].start):M=this.alignPlaylists(D,k.details)}k.details=D,this.levelLastLoaded=R,!this.startFragRequested&&(this.mainDetails||!D.live)&&this.setStartPosition(k.details,M),this.state===m.State.WAITING_TRACK&&!this.waitForCdnTuneIn(D)&&(this.state=m.State.IDLE),this.tick()},S._handleFragmentLoadProgress=function(O){var I,L=O.frag,N=O.part,D=O.payload,R=this.config,k=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 j=M[k];console.assert(j,"Audio track is defined on fragment load progress");var F=j.details;console.assert(F,"Audio track details are defined on fragment load progress");var U=R.defaultAudioCodec||j.audioCodec||"mp4a.40.2",K=this.transmuxer;K||(K=this.transmuxer=new l.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 Q=!1,Z=N?N.index:-1,le=Z!==-1,ne=new t.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,D.byteLength,Z,le);K.push(D,z,U,"",L,N,F.totalduration,Q,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 "+k);var ve=this.waitingData=this.waitingData||{frag:L,part:N,cache:new e.default,complete:!1},xe=ve.cache;xe.push(new Uint8Array(D)),this.waitingVideoCC=this.videoTrackCC,this.state=m.State.WAITING_INIT_PTS}},S._handleFragmentLoadComplete=function(O){if(this.waitingData){this.waitingData.complete=!0;return}x.prototype._handleFragmentLoadComplete.call(this,O)},S.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},S.onBufferCreated=function(O,I){var L=I.tracks.audio;L&&(this.mediaBuffer=L.buffer||null),I.tracks.video&&(this.videoBuffer=I.tracks.video.buffer||null)},S.onFragBuffered=function(O,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(O,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(O,I){var L=I.type;L===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},S._handleTransmuxComplete=function(O){var I,L="audio",N=this.hls,D=O.remuxResult,R=O.chunkMeta,k=this.getCurrentContext(R);if(!k){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetStartWhenNotLoaded(R.level);return}var M=k.frag,j=k.part,F=k.level.details,U=D.audio,K=D.text,V=D.id3,z=D.initSegment;if(this.fragContextChanged(M)||!F)return;if(this.state=m.State.PARSING,this.audioSwitch&&U&&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})),U){var Q=U.startPTS,Z=U.endPTS,le=U.startDTS,ne=U.endDTS;j&&(j.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Q,endPTS:Z,startDTS:le,endDTS:ne}),M.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Q,Z,le,ne),this.bufferFragmentData(U,M,j,R)}if(V!=null&&(I=V.samples)!==null&&I!==void 0&&I.length){var ve=h({id:L,frag:M,details:F},V);N.trigger(f.Events.FRAG_PARSING_METADATA,ve)}if(K){var xe=h({id:L,frag:M,details:F},K);N.trigger(f.Events.FRAG_PARSING_USERDATA,xe)}},S._bufferInitSegment=function(O,I,L){if(this.state!==m.State.PARSING)return;O.video&&delete O.video;var N=O.audio;if(!N)return;N.levelCodec=N.codec,N.id="audio",this.log("Init audio buffer, container:"+N.container+", codecs[parsed]=["+N.codec+"]"),this.hls.trigger(f.Events.BUFFER_CODECS,O);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(O,I,L){var N=this.fragmentTracker.getState(O);this.fragCurrent=O,(this.audioSwitch||N===o.FragmentState.NOT_LOADED||N===o.FragmentState.PARTIAL)&&(O.sn==="initSegment"?this._loadInitSegment(O):I.live&&!Object(w.isFiniteNumber)(this.initPTS[O.cc])?(this.log("Waiting for video PTS in continuity counter "+O.cc+" of live stream before loading audio fragment "+O.sn+" of level "+this.trackId),this.state=m.State.WAITING_INIT_PTS):(this.startFragRequested=!0,x.prototype.loadFragment.call(this,O,I,L)))},S.completeAudioSwitch=function(){var O=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,O.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(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function r(l,t,a){return t&&o(l.prototype,t),a&&o(l,a),Object.defineProperty(l,"prototype",{writable:!1}),l}function i(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,n(l,t)}function n(l,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,u){return s.__proto__=u,s},n(l,t)}var e=function(l){i(t,l);function t(s){var u;return u=l.call(this,s,"[audio-track-controller]")||this,u.tracks=[],u.groupId=null,u.tracksInGroup=[],u.trackId=-1,u.trackName="",u.selectDefaultTrack=!0,u.registerListeners(),u}var a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(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,l.prototype.destroy.call(this)},a.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},a.onManifestParsed=function(u,h){this.tracks=h.audioTracks||[]},a.onAudioTrackLoaded=function(u,h){var p=h.id,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(l.prototype.onError.call(this,u,h),h.fatal||!h.context)return;h.context.type===c.PlaylistContextType.AUDIO_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},a.setAudioTrack=function(u){var h=this.tracksInGroup;if(u<0||u>=h.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var p=h[this.trackId];this.log("Now switching to audio-track index "+u);var 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 O=this.switchParams(g.url,p==null?void 0:p.details);this.loadPlaylist(O)},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,l){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=c.logger.log.bind(c.logger,l+":"),this.warn=c.logger.warn.bind(c.logger,l+":"),this.hls=e}var n=i.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(l,t){t.fatal&&t.type===o.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(l,t){var a=t==null?void 0:t.renditionReports;if(a)for(var s=0;s<a.length;s++){var u=a[s],h=""+u.URI;if(h===l.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(l){},n.shouldLoadTrack=function(l){return this.canLoad&&l&&!!l.url&&(!l.details||l.details.live)},n.playlistLoaded=function(l,t,a){var s=this,u=t.details,h=t.stats,p=h.loading.end?Math.max(0,self.performance.now()-h.loading.end):0;if(u.advancedDateTime=Date.now()-p,u.live||a!=null&&a.live){if(u.reloaded(a),a&&this.log("live playlist "+l+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),a&&u.fragments.length>0&&Object(f.mergeDetails)(a,u),!this.canLoad||!u.live)return;var 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,O=b!==-1,I=T===S,L=x?0:b;O?(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 k=Math.floor(R/u.targetduration);if(v+=k,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 "+k+" 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 j=Object(f.computeReloadInterval)(u,h);v!==void 0&&u.canBlockReload&&(j-=u.partTarget||1),this.log("reload live playlist "+l+" in "+Math.round(j)+" ms"),this.timer=self.setTimeout(function(){return s.loadPlaylist(g)},j)}else this.clearTimer()},n.getDeliveryDirectives=function(l,t,a,s){var u=Object(m.getSkipValue)(l,a);return t!=null&&t.skip&&l.deltaUpdateFailed&&(a=t.msn,s=t.part,u=m.HlsSkip.No),new m.HlsUrlParameters(a,s,u)},n.retryLoadingOrFail=function(l){var t=this,a=this.hls.config,s=this.retryCount<a.levelLoadingMaxRetry;if(s){var u;if(this.retryCount++,l.details.indexOf("LoadTimeOut")>-1&&(u=l.context)!==null&&u!==void 0&&u.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+l.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*a.levelLoadingRetryDelay,a.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return t.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+l.details+'"')}}else this.warn('cannot recover from error "'+l.details+'"'),this.clearTimer(),l.fatal=!0;return s},i}()},"./src/controller/base-stream-controller.ts":function(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"),l=A("./src/utils/discontinuities.ts"),t=A("./src/controller/fragment-finders.ts"),a=A("./src/controller/level-helper.ts"),s=A("./src/loader/fragment-loader.ts"),u=A("./src/crypt/decrypter.ts"),h=A("./src/utils/time-ranges.ts"),p=A("./src/types/loader.ts");function g(O,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(O,N.key,N)}}function v(O,I,L){return I&&g(O.prototype,I),L&&g(O,L),Object.defineProperty(O,"prototype",{writable:!1}),O}function y(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function x(O,I){O.prototype=Object.create(I.prototype),O.prototype.constructor=O,T(O,I)}function T(O,I){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,D){return N.__proto__=D,N},T(O,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(O){x(I,O);function I(N,D,R){var k;return k=O.call(this)||this,k.hls=void 0,k.fragPrevious=null,k.fragCurrent=null,k.fragmentTracker=void 0,k.transmuxer=null,k._state=S.STOPPED,k.media=null,k.mediaBuffer=null,k.config=void 0,k.bitrateTest=!1,k.lastCurrentTime=0,k.nextLoadPosition=0,k.startPosition=0,k.loadedmetadata=!1,k.fragLoadError=0,k.retryDate=0,k.levels=null,k.fragmentLoader=void 0,k.levelLastLoaded=null,k.startFragRequested=!1,k.decrypter=void 0,k.initPTS=[],k.onvseeking=null,k.onvended=null,k.logPrefix="",k.log=void 0,k.warn=void 0,k.logPrefix=R,k.log=o.logger.log.bind(o.logger,R+":"),k.warn=o.logger.warn.bind(o.logger,R+":"),k.hls=N,k.fragmentLoader=new s.default(N.config),k.fragmentTracker=D,k.config=N.config,k.decrypter=new u.default(N,N.config),N.on(r.Events.KEY_LOADED,k.onKeyLoaded,y(k)),N.on(r.Events.LEVEL_SWITCHING,k.onLevelSwitching,y(k)),k}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 k=this.fragCurrent,M=this.fragmentTracker;if(!R.live&&k&&this.media&&k.sn>=R.endSN&&!D.nextStart){var j=R.partList;if(j!=null&&j.length){var F=j[j.length-1],U=c.BufferHelper.isBuffered(this.media,F.start+F.duration/2);return U}var K=M.getState(k);return K===f.FragmentState.PARTIAL||K===f.FragmentState.OK}return!1},L.onMediaAttached=function(D,R){var k=this.media=this.mediaBuffer=R.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),k.addEventListener("seeking",this.onvseeking),k.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&&this.onvseeking&&this.onvended&&(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,k=this.media,M=this.mediaBuffer,j=this.state,F=k?k.currentTime:0,U=c.BufferHelper.bufferInfo(M||k,F,D.maxBufferHole);if(this.log("media seeking to "+(Object(w.isFiniteNumber)(F)?F.toFixed(3):F)+", state: "+j),j===S.ENDED)this.resetLoadingState();else if(R&&!U.len){var K=D.maxFragLookUpTolerance,V=R.start-K,z=R.start+R.duration+K,Q=F>z;(F<V||Q)&&(Q&&R.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),R.loader.abort()),this.resetLoadingState())}k&&(this.lastCurrentTime=F),!this.loadedmetadata&&!U.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 k=this.levels[R.frag.level].details;k&&this.loadFragment(R.frag,k,R.frag.start)},L.onLevelSwitching=function(D,R){this.fragLoadError=0},L.onHandlerDestroying=function(){this.stopLoad(),O.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=S.STOPPED,this.hls.off(r.Events.KEY_LOADED,this.onKeyLoaded,this),this.hls.off(r.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,O.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,k){this._loadFragForPlayback(D,R,k)},L._loadFragForPlayback=function(D,R,k){var M=this,j=function(U){if(M.fragContextChanged(D)){M.warn("Fragment "+D.sn+(U.part?" p: "+U.part.index:"")+" of level "+D.level+" was dropped during download."),M.fragmentTracker.removeFragment(D);return}D.stats.chunkCount++,M._handleFragmentLoadProgress(U)};this._doFragLoad(D,R,k,j).then(function(F){if(!F)return;M.fragLoadError=0;var U=M.state;if(M.fragContextChanged(D)){(U===S.FRAG_LOADING||!M.fragCurrent&&U===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||M.state===S.ERROR)return;M.warn(F),M.resetFragmentLoading(D)})},L.flushMainBuffer=function(D,R,k){if(k===void 0&&(k=null),!(D-R))return;var M={startOffset:D,endOffset:R,type:k};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,M)},L._loadInitSegment=function(D){var R=this;this._doFragLoad(D).then(function(k){if(!k||R.fragContextChanged(D)||!R.levels)throw new Error("init load aborted");return k}).then(function(k){var M=R.hls,j=k.payload,F=D.decryptdata;if(j&&j.byteLength>0&&F&&F.key&&F.iv&&F.method==="AES-128"){var U=self.performance.now();return R.decrypter.webCryptoDecrypt(new Uint8Array(j),F.key.buffer,F.iv.buffer).then(function(K){var V=self.performance.now();return M.trigger(r.Events.FRAG_DECRYPTED,{frag:D,payload:K,stats:{tstart:U,tdecrypt:V}}),k.payload=K,k})}return k}).then(function(k){var M=R.fragCurrent,j=R.hls,F=R.levels;if(!F)throw new Error("init load aborted, missing levels");var U=F[D.level].details;console.assert(U,"Level details are defined when init segment is loaded");var K=D.stats;R.state=S.IDLE,R.fragLoadError=0,D.data=new Uint8Array(k.payload),K.parsing.start=K.buffering.start=self.performance.now(),K.parsing.end=K.buffering.end=self.performance.now(),k.frag===M&&j.trigger(r.Events.FRAG_BUFFERED,{stats:K,frag:M,part:null,id:D.type}),R.tick()}).catch(function(k){if(R.state===S.STOPPED||R.state===S.ERROR)return;R.warn(k),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 k=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+D.type+" sn: "+D.sn+(R?" part: "+R.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level+" "+(k?h.default.toString(c.BufferHelper.getBuffered(k)):"(detached)")),this.state=S.IDLE,!k)return;!this.loadedmetadata&&k.buffered.length&&this.fragCurrent===this.fragPrevious&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()},L.seekToStartPos=function(){},L._handleFragmentLoadComplete=function(D){var R=this.transmuxer;if(!R)return;var k=D.frag,M=D.part,j=D.partsLoaded,F=!j||j.length===0||j.some(function(K){return!K}),U=new n.ChunkMetadata(k.level,k.sn,k.stats.chunkCount+1,0,M?M.index:-1,!F);R.flush(U)},L._handleFragmentLoadProgress=function(D){},L._doFragLoad=function(D,R,k,M){var j=this;if(k===void 0&&(k=null),!this.levels)throw new Error("frag load aborted, missing levels");if(k=Math.max(D.start,k||0),this.config.lowLatencyMode&&R){var F=R.partList;if(F&&M){k>D.end&&R.fragmentHint&&(D=R.fragmentHint);var U=this.getNextPart(F,D,k);if(U>-1){var K=F[U];return this.log("Loading part sn: "+D.sn+" p: "+K.index+" cc: "+D.cc+" of playlist ["+R.startSN+"-"+R.endSN+"] parts [0-"+U+"-"+(F.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(k.toFixed(3))),this.nextLoadPosition=K.start+K.duration,this.state=S.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:D,part:F[U],targetBufferTime:k}),this.doFragPartsLoad(D,F,U,M).catch(function(V){return j.handleFragLoadError(V)})}else if(!D.url||this.loadedEndOfParts(F,k))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(k.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:k}),this.fragmentLoader.load(D,M).catch(function(V){return j.handleFragLoadError(V)})},L.doFragPartsLoad=function(D,R,k,M){var j=this;return new Promise(function(F,U){var K=[],V=function z(Q){var Z=R[Q];j.fragmentLoader.loadPart(D,Z,M).then(function(le){K[Z.index]=le;var ne=le.part;j.hls.trigger(r.Events.FRAG_LOADED,le);var ve=R[Q+1];if(ve&&ve.fragment===D)z(Q+1);else return F({frag:D,part:ne,partsLoaded:K})}).catch(U)};V(k)})},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 k=R.frag,M=R.part,j=R.level,F=self.performance.now();k.stats.parsing.end=F,M&&(M.stats.parsing.end=F),this.updateLevelTiming(k,M,j,D.partial)},L.getCurrentContext=function(D){var R=this.levels,k=D.level,M=D.sn,j=D.part;if(!R||!R[k])return this.warn("Levels object was unset while buffering fragment "+M+" of level "+k+". The current chunk will not be buffered."),null;var F=R[k],U=j>-1?Object(a.getPartWith)(F,M,j):null,K=U?U.fragment:Object(a.getFragmentWithSN)(F,M,this.fragCurrent);return K?{frag:K,part:U,level:F}:null},L.bufferFragmentData=function(D,R,k,M){if(!D||this.state!==S.PARSING)return;var j=D.data1,F=D.data2,U=j;if(j&&F&&(U=Object(e.appendUint8Array)(j,F)),!U||!U.length)return;var K={type:D.type,frag:R,part:k,chunkMeta:M,parent:R.type,data:U};this.hls.trigger(r.Events.BUFFER_APPENDING,K),D.dropped&&D.independent&&!k&&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 k=R.currentTime,M=c.BufferHelper.bufferInfo(R,k,0),j=D.duration,F=Math.min(this.config.maxFragLookUpTolerance*2,j*.25),U=Math.max(Math.min(D.start-F,M.end-F),k+F);D.start-U>F&&this.flushMainBuffer(U,D.start)},L.getFwdBufferInfo=function(D,R){var k=this.config,M=this.getLoadPosition();if(!Object(w.isFiniteNumber)(M))return null;var j=c.BufferHelper.bufferInfo(D,M,k.maxBufferHole);if(j.len===0&&j.nextStart!==void 0){var F=this.fragmentTracker.getBufferedFrag(M,R);if(F&&j.nextStart<F.end)return c.BufferHelper.bufferInfo(D,M,Math.max(j.nextStart,k.maxBufferHole))}return j},L.getMaxBufferLength=function(D){var R=this.config,k;return D?k=Math.max(8*R.maxBufferSize/D,R.maxBufferLength):k=R.maxBufferLength,Math.min(k,R.maxMaxBufferLength)},L.reduceMaxBufferLength=function(D){var R=this.config,k=D||R.maxBufferLength;return R.maxMaxBufferLength>=k?(R.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+R.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(D,R){var k=R.fragments,M=k.length;if(!M)return null;var j=this.config,F=k[0].start,U;if(R.live){var K=j.initialLiveManifestSize;if(M<K)return this.warn("Not enough fragments to start playback (have: "+M+", need: "+K+")"),null;!R.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(U=this.getInitialLiveFragment(R,k),this.startPosition=U?this.hls.liveSyncPosition||U.start:D)}else D<=F&&(U=k[0]);if(!U){var V=j.lowLatencyMode?R.partEnd:R.fragmentEnd;U=this.getFragmentAtPosition(D,V,R)}return this.mapToInitFragWhenRequired(U)},L.mapToInitFragWhenRequired=function(D){return D!=null&&D.initSegment&&!(D!=null&&D.initSegment.data)&&!this.bitrateTest?D.initSegment:D},L.getNextPart=function(D,R,k){for(var M=-1,j=!1,F=!0,U=0,K=D.length;U<K;U++){var V=D[U];if(F=F&&!V.independent,M>-1&&k<V.start)break;var z=V.loaded;!z&&(j||V.independent||F)&&V.fragment===R&&(M=U),j=z}return M},L.loadedEndOfParts=function(D,R){var k=D[D.length-1];return k&&R>k.start&&k.loaded},L.getInitialLiveFragment=function(D,R){var k=this.fragPrevious,M=null;if(k){if(D.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+k.programDateTime),M=Object(t.findFragmentByPDT)(R,k.endProgramDateTime,this.config.maxFragLookUpTolerance)),!M){var j=k.sn+1;if(j>=D.startSN&&j<=D.endSN){var F=R[j-D.startSN];k.cc===F.cc&&(M=F,this.log("Live playlist, switching playlist, load frag with next SN: "+M.sn))}M||(M=Object(t.findFragWithCC)(R,k.cc),M&&this.log("Live playlist, switching playlist, load frag with same CC: "+M.sn))}}else{var U=this.hls.liveSyncPosition;U!==null&&(M=this.getFragmentAtPosition(U,this.bitrateTest?D.fragmentEnd:D.edge,D))}return M},L.getFragmentAtPosition=function(D,R,k){var M=this.config,j=this.fragPrevious,F=k.fragments,U=k.endSN,K=k.fragmentHint,V=M.maxFragLookUpTolerance,z=!!(M.lowLatencyMode&&k.partList&&K);z&&K&&!this.bitrateTest&&(F=F.concat(K),U=K.sn);var Q;if(D<R){var Z=D>R-V?0:V;Q=Object(t.findFragmentByPTS)(j,F,D,Z)}else Q=F[F.length-1];if(Q){var le=Q.sn-k.startSN;if(j&&Q.sn===j.sn&&!z){var ne=j&&Q.level===j.level;if(ne){var ve=F[le+1];Q.sn<U&&this.fragmentTracker.getState(ve)!==f.FragmentState.OK?(this.log("SN "+Q.sn+" just loaded, load next one: "+ve.sn),Q=ve):Q=null}}}return Q},L.synchronizeToLiveEdge=function(D){var R=this.config,k=this.media;if(!k)return;var M=this.hls.liveSyncPosition,j=k.currentTime,F=D.fragments[0].start,U=D.edge,K=j>=F-R.maxFragLookUpTolerance&&j<=U;if(M!==null&&k.duration>M&&(j<M||!K)){var V=R.liveMaxLatencyDuration!==void 0?R.liveMaxLatencyDuration:R.liveMaxLatencyDurationCount*D.targetduration;(!K&&k.readyState<4||j<U-V)&&(this.loadedmetadata||(this.nextLoadPosition=M),k.readyState&&(this.warn("Playback: "+j.toFixed(3)+" is located too far from the end of live sliding playlist: "+U+", reset currentTime to : "+M.toFixed(3)),k.currentTime=M))}},L.alignPlaylists=function(D,R){var k=this.levels,M=this.levelLastLoaded,j=this.fragPrevious,F=M!==null?k[M]:null,U=D.fragments.length;if(!U)return this.warn("No fragments in live playlist"),0;var K=D.fragments[0].start,V=!R,z=D.alignedSliding&&Object(w.isFiniteNumber)(K);if(V||!z&&!K){Object(l.alignStream)(j,F,D);var Q=D.fragments[0].start;return this.log("Live playlist sliding: "+Q.toFixed(2)+" start-sn: "+(R?R.startSN:"na")+"->"+D.startSN+" prev-sn: "+(j?j.sn:"na")+" fragments: "+U),Q}return K},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 k=this.startPosition;if(k<R&&(k=-1),k===-1||this.lastCurrentTime===-1){var M=D.startTimeOffset;Object(w.isFiniteNumber)(M)?(k=R+M,M<0&&(k+=D.totalduration),k=Math.min(Math.max(R,k),R+D.totalduration),this.log("Start time offset "+M+" found in playlist, adjust startPosition to "+k),this.startPosition=k):D.live?k=this.hls.liveSyncPosition||R:this.startPosition=k=0,this.lastCurrentTime=k}this.nextLoadPosition=k},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.FRAG_LOADING_WAITING_RETRY)&&(this.state=S.IDLE)},L.onFragmentOrKeyLoadError=function(D,R){if(R.fatal)return;var k=R.frag;if(!k||k.type!==D)return;var M=this.fragCurrent;console.assert(M&&k.sn===M.sn&&k.level===M.level&&k.urlId===M.urlId,"Frag load error must match current frag to retry");var j=this.config;if(this.fragLoadError+1<=j.fragLoadingMaxRetry){this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition);var F=Math.min(Math.pow(2,this.fragLoadError)*j.fragLoadingRetryDelay,j.fragLoadingMaxRetryTimeout);this.warn("Fragment "+k.sn+" of "+D+" "+k.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,k){if(!D)return;var M=c.BufferHelper.getBuffered(D);this.fragmentTracker.detectEvictedFragments(R,M,k),this.state===S.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=S.IDLE},L.resetStartWhenNotLoaded=function(D){if(!this.loadedmetadata){this.startFragRequested=!1;var R=this.levels?this.levels[D].details:null;R!=null&&R.live?(this.startPosition=-1,this.setStartPosition(R,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},L.updateLevelTiming=function(D,R,k,M){var j=this,F=k.details;console.assert(!!F,"level.details must be defined");var U=Object.keys(D.elementaryStreams).reduce(function(K,V){var z=D.elementaryStreams[V];if(z){var Q=z.endPTS-z.startPTS;if(Q<=0)return j.warn("Could not parse fragment "+D.sn+" "+V+" duration reliably ("+Q+")"),K||!1;var Z=M?0:Object(a.updateFragPTSDTS)(F,D,z.startPTS,z.endPTS,z.startDTS,z.endDTS);return j.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:F,level:k,drift:Z,type:V,frag:D,start:z.startPTS,end:z.endPTS}),!0}return K},!1);U||(this.warn("Found no media in fragment "+D.sn+" of level "+k.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)(),l=/([ha]vc.)(?:\.[^.,]+)+/,t=function(){function a(u){var h=this;this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var p=h.hls,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 s=a.prototype;return s.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},s.destroy=function(){this.unregisterListeners(),this.details=null},s.registerListeners=function(){var h=this.hls;h.on(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)},s.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)},s._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},s.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")},s.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}},s.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)},s.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()},s.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,O=T.levelCodec,I=T.container,L=T.metadata,N=(x.levelCodec||x.codec).replace(l,"$1"),D=(O||b).replace(l,"$1");if(N!==D){var R=I+";codecs="+(O||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:O,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()},s.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)},s.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,O=p.part,I=p.chunkMeta,L=I.buffering[S],N=self.performance.now();L.start=N;var D=b.stats.buffering,R=O?O.stats.buffering:null;D.start===0&&(D.start=N),R&&R.start===0&&(R.start=N);var k=x.audio,M=S==="audio"&&I.id===1&&(k==null?void 0:k.container)==="audio/mpeg",j={execute:function(){if(L.executeStart=self.performance.now(),M){var U=g.sourceBuffer[S];if(U){var K=b.start-U.timestampOffset;Math.abs(K)>=.1&&(f.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+K+") sn: "+b.sn+")"),U.timestampOffset=b.start)}}g.appendExecutor(T,S)},onStart:function(){},onComplete:function(){var U=self.performance.now();L.executeEnd=L.end=U,D.first===0&&(D.first=U),R&&R.first===0&&(R.first=U);var K=g.sourceBuffer,V={};for(var z in K)V[z]=o.BufferHelper.getBuffered(K[z]);g.appendError=0,g.hls.trigger(m.Events.BUFFER_APPENDED,{type:S,frag:b,part:O,chunkMeta:I,parent:b.type,timeRanges:V})},onError:function(U){f.logger.error("[buffer-controller]: Error encountered while trying to append to the "+S+" SourceBuffer",U);var K={type:c.ErrorTypes.MEDIA_ERROR,parent:b.type,details:c.ErrorDetails.BUFFER_APPEND_ERROR,err:U,fatal:!1};U.code===DOMException.QUOTA_EXCEEDED_ERR?K.details=c.ErrorDetails.BUFFER_FULL_ERROR:(g.appendError++,K.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"),K.fatal=!0,v.stopLoad())),v.trigger(m.Events.ERROR,K)}};y.append(j,S)},s.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)})},s.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 O=self.performance.now();v.stats.buffering.end=O,y&&(y.stats.buffering.end=O);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)},s.onFragChanged=function(h,p){this.flushBackBuffer()},s.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()})},s.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()},s.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),O=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&&O>N.start(0)&&(h.trigger(m.Events.BACK_BUFFER_REACHED,{bufferEnd:O}),p.live&&h.trigger(m.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:O}),h.trigger(m.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:O,type:I}))}})},s.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)},s.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)}},s.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)})}},s.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),O=y;this.addBufferListener(O,"updatestart",this._onSBUpdateStart),this.addBufferListener(O,"updateend",this._onSBUpdateEnd),this.addBufferListener(O,"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})},s._onSBUpdateStart=function(h){var p=this.operationQueue,g=p.current(h);g.onStart()},s._onSBUpdateEnd=function(h){var p=this.operationQueue,g=p.current(h);g.onComplete(),p.shiftAndExecuteNext(h)},s._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)},s.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,O=Object(w.isFiniteNumber)(y.duration)?y.duration:Infinity,I=Math.max(0,p),L=Math.min(g,b,O);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)},s.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)},s.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)})})},s.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},s.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)},s.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(l){i=l}),e={execute:i,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,r),n},c.executeNext=function(r){var i=this.buffers,n=this.queues,e=i[r],l=n[r];if(l.length){var t=l[0];try{t.execute()}catch(a){w.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),t.onError(a),(!e||!e.updating)&&(l.shift(),this.executeNext(r))}}},c.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},c.current=function(r){return this.queues[r][0]},f}()},"./src/controller/cap-level-controller.ts":function(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 l=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,l.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onBufferCodecs=function(n,e){var l=this.hls;l.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onMediaDetaching=function(){this.stopCapping()},r.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},r.getMaxLevel=function(n){var e=this,l=this.hls.levels;if(!l.length)return-1;var t=l.filter(function(a,s){return o.isLevelAllowed(s,e.restrictedLevels)&&s<=n});return this.clientRect=null,o.getMaxLevelByMediaSize(t,this.mediaWidth,this.mediaHeight)},r.startCapping=function(){if(this.timer)return;this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,e={width:0,height:0};if(n){var l=n.getBoundingClientRect();e.width=l.width,e.height=l.height,!e.width&&!e.height&&(e.width=l.right-l.left||n.width||0,e.height=l.bottom-l.top||n.height||0)}return this.clientRect=e,e},o.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},o.getMaxLevelByMediaSize=function(n,e,l){if(!n||!n.length)return-1;for(var t=function(p,g){return g?p.width!==g.width||p.height!==g.height:!0},a=n.length-1,s=0;s<n.length;s+=1){var u=n[s];if((u.width>=e||u.height>=l)&&t(u,n[s+1])){a=s;break}}return a},f(o,[{key:"mediaWidth",get:function(){return this.getDimensions().width*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,s){for(var u=0;u<s.length;u++){var h=s[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function r(a,s,u){return s&&o(a.prototype,s),u&&o(a,u),Object.defineProperty(a,"prototype",{writable:!1}),a}function i(a,s){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(u)return(u=u.call(a)).next.bind(u);if(Array.isArray(a)||(u=n(a))||s&&a&&typeof a.length=="number"){u&&(a=u);var h=0;return function(){return h>=a.length?{done:!0}:{done:!1,value:a[h++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(a,s){if(!a)return;if(typeof a=="string")return e(a,s);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return e(a,s)}function e(a,s){(s==null||s>a.length)&&(s=a.length);for(var u=0,h=new Array(s);u<s;u++)h[u]=a[u];return h}function l(){return l=Object.assign?Object.assign.bind():function(a){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},l.apply(this,arguments)}var t=function(){function a(u){var h=this;this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){h.initialized&&(h.starved=!0),h.buffering=!0},this.onPlaying=function(){h.initialized||(h.initialized=!0),h.buffering=!1},this.applyPlaylistData=function(v){try{h.apply(v,{ot: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 s=a.prototype;return s.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)},s.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()},s.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},s.onMediaAttached=function(h,p){this.media=p.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},s.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},s.onBufferCreated=function(h,p){var 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},s.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}},s.apply=function(h,p){p===void 0&&(p={}),l(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={}),l(h.headers,v)}else{var y=a.toQuery(p);if(!y)return;h.url=a.appendQueryToUri(h.url,y)}},s.getObjectType=function(h){var p=h.type;return p==="subtitle"?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},s.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},s.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},s.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}()},s.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),O;!(O=b()).done;){var I=O.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],O=x[b]!=null?x[b]:1;y[O][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 s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,s){return a&&o(t.prototype,a),s&&o(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t}var i=3,n=function(a,s,u){var h={audioCapabilities:[],videoCapabilities:[]};return a.forEach(function(p){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+p+'"',robustness:u.audioRobustness||""})}),s.forEach(function(p){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+p+'"',robustness:u.videoRobustness||""})}),[h]},e=function(a,s,u,h){switch(a){case c.KeySystems.WIDEVINE:return n(s,u,h);default:throw new Error("Unknown key-system: "+a)}},l=function(){function t(s){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=s,this._config=s.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var a=t.prototype;return a.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},a._registerListeners=function(){this.hls.on(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=l},"./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 l=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=l,l&&typeof l.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},o.checkFPS=function(i,n,e){var l=performance.now();if(n){if(this.lastTime){var t=l-this.lastTime,a=e-this.lastDroppedFrames,s=n-this.lastDecodedFrames,u=1e3*a/t,h=this.hls;if(h.trigger(w.Events.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:e}),u>0&&a>h.config.fpsDroppedMonitoringThreshold*s){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=l,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},o.checkFPSInterval=function(){var i=this.media;if(i)if(this.isVideoPlaybackQualityAvailable){var n=i.getVideoPlaybackQuality();this.checkFPS(i,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(i,i.webkitDecodedFrameCount,i.webkitDroppedFrameCount)},c}();C.default=f},"./src/controller/fragment-finders.ts":function(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,l){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;l=l||0;for(var s=0;s<n.length;++s){var u=n[s];if(r(e,l,u))return u}return null}function c(n,e,l,t){l===void 0&&(l=0),t===void 0&&(t=0);var a=null;if(n?a=e[n.sn-e[0].sn+1]||null:l===0&&e[0].start===0&&(a=e[0]),a&&o(l,t,a)===0)return a;var s=m.default.search(e,o.bind(null,l,t));return s||a}function o(n,e,l){n===void 0&&(n=0),e===void 0&&(e=0);var t=Math.min(e,l.duration+(l.deltaPTS?l.deltaPTS:0));return l.start+l.duration-t<=n?1:l.start-t>n&&l.start?-1:0}function r(n,e,l){var t=Math.min(e,l.duration+(l.deltaPTS?l.deltaPTS:0))*1e3,a=l.endProgramDateTime||0;return a-t>n}function i(n,e){return m.default.search(n,function(l){return l.cc<e?1:l.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 l=this.hls;l.on(w.Events.BUFFER_APPENDED,this.onBufferAppended,this),l.on(w.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.on(w.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var l=this.hls;l.off(w.Events.BUFFER_APPENDED,this.onBufferAppended,this),l.off(w.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.off(w.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(l,t){if(t===m.PlaylistLevelType.MAIN){var a=this.activeFragment,s=this.activeParts;if(!a)return null;if(s)for(var u=s.length;u--;){var h=s[u],p=h?h.end:a.appendedPTS;if(h.start<=l&&p!==void 0&&l<=p)return u>9&&(this.activeParts=s.slice(u-9)),h}else if(a.start<=l&&a.appendedPTS!==void 0&&l<=a.appendedPTS)return a}return this.getBufferedFrag(l,t)},n.getBufferedFrag=function(l,t){for(var a=this.fragments,s=Object.keys(a),u=s.length;u--;){var h=a[s[u]];if((h==null?void 0:h.body.type)===t&&h.buffered){var p=h.body;if(p.start<=l&&l<=p.end)return p}}return null},n.detectEvictedFragments=function(l,t,a){var s=this;Object.keys(this.fragments).forEach(function(u){var h=s.fragments[u];if(!h)return;if(!h.buffered){h.body.type===a&&s.removeFragment(h.body);return}var p=h.range[l];if(!p)return;p.time.some(function(g){var v=!s.isTimeBuffered(g.startPTS,g.endPTS,t);return v&&s.removeFragment(h.body),v})})},n.detectPartialFragments=function(l){var t=this,a=this.timeRanges,s=l.frag,u=l.part;if(!a||s.sn==="initSegment")return;var h=r(s),p=this.fragments[h];if(!p)return;Object.keys(a).forEach(function(g){var v=s.elementaryStreams[g];if(!v)return;var y=a[g],x=u!==null||v.partial===!0;p.range[g]=t.getBufferedTimes(s,u,x,y)}),p.loaded=null,Object.keys(p.range).length?p.buffered=!0:this.removeFragment(p.body)},n.fragBuffered=function(l){var t=r(l),a=this.fragments[t];a&&(a.loaded=null,a.buffered=!0)},n.getBufferedTimes=function(l,t,a,s){for(var u={time:[],partial:a},h=t?t.start:l.start,p=t?t.end:l.end,g=l.minEndPTS||p,v=l.maxStartPTS||h,y=0;y<s.length;y++){var x=s.start(y)-this.bufferPadding,T=s.end(y)+this.bufferPadding;if(v>=x&&g<=T){u.time.push({startPTS:Math.max(h,s.start(y)),endPTS:Math.min(p,s.end(y))});break}else if(h<T&&p>x)u.partial=!0,u.time.push({startPTS:Math.max(h,s.start(y)),endPTS:Math.min(p,s.end(y))});else if(p<=x)break}return u},n.getPartialFragment=function(l){var t=null,a,s,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)&&(s=y.body.start-p,u=y.body.end+p,l>=s&&l<=u&&(a=Math.min(l-s,u-l),h<=a&&(t=y.body,h=a)))}),t},n.getState=function(l){var t=r(l),a=this.fragments[t];return a?a.buffered?o(a)?f.PARTIAL:f.OK:f.APPENDING:f.NOT_LOADED},n.isTimeBuffered=function(l,t,a){for(var s,u,h=0;h<a.length;h++){if(s=a.start(h)-this.bufferPadding,u=a.end(h)+this.bufferPadding,l>=s&&t<=u)return!0;if(t<=s)return!1}return!1},n.onFragLoaded=function(l,t){var a=t.frag,s=t.part;if(a.sn==="initSegment"||a.bitrateTest||s)return;var u=r(a);this.fragments[u]={body:a,loaded:t,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(l,t){var a=this,s=t.frag,u=t.part,h=t.timeRanges;if(s.type===m.PlaylistLevelType.MAIN)if(this.activeFragment=s,u){var p=this.activeParts;p||(this.activeParts=p=[]),p.push(u)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(g){var v=h[g];if(a.detectEvictedFragments(g,v),!u)for(var y=0;y<v.length;y++)s.appendedPTS=Math.max(v.end(y),s.appendedPTS||0)})},n.onFragBuffered=function(l,t){this.detectPartialFragments(t)},n.hasFragment=function(l){var t=r(l);return!!this.fragments[t]},n.removeFragmentsInRange=function(l,t,a){var s=this;Object.keys(this.fragments).forEach(function(u){var h=s.fragments[u];if(!h)return;if(h.buffered){var p=h.body;p.type===a&&p.start<t&&p.end>l&&s.removeFragment(p)}})},n.removeFragment=function(l){var t=r(l);l.stats.loaded=0,l.clearElementaryStreamInfo(),delete this.fragments[t]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},i}();function o(i){var n,e;return i.buffered&&(((n=i.range.video)===null||n===void 0?void 0:n.partial)||((e=i.range.audio)===null||e===void 0?void 0:e.partial))}function r(i){return i.type+"_"+i.level+"_"+i.urlId+"_"+i.sn}},"./src/controller/gap-controller.ts":function(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 l(a,s,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=s,this.fragmentTracker=u,this.hls=h}var t=l.prototype;return t.destroy=function(){this.media=null,this.hls=this.fragmentTracker=null},t.poll=function(s,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!==s){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),O=b.len>0,I=b.nextStart||0;if(!O&&!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,k=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,M=k==null||((D=k.details)===null||D===void 0)?void 0:D.live,j=M?k.details.targetduration*2:r;if(R>0&&R<=j){this._trySkipBufferHole(null);return}}var F=self.performance.now();if(g===null){this.stalled=F;return}var U=F-g;if(!y&&U>=o&&(this._reportStall(b),!this.media))return;var K=w.BufferHelper.bufferInfo(p,v,h.maxBufferHole);this._tryFixBufferStall(K,U)},t._tryFixBufferStall=function(s,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}s.len>h.maxBufferHole&&u>h.highBufferWatchdogPeriod*1e3&&(c.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},t._reportStall=function(s){var u=this.hls,h=this.media,p=this.stallReported;!p&&h&&(this.stallReported=!0,c.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer ("+JSON.stringify(s)+")"),u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:s.len}))},t._trySkipBufferHole=function(s){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,s&&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:s}),S}v=y.end(x)}return 0},t._tryNudgeBuffer=function(){var s=this.config,u=this.hls,h=this.media,p=this.nudgeRetry;if(h===null)return;var g=h.currentTime;if(this.nudgeRetry++,p<s.nudgeMaxRetry){var v=g+(p+1)*s.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 "+s.nudgeMaxRetry+" nudges"),u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},l}()},"./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,s){return a.getTime()/1e3-s}function l(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 s=a.prototype;return s.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null},s._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)},s._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)},s.onMediaAttached=function(h,p){this.media=p.media},s.onMediaDetaching=function(){if(!this.id3Track)return;Object(f.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}},s.onManifestLoading=function(){this.dateRangeCuesAppended={}},s.createTrack=function(h){var p=this.getID3Track(h.textTracks);return p.mode="hidden",p},s.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")},s.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,O=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 k=T[N].pts,M=b,j=M-k;j<=0&&(M=k+i);for(var F=0;F<R.length;F++){var U=R[F];if(!c.isTimeStampFrame(U)){var K=new O(k,M,"");K.value=U,D&&(K.type=D),this.id3Track.addCue(K),L[U.key]=null,I=!0}}}}I&&this.updateId3CueEnds(L)},s.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}}},s.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,O=S.enableID3MetadataCues;if(x&&(b||O)){var I;y==="audio"?I=function(N){return N.type===r.MetadataSchema.audioId3&&O}:y==="video"?I=function(N){return N.type===r.MetadataSchema.emsg&&b}:I=function(N){return N.type===r.MetadataSchema.audioId3&&O||N.type===r.MetadataSchema.emsg&&b},Object(f.removeCuesInRange)(x,g,v,I)}},s.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(j){return!S.includes(j)}),O=function(F){var U=b[F];Object.keys(y[U].cues).forEach(function(K){x.removeCue(y[U].cues[K])}),delete y[U]},I=b.length;I--;)O(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(),k=function(F){var U=S[F],K=T[U],V=y[U],z=(V==null?void 0:V.cues)||{},Q=(V==null?void 0:V.durationKnown)||!1,Z=e(K.startDate,N),le=D,ne=K.endDate;if(ne)le=e(ne,N),Q=!0;else if(K.endOnNext&&!Q){var ve=S.reduce(function(ie,te){var Ge=T[te];return Ge.class===K.class&&Ge.id!==te&&Ge.startDate>K.startDate&&ie.push(Ge),ie},[]).sort(function(ie,te){return ie.startDate.getTime()-te.startDate.getTime()})[0];ve&&(le=e(ve.startDate,N),Q=!0)}for(var xe=Object.keys(K.attr),_e=0;_e<xe.length;_e++){var Be=xe[_e];if(Be===o.DateRangeAttribute.ID||Be===o.DateRangeAttribute.CLASS||Be===o.DateRangeAttribute.START_DATE||Be===o.DateRangeAttribute.DURATION||Be===o.DateRangeAttribute.END_DATE||Be===o.DateRangeAttribute.END_ON_NEXT)continue;var me=z[Be];if(me)Q&&!V.durationKnown&&(me.endTime=le);else{var Fe=K.attr[Be];me=new R(Z,le,""),(Be===o.DateRangeAttribute.SCTE35_OUT||Be===o.DateRangeAttribute.SCTE35_IN)&&(Fe=l(Fe)),me.value={key:Be,data:Fe},me.type=r.MetadataSchema.dateRange,g.id3Track.addCue(me),z[Be]=me}}y[U]={cues:z,dateRange:K,durationKnown:Q}},M=0;M<S.length;M++)k(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 l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}var r=function(){function i(e){var l=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return l.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var n=i.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(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(l,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(l,t){var a=t.details;this.levelDetails=a,a.advanced&&this.timeupdate(),!a.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(l,t){if(t.details!==w.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,f.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var l=this.media,t=this.levelDetails;if(!l||!t)return;this.currentTime=l.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var s=this.config,u=s.lowLatencyMode,h=s.maxLiveSyncPlaybackRate;if(!u||h===1)return;var p=this.targetLatency;if(p===null)return;var 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;l.playbackRate=Math.min(x,Math.max(1,T))}else l.playbackRate!==1&&l.playbackRate!==0&&(l.playbackRate=1)},n.estimateLiveEdge=function(){var l=this.levelDetails;return l===null?null:l.edge+l.age},n.computeLatency=function(){var l=this.estimateLiveEdge();return l===null?null:l-this.currentTime},o(i,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var l=this.config,t=this.levelDetails;return l.liveMaxLatencyDuration!==void 0?l.liveMaxLatencyDuration:t?l.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var l=this.levelDetails;if(l===null)return null;var t=l.holdBack,a=l.partHoldBack,s=l.targetduration,u=this.config,h=u.liveSyncDuration,p=u.liveSyncDurationCount,g=u.lowLatencyMode,v=this.hls.userConfig,y=g&&a||t;(v.liveSyncDuration||v.liveSyncDurationCount||y===0)&&(y=h!==void 0?h:p*s);var x=s,T=1;return y+Math.min(this.stallCount*T,x)}},{key:"liveSyncPosition",get:function(){var l=this.estimateLiveEdge(),t=this.targetLatency,a=this.levelDetails;if(l===null||t===null||a===null)return null;var s=a.edge,u=l-t-this.edgeStalled,h=s-a.totalduration,p=s-(this.config.lowLatencyMode&&a.partTarget||a.targetduration);return Math.min(Math.max(h,u),p)}},{key:"drift",get:function(){var l=this.levelDetails;return l===null?1:l.drift}},{key:"edgeStalled",get:function(){var l=this.levelDetails;if(l===null)return 0;var t=(this.config.lowLatencyMode&&l.partTarget||l.targetduration)*3;return Math.max(l.age-t,0)}},{key:"forwardBufferLength",get:function(){var l=this.media,t=this.levelDetails;if(!l||!t)return 0;var a=l.buffered.length;return(a?l.buffered.end(a-1):t.edge)-this.currentTime}}]),i}()},"./src/controller/level-controller.ts":function(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 l(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 s=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=function(h){t(p,h);function p(v){var y;return y=h.call(this,v,"[level-controller]")||this,y._levels=[],y._firstLevel=-1,y._startLevel=void 0,y.currentLevelIndex=-1,y.manualLevelIndex=-1,y.onParsedComplete=void 0,y._registerListeners(),y}var 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=[],O,I={},L,N=!1,D=!1,R=!1;if(x.levels.forEach(function(F){var U=F.attrs;N=N||!!(F.width&&F.height),D=D||!!F.videoCodec,R=R||!!F.audioCodec,s&&F.audioCodec&&F.audioCodec.indexOf("mp4a.40.34")!==-1&&(F.audioCodec=void 0);var K=F.bitrate+"-"+F.attrs.RESOLUTION+"-"+F.attrs.CODECS;L=I[K],L?L.url.push(F.url):(L=new w.Level(F),I[K]=L,T.push(L)),U&&(U.AUDIO&&Object(o.addGroupId)(L,"audio",U.AUDIO),U.SUBTITLES&&Object(o.addGroupId)(L,"text",U.SUBTITLES))}),(N||D)&&R&&(T=T.filter(function(F){var U=F.videoCodec,K=F.width,V=F.height;return!!U||!!(K&&V)})),T=T.filter(function(F){var U=F.audioCodec,K=F.videoCodec;return(!U||Object(c.isCodecSupportedInMp4)(U,"audio"))&&(!K||Object(c.isCodecSupportedInMp4)(K,"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){O=T[0].bitrate,T.sort(function(F,U){return F.bitrate-U.bitrate}),this._levels=T;for(var k=0;k<T.length;k++)if(T[k].bitrate===O){this._firstLevel=k,this.log("manifest loaded, "+T.length+" level(s) found, first bitrate: "+O);break}var M=R&&!D,j={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,j),(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){var T;if(h.prototype.onError.call(this,y,x),x.fatal)return;var S=x.context,b=this._levels[this.currentLevelIndex];if(S&&(S.type===i.PlaylistContextType.AUDIO_TRACK&&b.audioGroupIds&&S.groupId===b.audioGroupIds[b.urlId]||S.type===i.PlaylistContextType.SUBTITLE_TRACK&&b.textGroupIds&&S.groupId===b.textGroupIds[b.urlId])){this.redundantFailover(this.currentLevelIndex);return}var O=!1,I=!0,L;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 N=x.frag.type===i.PlaylistLevelType.MAIN?x.frag.level:this.currentLevelIndex,D=this._levels[N];D?(D.fragmentError++,D.fragmentError>this.hls.config.fragLoadingMaxRetry&&(L=N)):L=N}break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:S&&(S.deliveryDirectives&&(I=!1),L=S.level),O=!0;break;case f.ErrorDetails.REMUX_ALLOC_ERROR:L=(T=x.level)!=null?T:this.currentLevelIndex,O=!0;break}L!==void 0&&this.recoverLevel(x,L,O,I)},g.recoverLevel=function(y,x,T,S){var b=y.details,O=this._levels[x];if(O.loadError++,T){var I=this.retryLoadingOrFail(y);if(I)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(S){var L=O.url.length;if(L>1&&O.loadError<L)y.levelRetry=!0,this.redundantFailover(x);else if(this.manualLevelIndex===-1){for(var N=-1,D=this._levels,R=D.length;R--;){var k=(R+this.currentLevelIndex)%D.length;if(k!==this.currentLevelIndex&&D[k].loadError===0){N=k;break}}N>-1&&this.currentLevelIndex!==N&&(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,O=this._levels[S];if(!O){var I;this.warn("Invalid level index "+S),(I=x.deliveryDirectives)!==null&&I!==void 0&&I.skip&&(b.deltaUpdateFailed=!0);return}S===this.currentLevelIndex?(O.fragmentError===0&&(O.loadError=0,this.retryCount=0),this.playlistLoaded(S,x,O.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,O=0;O<T.audioGroupIds.length;O++)if(T.audioGroupIds[O]===b){S=O;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(O){this.warn("Could not construct new URL with HLS Delivery Directives: "+O)}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(O,I){return I!==x},S=this._levels.filter(function(b,O){return O!==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,O){var I=b.details;return I!=null&&I.fragments&&I.fragments.forEach(function(L){L.level=O}),b});this._levels=S,this.hls.trigger(m.Events.LEVELS_UPDATED,{levels:S})},l(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var 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,O=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,O==null?void 0:O.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 l}),A.d(C,"mapPartIntersection",function(){return a}),A.d(C,"mapFragmentIntersection",function(){return s}),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 O=y.cc===x.cc;O&&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,O){var I=S-T;I<=0&&(m.logger.warn("Fragment should have a positive duration",x),S=T+x.duration,O=b+x.duration);var L=T,N=S,D=x.startPTS,R=x.endPTS;if(Object(w.isFiniteNumber)(D)){var k=Math.abs(D-T);Object(w.isFiniteNumber)(x.deltaPTS)?x.deltaPTS=Math.max(k,x.deltaPTS):x.deltaPTS=k,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),O=Math.max(O,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=O;var j=x.sn;if(!y||j<y.startSN||j>y.endSN)return 0;var F,U=j-y.startSN,K=y.fragments;for(K[U]=x,F=U;F>0;F--)n(K[F],K[F-1]);for(F=U;F<K.length-1;F++)n(K[F],K[F+1]);return y.fragmentHint&&n(K[K.length-1],y.fragmentHint),y.PTSKnown=y.alignedSliding=!0,M}function l(y,x){for(var T=null,S=y.fragments,b=S.length-1;b>=0;b--){var O=S[b].initSegment;if(O){T=O;break}}y.fragmentHint&&delete y.fragmentHint.endPTS;var I=0,L;if(s(y,x,function(F,U){F.relurl&&(I=F.cc-U.cc),Object(w.isFiniteNumber)(F.startPTS)&&Object(w.isFiniteNumber)(F.endPTS)&&(U.start=U.startPTS=F.startPTS,U.startDTS=F.startDTS,U.appendedPTS=F.appendedPTS,U.maxStartPTS=F.maxStartPTS,U.endPTS=F.endPTS,U.endDTS=F.endDTS,U.minEndPTS=F.minEndPTS,U.duration=F.endPTS-F.startPTS,U.duration&&(L=U),x.PTSKnown=x.alignedSliding=!0),U.elementaryStreams=F.elementaryStreams,U.loader=F.loader,U.stats=F.stats,U.urlId=F.urlId,F.initSegment&&(U.initSegment=F.initSegment,T=F.initSegment)}),T){var N=x.fragmentHint?x.fragments.concat(x.fragmentHint):x.fragments;N.forEach(function(F){var U;(!F.initSegment||F.initSegment.relurl===((U=T)===null||U===void 0?void 0:U.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 k=0;k<R.length;k++)R[k].cc+=I}x.skippedSegments&&(x.startCC=x.fragments[0].cc),a(y.partList,x.partList,function(F,U){U.elementaryStreams=F.elementaryStreams,U.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 j=x.edge;x.driftStart||(x.driftStartTime=M,x.driftStart=j),x.driftEndTime=M,x.driftEnd=j}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 O=new f.DateRange(x[b].attr,S[b]);O.isValid?S[b]=O: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,O=y.length;b<=O;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 s(y,x,T){for(var S=x.skippedSegments,b=Math.max(y.startSN,x.startSN)-x.startSN,O=(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<=O;D++){var R=N[I+D],k=L[D];S&&!k&&D<S&&(k=x.fragments[D]=R),R&&k&&T(R,k)}}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,O=b>0&&b<T*3,I=x.loading.end-x.loading.start,L,N=y.availabilityDelay;if(y.updated===!1)if(O){var D=333*y.misses;L=Math.max(Math.min(S,I*2),D),y.availabilityDelay=(y.availabilityDelay||0)+L}else L=S;else O?(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 O=S[b];if(O.index===T&&O.fragment.sn===x)return O}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"),l=A("./src/types/transmuxer.ts"),t=A("./src/controller/gap-controller.ts"),a=A("./src/errors.ts");function s(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&&s(y.prototype,x),T&&s(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 O;return O=y.call(this,S,b,"[stream-controller]")||this,O.audioCodecSwap=!1,O.gapController=null,O.level=-1,O._forceStartLoad=!1,O.altAudio=!1,O.audioOnly=!1,O.fragPlaying=null,O.onvplaying=null,O.onvseeked=null,O.fragLastKbps=0,O.couldBacktrack=!1,O.backtrackFragment=null,O.audioCodecSwitch=!1,O.videoBuffer=null,O._registerListeners(),O}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 O=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&&this.levels.length>1?(L=0,this.bitrateTest=!0):L=I.nextAutoLevel),this.level=I.nextLoadLevel=L,this.loadedmetadata=!1}O>0&&b===-1&&(this.log("Override startPosition with lastCurrentTime @"+O.toFixed(3)),b=O),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,O=this.levels,I=this.level,L=O==null||((b=O[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.resetStartWhenNotLoaded(this.level),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,O,I=this.hls,L=this.levelLastLoaded,N=this.levels,D=this.media,R=I.config,k=I.nextLoadLevel;if(L===null||!D&&(this.startFragRequested||!R.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!N||!N[k])return;var M=N[k];this.level=I.nextLoadLevel=k;var j=M.details;if(!j||this.state===m.State.WAITING_LEVEL||j.live&&this.levelLastLoaded!==k){this.state=m.State.WAITING_LEVEL;return}var F=this.getMainFwdBufferInfo();if(F===null)return;var U=F.len,K=this.getMaxBufferLength(M.maxBitrate);if(U>=K)return;if(this._streamEnded(F,j)){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,Q=this.getNextFragment(z,j);if(this.couldBacktrack&&!this.fragPrevious&&Q&&Q.sn!=="initSegment"&&this.fragmentTracker.getState(Q)!==r.FragmentState.OK){var Z,le=((Z=this.backtrackFragment)!=null?Z:Q).sn,ne=le-j.startSN,ve=j.fragments[ne-1];ve&&Q.cc===ve.cc&&(Q=ve,this.fragmentTracker.removeFragment(ve))}else this.backtrackFragment&&F.len&&(this.backtrackFragment=null);if(Q&&this.fragmentTracker.getState(Q)===r.FragmentState.OK&&this.nextLoadPosition>z){var xe=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;D&&this.afterBufferFlushed(D,xe,i.PlaylistLevelType.MAIN),Q=this.getNextFragment(this.nextLoadPosition,j)}if(!Q)return;Q.initSegment&&!Q.initSegment.data&&!this.bitrateTest&&(Q=Q.initSegment),((b=Q.decryptdata)===null||b===void 0?void 0:b.keyFormat)==="identity"&&!((O=Q.decryptdata)!==null&&O!==void 0&&O.key)?this.loadKey(Q,j):this.loadFragment(Q,j,z)},T.loadFragment=function(b,O,I){var L,N=this.fragmentTracker.getState(b);this.fragCurrent=b,N===r.FragmentState.NOT_LOADED?b.sn==="initSegment"?this._loadInitSegment(b):this.bitrateTest?(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,O,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 O=this.fragmentTracker.getAppendedFrag(b,i.PlaylistLevelType.MAIN);return O&&"fragment"in O?O.fragment:O},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,O=this.media;if(O!=null&&O.readyState){var I,L=this.getAppendedFrag(O.currentTime);if(L&&L.start>1&&this.flushMainBuffer(0,L.start-1),!O.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 k=this.getBufferedFrag(O.currentTime+I);if(k){var M=this.followingBufferedFrag(k);if(M){this.abortCurrentFrag();var j=M.maxStartPTS?M.maxStartPTS:M.start,F=M.duration,U=Math.max(k.end,j+Math.min(Math.max(F-this.config.maxFragLookUpTolerance,F*.5),F*.75));this.flushMainBuffer(U,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,O){y.prototype.flushMainBuffer.call(this,b,O,this.altAudio?"video":null)},T.onMediaAttached=function(b,O){y.prototype.onMediaAttached.call(this,b,O);var I=O.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&&this.onvplaying&&this.onvseeked&&(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,O=b?b.currentTime:null;Object(w.isFiniteNumber)(O)&&this.log("Media seeked to "+O.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,O){var I=!1,L=!1,N;O.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=O.levels,this.startFragRequested=!1},T.onLevelLoading=function(b,O){var I=this.levels;if(!I||this.state!==m.State.IDLE)return;var L=I[O.level];(!L.details||L.details.live&&this.levelLastLoaded!==O.level||this.waitForCdnTuneIn(L.details))&&(this.state=m.State.WAITING_LEVEL)},T.onLevelLoaded=function(b,O){var I,L=this.levels,N=O.level,D=O.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 k=this.fragCurrent;k&&(this.state===m.State.FRAG_LOADING||this.state===m.State.FRAG_LOADING_WAITING_RETRY)&&(k.level!==O.level&&k.loader&&(this.state=m.State.IDLE,this.backtrackFragment=null,k.loader.abort()));var M=L[N],j=0;if(D.live||(I=M.details)!==null&&I!==void 0&&I.live){if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed)return;j=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,j),this.tick()},T._handleFragmentLoadProgress=function(b){var O,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],k=R.details;if(!k){this.warn("Dropping fragment "+I.sn+" of level "+I.level+" after level details were reset");return}var M=R.videoCodec,j=k.PTSKnown||!k.live,F=(O=I.initSegment)===null||O===void 0?void 0:O.data,U=this._getAudioCodec(R),K=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,Q=new l.ChunkMetadata(I.level,I.sn,I.stats.chunkCount,N.byteLength,V,z),Z=this.initPTS[I.cc];K.push(N,F,U,M,I,L,k.totalduration,j,Q,Z)},T.onAudioTrackSwitching=function(b,O){var I=this.altAudio,L=!!O.url,N=O.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,O){var I=O.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,O){var I=O.tracks,L,N,D=!1;for(var R in I){var k=I[R];if(k.id==="main"){if(N=R,L=k,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,O){var I=O.frag,L=O.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,O){switch(O.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,O);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==m.State.ERROR&&(O.fatal?(this.warn(""+O.details),this.state=m.State.ERROR):!O.levelRetry&&this.state===m.State.WAITING_LEVEL&&(this.state=m.State.IDLE));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(O.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,O=this.gapController;if(!b||!O||!b.readyState)return;if(this.loadedmetadata||!o.BufferHelper.getBuffered(b).length){var I=this.state!==m.State.IDLE?this.fragCurrent:null;O.poll(this.lastCurrentTime,I)}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,O){var I=O.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,O){this.levels=O.levels},T.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},T.seekToStartPos=function(){var b=this.media;if(!b)return;var O=b.currentTime,I=this.startPosition;if(I>=0&&O<I){if(b.seeking){this.log("could not seek to "+I+", already seeking at "+O);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 "+O),b.currentTime=I}},T._getAudioCodec=function(b){var O=this.config.defaultAudioCodec||b.audioCodec;return this.audioCodecSwap&&O&&(this.log("Swapping audio codec"),O.indexOf("mp4a.40.5")!==-1?O="mp4a.40.2":O="mp4a.40.5"),O},T._loadBitrateTestFrag=function(b){var O=this;b.bitrateTest=!0,this._doFragLoad(b).then(function(I){var L=O.hls;if(!I||L.nextLoadLevel||O.fragContextChanged(b))return;O.fragLoadError=0,O.state=m.State.IDLE,O.startFragRequested=!1,O.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),b.bitrateTest=!1})},T._handleTransmuxComplete=function(b){var O,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.resetStartWhenNotLoaded(D.level);return}var k=R.frag,M=R.part,j=R.level,F=N.video,U=N.text,K=N.id3,V=N.initSegment,z=j.details,Q=this.altAudio?void 0:N.audio;if(this.fragContextChanged(k))return;if(this.state=m.State.PARSING,V){V.tracks&&(this._bufferInitSegment(j,V.tracks,k,D),L.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:I,tracks:V.tracks}));var Z=V.initPTS,le=V.timescale;Object(w.isFiniteNumber)(Z)&&(this.initPTS[k.cc]=Z,L.trigger(c.Events.INIT_PTS_FOUND,{frag:k,id:I,initPTS:Z,timescale:le}))}if(F&&N.independent!==!1){if(z){var ne=F.startPTS,ve=F.endPTS,xe=F.startDTS,_e=F.endDTS;if(M)M.elementaryStreams[F.type]={startPTS:ne,endPTS:ve,startDTS:xe,endDTS:_e};else if(F.firstKeyFrame&&F.independent&&(this.couldBacktrack=!0),F.dropped&&F.independent){var Be=this.getMainFwdBufferInfo(),me=(Be?Be.end:this.getLoadPosition())+this.config.maxBufferHole,Fe=F.firstKeyFramePTS?F.firstKeyFramePTS:ne;if(me<Fe-this.config.maxBufferHole){this.backtrack(k);return}k.setElementaryStreamInfo(F.type,k.start,ve,k.start,_e,!0)}k.setElementaryStreamInfo(F.type,ne,ve,xe,_e),this.backtrackFragment&&(this.backtrackFragment=k),this.bufferFragmentData(F,k,M,D)}}else if(N.independent===!1){this.backtrack(k);return}if(Q){var ie=Q.startPTS,te=Q.endPTS,Ge=Q.startDTS,oe=Q.endDTS;M&&(M.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:ie,endPTS:te,startDTS:Ge,endDTS:oe}),k.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,ie,te,Ge,oe),this.bufferFragmentData(Q,k,M,D)}if(z&&K!==null&&K!==void 0&&(O=K.samples)!==null&&O!==void 0&&O.length){var Y={id:I,frag:k,details:z,samples:K.samples};L.trigger(c.Events.FRAG_PARSING_METADATA,Y)}if(z&&U){var G={id:I,frag:k,details:z,samples:U.samples};L.trigger(c.Events.FRAG_PARSING_USERDATA,G)}},T._bufferInitSegment=function(b,O,I,L){var N=this;if(this.state!==m.State.PARSING)return;this.audioOnly=!!O.audio&&!O.video,this.altAudio&&!this.audioOnly&&delete O.audio;var D=O.audio,R=O.video,k=O.audiovideo;if(D){var M=b.audioCodec,j=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(M&&(M.indexOf("mp4a.40.5")!==-1?M="mp4a.40.2":M="mp4a.40.5"),D.metadata.channelCount!==1&&j.indexOf("firefox")===-1&&(M="mp4a.40.5")),j.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+"]")),k&&this.log("Init audiovideo buffer, container:"+k.container+", codecs[level/parsed]=["+(b.attrs.CODECS||"")+"/"+k.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,O),Object.keys(O).forEach(function(F){var U=O[F],K=U.initSegment;K!=null&&K.byteLength&&N.hls.trigger(c.Events.BUFFER_APPENDING,{type:F,data:K,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,O=null;if(b&&b.readyState>1&&b.seeking===!1){var I=b.currentTime;if(o.BufferHelper.isBuffered(b,I)?O=this.getAppendedFrag(I):o.BufferHelper.isBuffered(b,I+.1)&&(O=this.getAppendedFrag(I+.1)),O){this.backtrackFragment=null;var L=this.fragPlaying,N=O.level;(!L||O.sn!==L.sn||L.level!==N||O.urlId!==L.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:O}),(!L||L.level!==N)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:N}),this.fragPlaying=O)}}},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 O=b.currentTime,I=this.currentFrag;if(I&&Object(w.isFiniteNumber)(O)&&Object(w.isFiniteNumber)(I.programDateTime)){var L=I.programDateTime+(O-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 l(g,v){for(var y=0;y<v.length;y++){var x=v[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}function t(g,v,y){return v&&l(g.prototype,v),y&&l(g,y),Object.defineProperty(g,"prototype",{writable:!1}),g}function a(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,s(g,v)}function s(g,v){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},s(g,v)}var u=500,h=function(g){a(v,g);function v(x,T){var S;return S=g.call(this,x,T,"[subtitle-stream-controller]")||this,S.levels=[],S.currentTrackId=-1,S.tracksBuffered=[],S.mainDetails=null,S._registerListeners(),S}var y=v.prototype;return y.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},y._registerListeners=function(){var T=this.hls;T.on(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.on(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.on(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.on(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.on(w.Events.ERROR,this.onError,this),T.on(w.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),T.on(w.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),T.on(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),T.on(w.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),T.on(w.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y._unregisterListeners=function(){var T=this.hls;T.off(w.Events.MEDIA_ATTACHED,this.onMediaAttached,this),T.off(w.Events.MEDIA_DETACHING,this.onMediaDetaching,this),T.off(w.Events.MANIFEST_LOADING,this.onManifestLoading,this),T.off(w.Events.LEVEL_LOADED,this.onLevelLoaded,this),T.off(w.Events.ERROR,this.onError,this),T.off(w.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),T.off(w.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),T.off(w.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),T.off(w.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),T.off(w.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y.startLoad=function(){this.stopLoad(),this.state=i.State.IDLE,this.setInterval(u),this.tick()},y.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},y.onLevelLoaded=function(T,S){this.mainDetails=S.details},y.onSubtitleFragProcessed=function(T,S){var b=S.frag,O=S.success;if(this.fragPrevious=b,this.state=i.State.IDLE,!O)return;var I=this.tracksBuffered[this.currentTrackId];if(!I)return;for(var L,N=b.start,D=0;D<I.length;D++)if(N>=I[D].start&&N<=I[D].end){L=I[D];break}var R=b.start+b.duration;L?L.end=R:(L={start:N,end:R},I.push(L)),this.fragmentTracker.fragBuffered(b)},y.onBufferFlushing=function(T,S){var b=S.startOffset,O=S.endOffset;if(b===0&&O!==Number.POSITIVE_INFINITY){var I=this.currentTrackId,L=this.levels;if(!L.length||!L[I]||!L[I].details)return;var N=L[I].details,D=N.targetduration,R=O-D;if(R<=0)return;S.endOffsetSubtitles=Math.max(0,R),this.tracksBuffered.forEach(function(k){for(var M=0;M<k.length;){if(k[M].end<=R){k.shift();continue}else if(k[M].start<R)k[M].start=R;else break;M++}}),this.fragmentTracker.removeFragmentsInRange(b,R,n.PlaylistLevelType.SUBTITLE)}},y.onError=function(T,S){var b,O=S.frag;if(!O||O.type!==n.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=i.State.IDLE},y.onSubtitleTracksUpdated=function(T,S){var b=this,O=S.subtitleTracks;this.tracksBuffered=[],this.levels=O.map(function(I){return new e.Level(I)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(I){b.tracksBuffered[I.id]=[]}),this.mediaBuffer=null},y.onSubtitleTrackSwitch=function(T,S){if(this.currentTrackId=S.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var b=this.levels[this.currentTrackId];b!=null&&b.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,b&&this.setInterval(u)},y.onSubtitleTrackLoaded=function(T,S){var b,O=S.details,I=S.id,L=this.currentTrackId,N=this.levels;if(!N.length)return;var D=N[L];if(I>=N.length||I!==L||!D)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,O.live||(b=D.details)!==null&&b!==void 0&&b.live){var R=this.mainDetails;if(O.deltaUpdateFailed||!R)return;var k=R.fragments[0];if(!D.details)O.hasProgramDateTime&&R.hasProgramDateTime?Object(c.alignMediaPlaylistByPDT)(O,R):k&&Object(o.addSliding)(O,k.start);else{var M=this.alignPlaylists(O,D.details);M===0&&k&&Object(o.addSliding)(O,k.start)}}if(D.details=O,this.levelLastLoaded=I,this.tick(),O.live&&!this.fragCurrent&&this.media&&this.state===i.State.IDLE){var j=Object(f.findFragmentByPTS)(null,O.fragments,this.media.currentTime,0);j||(this.warn("Subtitle playlist not aligned with playback"),D.details=void 0)}},y._handleFragmentLoadComplete=function(T){var S=T.frag,b=T.payload,O=S.decryptdata,I=this.hls;if(this.fragContextChanged(S))return;if(b&&b.byteLength>0&&O&&O.key&&O.iv&&O.method==="AES-128"){var L=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),O.key.buffer,O.iv.buffer).then(function(N){var D=performance.now();I.trigger(w.Events.FRAG_DECRYPTED,{frag:S,payload:N,stats:{tstart:L,tdecrypt:D}})})}},y.doTick=function(){if(!this.media){this.state=i.State.IDLE;return}if(this.state===i.State.IDLE){var T=this.currentTrackId,S=this.levels;if(!S.length||!S[T]||!S[T].details)return;var b=S[T].details,O=b.targetduration,I=this.config,L=this.media,N=m.BufferHelper.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],L.currentTime-O,I.maxBufferHole),D=N.end,R=N.len,k=this.getMaxBufferLength()+O;if(R>k)return;console.assert(b,"Subtitle track details are defined on idle subtitle stream controller tick");var M=b.fragments,j=M.length,F=b.edge,U,K=this.fragPrevious;if(D<F){var V=I.maxFragLookUpTolerance;U=Object(f.findFragmentByPTS)(K,M,Math.max(M[0].start,D),V),!U&&K&&K.start<M[0].start&&(U=M[0])}else U=M[j-1];if(U=this.mapToInitFragWhenRequired(U),!U)return;if(this.fragmentTracker.getState(U)!==r.FragmentState.NOT_LOADED)return;U.encrypted?this.loadKey(U,b):this.loadFragment(U,b,D)}},y.loadFragment=function(T,S,b){this.fragCurrent=T,T.sn==="initSegment"?this._loadInitSegment(T):g.prototype.loadFragment.call(this,T,S,b)},t(v,[{key:"mediaBufferTimeRanges",get:function(){return new p(this.tracksBuffered[this.currentTrackId]||[])}}]),v}(i.default),p=function(v){this.buffered=void 0;var y=function(T,S,b){if(S=S>>>0,S>b-1)throw new DOMException("Failed to execute '"+T+"' on 'TimeRanges': The index provided ("+S+") is greater than the maximum bound ("+b+")");return v[S][T]};this.buffered={get length(){return v.length},end:function(T){return y("end",T,v.length)},start:function(T){return y("start",T,v.length)}}}},"./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 s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,s){return a&&o(t.prototype,a),s&&o(t,s),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 s=a.prototype;return s.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},s.registerListeners=function(){var h=this.hls;h.on(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)},s.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)},s.onMediaAttached=function(h,p){if(this.media=p.media,!this.media)return;this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange)},s.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},s.onMediaDetaching=function(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId);var h=l(this.media.textTracks);h.forEach(function(p){Object(m.clearCurrentCues)(p)}),this.subtitleTrack=-1,this.media=null},s.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},s.onManifestParsed=function(h,p){this.tracks=p.subtitleTracks},s.onSubtitleTrackLoaded=function(h,p){var 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))},s.onLevelLoading=function(h,p){this.switchLevel(p.level)},s.onLevelSwitching=function(h,p){this.switchLevel(p.level)},s.switchLevel=function(h){var p=this.hls.levels[h];if(!(p!=null&&p.textGroupIds))return;var 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)}},s.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},s.onError=function(h,p){if(t.prototype.onError.call(this,h,p),p.fatal||!p.context)return;p.context.type===c.PlaylistContextType.SUBTITLE_TRACK&&p.context.id===this.trackId&&p.context.groupId===this.groupId&&this.retryLoadingOrFail(p)},s.loadPlaylist=function(h){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var 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})}},s.toggleTrackModes=function(h){var p=this,g=this.media,v=this.trackId;if(!g)return;var y=l(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")},s.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,O=y.type,I=y.url;this.hls.trigger(w.Events.SUBTITLE_TRACK_SWITCH,{id:x,groupId:S,name:b,type:O,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})},s.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,p=l(this.media.textTracks),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 l(t){for(var a=[],s=0;s<t.length;s++){var u=t[s];u.kind==="subtitles"&&u.label&&a.push(t[s])}return a}C.default=e},"./src/controller/timeline-controller.ts":function(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"),l=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,O=S.length;O--;){var I=S[O],L=s(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,O=y.timescale,I=this.unparsedVttFrags;S==="main"&&(this.initPTS[T.cc]=b,this.timescale[T.cc]=O),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,O=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,O);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 O=this.media?this.media.textTracks:[];this.tracks.forEach(function(L,N){var D;if(N<O.length){for(var R=null,k=0;k<O.length;k++)if(a(O[k],L)){R=O[k];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],O=x.captionsProperties[b];if(!O)return;O.label=T.name,T.lang&&(O.languageCode=T.lang),O.media=T})},p.closedCaptionsForLevel=function(v){var y=this.hls.levels[v.level];return y==null?void 0:y.attrs["CLOSED-CAPTIONS"]},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 O,I,L=y.frag.sn,N=(O=y==null||((I=y.part)===null||I===void 0)?void 0:I.index)!=null?O:-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 O=x.decryptdata,I="stats"in y;if(O==null||O.key==null||O.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){l.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,O=(T=v.initSegment)!==null&&T!==void 0&&T.data?Object(n.appendUint8Array)(v.initSegment.data,new Uint8Array(y)):y;Object(o.parseWebVTT)(O,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),l.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(O){return Object(r.addCueToTrack)(T,O)})}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;var S=y.frag,b=y.samples;if(S.type===e.PlaylistLevelType.MAIN&&this.closedCaptionsForLevel(S)==="NONE")return;for(var O=0;O<b.length;O++){var I=b[O].bytes;if(I){var L=this.extractCea608Data(I);x.addData(b[O].pts,L[0]),T.addData(b[O].pts,L[1])}}},p.onBufferFlushing=function(v,y){var x=y.startOffset,T=y.endOffset,S=y.endOffsetSubtitles,b=y.type,O=this.media;if(!O||O.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++],O=127&v[T++],I=127&v[T++];if(O===0&&I===0)continue;var L=(4&b)!==0;if(L){var N=3&b;(N===0||N===1)&&(y[N].push(O),y[N].push(I))}}return y},h}();function a(h,p){return h&&h.label===p.name&&!(h.textTrack1||h.textTrack2)}function s(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:!0}}}},"./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),l=0;l<4;l++)e[l]=n.getUint32(l*4);return e},o.initTable=function(){var i=this.sBox,n=this.invSBox,e=this.subMix,l=e[0],t=e[1],a=e[2],s=e[3],u=this.invSubMix,h=u[0],p=u[1],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 O=y[x],I=y[O],L=y[I],N=y[b]*257^b*16843008;l[x]=N<<24|N>>>8,t[x]=N<<16|N>>>16,a[x]=N<<8|N>>>24,s[x]=N,N=L*16843009^I*65537^O*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=O^y[y[y[L^O]]],T^=y[y[T]]):x=T=1}},o.expandKey=function(i){for(var n=this.uint8ArrayToUint32Array_(i),e=!0,l=0;l<n.length&&e;)e=n[l]===this.key[l],l++;if(e)return;this.key=n;var t=this.keySize=n.length;if(t!==4&&t!==6&&t!==8)throw new Error("Invalid aes key size="+t);var a=this.ksRows=(t+6+1)*4,s,u,h=this.keySchedule=new Uint32Array(a),p=this.invKeySchedule=new Uint32Array(a),g=this.sBox,v=this.rcon,y=this.invSubMix,x=y[0],T=y[1],S=y[2],b=y[3],O,I;for(s=0;s<a;s++){if(s<t){O=h[s]=n[s];continue}I=O,s%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[s/t|0]<<24):t>6&&s%t===4&&(I=g[I>>>24]<<24|g[I>>>16&255]<<16|g[I>>>8&255]<<8|g[I&255]),h[s]=O=(h[s-t]^I)>>>0}for(u=0;u<a;u++)s=a-u,u&3?I=h[s]:I=h[s-4],u<4||s<=4?p[u]=I:p[u]=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 l=this.keySize+6,t=this.invKeySchedule,a=this.invSBox,s=this.invSubMix,u=s[0],h=s[1],p=s[2],g=s[3],v=this.uint8ArrayToUint32Array_(e),y=v[0],x=v[1],T=v[2],S=v[3],b=new Int32Array(i),O=new Int32Array(b.length),I,L,N,D,R,k,M,j,F,U,K,V,z,Q,Z=this.networkToHostOrderSwap;n<b.length;){for(F=Z(b[n]),U=Z(b[n+1]),K=Z(b[n+2]),V=Z(b[n+3]),R=F^t[0],k=V^t[1],M=K^t[2],j=U^t[3],z=4,Q=1;Q<l;Q++)I=u[R>>>24]^h[k>>16&255]^p[M>>8&255]^g[j&255]^t[z],L=u[k>>>24]^h[M>>16&255]^p[j>>8&255]^g[R&255]^t[z+1],N=u[M>>>24]^h[j>>16&255]^p[R>>8&255]^g[k&255]^t[z+2],D=u[j>>>24]^h[R>>16&255]^p[k>>8&255]^g[M&255]^t[z+3],R=I,k=L,M=N,j=D,z=z+4;I=a[R>>>24]<<24^a[k>>16&255]<<16^a[M>>8&255]<<8^a[j&255]^t[z],L=a[k>>>24]<<24^a[M>>16&255]<<16^a[j>>8&255]<<8^a[R&255]^t[z+1],N=a[M>>>24]<<24^a[j>>16&255]<<16^a[R>>8&255]<<8^a[k&255]^t[z+2],D=a[j>>>24]<<24^a[R>>16&255]<<16^a[k>>8&255]<<8^a[M&255]^t[z+3],O[n]=Z(I^y),O[n+1]=Z(D^x),O[n+2]=Z(N^T),O[n+3]=Z(L^S),y=F,x=U,T=K,S=V,n=n+4}return O.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,s){var u=s===void 0?{}:s,h=u.removePKCS7Padding,p=h===void 0?!0:h;if(this.logEnabled=!0,this.observer=void 0,this.config=void 0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.observer=t,this.config=a,this.removePKCS7Padding=p,p)try{var g=self.crypto;g&&(this.subtle=g.subtle||g.webkitSubtle)}catch(v){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var l=e.prototype;return l.destroy=function(){this.observer=null},l.isSync=function(){return this.config.enableSoftwareAES},l.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var s=new Uint8Array(a);return this.reset(),this.removePKCS7Padding?Object(f.removePadding)(s):s},l.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},l.decrypt=function(a,s,u,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),s,u);var p=this.flush();p&&h(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),s,u).then(h)},l.softwareDecrypt=function(a,s,u){var h=this.currentIV,p=this.currentResult,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(s);var x=p;return this.currentResult=y.decrypt(v.buffer,0,u),this.currentIV=Object(r.sliceUint8)(v,-16).buffer,x||null},l.webCryptoDecrypt=function(a,s,u){var h=this,p=this.subtle;return(this.key!==s||!this.fastAesKey)&&(this.key=s,this.fastAesKey=new m.default(p,s)),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,s,u)})},l.onWebCryptoError=function(a,s,u,h){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(s,u,h)},l.getValidChunk=function(a){var s=a,u=a.length-a.length%i;return u!==a.length&&(s=Object(r.sliceUint8)(a,0,u),this.remainderData=Object(r.sliceUint8)(a,u)),s},l.logOnce=function(a){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(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 s;return s=n.call(this)||this,s.observer=void 0,s.config=void 0,s.observer=t,s.config=a,s}var l=e.prototype;return l.resetInitSegment=function(a,s,u,h){n.prototype.resetInitSegment.call(this,a,s,u,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:s,duration:h,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var s=c.getID3Data(a,0)||[],u=s.length,h=a.length;u<h;u++)if(m.probe(a,u))return f.logger.log("ADTS sync word found !"),!0;return!1},l.canParse=function(a,s){return m.canParse(a,s)},l.appendFrame=function(a,s,u){m.initTrackConfig(a,this.observer,s,u,a.manifestCodec);var h=m.appendFrame(a,s,u,this.basePTS,this.frameIndex);if(h&&h.missing===0)return h},e}(w.default);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 l}),A.d(C,"probe",function(){return t}),A.d(C,"initTrackConfig",function(){return a}),A.d(C,"getFrameDuration",function(){return s}),A.d(C,"parseFrameHeader",function(){return u}),A.d(C,"appendFrame",function(){return h});var 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,O=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(O)?N>=6?(x=5,b=new Array(4),T=N-3):(x=2,b=new Array(2),T=N):O.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(O))||!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 l(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 s(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=s(p.samplerate),S=y+x*T,b=u(g,v),O;if(b){var I=b.frameLength,L=b.headerLength,N=L+I,D=Math.max(0,v+N-g.length);D?(O=new Uint8Array(N-L),O.set(g.subarray(v+L,g.length),0)):O=g.subarray(v+L,v+N);var R={unit:O,pts:S};return D||p.samples.push(R),{sample:R,length:N,missing:D}}var k=g.length-v;O=new Uint8Array(k),O.set(g.subarray(v,g.length),0);var M={unit:O,pts:S};return{sample:M,length:k,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 l=e.prototype;return l.resetInitSegment=function(a,s,u,h){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},l.resetTimeStamp=function(a){this.initPTS=a,this.resetContiguity()},l.resetContiguity=function(){this.basePTS=null,this.frameIndex=0},l.canParse=function(a,s){return!1},l.appendFrame=function(a,s,u){},l.demux=function(a,s){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,s,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)()}},l.demuxSampleAes=function(a,s,u){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},l.flush=function(a){var s=this.cachedData;return s&&(this.cachedData=null,this.demux(s,0)),{audioTrack:this._audioTrack,videoTrack:Object(c.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(c.dummyTrack)()}},l.destroy=function(){},e}(),n=function(l,t,a){return Object(w.isFiniteNumber)(l)?l*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),l=Math.min(4,i);if(l===0)throw new Error("no bytes available");e.set(r.subarray(n,n+l)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=l*8,this.bytesAvailable-=l},c.skipBits=function(r){var i;this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,i=r>>3,r-=i>>3,this.bytesAvailable-=i,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},c.readBits=function(r){var i=Math.min(this.bitsAvailable,r),n=this.word>>>32-i;return r>32&&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,l=0;l<r;l++)n!==0&&(e=this.readEG(),n=(i+e+256)%256),i=n===0?i:n},c.readSPS=function(){var r=0,i=0,n=0,e=0,l,t,a,s=this.readUByte.bind(this),u=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),x=this.skipScalingList.bind(this);s();var T=s();if(u(5),g(3),s(),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(),l=h(),a=0;a<l;a++)v();y(),g(1);var O=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=s();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=[s()<<8|s(),s()<<8|s()];break}}}return{width:Math.ceil((O+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 l}),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 O=c(x,T+6);b+=O,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 O=T+b;T+8<O;){var I=n(x.subarray(T)),L=l(I);L&&S.push(L),T+=I.size+10}m(x,T)&&(T+=10)}return S},l=function(x){return x.type==="PRIV"?t(x):x.type[0]==="W"?s(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 O=h(x.data.subarray(1));return{key:x.type,data:O}},s=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 O=h(x.data);return{key:x.type,data:O}},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 O=b.indexOf("\0");return O!==-1?b.substring(0,O):b}return b.replace(/\0/g,"")}for(var I=x.length,L,N,D,R="",k=0;k<I;){if(L=x[k++],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[k++],R+=String.fromCharCode((L&31)<<6|N&63);break;case 14:N=x[k++],D=x[k++],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 l=e.prototype;return l.resetInitSegment=function(a,s,u,h){n.prototype.resetInitSegment.call(this,a,s,u,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:s,duration:h,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var s=m.getID3Data(a,0)||[],u=s.length,h=a.length;u<h;u++)if(c.probe(a,u))return f.logger.log("MPEG Audio sync word found !"),!0;return!1},l.canParse=function(a,s){return c.canParse(a,s)},l.appendFrame=function(a,s,u){return this.basePTS===null?void 0:c.appendFrame(a,s,u,this.basePTS,this.frameIndex)},e}(w.default);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,l){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=l}var n=i.prototype;return n.resetTimeStamp=function(){},n.resetInitSegment=function(l,t,a,s){var u=Object(f.parseInitSegment)(l),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,O=S.timescale,I=S.codec;p.id=b,p.timescale=O,p.codec=I}g.id=f.RemuxerTrackIdConfig.text,h.sampleDuration=0,h.duration=p.duration=s},n.resetContiguity=function(){},i.probe=function(l){return l=l.length>16384?l.subarray(0,16384):l,Object(f.findBox)(l,["moof"]).length>0},n.demux=function(l,t){this.timeOffset=t;var a=l,s=this.videoTrack,u=this.txtTrack;if(this.config.progressive){this.remainderData&&(a=Object(f.appendUint8Array)(this.remainderData,l));var h=Object(f.segmentValidRange)(a);this.remainderData=h.remainder,s.samples=h.valid||new Uint8Array}else s.samples=a;var p=this.extractID3Track(s,t);return u.samples=Object(f.parseSamples)(t,s),{videoTrack:s,audioTrack:this.audioTrack,id3Track:p,textTrack:this.txtTrack}},n.flush=function(){var l=this.timeOffset,t=this.videoTrack,a=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var s=this.extractID3Track(t,this.timeOffset);return a.samples=Object(f.parseSamples)(l,t),{videoTrack:t,audioTrack:Object(c.dummyTrack)(),id3Track:s,textTrack:Object(c.dummyTrack)()}},n.extractID3Track=function(l,t){var a=this.id3Track;if(l.samples.length){var s=Object(f.findBox)(l.samples,["emsg"]);s&&s.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(l,t,a){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},n.destroy=function(){},i}();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 l}),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,s,u,h,p){if(u+24>s.length)return;var g=i(s,u);if(g&&u+g.frameLength<=s.length){var v=g.samplesPerFrame*9e4/g.sampleRate,y=h+p*v,x={unit:s.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,s){var u=a[s+1]>>3&3,h=a[s+1]>>1&3,p=a[s+2]>>4&15,g=a[s+2]>>2&3;if(u!==1&&p!==0&&p!==15&&g!==3){var v=a[s+2]>>1&1,y=a[s+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],O=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||"",k=R.match(/Chrome\/(\d+)/i);w=k?parseInt(k[1]):0}var M=!!w&&w<=87;return M&&h===2&&T>=224e3&&y===0&&(a[s+3]=a[s+3]|128),{sampleRate:b,channelCount:O,frameLength:D,samplesPerFrame:N}}}function n(a,s){return a[s]===255&&(a[s+1]&224)===224&&(a[s+1]&6)!==0}function e(a,s){return s+1<a.length&&n(a,s)}function l(a,s){var u=4;return n(a,s)&&u<=a.length-s}function t(a,s){if(s+1<a.length&&n(a,s)){var u=4,h=i(a,s),p=u;h!=null&&h.frameLength&&(p=h.frameLength);var g=s+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,l){var t=i[n].unit;if(t.length<=16)return;var a=t.subarray(16,t.length-t.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),u=this;this.decryptBuffer(s,function(h){var p=new Uint8Array(h);t.set(p,16),l||u.decryptAacSamples(i,n+1,e)})},o.decryptAacSamples=function(i,n,e){for(;;n++){if(n>=i.length){e();return}if(i[n].unit.length<32)continue;var l=this.decrypter.isSync();if(this.decryptAacSample(i,n,e,l),!l)return}},o.getAvcEncryptedData=function(i){for(var n=Math.floor((i.length-48)/160)*16+16,e=new Int8Array(n),l=0,t=32;t<i.length-16;t+=160,l+=16)e.set(i.subarray(t,t+16),l);return e},o.getAvcDecryptedUnit=function(i,n){for(var e=new Uint8Array(n),l=0,t=32;t<i.length-16;t+=160,l+=16)i.set(e.subarray(l,l+16),t);return i},o.decryptAvcSample=function(i,n,e,l,t,a){var s=Object(m.discardEPB)(t.data),u=this.getAvcEncryptedData(s),h=this;this.decryptBuffer(u.buffer,function(p){t.data=h.getAvcDecryptedUnit(s,p),a||h.decryptAvcSamples(i,n,e+1,l)})},o.decryptAvcSamples=function(i,n,e,l){if(i instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=i.length){l();return}for(var t=i[n].units;!(e>=t.length);e++){var a=t[e];if(a.data.length<=48||a.type!==1&&a.type!==5)continue;var s=this.decrypter.isSync();if(this.decryptAvcSample(i,n,e,l,a,s),!s)return}}},c}();C.default=f},"./src/demux/transmuxer-interface.ts":function(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),l=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:l.isTypeSupported("video/mp4"),mpeg:l.isTypeSupported("audio/mpeg"),mp3:l.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(O){u.trigger(f.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(O.message+" ("+O.filename+":"+O.lineno+")")})},b.postMessage({cmd:"init",typeSupported:T,vendor:S,id:h,config:JSON.stringify(y)})}catch(O){o.logger.warn("Error in worker:",O),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 s=a.prototype;return s.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},s.push=function(h,p,g,v,y,x,T,S,b,O){var I,L,N=this;b.transmuxing.start=self.performance.now();var D=this.transmuxer,R=this.worker,k=x?x.start:y.start,M=y.decryptdata,j=this.frag,F=!(j&&y.cc===j.cc),U=!(j&&b.level===j.level),K=j?b.sn-j.sn:-1,V=this.part?b.part-this.part.index:-1,z=K===0&&b.id>1&&b.id===(j==null?void 0:j.stats.chunkCount),Q=!U&&(K===1||K===0&&(V===1||z&&V<=0)),Z=self.performance.now();(U||K||y.stats.parsing.start===0)&&(y.stats.parsing.start=Z),x&&(V||!Q)&&(x.stats.parsing.start=Z);var le=!(j&&((I=y.initSegment)===null||I===void 0?void 0:I.url)===((L=j.initSegment)===null||L===void 0?void 0:L.url)),ne=new c.TransmuxState(F,Q,S,U,k,le);if(!Q||F||le){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: `+U+`
|
|
|
contiguous: `+Q+`
|
|
|
accurateTimeOffset: `+S+`
|
|
|
timeOffset: `+k+`
|
|
|
initSegmentChange: `+le);var ve=new c.TransmuxConfig(g,v,p,T,O);this.configureTransmuxer(ve)}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 xe=D.push(h,M,b,ne);Object(c.isPromise)(xe)?xe.then(function(_e){N.handleTransmuxComplete(_e)}):this.handleTransmuxComplete(xe)}},s.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)}},s.handleFlushResult=function(h,p){var g=this;h.forEach(function(v){g.handleTransmuxComplete(v)}),this.onFlush(p)},s.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}}},s.configureTransmuxer=function(h){var p=this.worker,g=this.transmuxer;p?p.postMessage({cmd:"configure",config:h}):g&&g.configure(h)},s.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,s=function(p,g){t.postMessage({event:p,data:g})};a.on(m.Events.FRAG_DECRYPTED,s),a.on(m.Events.ERROR,s);var u=function(){var p=function(y){var x=function(S){s("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(),s("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(l(a.remuxResult))return!1;var s=[],u=a.remuxResult,h=u.audio,p=u.video;return h&&n(s,h),p&&n(s,p),t.postMessage({event:"transmuxComplete",data:a},s),!0}function n(t,a){a.data1&&t.push(a.data1.buffer),a.data2&&t.push(a.data2.buffer)}function e(t,a,s){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:s})}function l(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 s}),A.d(C,"isPromise",function(){return p}),A.d(C,"TransmuxConfig",function(){return g}),A.d(C,"TransmuxState",function(){return v});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"),l=A("./src/utils/logger.ts"),t;try{t=self.performance.now.bind(self.performance)}catch(y){l.logger.debug("Unable to use Performance API on this environment"),t=self.Date.now}var a=[{demux:r.default,remux:n.default},{demux:o.default,remux:e.default},{demux:c.default,remux:n.default},{demux:i.default,remux:n.default}],s=function(){function y(T,S,b,O,I){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=T,this.typeSupported=S,this.config=b,this.vendor=O,this.id=I}var x=y.prototype;return x.configure=function(S){this.transmuxConfig=S,this.decrypter&&this.decrypter.reset()},x.push=function(S,b,O,I){var L=this,N=O.transmuxing;N.executeStart=t();var D=new Uint8Array(S),R=this.config,k=this.currentTransmuxState,M=this.transmuxConfig;I&&(this.currentTransmuxState=I);var j=I||k,F=j.contiguous,U=j.discontinuity,K=j.trackSwitch,V=j.accurateTimeOffset,z=j.timeOffset,Q=j.initSegmentChange,Z=M.audioCodec,le=M.videoCodec,ne=M.defaultInitPts,ve=M.duration,xe=M.initSegmentData;(U||K||Q)&&this.resetInitSegment(xe,Z,le,ve),(U||Q)&&this.resetInitialTimestamp(ne),F||this.resetContiguity();var _e=u(D,b);if(_e&&_e.method==="AES-128"){var Be=this.getDecrypter();if(R.enableSoftwareAES){var me=Be.softwareDecrypt(D,_e.key.buffer,_e.iv.buffer);if(!me)return N.executeEnd=t(),h(O);D=new Uint8Array(me)}else return this.decryptionPromise=Be.webCryptoDecrypt(D,_e.key.buffer,_e.iv.buffer).then(function(te){var Ge=L.push(te,null,O);return L.decryptionPromise=null,Ge}),this.decryptionPromise}this.needsProbing(D,U,K)&&this.configureTransmuxer(D,M);var Fe=this.transmux(D,_e,z,V,O),ie=this.currentTransmuxState;return ie.contiguous=!0,ie.discontinuity=!1,ie.trackSwitch=!1,N.executeEnd=t(),Fe},x.flush=function(S){var b=this,O=S.transmuxing;O.executeStart=t();var I=this.decrypter,L=this.currentTransmuxState,N=this.decryptionPromise;if(N)return N.then(function(){return b.flush(S)});var D=[],R=L.timeOffset;if(I){var k=I.flush();k&&D.push(this.push(k,null,S))}var M=this.demuxer,j=this.remuxer;if(!M||!j)return 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"}),O.executeEnd=t(),[h(S)];var F=M.flush(R);return p(F)?F.then(function(U){return b.flushRemux(D,U,S),D}):(this.flushRemux(D,F,S),D)},x.flushRemux=function(S,b,O){var I=b.audioTrack,L=b.videoTrack,N=b.id3Track,D=b.textTrack,R=this.currentTransmuxState,k=R.accurateTimeOffset,M=R.timeOffset;l.logger.log("[transmuxer.ts]: Flushed fragment "+O.sn+(O.part>-1?" p: "+O.part:"")+" of level "+O.level);var j=this.remuxer.remux(I,L,N,D,M,k,!0,this.id);S.push({remuxResult:j,chunkMeta:O}),O.transmuxing.executeEnd=t()},x.resetInitialTimestamp=function(S){var b=this.demuxer,O=this.remuxer;if(!b||!O)return;b.resetTimeStamp(S),O.resetTimeStamp(S)},x.resetContiguity=function(){var S=this.demuxer,b=this.remuxer;if(!S||!b)return;S.resetContiguity(),b.resetNextTimestamp()},x.resetInitSegment=function(S,b,O,I){var L=this.demuxer,N=this.remuxer;if(!L||!N)return;L.resetInitSegment(S,b,O,I),N.resetInitSegment(S,b,O)},x.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},x.transmux=function(S,b,O,I,L){var N;return b&&b.method==="SAMPLE-AES"?N=this.transmuxSampleAes(S,b,O,I,L):N=this.transmuxUnencrypted(S,O,I,L),N},x.transmuxUnencrypted=function(S,b,O,I){var L=this.demuxer.demux(S,b,!1,!this.config.progressive),N=L.audioTrack,D=L.videoTrack,R=L.id3Track,k=L.textTrack,M=this.remuxer.remux(N,D,R,k,b,O,!1,this.id);return{remuxResult:M,chunkMeta:I}},x.transmuxSampleAes=function(S,b,O,I,L){var N=this;return this.demuxer.demuxSampleAes(S,b,O).then(function(D){var R=N.remuxer.remux(D.audioTrack,D.videoTrack,D.id3Track,D.textTrack,O,I,!1,N.id);return{remuxResult:R,chunkMeta:L}})},x.configureTransmuxer=function(S,b){for(var O=this.config,I=this.observer,L=this.typeSupported,N=this.vendor,D=b.audioCodec,R=b.defaultInitPts,k=b.duration,M=b.initSegmentData,j=b.videoCodec,F,U=0,K=a.length;U<K;U++)if(a[U].demux.probe(S)){F=a[U];break}F||(l.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),F={demux:o.default,remux:e.default});var V=this.demuxer,z=this.remuxer,Q=F.remux,Z=F.demux;(!z||!(z instanceof Q))&&(this.remuxer=new Q(I,O,L,N)),(!V||!(V instanceof Z))&&(this.demuxer=new Z(I,O,L),this.probe=Z.probe),this.resetInitSegment(M,D,j,k),this.resetInitialTimestamp(R)},x.needsProbing=function(S,b,O){return!this.demuxer||!this.remuxer||b||O},x.getDecrypter=function(){var S=this.decrypter;return S||(S=this.decrypter=new f.default(this.observer,this.config)),S},y}();function u(y,x){var T=null;return y.byteLength>0&&x!=null&&x.key!=null&&x.iv!==null&&x.method!=null&&(T=x),T}var h=function(x){return{remuxResult:{},chunkMeta:x}};function p(y){return"then"in y&&y.then instanceof Function}var g=function(x,T,S,b,O){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=x,this.videoCodec=T,this.initSegmentData=S,this.duration=b,this.defaultInitPts=O},v=function(x,T,S,b,O,I){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=x,this.contiguous=T,this.accurateTimeOffset=S,this.trackSwitch=b,this.timeOffset=O,this.initSegmentChange=I}},"./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 l(){return l=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},l.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){return T[0]===71&&T[188]===71},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,O){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=v.createTrack("video"),this._audioTrack=v.createTrack("audio",O),this._id3Track=v.createTrack("id3"),this._txtTrack=v.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=S,this.videoCodec=b,this._duration=O},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,O){b===void 0&&(b=!1),O===void 0&&(O=!1),b||(this.sampleAes=null);var I,L=this._avcTrack,N=this._audioTrack,D=this._id3Track,R=this._txtTrack,k=L.pid,M=L.pesData,j=N.pid,F=D.pid,U=N.pesData,K=D.pesData,V=null,z=this.pmtParsed,Q=this._pmtId,Z=T.length;if(this.remainderData&&(T=Object(r.appendUint8Array)(this.remainderData,T),Z=T.length,this.remainderData=null),Z<188&&!O)return this.remainderData=T,{audioTrack:N,videoTrack:L,id3Track:D,textTrack:R};Z-=Z%188,Z<T.byteLength&&!O&&(this.remainderData=new Uint8Array(T.buffer,Z,T.buffer.byteLength-Z));for(var le=0,ne=0;ne<Z;ne+=188)if(T[ne]===71){var ve=!!(T[ne+1]&64),xe=((T[ne+1]&31)<<8)+T[ne+2],_e=(T[ne+3]&48)>>4,Be=void 0;if(_e>1){if(Be=ne+5+T[ne+4],Be===ne+188)continue}else Be=ne+4;switch(xe){case k:ve&&(M&&(I=h(M))&&this.parseAVCPES(L,R,I,!1),M={data:[],size:0}),M&&(M.data.push(T.subarray(Be,ne+188)),M.size+=ne+188-Be);break;case j:if(ve){if(U&&(I=h(U)))switch(N.segmentCodec){case"aac":this.parseAACPES(N,I);break;case"mp3":this.parseMPEGPES(N,I);break}U={data:[],size:0}}U&&(U.data.push(T.subarray(Be,ne+188)),U.size+=ne+188-Be);break;case F:ve&&(K&&(I=h(K))&&this.parseID3PES(D,I),K={data:[],size:0}),K&&(K.data.push(T.subarray(Be,ne+188)),K.size+=ne+188-Be);break;case 0:ve&&(Be+=T[Be]+1),Q=this._pmtId=s(T,Be);break;case Q:{ve&&(Be+=T[Be]+1);var me=u(T,Be,this.typeSupported,b);k=me.avc,k>0&&(L.pid=k),j=me.audio,j>0&&(N.pid=j,N.segmentCodec=me.segmentCodec),F=me.id3,F>0&&(D.pid=F),V!==null&&!z&&(i.logger.log("unknown PID '"+V+"' in TS found"),V=null),z=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=xe;break}}else le++;le>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 "+le+" TS packet/s that do not start with 0x47"}),L.pesData=M,N.pesData=U,D.pesData=K;var Fe={audioTrack:N,videoTrack:L,id3Track:D,textTrack:R};return O&&this.extractRemainingSamples(Fe),Fe},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,O=T.id3Track,I=T.textTrack,L=b.pesData,N=S.pesData,D=O.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(O,R),O.pesData=null):O.pesData=D},y.demuxSampleAes=function(T,S,b){var O=this.demux(T,b,!0,!this.config.progressive),I=this.sampleAes=new c.default(this.observer,this.config,S);return this.decrypt(O,I)},y.decrypt=function(T,S){return new Promise(function(b){var O=T.audioTrack,I=T.videoTrack;O.samples&&O.segmentCodec==="aac"?S.decryptAacSamples(O.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,O){var I=this,L=this.parseAVCNALu(T,b.data),N=!1,D=this.avcSample,R,k=!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 j=M.data;if(k&&j.length>4){var F=new f.default(j).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,k=!0,N&&D&&(D.debug+="SPS "),!T.sps){var U=new f.default(M.data),K=U.readSPS();T.width=K.width,T.height=K.height,T.pixelRatio=K.pixelRatio,T.sps=[M.data],T.duration=I._duration;for(var V=M.data.subarray(1,4),z="avc1.",Q=0;Q<3;Q++){var Z=V[Q].toString(16);Z.length<2&&(Z="0"+Z),z+=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 le=D.units;le.push(M)}}),O&&D&&(p(D,T),this.avcSample=null)},y.getLastNalUnit=function(T){var S,b=this.avcSample,O;if((!b||b.units.length===0)&&(b=T[T.length-1]),(S=b)!==null&&S!==void 0&&S.units){var I=b.units;O=I[I.length-1]}return O},y.parseAVCNALu=function(T,S){var b=S.byteLength,O=T.naluState||0,I=O,L=[],N=0,D,R,k,M=-1,j=0;for(O===-1&&(M=0,j=S[0]&31,O=0,N=1);N<b;){if(D=S[N++],!O){O=D?0:1;continue}if(O===1){O=D?0:2;continue}if(!D)O=3;else if(D===1){if(M>=0){var F={data:S.subarray(M,N-O-1),type:j};L.push(F)}else{var U=this.getLastNalUnit(T.samples);if(U&&(I&&N<=4-I&&(U.state&&(U.data=U.data.subarray(0,U.data.byteLength-I))),R=N-O-1,R>0)){var K=new Uint8Array(U.data.byteLength+R);K.set(U.data,0),K.set(S.subarray(0,R),U.data.byteLength),U.data=K,U.state=0}}N<b?(k=S[N]&31,M=N,j=k,O=0):O=-1}else O=0}if(M>=0&&O>=0){var V={data:S.subarray(M,b),type:j,state:O};L.push(V)}if(L.length===0){var z=this.getLastNalUnit(T.samples);if(z){var Q=new Uint8Array(z.data.byteLength+S.byteLength);Q.set(z.data,0),Q.set(S,z.data.byteLength),z.data=Q}}return T.naluState=O,L},y.parseAACPES=function(T,S){var b=0,O=this.aacOverFlow,I=S.data;if(O){this.aacOverFlow=null;var L=O.missing,N=O.sample.unit.byteLength;if(L===-1){var D=new Uint8Array(N+I.byteLength);D.set(O.sample.unit,0),D.set(I,N),I=D}else{var R=N-L;O.sample.unit.set(I.subarray(0,L),R),T.samples.push(O.sample),b=O.missing}}var k,M;for(k=b,M=I.length;k<M-1&&!w.isHeader(I,k);k++);if(k!==b){var j,F;if(k<M-1?(j="AAC PES did not start with ADTS header,offset:"+k,F=!1):(j="no ADTS header found in AAC PES",F=!0),i.logger.warn("parsing error:"+j),this.observer.emit(o.Events.ERROR,o.Events.ERROR,{type:n.ErrorTypes.MEDIA_ERROR,details:n.ErrorDetails.FRAG_PARSING_ERROR,fatal:F,reason:j}),F)return}w.initTrackConfig(T,this.observer,I,k,this.audioCodec);var U;if(S.pts!==void 0)U=S.pts;else if(O){var K=w.getFrameDuration(T.samplerate);U=O.sample.pts+K}else{i.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0,z;k<M;)if(z=w.appendFrame(T,I,k,U,V),k+=z.length,z.missing){this.aacOverFlow=z;break}else for(V++;k<M-1&&!w.isHeader(I,k);k++);},y.parseMPEGPES=function(T,S){var b=S.data,O=b.length,I=0,L=0,N=S.pts;if(N===void 0){i.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;L<O;)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=l({},S,{type:this._avcTrack?e.MetadataSchema.emsg:e.MetadataSchema.audioId3});T.samples.push(b)},v}();function a(v,y,x,T){return{key:v,frame:!1,pts:y,dts:x,units:[],debug:T,length:0}}function s(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],O=y+3+b-4,I=(v[y+10]&15)<<8|v[y+11];for(y+=12+I;y<O;){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,O,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?(O=(x[14]&14)*536870912+(x[15]&255)*4194304+(x[16]&254)*16384+(x[17]&255)*128+(x[18]&254)/2,b-O>60*9e4&&(i.logger.warn(Math.round((b-O)/9e4)+"s delta between PTS and DTS, align them"),b=O)):O=b),S=x[8];var R=S+9;if(v.size<=R)return null;v.size-=R;for(var k=new Uint8Array(v.size),M=0,j=I.length;M<j;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;k.set(x,y),y+=F}return T&&(T-=S+3),{data:k,pts:b,dts:O,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),O=0;for(T=0;T<S;O++,T++)O===x[0]&&(O++,x.shift()),b[T]=v[O];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"),l=A("./src/is-supported.ts"),t=A("./src/utils/logger.ts"),a=A("./src/config.ts"),s=A("./node_modules/eventemitter3/index.js"),u=A.n(s),h=A("./src/events.ts"),p=A("./src/errors.ts");function 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(l.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 s.EventEmitter,this._autoLevelCapping=void 0,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null;var 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 O=b.abrController,I=b.bufferController,L=b.capLevelController,N=b.fpsController,D=this.abrController=new O(this),R=this.bufferController=new I(this),k=this.capLevelController=new L(this),M=new N(this),j=new f.default(this),F=new c.default(this),U=new o.default(this),K=this.levelController=new i.default(this),V=new n.FragmentTracker(this),z=this.streamController=new e.default(this,V);k.setStreamController(z),M.setStreamController(z);var Q=[j,F,K,z];this.networkControllers=Q;var Z=[D,R,k,M,U,V];this.audioTrackController=this.createController(b.audioTrackController,null,Q),this.createController(b.audioStreamController,V,Q),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,Q),this.createController(b.subtitleStreamController,V,Q),this.createController(b.timelineController,null,Z),this.emeController=this.createController(b.emeController,null,Z),this.cmcdController=this.createController(b.cmcdController,null,Z),this.latencyController=this.createController(r.default,null,Z),this.coreComponents=Z}var T=x.prototype;return T.createController=function(b,O,I){if(b){var L=O?new b(this,O):new b(this);return I&&I.push(L),L}return null},T.on=function(b,O,I){I===void 0&&(I=this),this._emitter.on(b,O,I)},T.once=function(b,O,I){I===void 0&&(I=this),this._emitter.once(b,O,I)},T.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},T.off=function(b,O,I,L){I===void 0&&(I=this),this._emitter.off(b,O,I,L)},T.listeners=function(b){return this._emitter.listeners(b)},T.emit=function(b,O,I){return this._emitter.emit(b,O,I)},T.trigger=function(b,O){if(this.config.debug)return this.emit(b,b,O);try{return this.emit(b,b,O)}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 O=this.media,I=this.url,L=this.url=w.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});t.logger.log("loadSource:"+L),O&&I&&I!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(O)),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(O){O.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,O){O===void 0&&(O=0),this.levelController.removeLevel(b,O)},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 O=!!b;O!==this.config.capLevelToPlayerSize&&(O?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=O)}},{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,O=this.config.minAutoBitrate;if(!b)return 0;for(var I=b.length,L=0;L<I;L++)if(b[L].maxBitrate>=O)return L;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,O=this.autoLevelCapping,I;return O===-1&&b&&b.length?I=b.length-1:I=O,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:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{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 O=this.audioTrackController;O&&(O.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 O=this.subtitleTrackController;O&&(O.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 O=this.subtitleTrackController;O&&(O.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.4"}},{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 l=1;l<arguments.length;l++){var t=arguments[l];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},c.apply(this,arguments)}function o(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,l,t){return l&&o(e.prototype,l),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(l,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 s in a)if(Object.prototype.hasOwnProperty.call(l,s)&&l[s]!==a[s]){f.logger.warn('DATERANGE tag attribute: "'+s+'" does not match for tags with ID: "'+l.ID+'"'),this._badValueForSameId=s;break}l=c(new m.AttrList({}),a,l)}if(this.attr=l,this._startDate=new Date(l[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 s});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 l=Math.pow(2,17),t=function(){function u(p){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=p}var h=u.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(g,v){var y=this,x=g.url;if(!x)return Promise.reject(new s({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(O,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:l};g.stats=L.stats,L.load(N,D,{onSuccess:function(k,M,j,F){y.resetLoader(g,L),O({frag:g,part:null,payload:k.data,networkDetails:F})},onError:function(k,M,j){y.resetLoader(g,L),I(new s({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,response:k,networkDetails:j}))},onAbort:function(k,M,j){y.resetLoader(g,L),I(new s({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,networkDetails:j}))},onTimeout:function(k,M,j){y.resetLoader(g,L),I(new s({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,networkDetails:j}))},onProgress:function(k,M,j,F){v&&v({frag:g,part:null,payload:j,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(O,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:l};v.stats=L.stats,L.load(N,D,{onSuccess:function(k,M,j,F){x.resetLoader(g,L),x.updateStatsFromPart(g,v);var U={frag:g,part:v,payload:k.data,networkDetails:F};y(U),O(U)},onError:function(k,M,j){x.resetLoader(g,L),I(new s({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,part:v,response:k,networkDetails:j}))},onAbort:function(k,M,j){g.stats.aborted=v.stats.aborted,x.resetLoader(g,L),I(new s({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,part:v,networkDetails:j}))},onTimeout:function(k,M,j){x.resetLoader(g,L),I(new s({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,part:v,networkDetails:j}))}})})},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),O=S-b,I=O*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 s=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 s}),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 l(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},l(h,[{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Object(m.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(v){this._url=v}}]),h}(),s=function(h){i(p,h);function p(v,y){var 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,O){O===void 0&&(O=!1);var I=this.elementaryStreams,L=I[y];if(!L){I[y]={startPTS:x,endPTS:T,startDTS:S,endDTS:b,partial:O};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},l(p,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&c.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(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 l(p,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var v=this.elementaryStreams;return!!(v.audio||v.video||v.audiovideo)}}]),p}(a)},"./src/loader/key-loader.ts":function(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.startLoad=function(n){},r.stopLoad=function(){this.destroyInternalLoaders()},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.destroyInternalLoaders=function(){for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},r.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},r.onKeyLoading=function(n,e){var l=e.frag,t=l.type,a=this.loaders[t];if(!l.decryptdata){f.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var s=l.decryptdata.uri;if(s!==this.decrypturl||this.decryptkey===null){var u=this.hls.config;if(a&&(f.logger.warn("abort previous key loader for type:"+t),a.abort()),!s){f.logger.warn("key uri is falsy");return}var h=u.loader,p=l.loader=this.loaders[t]=new h(u);this.decrypturl=s,this.decryptkey=null;var g={url:s,frag:l,responseType:"arraybuffer"},v={timeout:u.fragLoadingTimeOut,maxRetry:0,retryDelay:u.fragLoadingRetryDelay,maxRetryDelay:u.fragLoadingMaxRetryTimeout,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(g,v,y)}else this.decryptkey&&(l.decryptdata.key=this.decryptkey,this.hls.trigger(w.Events.KEY_LOADED,{frag:l}))},r.loadsuccess=function(n,e,l){var t=l.frag;if(!t.decryptdata){f.logger.error("after key load, decryptdata unset");return}this.decryptkey=t.decryptdata.key=new Uint8Array(n.data),t.loader=null,delete this.loaders[t.type],this.hls.trigger(w.Events.KEY_LOADED,{frag:t})},r.loaderror=function(n,e){var l=e.frag,t=l.loader;t&&t.abort(),delete this.loaders[l.type],this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:l,response:n})},r.loadtimeout=function(n,e){var l=e.frag,t=l.loader;t&&t.abort(),delete this.loaders[l.type],this.hls.trigger(w.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:l})},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 l=this.lastPartSn-e.lastPartSn,t=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!t||!!l,this.advanced=this.endSN>e.endSN||l>0||l===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},f(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(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 l=this.driftEnd-this.driftStart;return l*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(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"),l=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,s=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 O,I;return h.test((O=(I=m.parseURL(b))===null||I===void 0?void 0:I.path)!=null?O:"")}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={},k=!1;t.lastIndex=0;for(var M;(M=t.exec(I))!=null;)if(M[1]){var j,F=new n.AttrList(M[1]),U={attrs:F,bitrate:F.decimalInteger("AVERAGE-BANDWIDTH")||F.decimalInteger("BANDWIDTH"),name:F.NAME,url:b.resolve(M[2],L)},K=F.decimalResolution("RESOLUTION");K&&(U.width=K.width,U.height=K.height),v((F.CODECS||"").split(/[ ,]+/).filter(function(Q){return Q}),U),U.videoCodec&&U.videoCodec.indexOf("avc1")!==-1&&(U.videoCodec=b.convertAVC1ToAVCOTI(U.videoCodec)),(j=U.unknownCodecs)!==null&&j!==void 0&&j.length||D.push(U),N.push(U)}else if(M[3]){var V=new n.AttrList(M[3]);V["DATA-ID"]&&(k=!0,R[V["DATA-ID"]]=V)}var z=D.length>0&&D.length<N.length;return{levels:z?D:N,sessionData:k?R:null}},b.parseMasterPlaylistMedia=function(I,L,N,D){D===void 0&&(D=[]);var R,k=[],M=0;for(a.lastIndex=0;(R=a.exec(I))!==null;){var j=new n.AttrList(R[1]);if(j.TYPE===N){var F={attrs:j,bitrate:0,id:M++,groupId:j["GROUP-ID"],instreamId:j["INSTREAM-ID"],name:j.NAME||j.LANGUAGE||"",type:N,default:j.bool("DEFAULT"),autoselect:j.bool("AUTOSELECT"),forced:j.bool("FORCED"),lang:j.LANGUAGE,url:j.URI?b.resolve(j.URI,L):""};if(D.length){var U=b.findGroup(D,F.groupId)||D[0];y(F,U,"audioCodec"),y(F,U,"textCodec")}k.push(F)}}return k},b.parseLevelPlaylist=function(I,L,N,D,R){var k=new r.LevelDetails(L),M=k.fragments,j=null,F=0,U=0,K=0,V=0,z=null,Q=new o.Fragment(D,L),Z,le,ne,ve=-1,xe=!1;for(s.lastIndex=0,k.m3u8=I;(Z=s.exec(I))!==null;){xe&&(xe=!1,Q=new o.Fragment(D,L),Q.start=K,Q.sn=F,Q.cc=V,Q.level=N,j&&(Q.initSegment=j,Q.rawProgramDateTime=j.rawProgramDateTime,j.rawProgramDateTime=null));var _e=Z[1];if(_e){Q.duration=parseFloat(_e);var Be=(" "+Z[2]).slice(1);Q.title=Be||null,Q.tagList.push(Be?["INF",_e,Be]:["INF",_e])}else if(Z[3])Object(w.isFiniteNumber)(Q.duration)&&(Q.start=K,ne&&(Q.levelkey=ne),Q.sn=F,Q.level=N,Q.cc=V,Q.urlId=R,M.push(Q),Q.relurl=(" "+Z[3]).slice(1),T(Q,z),z=Q,K+=Q.duration,F++,U=0,xe=!0);else if(Z[4]){var me=(" "+Z[4]).slice(1);z?Q.setByteRange(me,z):Q.setByteRange(me)}else if(Z[5])Q.rawProgramDateTime=(" "+Z[5]).slice(1),Q.tagList.push(["PROGRAM-DATE-TIME",Q.rawProgramDateTime]),ve===-1&&(ve=M.length);else{if(Z=Z[0].match(u),!Z){e.logger.warn("No matches on slow regex match for level playlist!");continue}for(le=1;le<Z.length&&!(typeof Z[le]!="undefined");le++);var Fe=(" "+Z[le]).slice(1),ie=(" "+Z[le+1]).slice(1),te=Z[le+2]?(" "+Z[le+2]).slice(1):"";switch(Fe){case"PLAYLIST-TYPE":k.type=ie.toUpperCase();break;case"MEDIA-SEQUENCE":F=k.startSN=parseInt(ie);break;case"SKIP":{var Ge=new n.AttrList(ie),oe=Ge.decimalInteger("SKIPPED-SEGMENTS");if(Object(w.isFiniteNumber)(oe)){k.skippedSegments=oe;for(var Y=oe;Y--;)M.unshift(null);F+=oe}var G=Ge.enumeratedString("RECENTLY-REMOVED-DATERANGES");G&&(k.recentlyRemovedDateranges=G.split(" "));break}case"TARGETDURATION":k.targetduration=parseFloat(ie);break;case"VERSION":k.version=parseInt(ie);break;case"EXTM3U":break;case"ENDLIST":k.live=!1;break;case"#":(ie||te)&&Q.tagList.push(te?[ie,te]:[ie]);break;case"DISCONTINUITY":V++,Q.tagList.push(["DIS"]);break;case"GAP":Q.tagList.push([Fe]);break;case"BITRATE":Q.tagList.push([Fe,ie]);break;case"DATERANGE":{var X=new n.AttrList(ie),fe=new c.DateRange(X,k.dateRanges[X.ID]);fe.isValid||k.skippedSegments?k.dateRanges[fe.id]=fe:e.logger.warn('Ignoring invalid DATERANGE tag: "'+ie+'"'),Q.tagList.push(["EXT-X-DATERANGE",ie]);break}case"DISCONTINUITY-SEQUENCE":V=parseInt(ie);break;case"KEY":{var de,Ce=new n.AttrList(ie),Me=Ce.enumeratedString("METHOD"),ue=Ce.URI,Ae=Ce.hexadecimalInteger("IV"),Te=Ce.enumeratedString("KEYFORMATVERSIONS"),Je=Ce.enumeratedString("KEYID"),At=(de=Ce.enumeratedString("KEYFORMAT"))!=null?de:"identity",qe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(qe.indexOf(At)>-1){e.logger.warn("Keyformat "+At+" is not supported from the manifest");continue}else if(At!=="identity")continue;Me&&(ne=i.LevelKey.fromURL(L,ue),ue&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Me)>=0&&(ne.method=Me,ne.keyFormat=At,Je&&(ne.keyID=Je),Te&&(ne.keyFormatVersions=Te),ne.iv=Ae));break}case"START":{var Re=new n.AttrList(ie),Lt=Re.decimalFloatingPoint("TIME-OFFSET");Object(w.isFiniteNumber)(Lt)&&(k.startTimeOffset=Lt);break}case"MAP":{var $e=new n.AttrList(ie);if(Q.duration){var Et=new o.Fragment(D,L);S(Et,$e,N,ne),j=Et,Q.initSegment=j,j.rawProgramDateTime&&!Q.rawProgramDateTime&&(Q.rawProgramDateTime=j.rawProgramDateTime)}else S(Q,$e,N,ne),j=Q,xe=!0;break}case"SERVER-CONTROL":{var Ut=new n.AttrList(ie);k.canBlockReload=Ut.bool("CAN-BLOCK-RELOAD"),k.canSkipUntil=Ut.optionalFloat("CAN-SKIP-UNTIL",0),k.canSkipDateRanges=k.canSkipUntil>0&&Ut.bool("CAN-SKIP-DATERANGES"),k.partHoldBack=Ut.optionalFloat("PART-HOLD-BACK",0),k.holdBack=Ut.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Bt=new n.AttrList(ie);k.partTarget=Bt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var _t=k.partList;_t||(_t=k.partList=[]);var jt=U>0?_t[_t.length-1]:void 0,He=U++,se=new o.Part(new n.AttrList(ie),Q,L,He,jt);_t.push(se),Q.duration+=se.duration;break}case"PRELOAD-HINT":{var J=new n.AttrList(ie);k.preloadHint=J;break}case"RENDITION-REPORT":{var Ue=new n.AttrList(ie);k.renditionReports=k.renditionReports||[],k.renditionReports.push(Ue);break}default:e.logger.warn("line parsed but not handled: "+Z);break}}}z&&!z.relurl?(M.pop(),K-=z.duration,k.partList&&(k.fragmentHint=z)):k.partList&&(T(Q,z),Q.cc=V,k.fragmentHint=Q);var Le=M.length,ee=M[0],ct=M[Le-1];if(K+=k.skippedSegments*k.targetduration,K>0&&Le&&ct){k.averagetargetduration=K/Le;var Mt=ct.sn;k.endSN=Mt!=="initSegment"?Mt:0,ee&&(k.startCC=ee.cc,ee.initSegment||k.fragments.every(function(ot){return ot.relurl&&p(ot.relurl)})&&(e.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Q=new o.Fragment(D,L),Q.relurl=ct.relurl,Q.level=N,Q.sn="initSegment",ee.initSegment=Q,k.needSidxRanges=!0))}else k.endSN=0,k.startCC=0;return k.fragmentHint&&(K+=k.fragmentHint.duration),k.totalduration=K,k.endCC=V,ve>0&&x(M,ve),k},b}();function v(b,O){["video","audio","text"].forEach(function(I){var L=b.filter(function(D){return Object(l.isCodecType)(D,I)});if(L.length){var N=L.filter(function(D){return D.lastIndexOf("avc1",0)===0||D.lastIndexOf("mp4a",0)===0});O[I+"Codec"]=N.length>0?N[0]:L[0],b=b.filter(function(D){return L.indexOf(D)===-1})}}),O.unknownCodecs=b}function y(b,O,I){var L=O[I];L&&(b[I]=L)}function x(b,O){for(var I=b[O],L=O;L--;){var N=b[L];if(!N)return;N.programDateTime=I.programDateTime-N.duration*1e3,I=N}}function T(b,O){b.rawProgramDateTime?b.programDateTime=Date.parse(b.rawProgramDateTime):O!=null&&O.programDateTime&&(b.programDateTime=O.endProgramDateTime),Object(w.isFiniteNumber)(b.programDateTime)||(b.programDateTime=null,b.rawProgramDateTime=null)}function S(b,O,I,L){b.relurl=O.URI,O.BYTERANGE&&b.setByteRange(O.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 s=a.type;switch(s){case i.PlaylistContextType.AUDIO_TRACK:return i.PlaylistLevelType.AUDIO;case i.PlaylistContextType.SUBTITLE_TRACK:return i.PlaylistLevelType.SUBTITLE;default:return i.PlaylistLevelType.MAIN}}function l(a,s){var u=a.url;return(u===void 0||u.indexOf("data:")===0)&&(u=s.url),u}var t=function(){function a(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var s=a.prototype;return s.startLoad=function(h){},s.stopLoad=function(){this.destroyInternalLoaders()},s.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)},s.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)},s.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},s.getInternalLoader=function(h){return this.loaders[h.type]},s.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},s.destroyInternalLoaders=function(){for(var h in this.loaders){var p=this.loaders[h];p&&p.destroy(),this.resetInternalLoader(h)}},s.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},s.onManifestLoading=function(h,p){var g=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:i.PlaylistContextType.MANIFEST,url:g,deliveryDirectives:null})},s.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})},s.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})},s.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})},s.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 O;if(h.type===i.PlaylistContextType.LEVEL&&h.level!==null?O=this.hls.levels[h.level].details:h.type===i.PlaylistContextType.AUDIO_TRACK&&h.id!==null?O=this.hls.audioTracks[h.id].details:h.type===i.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(O=this.hls.subtitleTracks[h.id].details),O){var I=O.partTarget,L=O.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)},s.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)},s.loaderror=function(h,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!1,h)},s.loadtimeout=function(h,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!0)},s.handleMasterPlaylist=function(h,p,g,v){var y=this.hls,x=h.data,T=l(h,g),S=r.default.parseMasterPlaylist(x,T),b=S.levels,O=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 k=N.some(function(M){return!M.url});!k&&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:O})},s.handleTrackOrLevelPlaylist=function(h,p,g,v){var y=this.hls,x=g.id,T=g.level,S=g.type,b=l(h,g),O=Object(w.isFiniteNumber)(x)?x:0,I=Object(w.isFiniteNumber)(T)?T:O,L=e(g),N=r.default.parseLevelPlaylist(h.data,b,I,L,O);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,k=(R=N.fragments[0].initSegment)===null||R===void 0?void 0:R.url;this.load({url:k,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)},s.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 O=S.info,I=T.fragments[b];if(I.byteRange.length===0&&I.setByteRange(String(1+O.end-O.start)+"@"+String(O.start)),I.initSegment){var L=Object(o.findBox)(g,["moov"])[0],N=L?L.length:null;I.initSegment.setByteRange(String(N)+"@0")}})},s.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})},s.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)},s.handlePlaylistLoaded=function(h,p,g,v){var y=g.type,x=g.level,T=g.id,S=g.groupId,b=g.loader,O=g.levelDetails,I=g.deliveryDirectives;if(!(O!=null&&O.targetduration)){this.handleManifestParsingError(h,g,"invalid target duration",v);return}if(!b)return;O.live&&(b.getCacheAge&&(O.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(O.ageHeader))&&(O.ageHeader=0));switch(y){case i.PlaylistContextType.MANIFEST:case i.PlaylistContextType.LEVEL:this.hls.trigger(m.Events.LEVEL_LOADED,{details:O,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:O,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:O,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 l=new Uint8Array([105,115,111,109]),t=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);f.FTYP=f.box(f.types.ftyp,l,a,l,t),f.DINF=f.box(f.types.dinf,f.box(f.types.dref,n))},f.box=function(o){for(var r=8,i=arguments.length,n=new Array(i>1?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];for(var l=n.length,t=l;l--;)r+=n[l].byteLength;var a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(o,4),l=0,r=8;l<t;l++)a.set(n[l],r),r+=n[l].byteLength;return a},f.hdlr=function(o){return f.box(f.types.hdlr,f.HDLR_TYPES[o])},f.mdat=function(o){return f.box(f.types.mdat,o)},f.mdhd=function(o,r){r*=o;var i=Math.floor(r/(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,l;for(n=0;n<o.sps.length;n++)e=o.sps[n],l=e.byteLength,r.push(l>>>8&255),r.push(l&255),r=r.concat(Array.prototype.slice.call(e));for(n=0;n<o.pps.length;n++)e=o.pps[n],l=e.byteLength,i.push(l>>>8&255),i.push(l&255),i=i.concat(Array.prototype.slice.call(e));var t=f.box(f.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|o.sps.length].concat(r).concat([o.pps.length]).concat(i))),a=o.width,s=o.height,u=o.pixelRatio[0],h=o.pixelRatio[1];return f.box(f.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,a>>8&255,a&255,s>>8&255,s&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t,f.box(f.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),f.box(f.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,h>>24,h>>16&255,h>>8&255,h&255])))},f.esds=function(o){var r=o.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(o.config).concat([6,1,2]))},f.mp4a=function(o){var r=o.samplerate;return f.box(f.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),f.box(f.types.esds,f.esds(o)))},f.mp3=function(o){var r=o.samplerate;return f.box(f.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},f.stsd=function(o){return o.type==="audio"?o.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,l=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,l>>24,l>>16&255,l>>8&255,l&255,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,e>>8&255,e&255,0,0]))},f.traf=function(o,r){var i=f.sdtp(o),n=o.id,e=Math.floor(r/(w+1)),l=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,l>>24,l>>16&255,l>>8&255,l&255])),f.trun(o,i.length+16+20+8+16+8+8),i)},f.trak=function(o){return o.duration=o.duration||4294967295,f.box(f.types.trak,f.tkhd(o),f.mdia(o))},f.trex=function(o){var r=o.id;return f.box(f.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},f.trun=function(o,r){var i=o.samples||[],n=i.length,e=12+16*n,l=new Uint8Array(e),t,a,s,u,h,p;for(r+=8+e,l.set([o.type==="video"?1:0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),t=0;t<n;t++)a=i[t],s=a.duration,u=a.size,h=a.flags,p=a.cts,l.set([s>>>24&255,s>>>16&255,s>>>8&255,s&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*t);return f.box(f.types.trun,l)},f.initSegment=function(o){f.types||f.init();var r=f.moov(o),i=new Uint8Array(f.FTYP.byteLength+r.byteLength);return i.set(f.FTYP),i.set(r,f.FTYP.byteLength),i},f}();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 h}),A.d(C,"normalizePts",function(){return p}),A.d(C,"flushTextTrackMetadataCueSamples",function(){return v}),A.d(C,"flushTextTrackUserdataCueSamples",function(){return y});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(S){for(var b=1;b<arguments.length;b++){var O=arguments[b];for(var I in O)Object.prototype.hasOwnProperty.call(O,I)&&(S[I]=O[I])}return S},e.apply(this,arguments)}var l=10*1e3,t=1024,a=1152,s=null,u=null,h=function(){function S(O,I,L,N){if(N===void 0&&(N=""),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=O,this.config=I,this.typeSupported=L,this.ISGenerated=!1,s===null){var D=navigator.userAgent||"",R=D.match(/Chrome\/(\d+)/i);s=R?parseInt(R[1]):0}if(u===null){var k=navigator.userAgent.match(/Safari\/(\d+)/i);u=k?parseInt(k[1]):0}}var b=S.prototype;return b.destroy=function(){},b.resetTimeStamp=function(I){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=I},b.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},b.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},b.getVideoStartPts=function(I){var L=!1,N=I.reduce(function(D,R){var k=R.pts-D;return k<-4294967296?(L=!0,p(D,R.pts)):k>0?D:R.pts},I[0].pts);return L&&r.logger.debug("PTS rollover detected"),N},b.remux=function(I,L,N,D,R,k,M,j){var F,U,K,V,z,Q,Z=R,le=R,ne=I.pid>-1,ve=L.pid>-1,xe=L.samples.length,_e=I.samples.length>0,Be=M&&xe>0||xe>1,me=(!ne||_e)&&(!ve||Be)||this.ISGenerated||M;if(me){this.ISGenerated||(K=this.generateIS(I,L,R));var Fe=this.isVideoContiguous,ie=-1,te;if(Be&&(ie=g(L.samples),!Fe&&this.config.forceKeyFrameOnDiscontinuity))if(Q=!0,ie>0){r.logger.warn("[mp4-remuxer]: Dropped "+ie+" out of "+xe+" video samples due to a missing keyframe");var Ge=this.getVideoStartPts(L.samples);L.samples=L.samples.slice(ie),L.dropped+=ie,le+=(L.samples[0].pts-Ge)/L.inputTimeScale,te=le}else ie===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+xe+" video samples"),Q=!1);if(this.ISGenerated){if(_e&&Be){var oe=this.getVideoStartPts(L.samples),Y=p(I.samples[0].pts,oe)-oe,G=Y/L.inputTimeScale;Z+=Math.max(0,G),le+=Math.max(0,-G)}if(_e){if(I.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),K=this.generateIS(I,L,R)),U=this.remuxAudio(I,Z,this.isAudioContiguous,k,ve||Be||j===i.PlaylistLevelType.AUDIO?le:void 0),Be){var X=U?U.endPTS-U.startPTS:0;L.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),K=this.generateIS(I,L,R)),F=this.remuxVideo(L,le,Fe,X)}}else Be&&(F=this.remuxVideo(L,le,Fe,0));F&&(F.firstKeyFrame=ie,F.independent=ie!==-1,F.firstKeyFramePTS=te)}}return this.ISGenerated&&(N.samples.length&&(z=v(N,R,this._initPTS,this._initDTS)),D.samples.length&&(V=y(D,R,this._initPTS))),{audio:U,video:F,initSegment:K,independent:Q,text:V,id3:z}},b.generateIS=function(I,L,N){var D=I.samples,R=L.samples,k=this.typeSupported,M={},j=!Object(w.isFiniteNumber)(this._initPTS),F="audio/mp4",U,K,V;if(j&&(U=K=Infinity),I.config&&D.length){I.timescale=I.samplerate;switch(I.segmentCodec){case"mp3":k.mpeg?(F="audio/mpeg",I.codec=""):k.mp3&&(I.codec="mp3");break}M.audio={id:"audio",container:F,codec:I.codec,initSegment:I.segmentCodec==="mp3"&&k.mpeg?new Uint8Array(0):f.default.initSegment([I]),metadata:{channelCount:I.channelCount}},j&&(V=I.inputTimeScale,U=K=D[0].pts-Math.round(V*N))}if(L.sps&&L.pps&&R.length&&(L.timescale=L.inputTimeScale,M.video={id:"main",container:"video/mp4",codec:L.codec,initSegment:f.default.initSegment([L]),metadata:{width:L.width,height:L.height}},j)){V=L.inputTimeScale;var z=this.getVideoStartPts(R),Q=Math.round(V*N);K=Math.min(K,p(R[0].dts,z)-Q),U=Math.min(U,z-Q)}if(Object.keys(M).length)return this.ISGenerated=!0,j&&(this._initPTS=U,this._initDTS=K),{tracks:M,initPTS:U,timescale:V}},b.remuxVideo=function(I,L,N,D){var R=I.inputTimeScale,k=I.samples,M=[],j=k.length,F=this._initPTS,U=this.nextAvcDts,K=8,V=this.videoSampleDuration,z,Q,Z=Number.POSITIVE_INFINITY,le=Number.NEGATIVE_INFINITY,ne=!1;if(!N||U===null){var ve=L*R,xe=k[0].pts-p(k[0].dts,k[0].pts);U=ve-xe}for(var _e=0;_e<j;_e++){var Be=k[_e];Be.pts=p(Be.pts-F,U),Be.dts=p(Be.dts-F,U),Be.dts<k[_e>0?_e-1:_e].dts&&(ne=!0)}ne&&k.sort(function(Wn,gi){var yn=Wn.dts-gi.dts,Mn=Wn.pts-gi.pts;return yn||Mn}),z=k[0].dts,Q=k[k.length-1].dts;var me=Q-z,Fe=me?Math.round(me/(j-1)):V||I.inputTimeScale/30;if(N){var ie=z-U,te=ie>Fe,Ge=ie<-1;if(te||Ge){te?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ie,!0)+" ms ("+ie+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ie,!0)+" ms ("+ie+"dts) overlapping between fragments detected"),z=U;var oe=k[0].pts-ie;k[0].dts=z,k[0].pts=oe,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(oe,!0)+"/"+Object(n.toMsFromMpegTsClock)(z,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ie,!0)+" ms")}}z=Math.max(0,z);for(var Y=0,G=0,X=0;X<j;X++){for(var fe=k[X],de=fe.units,Ce=de.length,Me=0,ue=0;ue<Ce;ue++)Me+=de[ue].data.length;G+=Me,Y+=Ce,fe.length=Me,fe.dts=Math.max(fe.dts,z),Z=Math.min(fe.pts,Z),le=Math.max(fe.pts,le)}Q=k[j-1].dts;var Ae=G+4*Y+8,Te;try{Te=new Uint8Array(Ae)}catch(Wn){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ae,reason:"fail allocating video mdat "+Ae});return}var Je=new DataView(Te.buffer);Je.setUint32(0,Ae),Te.set(f.default.types.mdat,4);for(var At=!1,qe=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY,Lt=Number.NEGATIVE_INFINITY,$e=Number.NEGATIVE_INFINITY,Et=0;Et<j;Et++){for(var Ut=k[Et],Bt=Ut.units,_t=0,jt=0,He=Bt.length;jt<He;jt++){var se=Bt[jt],J=se.data,Ue=se.data.byteLength;Je.setUint32(K,Ue),K+=4,Te.set(J,K),K+=Ue,_t+=4+Ue}var Le=void 0;if(Et<j-1)V=k[Et+1].dts-Ut.dts,Le=k[Et+1].pts-Ut.pts;else{var ee=this.config,ct=Et>0?Ut.dts-k[Et-1].dts:Fe;if(Le=Et>0?Ut.pts-k[Et-1].pts:Fe,ee.stretchShortVideoTrack&&this.nextAudioPts!==null){var Mt=Math.floor(ee.maxBufferHole*R),ot=(D?Z+D*R:this.nextAudioPts)-Ut.pts;ot>Mt?(V=ot-ct,V<0?V=ct:At=!0,r.logger.log("[mp4-remuxer]: It is approximately "+ot/90+" ms to the next segment; using duration "+V/90+" ms for the last video frame.")):V=ct}else V=ct}var Yt=Math.round(Ut.pts-Ut.dts);qe=Math.min(qe,V),Lt=Math.max(Lt,V),Re=Math.min(Re,Le),$e=Math.max($e,Le),M.push(new x(Ut.key,V,_t,Yt))}if(M.length){if(s){if(s<70){var or=M[0].flags;or.dependsOn=2,or.isNonSync=0}}else if(u&&($e-Re<Lt-qe&&Fe/Lt<.025&&M[0].cts===0)){r.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var Zr=z,ir=0,dr=M.length;ir<dr;ir++){var qt=Zr+M[ir].duration,Ht=Zr+M[ir].cts;if(ir<dr-1){var lt=qt+M[ir+1].cts;M[ir].duration=lt-Ht}else M[ir].duration=ir?M[ir-1].duration:Fe;M[ir].cts=0,Zr=qt}}}console.assert(V!==null,"mp4SampleDuration must be computed"),V=At||!V?Fe:V,this.nextAvcDts=U=Q+V,this.videoSampleDuration=V,this.isVideoContiguous=!0;var Hr=f.default.moof(I.sequenceNumber++,z,e({},I,{samples:M})),dn="video",Nn={data1:Hr,data2:Te,startPTS:Z/R,endPTS:(le+V)/R,startDTS:z/R,endDTS:U/R,type:dn,hasAudio:!1,hasVideo:!0,nb:M.length,dropped:I.dropped};return I.samples=[],I.dropped=0,console.assert(Te.length,"MDAT length must not be zero"),Nn},b.remuxAudio=function(I,L,N,D,R){var k=I.inputTimeScale,M=I.samplerate?I.samplerate:k,j=k/M,F=I.segmentCodec==="aac"?t:a,U=F*j,K=this._initPTS,V=I.segmentCodec==="mp3"&&this.typeSupported.mpeg,z=[],Q=R!==void 0,Z=I.samples,le=V?0:8,ne=this.nextAudioPts||-1,ve=L*k;if(this.isAudioContiguous=N=N||Z.length&&ne>0&&(D&&Math.abs(ve-ne)<9e3||Math.abs(p(Z[0].pts-K,ve)-ne)<20*U),Z.forEach(function(se){se.pts=p(se.pts-K,ve)}),!N||ne<0){if(Z=Z.filter(function(se){return se.pts>=0}),!Z.length)return;R===0?ne=0:D&&!Q?ne=Math.max(0,ve):ne=Z[0].pts}if(I.segmentCodec==="aac")for(var xe=this.config.maxAudioFramesDrift,_e=0,Be=ne;_e<Z.length;_e++){var me=Z[_e],Fe=me.pts,ie=Fe-Be,te=Math.abs(1e3*ie/k);if(ie<=-xe*U&&Q)_e===0&&(r.logger.warn("Audio frame @ "+(Fe/k).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*ie/k)+" ms."),this.nextAudioPts=ne=Be=Fe);else if(ie>=xe*U&&te<l&&Q){var Ge=Math.round(ie/U);Be=Fe-Ge*U,Be<0&&(Ge--,Be+=U),_e===0&&(this.nextAudioPts=ne=Be),r.logger.warn("[mp4-remuxer]: Injecting "+Ge+" audio frame @ "+(Be/k).toFixed(3)+"s due to "+Math.round(1e3*ie/k)+" ms gap.");for(var oe=0;oe<Ge;oe++){var Y=Math.max(Be,0),G=m.default.getSilentFrame(I.manifestCodec||I.codec,I.channelCount);G||(r.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),G=me.unit.subarray()),Z.splice(_e,0,{unit:G,pts:Y}),Be+=U,_e++}}me.pts=Be,Be+=U}for(var X=null,fe=null,de,Ce=0,Me=Z.length;Me--;)Ce+=Z[Me].unit.byteLength;for(var ue=0,Ae=Z.length;ue<Ae;ue++){var Te=Z[ue],Je=Te.unit,At=Te.pts;if(fe!==null){var qe=z[ue-1];qe.duration=Math.round((At-fe)/j)}else if(N&&I.segmentCodec==="aac"&&(At=ne),X=At,Ce>0){Ce+=le;try{de=new Uint8Array(Ce)}catch(se){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:Ce,reason:"fail allocating audio mdat "+Ce});return}if(!V){var Re=new DataView(de.buffer);Re.setUint32(0,Ce),de.set(f.default.types.mdat,4)}}else return;de.set(Je,le);var Lt=Je.byteLength;le+=Lt,z.push(new x(!0,F,Lt,0)),fe=At}var $e=z.length;if(!$e)return;var Et=z[z.length-1];this.nextAudioPts=ne=fe+j*Et.duration;var Ut=V?new Uint8Array(0):f.default.moof(I.sequenceNumber++,X/j,e({},I,{samples:z}));I.samples=[];var Bt=X/k,_t=ne/k,jt="audio",He={data1:Ut,data2:de,startPTS:Bt,endPTS:_t,startDTS:Bt,endDTS:_t,type:jt,hasAudio:!0,hasVideo:!1,nb:$e};return this.isAudioContiguous=!0,console.assert(de.length,"MDAT length must not be zero"),He},b.remuxEmptyAudio=function(I,L,N,D){var R=I.inputTimeScale,k=I.samplerate?I.samplerate:R,M=R/k,j=this.nextAudioPts,F=(j!==null?j:D.startDTS*R)+this._initDTS,U=D.endDTS*R+this._initDTS,K=M*t,V=Math.ceil((U-F)/K),z=m.default.getSilentFrame(I.manifestCodec||I.codec,I.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!z){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Q=[],Z=0;Z<V;Z++){var le=F+Z*K;Q.push({unit:z,pts:le,dts:le})}return I.samples=Q,this.remuxAudio(I,L,N,!1)},S}();function p(S,b){var O;if(b===null)return S;for(b<S?O=-8589934592:O=8589934592;Math.abs(S-b)>4294967296;)S+=O;return S}function g(S){for(var b=0;b<S.length;b++)if(S[b].key)return b;return-1}function v(S,b,O,I){var L=S.samples.length;if(!L)return;for(var N=S.inputTimeScale,D=0;D<L;D++){var R=S.samples[D];R.pts=p(R.pts-O,b*N)/N,R.dts=p(R.dts-I,b*N)/N}var k=S.samples;return S.samples=[],{samples:k}}function y(S,b,O){var I=S.samples.length;if(!I)return;for(var L=S.inputTimeScale,N=0;N<I;N++){var D=S.samples[N];D.pts=p(D.pts-O,b*L)/L}S.samples.sort(function(k,M){return k.pts-M.pts});var R=S.samples;return S.samples=[],{samples:R}}var x=function(b,O,I,L){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=O,this.size=I,this.cts=L,this.flags=new T(b)},T=function(b){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=b?2:1,this.isNonSync=b?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 n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndTime=null}var e=n.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndTime=null},e.resetNextTimestamp=function(){this.lastEndTime=null},e.resetInitSegment=function(t,a,s){this.audioCodec=a,this.videoCodec=s,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var a=this.audioCodec,s=this.videoCodec;if(!t||!t.byteLength){this.initTracks=void 0,this.initData=void 0;return}var u=this.initData=Object(f.parseInitSegment)(t);a||(a=i(u.audio,c.ElementaryStreamTypes.AUDIO)),s||(s=i(u.video,c.ElementaryStreamTypes.VIDEO));var h={};u.audio&&u.video?h.audiovideo={container:"video/mp4",codec:a+","+s,initSegment:t,id:"main"}:u.audio?h.audio={container:"audio/mp4",codec:a,initSegment:t,id:"audio"}:u.video?h.video={container:"video/mp4",codec:s,initSegment:t,id:"main"}:o.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},e.remux=function(t,a,s,u,h){var p,g=this.initPTS,v=this.lastEndTime,y={audio:void 0,video:void 0,text:u,id3:s,initSegment:void 0};Object(w.isFiniteNumber)(v)||(v=this.lastEndTime=h||0);var x=a.samples;if(!x||!x.length)return y;var T={initPTS:void 0,timescale:1},S=this.initData;if((!S||!S.length)&&(this.generateInitSegment(x),S=this.initData),!S||!S.length)return o.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),y;this.emitInitSegment&&(T.tracks=this.initTracks,this.emitInitSegment=!1);var b=Object(f.getStartDTS)(S,x);Object(w.isFiniteNumber)(g)||(this.initPTS=T.initPTS=g=b-h);var O=Object(f.getDuration)(x,S),I=t?b-g:v,L=I+O;Object(f.offsetStartDTS)(S,x,g),O>0?this.lastEndTime=L:(o.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var N=!!S.audio,D=!!S.video,R="";N&&(R+="audio"),D&&(R+="video");var k={data1:x,startPTS:I,startDTS:I,endPTS:L,endDTS:L,type:R,hasAudio:N,hasVideo:D,nb:1,dropped:0};y.audio=k.type==="audio"?k:void 0,y.video=k.type!=="audio"?k:void 0,y.initSegment=T;var M=(p=this.initPTS)!=null?p:0;return y.id3=Object(m.flushTextTrackMetadataCueSamples)(s,h,M,M),u.samples.length&&(y.text=Object(m.flushTextTrackUserdataCueSamples)(u,h,M)),y},n}();function i(n,e){var l=n==null?void 0:n.codec;return l&&l.length>4?l:l==="hvc1"||l==="hev1"?"hvc1.1.c.L120.90":l==="av01"?"av01.0.04M.08":l==="avc1"||e===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 l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}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,l=i.canSkipDateRanges,t=i.endSN,a=n!==void 0?n-t:0;return e&&a<e?l?f.v2:f.Yes:f.No}var o=function(){function i(e,l,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=l,this.skip=t}var n=i.prototype;return n.addDirectives=function(l){var t=new self.URL(l);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.toString()},i}(),r=function(){function i(n){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(e){return e}).join(",").replace(/\.[^.,]+/g,"")}return 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 l=e%this.url.length;this._urlId!==l&&(this.details=void 0,this._urlId=l)}}]),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),l=0;l<n.length/2;l++)e[l]=parseInt(n.slice(l*2,l*2+2),16);return e}else return null},o.hexadecimalIntegerAsNumber=function(i){var n=parseInt(this[i],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.decimalFloatingPoint=function(i){return parseFloat(this[i])},o.optionalFloat=function(i,n){var e=this[i];return e?parseFloat(e):n},o.enumeratedString=function(i){return this[i]},o.bool=function(i){return this[i]==="YES"},o.decimalResolution=function(i){var n=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={},l='"';for(m.lastIndex=0;(n=m.exec(i))!==null;){var t=n[2];t.indexOf(l)===0&&t.lastIndexOf(l)===t.length-1&&(t=t.slice(1,-1)),e[n[1]]=t}return e},c}()},"./src/utils/binary-search.ts":function(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(l){}return!1},c.bufferInfo=function(r,i,n){try{if(r){var e=c.getBuffered(r),l=[],t;for(t=0;t<e.length;t++)l.push({start:e.start(t),end:e.end(t)});return this.bufferedInfo(l,i,n)}}catch(a){}return{len:0,start:i,end:i,nextStart:void 0}},c.bufferedInfo=function(r,i,n){i=Math.max(0,i),r.sort(function(x,T){var S=x.start-T.start;return S||T.end-x.end});var e=[];if(n)for(var l=0;l<r.length;l++){var t=e.length;if(t){var a=e[t-1].end;r[l].start-a<n?r[l].end>a&&(e[t-1].end=r[l].end):e.push(r[l])}else e.push(r[l])}else e=r;for(var s=0,u,h=i,p=i,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,s=p-i;else if(i+n<v){u=v;break}}return{len:s,start:h||0,end:p||0,nextStart:u}},c.getBuffered=function(r){try{return r.buffered}catch(i){return 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(O){var I=O;return m.hasOwnProperty(O)&&(I=m[O]),String.fromCharCode(I)},c=15,o=100,r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},i={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},l=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],t;(function(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 O=b.prototype;return O.log=function(L,N){this.verboseLevel>=L&&w.logger.log(this.time+" ["+L+"] "+N)},b}(),s=function(O){for(var I=[],L=0;L<O.length;L++)I.push(O[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 O=b.prototype;return O.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},O.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])}},O.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},O.equals=function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash},O.copy=function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash},O.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,k){this.uchar=void 0,this.penState=void 0,this.uchar=I||" ",this.penState=new u(L,N,D,R,k)}var O=b.prototype;return O.reset=function(){this.uchar=" ",this.penState.reset()},O.setChar=function(L,N){this.uchar=L,this.penState.copy(N)},O.setPenState=function(L){this.penState.copy(L)},O.equals=function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)},O.copy=function(L){this.uchar=L.uchar,this.penState.copy(L.penState)},O.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 O=b.prototype;return O.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},O.copy=function(L){for(var N=0;N<o;N++)this.chars[N].copy(L.chars[N])},O.isEmpty=function(){for(var L=!0,N=0;N<o;N++)if(!this.chars[N].isEmpty()){L=!1;break}return L},O.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)},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)},O.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},O.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)},O.clearFromPos=function(L){var N;for(N=L;N<o;N++)this.chars[N].reset()},O.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},O.clearToEndOfRow=function(){this.clearFromPos(this.pos)},O.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("")},O.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 O=b.prototype;return O.reset=function(){for(var L=0;L<c;L++)this.rows[L].clear();this.currRow=c-1},O.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},O.copy=function(L){for(var N=0;N<c;N++)this.rows[N].copy(L.rows[N])},O.isEmpty=function(){for(var L=!0,N=0;N<c;N++)if(!this.rows[N].isEmpty()){L=!1;break}return L},O.backSpace=function(){var L=this.rows[this.currRow];L.backSpace()},O.clearToEndOfRow=function(){var L=this.rows[this.currRow];L.clearToEndOfRow()},O.insertChar=function(L){var N=this.rows[this.currRow];N.insertChar(L)},O.setPen=function(L){var N=this.rows[this.currRow];N.setPenStyles(L)},O.moveCursor=function(L){var N=this.rows[this.currRow];N.moveCursor(L)},O.setCursor=function(L){this.logger.log(t.INFO,"setCursor: "+L);var N=this.rows[this.currRow];N.setCursor(L)},O.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,k=this.lastOutputScreen;if(k){var M=k.rows[R].cueStartTime,j=this.logger.time;if(M&&j!==null&&M<j)for(var F=0;F<this.nrRollUpRows;F++)this.rows[N-this.nrRollUpRows+F+1].copy(k.rows[R+F])}}this.currRow=N;var U=this.rows[this.currRow];if(L.indent!==null){var K=L.indent,V=Math.max(K-1,0);U.setCursor(L.indent),L.color=U.chars[V].penState.foreground}var z={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(z)},O.setBkgData=function(L){this.logger.log(t.INFO,"bkgData = "+JSON.stringify(L)),this.backSpace(),this.setPen(L),this.insertChar(32)},O.setRollUpRows=function(L){this.nrRollUpRows=L},O.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")},O.getDisplayText=function(L){L=L||!1;for(var N=[],D="",R=-1,k=0;k<c;k++){var M=this.rows[k].getTextString();M&&(R=k+1,L?N.push("Row "+R+": '"+M+"'"):N.push(M.trim()))}return N.length>0&&(L?D="["+N.join(" | ")+"]":D=N.join(`
|
|
|
`)),D},O.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 O=b.prototype;return O.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},O.getHandler=function(){return this.outputFilter},O.setHandler=function(L){this.outputFilter=L},O.setPAC=function(L){this.writeScreen.setPAC(L)},O.setBkgData=function(L){this.writeScreen.setBkgData(L)},O.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},O.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())},O.ccRCL=function(){this.logger.log(t.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},O.ccBS=function(){if(this.logger.log(t.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},O.ccAOF=function(){},O.ccAON=function(){},O.ccDER=function(){this.logger.log(t.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},O.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)},O.ccFON=function(){this.logger.log(t.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},O.ccRDC=function(){this.logger.log(t.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},O.ccTR=function(){this.logger.log(t.INFO,"TR"),this.setMode("MODE_TEXT")},O.ccRTD=function(){this.logger.log(t.INFO,"RTD"),this.setMode("MODE_TEXT")},O.ccEDM=function(){this.logger.log(t.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},O.ccCR=function(){this.logger.log(t.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},O.ccENM=function(){this.logger.log(t.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},O.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)},O.ccTO=function(L){this.logger.log(t.INFO,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)},O.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)},O.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))},O.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 O=b.prototype;return O.getHandler=function(L){return this.channels[L].getHandler()},O.setHandler=function(L,N){this.channels[L].setHandler(N)},O.addData=function(L,N){var D,R,k,M=!1;this.logger.time=L;for(var j=0;j<N.length;j+=2){if(R=N[j]&127,k=N[j+1]&127,R===0&&k===0)continue;if(this.logger.log(t.DATA,"["+s([N[j],N[j+1]])+"] -> ("+s([R,k])+")"),D=this.parseCmd(R,k),D||(D=this.parseMidrow(R,k)),D||(D=this.parsePAC(R,k)),D||(D=this.parseBackgroundAttributes(R,k)),!D&&(M=this.parseChars(R,k),M)){var F=this.currentChannel;if(F&&F>0){var U=this.channels[F];U.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 "+s([R,k])+" orig: "+s([N[j],N[j+1]]))}},O.parseCmd=function(L,N){var D=this.cmdHistory,R=(L===20||L===28||L===21||L===29)&&N>=32&&N<=47,k=(L===23||L===31)&&N>=33&&N<=35;if(!(R||k))return!1;if(T(L,N,D))return x(null,null,D),this.logger.log(t.DEBUG,"Repeated command ("+s([L,N])+") is dropped"),!0;var M=L===20||L===21||L===23?1:2,j=this.channels[M];return L===20||L===21||L===28||L===29?N===32?j.ccRCL():N===33?j.ccBS():N===34?j.ccAOF():N===35?j.ccAON():N===36?j.ccDER():N===37?j.ccRU(2):N===38?j.ccRU(3):N===39?j.ccRU(4):N===40?j.ccFON():N===41?j.ccRDC():N===42?j.ccTR():N===43?j.ccRTD():N===44?j.ccEDM():N===45?j.ccCR():N===46?j.ccENM():N===47&&j.ccEOC():j.ccTO(N-32),x(L,N,D),this.currentChannel=M,!0},O.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 ("+s([L,N])+")"),!0):!1}return!1},O.parsePAC=function(L,N){var D,R=this.cmdHistory,k=(L>=17&&L<=23||L>=25&&L<=31)&&N>=64&&N<=127,M=(L===16||L===24)&&N>=64&&N<=95;if(!(k||M))return!1;if(T(L,N,R))return x(null,null,R),!0;var j=L<=23?1:2;N>=64&&N<=95?D=j===1?r[L]:n[L]:D=j===1?i[L]:e[L];var F=this.channels[j];return F?(F.setPAC(this.interpretPAC(D,N)),x(L,N,R),this.currentChannel=j,!0):!1},O.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},O.parseChars=function(L,N){var D,R=null,k=null;if(L>=25?(D=2,k=L-8):(D=1,k=L),k>=17&&k<=19){var M;k===17?M=N+80:k===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 j=s(R);this.logger.log(t.DEBUG,"Char codes = "+j.join(",")),x(L,N,this.cmdHistory)}return R},O.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 k,M={};L===16||L===24?(k=Math.floor((N-32)/2),M.background=l[k],N%2===1&&(M.background=M.background+"_semi")):N===45?M.background="transparent":(M.foreground="black",N===47&&(M.underline=!0));var j=L<=23?1:2,F=this.channels[j];return F.setBkgData(M),x(L,N,this.cmdHistory),!0},O.reset=function(){for(var L=0;L<Object.keys(this.channels).length;L++){var N=this.channels[L];N&&N.reset()}this.cmdHistory=S()},O.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,O,I){I.a=b,I.b=O}function T(b,O,I){return I.a===b&&I.b===O}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,dva1:!0,dvav:!0,dvh1:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0},text:{stpp:!0,wvtt:!0}};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,l){for(var t=[],a,s,u,h,p,g=self.VTTCue||self.TextTrackCue,v=0;v<l.rows.length;v++)if(a=l.rows[v],u=!0,h=0,p="",!a.isEmpty()){for(var y=0;y<a.chars.length;y++)c.test(a.chars[y].uchar)&&u?h++:(p+=a.chars[y].uchar,u=!1);a.cueStartTime=n,n===e&&(e+=1e-4),h>=16?h--:h++;var x=Object(w.fixLineBreaks)(p.trim()),T=Object(m.generateCueId)(n,e,x);(!i||!i.cues||!i.cues.getCueById(T))&&(s=new g(n,e,x),s.id=T,s.line=v+1,s.align="left",s.position=10+Math.min(80,Math.floor(h*8/32)*10),t.push(s))}return i&&t.length&&(t.sort(function(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 s});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;l(u,p,h),!p.alignedSliding&&h.details&&t(p,h.details),!p.alignedSliding&&h.details&&!p.skippedSegments&&Object(f.adjustSliding)(h.details,p)}function l(u,h,p){if(o(u,p,h)){var 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 s(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,l=n/e;this.fast_.sample(e,l),this.slow_.sample(e,l)},c.canEstimate=function(){var r=this.fast_;return r&&r.getTotalWeight()>=this.minWeight_},c.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},c.destroy=function(){},f}();C.default=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,l(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 O=[null];O.push.apply(O,S);var I=Function.bind.apply(T,O),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 l(g){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},l(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 s=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,O=this.stats;if(O.loading.start)throw new Error("Loader can only be used once.");O.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(O,x,b.response)},T.timeout),self.fetch(this.request).then(function(R){if(b.response=b.loader=R,!R.ok){var k=R.status,M=R.statusText;throw new p(M||"fetch, bad network response",k,R)}return O.loading.first=Math.max(self.performance.now(),O.loading.start),O.total=parseInt(R.headers.get("Content-Length")||"0"),L&&Object(w.isFiniteNumber)(T.highWaterMark)?b.loadProgressively(R,O,x,T.highWaterMark,L):N?R.arrayBuffer():R.text()}).then(function(R){var k=b.response;self.clearTimeout(b.requestTimeout),O.loading.end=Math.max(self.performance.now(),O.loading.first),O.loaded=O.total=R[D];var M={url:k.url,data:R};L&&!Object(w.isFiniteNumber)(T.highWaterMark)&&L(O,x,R,k),S.onSuccess(M,O,x,k)}).catch(function(R){if(self.clearTimeout(b.requestTimeout),O.aborted)return;var k=R&&R.code||0,M=R?R.message:null;S.onError({code:k,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,O){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&&O(T,S,I.flush(),x),Promise.resolve(new ArrayBuffer(0));var k=R.value,M=k.length;return T.loaded+=M,M<b||I.dataLength?(I.push(k),I.dataLength>=b&&O(T,S,I.flush(),x)):O(T,S,k,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=s},"./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 O=1;O<arguments.length;O++){var I=arguments[O];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+)?$/,l=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,t={left:"start",center:"center",right:"end",start:"start",end:"end"};function a(b,O,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)}),k=Object(o.toTimescaleFromScale)(O,1,I);try{R.forEach(function(M){return L(s(M,k))})}catch(M){N(M)}}function s(b,O){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(U,K){return U[K]=N.getAttribute("ttp:"+K)||D[K],U},{}),k=N.getAttribute("xml:space")!=="preserve",M=h(u(N,"styling","style")),j=h(u(N,"layout","region")),F=u(N,"body","[begin]");return[].map.call(F,function(U){var K=p(U,k);if(!K||!U.hasAttribute("begin"))return null;var V=x(U.getAttribute("begin"),R),z=x(U.getAttribute("dur"),R),Q=x(U.getAttribute("end"),R);if(V===null)throw y(U);if(Q===null){if(z===null)throw y(U);Q=V+z}var Z=new f.default(V-O,Q-O,K);Z.id=Object(r.generateCueId)(Z.startTime,Z.endTime,Z.text);var le=j[U.getAttribute("region")],ne=M[U.getAttribute("style")];Z.position=10,Z.size=80;var ve=g(le,ne,M),xe=ve.textAlign;if(xe){var _e=t[xe];_e&&(Z.lineAlign=_e),Z.align=xe}return i(Z,ve),Z}).filter(function(U){return U!==null})}function u(b,O,I){var L=b.getElementsByTagName(O)[0];return L?[].slice.call(L.querySelectorAll(I)):[]}function h(b){return b.reduce(function(O,I){var L=I.getAttribute("xml:id");return L&&(O[L]=I),O},{})}function p(b,O){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,O):O?I+L.textContent.trim().replace(/\s+/g," "):I+L.textContent},"")}function g(b,O,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(k,M){var j=v(O,L,M)||v(b,L,M)||v(N,L,M);return j&&(k[M]=j),k},{})}function v(b,O,I){return b&&b.hasAttributeNS(O,I)?b.getAttributeNS(O,I):null}function y(b){return new Error("Could not parse ttml timestamp "+b)}function x(b,O){if(!b)return null;var I=Object(m.parseTimeStamp)(b);return I===null&&(e.test(b)?I=T(b,O):l.test(b)&&(I=S(b,O))),I}function T(b,O){var I=e.exec(b),L=(I[4]|0)+(I[5]|0)/O.subFrameRate;return(I[1]|0)*3600+(I[2]|0)*60+(I[3]|0)+L/O.frameRate}function S(b,O){var I=l.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/O.frameRate;case"t":return L/O.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,l=new Array(e>1?e-1:0),t=1;t<e;t++)l[t-1]=arguments[t];l.forEach(function(a){f[a]=n[a]?n[a].bind(n):c(a)})}function r(n){if(self.console&&n===!0||typeof n=="object"){o(n,"debug","log","info","warn","error");try{f.log()}catch(e){f=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 l}),A.d(C,"writeUint32",function(){return t}),A.d(C,"findBox",function(){return a}),A.d(C,"parseSegmentIndex",function(){return s}),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 O}),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=l(N,D);return R<0?4294967296+R:R}function l(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 k=N.byteLength,M=0;M<k;){var j=e(N,M),F=i(N.subarray(M+4,M+8)),U=j>1?M+j:k;if(F===D[0])if(D.length===1)R.push(N.subarray(M+8,U));else{var K=a(N.subarray(M+8,U),D.slice(1));K.length&&o.apply(R,K)}M=U}return R}function s(N){var D=[],R=N[0],k=8,M=e(N,k);k+=4;var j=0,F=0;R===0?k+=8:k+=16,k+=2;var U=N.length+F,K=n(N,k);k+=2;for(var V=0;V<K;V++){var z=k,Q=e(N,z);z+=4;var Z=Q&2147483647,le=(Q&2147483648)>>>31;if(le===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var ne=e(N,z);z+=4,D.push({referenceSize:Z,subsegmentDuration:ne,info:{duration:ne/M,start:U,end:U+Z-1}}),U+=Z,z+=4,k=z}return{earliestPresentationTime:j,timescale:M,version:R,referencesCount:K,references:D}}function u(N){for(var D=[],R=a(N,["moov","trak"]),k=0;k<R.length;k++){var M=R[k],j=a(M,["tkhd"])[0];if(j){var F=j[0],U=F===0?12:20,K=e(j,U),V=a(M,["mdia","mdhd"])[0];if(V){F=V[0],U=F===0?12:20;var z=e(V,U),Q=a(M,["mdia","hdlr"])[0];if(Q){var Z=i(Q.subarray(8,12)),le={soun:m.ElementaryStreamTypes.AUDIO,vide:m.ElementaryStreamTypes.VIDEO}[Z];if(le){var ne=a(M,["mdia","minf","stbl","stsd"])[0],ve=void 0;ne&&(ve=i(ne.subarray(12,16))),D[K]={timescale:z,type:le},D[le]={timescale:z,id:K,codec:ve}}}}}}var xe=a(N,["moov","mvex","trex"]);return xe.forEach(function(_e){var Be=e(_e,4),me=D[Be];me&&(me.default={duration:e(_e,12),flags:e(_e,20)})}),D}function h(N,D){return a(D,["moof","traf"]).reduce(function(R,k){var M=a(k,["tfdt"])[0],j=M[0],F=a(k,["tfhd"]).reduce(function(U,K){var V=e(K,4),z=N[V];if(z){var Q=e(M,4);j===1&&(Q*=Math.pow(2,32),Q+=e(M,8));var Z=z.timescale||9e4,le=Q/Z;if(isFinite(le)&&(U===null||le<U))return le}return U},null);return F!==null&&isFinite(F)&&(R===null||F<R)?F:R},null)||0}function p(N,D){for(var R=0,k=0,M=0,j=a(N,["moof","traf"]),F=0;F<j.length;F++){var U=j[F],K=a(U,["tfhd"])[0],V=e(K,4),z=D[V];if(!z)continue;var Q=z.default,Z=e(K,0)|(Q==null?void 0:Q.flags),le=Q==null?void 0:Q.duration;Z&8&&(Z&2?le=e(K,12):le=e(K,8));for(var ne=z.timescale||9e4,ve=a(U,["trun"]),xe=0;xe<ve.length;xe++){if(R=g(ve[xe]),!R&&le){var _e=e(ve[xe],4);R=le*_e}z.type===m.ElementaryStreamTypes.VIDEO?k+=R/ne:z.type===m.ElementaryStreamTypes.AUDIO&&(M+=R/ne)}}if(k===0&&M===0){for(var Be=0,me=a(N,["sidx"]),Fe=0;Fe<me.length;Fe++){var ie=s(me[Fe]);ie!=null&&ie.references&&(Be+=ie.references.reduce(function(te,Ge){return te+Ge.info.duration||0},0))}return Be}return k||M}function g(N){var D=e(N,0),R=8;D&1&&(R+=4),D&4&&(R+=4);for(var k=0,M=e(N,4),j=0;j<M;j++){if(D&256){var F=e(N,R);k+=F,R+=4}D&512&&(R+=4),D&1024&&(R+=4),D&2048&&(R+=4)}return k}function v(N,D,R){a(D,["moof","traf"]).forEach(function(k){a(k,["tfhd"]).forEach(function(M){var j=e(M,4),F=N[j];if(!F)return;var U=F.timescale||9e4;a(k,["tfdt"]).forEach(function(K){var V=K[0],z=e(K,4);if(V===0)z-=R*U,z=Math.max(z,0),t(K,4,z);else{z*=Math.pow(2,32),z+=e(K,8),z-=R*U,z=Math.max(z,0);var Q=Math.floor(z/(c+1)),Z=Math.floor(z%(c+1));t(K,4,Q),t(K,8,Z)}})})})}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 k=R[R.length-1];return D.valid=Object(w.sliceUint8)(N,0,k.byteOffset-8),D.remainder=Object(w.sliceUint8)(N,k.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=[],k=D.samples,M=D.timescale,j=D.id,F=!1,U=a(k,["moof"]);return U.map(function(K){var V=K.byteOffset-8,z=a(K,["traf"]);z.map(function(Q){var Z=a(Q,["tfdt"]).map(function(le){var ne=le[0],ve=e(le,4);return ne===1&&(ve*=Math.pow(2,32),ve+=e(le,8)),ve/M})[0];return Z!==void 0&&(N=Z),a(Q,["tfhd"]).map(function(le){var ne=e(le,4),ve=e(le,0)&16777215,xe=(ve&1)!==0,_e=(ve&2)!==0,Be=(ve&8)!==0,me=0,Fe=(ve&16)!==0,ie=0,te=(ve&32)!==0,Ge=8;ne===j&&(xe&&(Ge+=8),_e&&(Ge+=4),Be&&(me=e(le,Ge),Ge+=4),Fe&&(ie=e(le,Ge),Ge+=4),te&&(Ge+=4),D.type==="video"&&(F=S(D.codec)),a(Q,["trun"]).map(function(oe){var Y=oe[0],G=e(oe,0)&16777215,X=(G&1)!==0,fe=0,de=(G&4)!==0,Ce=(G&256)!==0,Me=0,ue=(G&512)!==0,Ae=0,Te=(G&1024)!==0,Je=(G&2048)!==0,At=0,qe=e(oe,4),Re=8;X&&(fe=e(oe,Re),Re+=4),de&&(Re+=4);for(var Lt=fe+V,$e=0;$e<qe;$e++){if(Ce?(Me=e(oe,Re),Re+=4):Me=me,ue?(Ae=e(oe,Re),Re+=4):Ae=ie,Te&&(Re+=4),Je&&(Y===0?At=e(oe,Re):At=l(oe,Re),Re+=4),D.type===m.ElementaryStreamTypes.VIDEO)for(var Et=0;Et<Ae;){var Ut=e(k,Lt);Lt+=4;var Bt=k[Lt]&31;if(b(F,Bt)){var _t=k.subarray(Lt,Lt+Ut);O(_t,N+At/M,R)}Lt+=Ut,Et+=Ut+4}N+=Me/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 O(N,D,R){var k=I(N),M=0;M++;for(var j=0,F=0,U=!1,K=0;M<k.length;){j=0;do{if(M>=k.length)break;K=k[M++],j+=K}while(K===255);F=0;do{if(M>=k.length)break;K=k[M++],F+=K}while(K===255);var V=k.length-M;if(!U&&j===4&&M<k.length){U=!0;var z=k[M++];if(z===181){var Q=n(k,M);if(M+=2,Q===49){var Z=e(k,M);if(M+=4,Z===1195456820){var le=k[M++];if(le===3){var ne=k[M++],ve=31&ne,xe=64&ne,_e=xe?2+ve*3:0,Be=new Uint8Array(_e);if(xe){Be[0]=ne;for(var me=1;me<_e;me++)Be[me]=k[M++]}R.push({type:le,payloadType:j,pts:D,bytes:Be})}}}}}else if(j===5&&F<V){if(U=!0,F>16){for(var Fe=[],ie=0;ie<16;ie++){var te=k[M++].toString(16);Fe.push(te.length==1?"0"+te:te),(ie===3||ie===5||ie===7||ie===9)&&Fe.push("-")}for(var Ge=F-16,oe=new Uint8Array(Ge),Y=0;Y<Ge;Y++)oe[Y]=k[M++];R.push({payloadType:j,pts:D,uuid:Fe.join(""),userData:Object(f.utf8ArrayToStr)(oe),userDataBytes:oe})}}else if(F<V)M+=F;else if(F>V)break}}function I(N){for(var D=N.byteLength,R=[],k=1;k<D-2;)N[k]===0&&N[k+1]===0&&N[k+2]===3?(R.push(k+2),k+=2):k++;if(R.length===0)return N;var M=D-R.length,j=new Uint8Array(M),F=0;for(k=0;k<M;F++,k++)F===R[0]&&(F++,R.shift()),j[k]=N[F];return j}function L(N){var D=N[0],R="",k="",M=0,j=0,F=0,U=0,K=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";)k+=i(N.subarray(V,V+1)),V+=1;k+=i(N.subarray(V,V+1)),V+=1,M=e(N,12),j=e(N,16),U=e(N,20),K=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 Q=e(N,V);for(V+=4,F=Math.pow(2,32)*z+Q,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")),U=e(N,V),V+=4,K=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";)k+=i(N.subarray(V,V+1)),V+=1;k+=i(N.subarray(V,V+1)),V+=1}var Z=N.subarray(V,N.byteLength);return{schemeIdUri:R,value:k,timeScale:M,presentationTime:F,presentationTimeDelta:j,eventDuration:U,id:K,payload:Z}}},"./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 l;try{l=new Event("addtrack")}catch(t){l=document.createEvent("Event"),l.initEvent("addtrack",!1,!1)}l.track=n,e.dispatchEvent(l)}function f(n,e){var l=n.mode;if(l==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(a){w.logger.debug("[texttrack-utils]: "+a);var t=new self.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}l==="disabled"&&(n.mode=l)}function c(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var l=n.cues.length;l--;)n.removeCue(n.cues[l]);e==="disabled"&&(n.mode=e)}function o(n,e,l,t){var a=n.mode;if(a==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var s=i(n.cues,e,l),u=0;u<s.length;u++)(!t||t(s[u]))&&n.removeCue(s[u]);a==="disabled"&&(n.mode=a)}function r(n,e){if(e<n[0].startTime)return 0;var l=n.length-1;if(e>n[l].endTime)return-1;for(var t=0,a=l;t<=a;){var s=Math.floor((a+t)/2);if(e<n[s].startTime)a=s-1;else if(e>n[s].startTime&&t<l)t=s+1;else return s}return n[t].startTime-e<e-n[a].startTime?t:a}function i(n,e,l){var t=[],a=r(n,e);if(a>-1)for(var s=a,u=n.length;s<u;s++){var h=n[s];if(h.startTime>=e&&h.endTime<=l)t.push(h);else if(h.startTime>l)return t}return t}},"./src/utils/time-ranges.ts":function(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 l=r*i*n;return e?Math.round(l):l}function f(r,i,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),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 l=e.toLowerCase();return~n.indexOf(l)?l:!1}function c(n){return f(w,n)}function o(n){return f(m,n)}function r(n){for(var e=arguments.length,l=new Array(e>1?e-1:0),t=1;t<e;t++)l[t-1]=arguments[t];for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var u in s)n[u]=s[u]}return n}function i(n,e,l){var t=this,a={enumerable:!0};t.hasBeenReset=!1;var s="",u=!1,h=n,p=e,g=l,v=null,y="",x=!0,T="auto",S="start",b=50,O="middle",I=50,L="middle";Object.defineProperty(t,"id",r({},a,{get:function(){return s},set:function(D){s=""+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 O},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");O=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 l});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 s=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return s?parseFloat(s[2])>59?a(s[2],s[3],0,s[4]):a(s[1],s[2],s[3],s[4]):null}var c=function(){function t(){this.values=Object.create(null)}var a=t.prototype;return a.set=function(u,h){!this.get(u)&&h!==""&&(this.values[u]=h)},a.get=function(u,h,p){return p?this.has(u)?this.values[u]:h[p]:this.has(u)?this.values[u]:h},a.has=function(u){return u in this.values},a.alt=function(u,h,p){for(var 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,s,u){var h=u?t.split(u):[t];for(var p in h){if(typeof h[p]!="string")continue;var g=h[p].split(s);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,s){var u=t;function h(){var v=f(t);if(v===null)throw new Error("Malformed timestamp: "+u);return t=t.replace(/^[^\sa-zA-Z-]+/,""),v}function p(v,y){var x=new c;o(v,function(b,O){var I;switch(b){case"region":for(var L=s.length-1;L>=0;L--)if(s[L].id===O){x.set(b,s[L].region);break}break;case"vertical":x.alt(b,O,["rl","lr"]);break;case"line":I=O.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=O.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,O);break;case"align":x.alt(b,O,["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 l=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 O=S.slice(0,b);return S[b]==="\r"&&++b,S[b]===`
|
|
|
`&&++b,h.buffer=S.slice(b),O}function g(S){o(S,function(b,O){},/:/)}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 l}),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 l(s,u,h){return e(s.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(s,u,h,p,g,v,y,x){var T=new m.VTTParser,S=Object(f.utf8ArrayToStr)(new Uint8Array(s)).trim().replace(r,`
|
|
|
`).split(`
|
|
|
`),b=[],O=Object(c.toMpegTsClockFromTimescale)(u,h),I="00:00.000",L=0,N=0,D,R=!0;T.oncue=function(k){var M=p[g],j=p.ccOffset,F=(L-O)/9e4;M!=null&&M.new&&(N!==void 0?j=p.ccOffset=M.start:t(p,g,F)),F&&(j=F-p.presentationOffset);var U=k.endTime-k.startTime,K=Object(o.normalizePts)((k.startTime+j-N)*9e4,v*9e4)/9e4;k.startTime=Math.max(K,0),k.endTime=Math.max(K+U,0);var V=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(V)),k.id||(k.id=l(k.startTime,k.endTime,V)),k.endTime>0&&b.push(k)},T.onparsingerror=function(k){D=k},T.onflush=function(){if(D){x(D);return}y(b)},S.forEach(function(k){if(R)if(i(k,"X-TIMESTAMP-MAP=")){R=!1,k.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 k===""&&(R=!1);T.parse(k+`
|
|
|
`)}),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,l){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=e,this.callbacks=l,this.retryDelay=e.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var l=this.loader=new self.XMLHttpRequest,t=this.stats;t.loading.first=0,t.loaded=0;var a=this.xhrSetup;try{if(a)try{a(l,e.url)}catch(h){l.open("GET",e.url,!0),a(l,e.url)}l.readyState||l.open("GET",e.url,!0);var s=this.context.headers;if(s)for(var u in s)l.setRequestHeader(u,s[u])}catch(h){this.callbacks.onError({code:l.status,text:h.message},e,l);return}e.rangeEnd&&l.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),l.onreadystatechange=this.readystatechange.bind(this),l.onprogress=this.loadprogress.bind(this),l.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),l.send()},r.readystatechange=function(){var n=this.context,e=this.loader,l=this.stats;if(!n||!e)return;var t=e.readyState,a=this.config;if(l.aborted)return;if(t>=2)if(self.clearTimeout(this.requestTimeout),l.loading.first===0&&(l.loading.first=Math.max(self.performance.now(),l.loading.start)),t===4){e.onreadystatechange=null,e.onprogress=null;var s=e.status;if(s>=200&&s<300){l.loading.end=Math.max(self.performance.now(),l.loading.first);var u,h;if(n.responseType==="arraybuffer"?(u=e.response,h=u.byteLength):(u=e.responseText,h=u.length),l.loaded=l.total=h,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(l,n,u,e),!this.callbacks)return;var g={url:e.responseURL,data:u};this.callbacks.onSuccess(g,l,n,e)}else l.retry>=a.maxRetry||s>=400&&s<499?(w.logger.error(s+" while loading "+n.url),this.callbacks.onError({code:s,text:e.statusText},n,e)):(w.logger.warn(s+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),l.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},r.loadtimeout=function(){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 _=d("ProS"),E=d("2B6p"),C=E.updateCenterAndZoom;_.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})}),_.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 _=d("bLfw");_.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 _=d("SrGk"),E=d("bYtY");function C(m,f){_.call(this,m,f,["filter"],"__filter_in_use__","_shadowDom")}E.inherits(C,_),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;_.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,l,t;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)n=o.shadowOffsetX||0,e=o.shadowOffsetY||0,l=o.shadowBlur,t=o.shadowColor;else if(o.textShadowBlur)n=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,l=o.textShadowBlur,t=o.textShadowColor;else{this.removeDom(f,o);return}c.setAttribute("dx",n/r),c.setAttribute("dy",e/i),c.setAttribute("flood-color",t);var a=l/2/r,s=l/2/i,u=a+" "+s;c.setAttribute("stdDeviation",u),f.setAttribute("x","-100%"),f.setAttribute("y","-100%"),f.setAttribute("width",Math.ceil(l/2*200)+"%"),f.setAttribute("height",Math.ceil(l/2*200)+"%"),f.appendChild(c),m._shadowDom=f},C.prototype.markUsed=function(m){m._shadowDom&&_.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 _=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,l,t,a){var s=this.group;s.removeAll();var u=this._axisGroup;this._axisGroup=new C.Group;var h=A.layout(e),p=new E(e,h);_.each(o,p.add,p),s.add(this._axisGroup),s.add(p.getGroup()),_.each(r,function(g){e.get(g+".show")&&this["_"+g](e)},this),C.groupTransition(u,this._axisGroup,e),i.superCall(this,"render",e,l,t,a)},remove:function(){c(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var t=e.getModel("splitLine"),a=t.getModel("lineStyle"),s=a.get("width"),u=a.get("color");u=u instanceof Array?u:[u];for(var h=e.coordinateSystem.getRect(),p=l.isHorizontal(),g=[],v=0,y=l.getTicksCoords({tickModel:t}),x=[],T=[],S=0;S<y.length;++S){var b=l.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 O=v++%u.length;g[O]=g[O]||[],g[O].push(new C.Line({subPixelOptimize:!0,shape:{x1:x[0],y1:x[1],x2:T[0],y2:T[1]},style:{lineWidth:s},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(s),lineWidth:s},silent:!0}))},_splitArea:function(e){f(this,this._axisGroup,e,e)}}),n=i;H.exports=n},vWvF:function(H,B,d){var _=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 s,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&&(s=v)}else s=h;if(!s){E('Property "'+t+'" is not existed in element '+h.id);return}var T=h.animators,S=new _(s,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,s=a.length,u=0;u<s;u++)a[u].stop(t);return a.length=0,this},animateTo:function(t,a,s,u,h,p){r(this,t,a,s,u,h,p)},animateFrom:function(t,a,s,u,h,p){r(this,t,a,s,u,h,p,!0)}};function r(l,t,a,s,u,h,p,g){A(s)?(h=u,u=s,s=0):w(u)?(h=u,u="linear",s=0):w(s)?(h=s,s=0):w(a)?(h=a,a=500):a||(a=500),l.stopAnimation(),i(l,"",l,t,a,s,g);var v=l.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(l,t,a,s,u,h,p){var g={},v=0;for(var y in s){if(!s.hasOwnProperty(y))continue;a[y]!=null?m(s[y])&&!f(s[y])?i(l,t?t+"."+y:y,a[y],s[y],u,h,p):(p?(g[y]=a[y],n(l,t,y,s[y])):g[y]=s[y],v++):s[y]!=null&&!p&&n(l,t,y,s[y])}v>0&&l.animate(t,!1).when(u==null?500:u,g).delay(h||0)}function n(l,t,a,s){if(!t)l.attr(a,s);else{var u={};u[t]={},u[t][a]=s,l.attr(u)}}var e=o;H.exports=e},vZ6x:function(H,B,d){var _=d("Tghj"),E=_.__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,O){var I=this._targetInfoList=[],L={},N=t(b,S);f(a,function(D,R){(!O||!O.include||c(O.include,R)>=0)&&D(N,I,L)})}var e=n.prototype;e.setOutputRanges=function(S,b){this.matchOutputRanges(S,b,function(O,I,L){if((O.coordRanges||(O.coordRanges=[])).push(I),!O.coordRange){O.coordRange=I;var N=h[O.brushType](0,L,I);O.__rangeOffset={offset:g[O.brushType](N.values,O.range,[1,1]),xyMinMax:N.xyMinMax}}})},e.matchOutputRanges=function(S,b,O){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);O(I,D.values,N,b)})},this)},e.setInputRanges=function(S,b){f(S,function(O){var I=this.findTargetInfo(O,b);if(O.range=O.range||[],I&&I!==!0){O.panelId=I.panelId;var L=h[O.brushType](0,I.coordSys,O.coordRange),N=O.__rangeOffset;O.range=N?g[O.brushType](L.values,N.offset,y(L.xyMinMax,N.xyMinMax)):L.values}},this)},e.makePanelOpts=function(S,b){return C.map(this._targetInfoList,function(O){var I=O.getPanelRect();return{panelId:O.panelId,defaultBrushType:b&&b(O),clipPath:m.makeRectPanelClipPath(I),isTargetByCursor:m.makeRectIsTargetByCursor(I,S,O.coordSysModel),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(S,b,O){var I=this.findTargetInfo(S,O);return I===!0||I&&c(I.coordSyses,b.coordinateSystem)>=0},e.findTargetInfo=function(S,b){for(var O=this._targetInfoList,I=t(b,S),L=0;L<O.length;L++){var N=O[L],D=S.panelId;if(D){if(N.panelId===D)return N}else for(var L=0;L<s.length;L++)if(s[L](I,N))return N}return!0};function l(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 O=S.xAxisModels,I=S.yAxisModels,L=S.gridModels,N=C.createHashMap(),D={},R={};if(!O&&!I&&!L)return;f(O,function(k){var M=k.axis.grid.model;N.set(M.id,M),D[M.id]=!0}),f(I,function(k){var M=k.axis.grid.model;N.set(M.id,M),R[M.id]=!0}),f(L,function(k){N.set(k.id,k),D[k.id]=!0,R[k.id]=!0}),N.each(function(k){var M=k.coordinateSystem,j=[];f(M.getCartesians(),function(F,U){(c(O,F.getAxis("x").model)>=0||c(I,F.getAxis("y").model)>=0)&&j.push(F)}),b.push({panelId:"grid--"+k.id,gridModel:k,coordSysModel:k,coordSys:j[0],coordSyses:j,getPanelRect:u.grid,xAxisDeclared:D[k.id],yAxisDeclared:R[k.id]})})},geo:function(S,b){f(S.geoModels,function(O){var I=O.coordinateSystem;b.push({panelId:"geo--"+O.id,geoModel:O,coordSysModel:O,coordSys:I,coordSyses:[I],getPanelRect:u.geo})})}},s=[function(S,b){var O=S.xAxisModel,I=S.yAxisModel,L=S.gridModel;return!L&&O&&(L=O.axis.grid.model),!L&&I&&(L=I.axis.grid.model),L&&L===b.gridModel},function(S,b){var O=S.geoModel;return O&&O===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,O){var I=b[r[S]]([O[0][0],O[1][0]]),L=b[r[S]]([O[0][1],O[1][1]]),N=[l([I[0],L[0]]),l([I[1],L[1]])];return{values:N,xyMinMax:N}},polygon:function(S,b,O){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],L=C.map(O,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,O,I){var L=O.getAxis(["x","y"][S]),N=l(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,O){return[[S[0][0]-O[0]*b[0][0],S[0][1]-O[0]*b[0][1]],[S[1][0]-O[1]*b[1][0],S[1][1]-O[1]*b[1][1]]]},polygon:function(S,b,O){return C.map(S,function(I,L){return[I[0]-O[0]*b[L][0],I[1]-O[1]*b[L][1]]})}};function v(S,b,O,I){return[b[0]-I[S]*O[0],b[1]-I[S]*O[1]]}function y(S,b){var O=x(S),I=x(b),L=[O[0]/I[0],O[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 _=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)}});_.mixin(w,A,!0);var m=w;H.exports=m},vafp:function(H,B,d){var _=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,l=0;l<n.length;l++){var t=n[l];if(i.type==="Polygon")n[l]=A(t,e[l],f);else if(i.type==="MultiPolygon")for(var a=0;a<t.length;a++){var s=t[a];t[a]=A(s,e[l][a],f)}}return 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,l=m.charCodeAt(n+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=r,l+=i,r=e,i=l,o.push([e/c,l/c])}return o}function w(m,f){return C(m),_.map(_.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"&&_.each(i,function(l){l[0]&&n.push({type:"polygon",exterior:l[0],interiors:l.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 _=d("ProS");d("0qV/"),_.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=_,B.stopEvent=E,B.setCapture=c,B.releaseCapture=o;function _(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 _=E(d("RZPm"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},w4Tj:function(H,B,d){"use strict";d.d(B,"a",function(){return C});var _=d("oZsa");function E(A,w){for(;!Object.prototype.hasOwnProperty.call(A,w)&&!(A=Object(_.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 _=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(_.a)(Object(_.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 _=E(d("apAg"));function E(A){return A&&A.__esModule?A:{default:A}}var C=_;B.default=C,H.exports=C},w7YG:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(_){return function(){var E=_,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=[],l=0;l<256;l++)e[l]=l;for(var l=0,t=0;l<256;l++){var a=l%n,s=i[a>>>2]>>>24-a%4*8&255;t=(t+e[l]+s)%256;var u=e[l];e[l]=e[t],e[t]=u}this._i=this._j=0},_doProcessBlock:function(r,i){r[i]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var o=this._S,r=this._i,i=this._j,n=0,e=0;e<4;e++){r=(r+1)%256,i=(i+o[r])%256;var l=o[r];o[r]=o[i],o[i]=l,n|=o[(o[r]+o[i])%256]<<24-e*8}return this._i=r,this._j=i,n}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)}(),_.RC4})},wCAj:function(H,B,d){"use strict";var _=d("cDf5"),E=d.n(_),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"),l=d("VTBJ"),t=d("KQm4"),a=d("U8pU"),s=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"),O=d("bdgK"),I="rc-observer-key",L=function(vt){Object(y.a)(vr,vt);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(l.a)(Object(l.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 O.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(vt){return null}var k=R;function M(vt){return null}var j=M,F=d("Ff2n"),U="RC_TABLE_KEY";function K(vt){return vt==null?[]:Array.isArray(vt)?vt:[vt]}function V(vt,mr){if(!mr&&typeof mr!="number")return vt;for(var vr=K(mr),Fr=vt,nn=0;nn<vr.length;nn+=1){if(!Fr)return null;var cn=vr[nn];Fr=Fr[cn]}return Fr}function z(vt){var mr=[],vr={};return vt.forEach(function(Fr){for(var nn=Fr||{},cn=nn.key,tn=nn.dataIndex,Ln=cn||K(tn).join("-")||U;vr[Ln];)Ln="".concat(Ln,"_next");vr[Ln]=!0,mr.push(Ln)}),mr}function Q(){var vt={};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(vt,cn)}),vt}function Z(vt){return vt!=null}function le(vt){return vt&&Object(a.a)(vt)==="object"&&!Array.isArray(vt)&&!o.isValidElement(vt)}function ne(vt){return typeof vt=="string"?!0:Object(b.c)(vt)}function ve(vt,mr){var vr,Fr=vt.prefixCls,nn=vt.className,cn=vt.record,tn=vt.index,Ln=vt.dataIndex,Tn=vt.render,Xn=vt.children,ci=vt.component,Jn=ci===void 0?"td":ci,pi=vt.colSpan,Si=vt.rowSpan,Ni=vt.fixLeft,xi=vt.fixRight,yi=vt.firstFixLeft,vi=vt.lastFixLeft,Ti=vt.firstFixRight,Ui=vt.lastFixRight,$i=vt.appendNode,Di=vt.additionalProps,ua=Di===void 0?{}:Di,aa=vt.ellipsis,Gi=vt.align,Vi=vt.rowType,ta=vt.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);le(_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(l.a)(Object(l.a)(Object(l.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(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},ua.style),Ga),Ca),ja),ref:ne(Jn)?mr:null});return o.createElement(Jn,Object.assign({},qa),$i,ra)}var xe=o.forwardRef(ve);xe.displayName="Cell";var _e=o.memo(xe,function(vt,mr){return mr.shouldCellUpdate?!mr.shouldCellUpdate(mr.record,vt.record):!1}),Be=_e,me=o.createContext(null),Fe=me;function ie(vt,mr,vr,Fr,nn){var cn=vr[vt]||{},tn=vr[mr]||{},Ln,Tn;cn.fixed==="left"?Ln=Fr.left[vt]:tn.fixed==="right"&&(Tn=Fr.right[mr]);var Xn=!1,ci=!1,Jn=!1,pi=!1,Si=vr[mr+1],Ni=vr[vt-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 te(vt){var mr=vt.cells,vr=vt.stickyOffsets,Fr=vt.flattenColumns,nn=vt.rowComponent,cn=vt.cellComponent,tn=vt.onHeaderRow,Ln=vt.index,Tn=o.useContext(Fe),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=ie(Si.colStart,Si.colEnd,Fr,vr,ci),vi;return xi&&xi.onHeaderCell&&(vi=Si.column.onHeaderCell(xi)),o.createElement(Be,Object.assign({},Si,{ellipsis:xi.ellipsis,align:xi.align,component:cn,prefixCls:Xn,key:pi[Ni]},yi,{additionalProps:vi,rowType:"header"}))}))}te.displayName="HeaderRow";var Ge=te;function oe(vt){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(vt,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 Y(vt){var mr=vt.stickyOffsets,vr=vt.columns,Fr=vt.flattenColumns,nn=vt.onHeaderRow,cn=o.useContext(Fe),tn=cn.prefixCls,Ln=cn.getComponent,Tn=o.useMemo(function(){return oe(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(Ge,{key:Si,flattenColumns:Fr,cells:pi,stickyOffsets:mr,rowComponent:ci,cellComponent:Jn,onHeaderRow:nn,index:Si});return Ni}))}var G=Y,X="RC_TABLE_INTERNAL_COL_DEFINE";function fe(vt){var mr=vt.expandable,vr=Object(F.a)(vt,["expandable"]);return"expandable"in vt?Object(l.a)(Object(l.a)({},vr),mr):vr}function de(vt){return Object.keys(vt).reduce(function(mr,vr){return(vr.substr(0,5)==="data-"||vr.substr(0,5)==="aria-")&&(mr[vr]=vt[vr]),mr},{})}function Ce(vt){for(var mr=vt.colWidths,vr=vt.columns,Fr=vt.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[X];(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 Me=Ce;function ue(vt,mr){return Object(o.useMemo)(function(){for(var vr=[],Fr=0;Fr<mr;Fr+=1){var nn=vt[Fr];if(nn!==void 0)vr[Fr]=nn;else return null}return vr},[vt.join("_"),mr])}var Ae=o.forwardRef(function(vt,mr){var vr=vt.noData,Fr=vt.columns,nn=vt.flattenColumns,cn=vt.colWidths,tn=vt.columCount,Ln=vt.stickyOffsets,Tn=vt.direction,Xn=vt.fixHeader,ci=vt.offsetHeader,Jn=vt.stickyClassName,pi=vt.onScroll,Si=Object(F.a)(vt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Ni=o.useContext(Fe),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(l.a)(Object(l.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=ue(cn,tn);return o.createElement("div",{style:Object(l.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(Me,{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}))))});Ae.displayName="FixedHeader";var Te=Ae,Je=o.createContext(null),At=Je;function qe(vt){var mr=vt.prefixCls,vr=vt.children,Fr=vt.component,nn=vt.cellComponent,cn=vt.fixHeader,tn=vt.fixColumn,Ln=vt.horizonScroll,Tn=vt.className,Xn=vt.expanded,ci=vt.componentWidth,Jn=vt.colSpan,pi=o.useContext(Fe),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(Be,{component:nn,prefixCls:mr,colSpan:Jn},Ni))},[vr,Fr,cn,Ln,Tn,Xn,ci,Jn,Si])}var Re=qe;function Lt(vt){var mr=vt.className,vr=vt.style,Fr=vt.record,nn=vt.index,cn=vt.rowKey,tn=vt.getRowKey,Ln=vt.rowExpandable,Tn=vt.expandedKeys,Xn=vt.onRow,ci=vt.indent,Jn=ci===void 0?0:ci,pi=vt.rowComponent,Si=vt.cellComponent,Ni=vt.childrenColumnName,xi=o.useContext(Fe),yi=xi.prefixCls,vi=xi.fixedInfoList,Ti=o.useContext(At),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(s.a)(Ra,2),ja=Ao[0],Ya=Ao[1],Ia=Tn&&Tn.has(vt.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,tt=new Array(ha>1?ha-1:0),cr=1;cr<ha;cr++)tt[cr-1]=arguments[cr];(Fa=uo).onClick.apply(Fa,[Ja].concat(tt))}},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(l.a)(Object(l.a)({},vr),uo?uo.style:null),onClick:Ga}),aa.map(function(go,Ja){var Fa=go.render,ha=go.dataIndex,tt=go.className,cr=oa[Ja],kr=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(Be,Object.assign({className:tt,ellipsis:go.ellipsis,align:go.align,component:Si,prefixCls:yi,key:cr,record:Fr,index:nn,dataIndex:ha,render:Fa,shouldCellUpdate:go.shouldCellUpdate},kr,{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(Re,{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(Lt,Object.assign({},vt,{key:Fa,rowKey:Fa,record:go,recordKey:Fa,index:Ja,indent:Jn+1}))})),o.createElement(o.Fragment,null,qa,oo,_o)}Lt.displayName="BodyRow";var $e=Lt,Et=o.createContext(null),Ut=Et;function Bt(vt){var mr=vt.columnKey,vr=vt.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 _t(vt){var mr=vt.data,vr=vt.getRowKey,Fr=vt.measureColumnWidth,nn=vt.expandedKeys,cn=vt.onRow,tn=vt.rowExpandable,Ln=vt.emptyNode,Tn=vt.childrenColumnName,Xn=o.useContext(Ut),ci=Xn.onColumnResize,Jn=o.useContext(Fe),pi=Jn.prefixCls,Si=Jn.getComponent,Ni=o.useContext(At),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($e,{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(Re,{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(Bt,{key:Gi,columnKey:Gi,onColumnResize:ci})})),ua)},[mr,pi,cn,Fr,nn,vr,Si,Ti,Ln,vi])}var jt=o.memo(_t);jt.displayName="Body";var He=jt;function se(vt){return Object(S.a)(vt).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(l.a)({key:vr},cn);return nn&&(tn.children=se(nn)),tn})}function J(vt){return vt.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)(J(cn).map(function(tn){return Object(l.a)({fixed:nn},tn)}))):[].concat(Object(t.a)(mr),[Object(l.a)(Object(l.a)({},vr),{},{fixed:nn})])},[])}function Ue(vt){for(var mr=!0,vr=0;vr<vt.length;vr+=1){var Fr=vt[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=vt.length-1;cn>=0;cn-=1){var tn=vt[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 Le(vt){return vt.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(l.a)({fixed:nn},Fr)})}function ee(vt,mr){var vr=vt.prefixCls,Fr=vt.columns,nn=vt.children,cn=vt.expandable,tn=vt.expandedKeys,Ln=vt.getRowKey,Tn=vt.onTriggerExpand,Xn=vt.expandIcon,ci=vt.rowExpandable,Jn=vt.expandIconColumnIndex,pi=vt.direction,Si=vt.expandRowByClick,Ni=o.useMemo(function(){return Fr||se(nn)},[Fr,nn]),xi=o.useMemo(function(){if(cn){var Ti,Ui=Jn||0,$i=Ni[Ui],Di=(Ti={},Object(e.a)(Ti,X,{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"?Le(J(yi)):J(yi)},[yi,pi]);return[yi,vi]}var ct=ee,Mt=d("xEkU"),ot=d.n(Mt);function Yt(vt){var mr=Object(o.useRef)(vt),vr=Object(o.useState)({}),Fr=Object(s.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=ot()(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(){ot.a.cancel(cn.current)}},[]),[mr.current,Ln]}function or(vt){var mr=Object(o.useRef)(vt),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(vt,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+=vt[Tn]||0;var Xn=mr-Tn-1;nn[Xn]=tn,tn+=vt[Xn]||0}else{nn[Tn]=tn,tn+=vt[Tn]||0;var ci=mr-Tn-1;cn[ci]=Ln,Ln+=vt[ci]||0}return{left:nn,right:cn}},[vt,mr,vr]);return Fr}var ir=Zr;function dr(vt){var mr=vt.className,vr=vt.children;return o.createElement("div",{className:mr},vr)}var qt=dr;function Ht(vt){var mr=vt.className,vr=vt.index,Fr=vt.children,nn=vt.colSpan,cn=vt.rowSpan,tn=o.useContext(Fe),Ln=tn.prefixCls,Tn=tn.fixedInfoList,Xn=Tn[vr];return o.createElement(Be,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 lt(vt){return o.createElement("tr",Object.assign({},vt))}function Hr(vt){var mr=vt.children,vr=o.useContext(Fe),Fr=vr.prefixCls;return o.createElement("tfoot",{className:"".concat(Fr,"-summary")},mr)}var dn=Hr,Nn={Cell:Ht,Row:lt};function Wn(vt){var mr,vr=vt.prefixCls,Fr=vt.record,nn=vt.onExpand,cn=vt.expanded,tn=vt.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(vt,mr,vr){var Fr=[];function nn(cn){(cn||[]).forEach(function(tn,Ln){Fr.push(mr(tn,Ln)),nn(tn[vr])})}return nn(vt),Fr}var yn=d("zT1h"),Mn=d("y0+3"),Ft=function(mr,vr){var Fr,nn,cn=mr.scrollBodyRef,tn=mr.onScroll,Ln=mr.offsetScroll,Tn=o.useContext(Fe),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=Yt({scrollLeft:0,isHiddenScrollBar:!1}),xi=Object(s.a)(Ni,2),yi=xi[0],vi=xi[1],Ti=o.useRef({delta:0,x:0}),Ui=o.useState(!1),$i=Object(s.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(l.a)(Object(l.a)({},Da),{},{isHiddenScrollBar:!0})}):vi(function(Da){return Object(l.a)(Object(l.a)({},Da),{},{isHiddenScrollBar:!1})})},Xi=function(ra){vi(function(pa){return Object(l.a)(Object(l.a)({},pa),{},{scrollLeft:ra/ci*Jn||0})})};return o.useImperativeHandle(vr,function(){return{setScrollLeft:Xi}}),o.useEffect(function(){var ga=Object(yn.a)(document.body,"mouseup",aa,!1),ra=Object(yn.a)(document.body,"mousemove",Vi,!1);return ta(),function(){ga.remove(),ra.remove()}},[pi,Di]),o.useEffect(function(){var ga=Object(yn.a)(window,"scroll",ta,!1),ra=Object(yn.a)(window,"resize",ta,!1);return function(){ga.remove(),ra.remove()}},[]),o.useEffect(function(){yi.isHiddenScrollBar||vi(function(ga){var ra,pa;return Object(l.a)(Object(l.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)")}}))},bt=o.forwardRef(Ft);function Oe(vt,mr){return o.useMemo(function(){var vr=!!vt;return{isSticky:vr,stickyClassName:vr?"".concat(mr,"-sticky-header"):"",offsetHeader:Object(a.a)(vt)==="object"&&vt.offsetHeader||0,offsetScroll:Object(a.a)(vt)==="object"&&vt.offsetScroll||0}},[vt,mr])}var Ee=[],Ie={},Ye="rc-table-internal-hook",rt=o.memo(function(vt){var mr=vt.children;return mr},function(vt,mr){return h()(vt.props,mr.props)?vt.pingLeft!==mr.pingLeft||vt.pingRight!==mr.pingRight:!1});function ut(vt){var mr,vr=vt.prefixCls,Fr=vt.className,nn=vt.rowClassName,cn=vt.style,tn=vt.data,Ln=vt.rowKey,Tn=vt.scroll,Xn=vt.tableLayout,ci=vt.direction,Jn=vt.title,pi=vt.footer,Si=vt.summary,Ni=vt.id,xi=vt.showHeader,yi=vt.components,vi=vt.emptyText,Ti=vt.onRow,Ui=vt.onHeaderRow,$i=vt.internalHooks,Di=vt.transformColumns,ua=vt.internalRefs,aa=vt.sticky,Gi=tn||Ee,Vi=!!Gi.length,ta=o.useState(0),Xi=Object(s.a)(ta,2),ga=Xi[0],ra=Xi[1];o.useEffect(function(){ra(Object(D.a)())});var pa=o.useMemo(function(){return Q(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=fe(vt),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||Wn,Ro=oa||"children",Xa=o.useMemo(function(){return Va?"row":vt.expandable&&$i===Ye&&vt.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(s.a)(_o,2),Ja=go[0],Fa=go[1],ha=o.useMemo(function(){return new Set(ja||Ja||[])},[ja,Ja]),tt=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),kr=Object(s.a)(cr,2),Lr=kr[0],_n=kr[1],Vr=ct(Object(l.a)(Object(l.a)(Object(l.a)({},vt),Ra),{},{expandable:!!Va,expandedKeys:ha,getRowKey:Da,onTriggerExpand:tt,expandIcon:oo,expandIconColumnIndex:Ga,direction:ci}),$i===Ye?Di:null),_r=Object(s.a)(Vr,2),Pn=_r[0],Ur=_r[1],En=o.useMemo(function(){return{columns:Pn,flattenColumns:Ur}},[Pn,Ur]),jn=o.useRef(),Hn=o.useRef(),Bn=o.useRef(),ri=o.useState(!1),Yn=Object(s.a)(ri,2),ii=Yn[0],ai=Yn[1],Pi=o.useState(!1),bi=Object(s.a)(Pi,2),Ki=bi[0],Aa=bi[1],ea=Yt(new Map),Ji=Object(s.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=ir(Wi,Ur.length,ci),ca=Tn&&Z(Tn.y),ma=Tn&&Z(Tn.x),Pa=ma&&Ur.some(function(vo){var to=vo.fixed;return to}),La=o.useRef(),Za=Oe(aa,vr),eo=Za.isSticky,ko=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),Po=Object(s.a)(Ta,2),Qo=Po[0],so=Po[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,Tt=Jo||Ie;if(!so()||so()===Tt){var Vt;Qo(Tt),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,Vn=Jo.clientWidth;ai(Ha>0),Aa(Ha<hn-Vn)}},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===Ye&&ua&&(ua.body.current=Bn.current)});var Ho=_a(["table"],"table"),zo=o.useMemo(function(){return Xn||(Pa?Tn.x==="max-content"?"auto":"fixed":ca||Ur.some(function(vo){var to=vo.ellipsis;return to})?"fixed":"auto")},[ca,Pa,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(He,{data:Gi,measureColumnWidth:ca||ma||eo,expandedKeys:ha,rowExpandable:uo,getRowKey:Da,onRow:Ti,emptyNode:Js,childrenColumnName:Ro}),gs=o.createElement(Me,{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===Pn.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(l.a)(Object(l.a)({},Mo),Lo),onScroll:ho,ref:Bn,className:i()("".concat(vr,"-body"))},o.createElement(Ho,{style:Object(l.a)(Object(l.a)({},Ba),{},{tableLayout:zo})},gs,Es,Ko),eo&&o.createElement(bt,{ref:La,offsetScroll:jo,scrollBodyRef:Bn,onScroll:ho})),rn=o.createElement(o.Fragment,null,xi!==!1&&o.createElement(Te,Object.assign({noData:!Gi.length},es,En,{direction:ci,offsetHeader:ko,stickyClassName:cs,ref:Hn,onScroll:ho})),bs)}else rn=o.createElement("div",{style:Object(l.a)(Object(l.a)({},Mo),Lo),className:i()("".concat(vr,"-content")),onScroll:ho,ref:Bn},o.createElement(Ho,{style:Object(l.a)(Object(l.a)({},Ba),{},{tableLayout:zo})},gs,xi!==!1&&o.createElement(G,Object.assign({},es,En)),Es,Ko));var ws=de(vt),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"),Pa),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(rt,{pingLeft:ii,pingRight:Ki,props:Object(l.a)(Object(l.a)({},vt),{},{stickyOffsets:qi,mergedExpandedKeys:ha})},Jn&&o.createElement(qt,{className:"".concat(vr,"-title")},Jn(Gi)),o.createElement("div",{className:"".concat(vr,"-container")},rn),pi&&o.createElement(qt,{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 ie(to,to,Ur,qi,ci)}),isSticky:eo}},[vr,_a,ga,ci,Ur,qi,ci,eo]),_s=o.useMemo(function(){return Object(l.a)(Object(l.a)({},En),{},{tableLayout:zo,rowClassName:nn,expandedRowClassName:Oo,componentWidth:Lr,fixHeader:ca,fixColumn:Pa,horizonScroll:ma,expandIcon:oo,expandableType:Xa,expandRowByClick:yo,expandedRowRender:Va,onTriggerExpand:tt,expandIconColumnIndex:Ga,indentSize:qa})},[En,zo,nn,Oo,Lr,ca,Pa,ma,oo,Xa,yo,Va,tt,Ga,qa]),vs=o.useMemo(function(){return{onColumnResize:za}},[za]);return o.createElement(Fe.Provider,{value:us},o.createElement(At.Provider,{value:_s},o.createElement(Ut.Provider,{value:vs},qo)))}ut.Column=j,ut.ColumnGroup=k,ut.Summary=Nn,ut.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Ot=ut,Ar=Ot,Pr=d("W9HT"),un=d("NUBc"),It=d("H84U"),nt=function(vt,mr){var vr={};for(var Fr in vt)Object.prototype.hasOwnProperty.call(vt,Fr)&&mr.indexOf(Fr)<0&&(vr[Fr]=vt[Fr]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Fr=Object.getOwnPropertySymbols(vt);nn<Fr.length;nn++)mr.indexOf(Fr[nn])<0&&Object.prototype.propertyIsEnumerable.call(vt,Fr[nn])&&(vr[Fr[nn]]=vt[Fr[nn]]);return vr},at=10;function rr(vt,mr){var vr={current:mr.current,pageSize:mr.pageSize},Fr=vt&&E()(vt)==="object"?vt:{};return Object.keys(Fr).forEach(function(nn){var cn=mr[nn];typeof cn!="function"&&(vr[nn]=cn)}),vr}function Pt(){for(var vt={},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&&(vt[cn]=tn)})}),vt}function xt(vt,mr,vr){var Fr=mr&&E()(mr)==="object"?mr:{},nn=Fr.total,cn=nn===void 0?0:nn,tn=nt(Fr,["total"]),Ln=Object(o.useState)(function(){return{current:"defaultCurrent"in tn?tn.defaultCurrent:1,pageSize:"defaultPageSize"in tn?tn.defaultPageSize:at}}),Tn=m()(Ln,2),Xn=Tn[0],ci=Tn[1],Jn=Pt(Xn,tn,{total:cn>0?cn:vt});if(!cn){var pi=Math.ceil(vt/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(vt,mr,vr){var Fr=o.useRef({});function nn(cn){if(!Fr.current||Fr.current.data!==vt||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(vt),Fr.current={data:vt,childrenColumnName:mr,kvMap:Ln,getRowKey:vr}}return Fr.current.kvMap.get(cn)}return[nn]}var yt=d("SA+Z"),kt=d.n(yt),Sr=d("RIqP"),hr=d.n(Sr),gr=d("HQEm"),Jr=d.n(gr),$r=d("c3jg"),kn=d("qOx5"),Dn=d("wPhX"),Zn=d("6cGi"),li=d("kaz8"),Ai=d("jsC+"),Ii=d("BvKs"),Qe=d("9yH6"),Se=d("uaoM"),Ne="SELECT_ALL",je="SELECT_INVERT";function Xe(vt){return vt&&vt.fixed}function ze(vt,mr){var vr=[];return(vt||[]).forEach(function(Fr){vr.push(Fr),Fr&&E()(Fr)==="object"&&mr in Fr&&(vr=[].concat(hr()(vr),hr()(ze(Fr[mr],mr))))}),vr}function Ze(vt,mr){var vr=vt||{},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 ze(Di,Vi)},[Di,Vi]),Ia=Object(o.useMemo)(function(){var Fa=new Map;return Ya.forEach(function(ha,tt){var cr=aa(ha,tt),kr=(cn?cn(ha):null)||{};Fa.set(cr,kr)}),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(kn.a)(Da,!0,ja,Va),ha=Fa.checkedKeys,tt=Fa.halfCheckedKeys;return[ha,tt]},[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(){vt||Ra([])},[!!vt]);var Xa=Object(o.useCallback)(function(Fa){var ha,tt;if(Fr){var cr=new Map;ha=Fa,tt=Fa.map(function(kr){var Lr=ua(kr);return!Lr&&ra.current.has(kr)&&(Lr=ra.current.get(kr)),cr.set(kr,Lr),Lr}),ra.current=cr}else ha=[],tt=[],Fa.forEach(function(kr){var Lr=ua(kr);Lr!==void 0&&(ha.push(kr),tt.push(Lr))});Ra(ha),tn&&tn(ha,tt)},[Ra,ua,tn,Fr]),_o=Object(o.useCallback)(function(Fa,ha,tt,cr){if(Ln){var kr=tt.map(function(Lr){return ua(Lr)});Ln(ua(Fa),ha,kr,cr)}Xa(tt)},[Ln,ua,Xa]),go=Object(o.useMemo)(function(){if(!Si||yi)return null;var Fa=Si===!0?[Ne,je]:Si;return Fa.map(function(ha){return ha===Ne?{key:"all",text:ta.selectionAll,onSelect:function(){Xa($i.map(function(cr,kr){return aa(cr,kr)}))}}: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 kr=Array.from(cr);Xa(kr),Xn&&(Object(Se.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Xn(kr))}}:ha})},[Si,Ga,Di,aa,Xn,Xa]),Ja=Object(o.useCallback)(function(Fa){if(!vt)return Fa;var ha=new Set(Ga),tt=Ya.map(aa).filter(function(ii){return!Ia.get(ii).disabled}),cr=tt.every(function(ii){return ha.has(ii)}),kr=tt.some(function(ii){return ha.has(ii)}),Lr=function(){var ai=[];cr?tt.forEach(function(bi){ha.delete(bi),ai.push(bi)}):tt.forEach(function(bi){ha.has(bi)||(ha.add(bi),ai.push(bi))});var Pi=Array.from(ha);Xa(Pi),Tn&&Tn(!cr,Pi.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 Pi=ii.key,bi=ii.text,Ki=ii.onSelect;return o.createElement(Ii.a.Item,{key:Pi||ai,onClick:function(){Ki&&Ki(tt)}},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 Pn=Ya.every(function(ii,ai){var Pi=aa(ii,ai),bi=Ia.get(Pi)||{};return bi.disabled});_n=!yi&&o.createElement("div",{className:"".concat(Ui,"-selection")},o.createElement(li.a,{checked:!Pn&&!!Ya.length&&cr,indeterminate:!cr&&kr,onChange:Lr,disabled:Ya.length===0||Pn}),Vr)}var Ur;pi==="radio"?Ur=function(ai,Pi,bi){var Ki=aa(Pi,bi),Aa=ha.has(Ki);return{node:o.createElement(Qe.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,Pi,bi){var Ki,Aa=aa(Pi,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 Pa=new Set([oo,Aa]);tt.some(function(Ta,Po){if(Pa.has(Ta))if(ca===-1)ca=Po;else return ma=Po,!0;return!1})}if(ma!==-1&&ca!==ma&&Ti){var La=tt.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 ko=yo;if(Ti){var jo=ea?Object(Dn.b)(ko,Aa):Object(Dn.a)(ko,Aa);_o(Aa,!ea,jo,Wi)}else{var cs=Object(kn.a)([].concat(hr()(ko),[Aa]),!0,ja,Va),Mo=cs.checkedKeys,Lo=cs.halfCheckedKeys,Ba=Mo;if(ea){var za=new Set(Mo);za.delete(Aa),Ba=Object(kn.a)(Array.from(za),{checked:!1,halfCheckedKeys:Lo},ja,Va).checkedKeys}_o(Aa,!ea,Ba,Wi)}}Ro(Aa)}})),checked:ea}};var En=function(ai,Pi,bi){var Ki=Ur(ai,Pi,bi),Aa=Ki.node,ea=Ki.checked;return xi?xi(ea,Pi,bi,Aa):Aa},jn=A()({width:Jn,className:"".concat(Ui,"-selection-column"),title:vt.columnTitle||_n,render:En},X,{className:"".concat(Ui,"-selection-col")});if(Gi==="row"&&Fa.length&&!Xi){var Hn=kt()(Fa),Bn=Hn[0],ri=Hn.slice(1),Yn=Ni||Xe(ri[0]);return Yn&&(Bn.fixed=Yn),[Bn,c()(c()({},jn),{fixed:Yn})].concat(hr()(ri))}return[c()(c()({},jn),{fixed:Ni||Xe(Fa[0])})].concat(hr()(Fa))},[aa,Ya,vt,yo,Ga,Oo,Jn,go,Gi,oo,Ia,ci,_o,Va]);return[Ja,Ga]}var wt=d("6SEX"),st=d.n(wt),Jt=d("i8CU"),Rr=d.n(Jt),Ir=d("3S7+");function Xr(vt,mr){return"key"in vt&&vt.key!==void 0&&vt.key!==null?vt.key:vt.dataIndex?Array.isArray(vt.dataIndex)?vt.dataIndex.join("."):vt.dataIndex:mr}function er(vt,mr){return mr?"".concat(mr,"-").concat(vt):"".concat(vt)}function pn(vt,mr){return typeof vt=="function"?vt(mr):vt}var fr="ascend",mn="descend";function en(vt){return E()(vt.sorter)==="object"&&typeof vt.sorter.multiple=="number"?vt.sorter.multiple:!1}function Mr(vt){return typeof vt=="function"?vt:vt&&E()(vt)==="object"&&vt.compare?vt.compare:!1}function Gn(vt,mr){return mr?vt[vt.indexOf(mr)+1]:vt[0]}function di(vt,mr,vr){var Fr=[];function nn(cn,tn){Fr.push({column:cn,key:Xr(cn,tn),multiplePriority:en(cn),sortOrder:cn.sortOrder})}return(vt||[]).forEach(function(cn,tn){var Ln=er(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(vt,mr,vr,Fr,nn,cn,tn,Ln){return(mr||[]).map(function(Tn,Xn){var ci=er(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(vt,"-column-sorter-up"),{active:yi===fr})}),Ui=pi.includes(mn)&&o.createElement(st.a,{className:i()("".concat(vt,"-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(vt,"-column-sort"),yi)),title:function(ta){var Xi=o.createElement("div",{className:"".concat(vt,"-column-sorters")},o.createElement("span",null,pn(Tn.title,ta)),o.createElement("span",{className:i()("".concat(vt,"-column-sorter"),A()({},"".concat(vt,"-column-sorter-full"),Ti&&Ui))},o.createElement("span",{className:"".concat(vt,"-column-sorter-inner")},Ti,Ui)));return Si?o.createElement(Ir.a,{title:Gi},o.createElement("div",{className:"".concat(vt,"-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(vt,"-column-has-sorters")),Xi}})}return"children"in Jn&&(Jn=c()(c()({},Jn),{children:_i(vt,Jn.children,vr,Fr,nn,cn,tn,ci)})),Jn})}function Br(vt){var mr=vt.column,vr=vt.sortOrder;return{column:mr,order:vr,field:mr.dataIndex,columnKey:mr.key}}function sn(vt){var mr=vt.filter(function(vr){var Fr=vr.sortOrder;return Fr}).map(Br);return mr.length===0&&vt.length?c()(c()({},Br(vt[vt.length-1])),{column:void 0}):mr.length<=1?mr[0]||{}:mr}function Sn(vt,mr,vr){var Fr=mr.slice().sort(function(tn,Ln){return Ln.multiplePriority-tn.multiplePriority}),nn=vt.slice(),cn=Fr.filter(function(tn){var Ln=tn.column.sorter,Tn=tn.sortOrder;return Mr(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=Mr(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 Dt(vt){var mr=vt.prefixCls,vr=vt.mergedColumns,Fr=vt.onSorterChange,nn=vt.sortDirections,cn=vt.tableLocale,tn=vt.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 ft=d("Y+p1"),St=d.n(ft),Ct=d("5Uyt"),Nt=d.n(Ct),gt=d("2/Rp"),Qt=d("ECub"),tr=function(mr){return o.createElement("div",{className:mr.className,onClick:function(Fr){return Fr.stopPropagation()}},mr.children)},ar=tr,yr=d("sPtV"),xn=Ii.a.SubMenu,vn=Ii.a.Item;function zn(vt){return vt.some(function(mr){var vr=mr.children;return vr})}function Yr(vt){var mr=vt.filters,vr=vt.prefixCls,Fr=vt.filteredKeys,nn=vt.filterMultiple,cn=vt.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:Qe.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(vt){var mr,vr=vt.prefixCls,Fr=vt.column,nn=vt.dropdownPrefixCls,cn=vt.columnKey,tn=vt.filterMultiple,Ln=vt.filterState,Tn=vt.triggerFilter,Xn=vt.locale,ci=vt.children,Jn=vt.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(St()(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"),!zn(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(gt.a,{type:"link",size:"small",disabled:Ca.length===0,onClick:Ya},Xn.filterReset),o.createElement(gt.a,{type:"primary",size:"small",onClick:ja},Xn.filterConfirm)))}var yo=o.createElement(ar,{className:"".concat(vr,"-dropdown")},co),uo;typeof Fr.filterIcon=="function"?uo=Fr.filterIcon(Ti):Fr.filterIcon?uo=Fr.filterIcon:uo=o.createElement(Nt.a,null);var Ga=o.useContext(It.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(vt,mr,vr){var Fr=[];return(vt||[]).forEach(function(nn,cn){var tn=er(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(vt,mr,vr,Fr,nn,cn,tn,Ln){return vr.map(function(Tn,Xn){var ci=er(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(vt,"-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(vt,mr,Tn.children,Fr,nn,cn,tn,ci)}):Tn})}function Un(vt){var mr={};return vt.forEach(function(vr){var Fr=vr.key,nn=vr.filteredKeys;mr[Fr]=nn||null}),mr}function ti(vt){var mr=[];return(vt||[]).forEach(function(vr){var Fr=vr.value,nn=vr.children;mr.push(Fr),nn&&(mr=[].concat(hr()(mr),hr()(ti(nn))))}),mr}function ui(vt,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},vt)}function si(vt){var mr=vt.prefixCls,vr=vt.dropdownPrefixCls,Fr=vt.mergedColumns,nn=vt.onFilterChange,cn=vt.getPopupContainer,tn=vt.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 ki=si;function zi(vt,mr){return vt.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(vt){var mr=o.useCallback(function(vr){return zi(vr,vt)},[vt]);return[mr]}function Yi(vt){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?vt.collapse:vt.expand})}}var $n=Yi,gn=d("zAh6"),mi=d("ZvpZ"),Hi=mi.a,Li=d("3Nzz");function Bi(vt){return null}var wr=Bi;function lr(vt){return null}var on=lr,Zt=d("5OYt"),br=[];function Or(vt){var mr,vr=vt.prefixCls,Fr=vt.className,nn=vt.style,cn=vt.size,tn=vt.bordered,Ln=vt.dropdownPrefixCls,Tn=vt.dataSource,Xn=vt.pagination,ci=vt.rowSelection,Jn=vt.rowKey,pi=vt.rowClassName,Si=vt.columns,Ni=vt.children,xi=vt.childrenColumnName,yi=vt.onChange,vi=vt.getPopupContainer,Ti=vt.loading,Ui=vt.expandIcon,$i=vt.expandable,Di=vt.expandedRowRender,ua=vt.expandIconColumnIndex,aa=vt.indentSize,Gi=vt.scroll,Vi=vt.sortDirections,ta=vt.locale,Xi=vt.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||se(Ni)).filter(function(Ta){return!Ta.responsive||Ta.responsive.some(function(Po){return za.has(Po)})})},[Ni,Si,ra]),_a=Object(n.default)(vt,["className","style","columns"]),Da=o.useContext(Li.b),Ra=o.useContext(It.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(It.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={},tt=function(Ta,Po){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:Po})},cr=function(Ta,Po){tt({sorter:Ta,sorterStates:Po},"sort",!1)},kr=Dt({prefixCls:Ga,mergedColumns:pa,onSorterChange:cr,sortDirections:Vi||["ascend","descend"],tableLocale:co,showSorterTooltip:ga}),Lr=m()(kr,4),_n=Lr[0],Vr=Lr[1],_r=Lr[2],Pn=Lr[3],Ur=o.useMemo(function(){return Sn(Ca,Vr,oo)},[Ca,Vr]);ha.sorter=Pn(),ha.sorterStates=Vr;var En=function(Ta,Po){tt({filters:Ta,filterStates:Po},"filter",!0)},jn=ki({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]),Pi=Ri(ai),bi=m()(Pi,1),Ki=bi[0],Aa=function(Ta,Po){tt({pagination:c()(c()({},ha.pagination),{current:Ta,pageSize:Po})},"paginate")},ea=xt(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,Po=sa.total,Qo=sa.pageSize,so=Qo===void 0?at:Qo;return ii.length<Po?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=Ze(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,Po,Qo){var so;return typeof pi=="function"?so=i()(pi(Ta,Po,Qo)):so=i()(pi),i()(A()({},"".concat(Ga,"-row-selected"),ca.has(_o(Ta,Po))),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 Pa=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 ko=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=ko(jo):(cs&&(La=ko(cs.toLowerCase().replace("top",""))),Mo&&(Za=ko(Mo.toLowerCase().replace("bottom",""))))}else Za=ko(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(Pr.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:Ye,internalRefs:Xa,transformColumns:Pa})),ii&&ii.length>0&&Za))}Or.defaultProps={rowKey:"key"},Or.SELECTION_ALL=Ne,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 _=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"}]),_.registerVisual(A("pie")),_.registerLayout(E.curry(w,"pie")),_.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(_,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 _=function(he,we){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,et){Pe.__proto__=et}||function(Pe,et){for(var $t in et)Object.prototype.hasOwnProperty.call(et,$t)&&(Pe[$t]=et[$t])},_(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");_(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 Pe,et=1,$t=arguments.length;et<$t;et++){Pe=arguments[et];for(var jr in Pe)Object.prototype.hasOwnProperty.call(Pe,jr)&&(we[jr]=Pe[jr])}return we},C.apply(this,arguments)};function A(ur,he,we,Pe){function et($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(Pe.next(wi))}catch(fi){jr(fi)}}function bn(wi){try{Fn(Pe.throw(wi))}catch(fi){jr(fi)}}function Fn(wi){wi.done?$t(wi.value):et(wi.value).then(an,bn)}Fn((Pe=Pe.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:[]},Pe,et,$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 bn([Fn,wi])}}function bn(Fn){if(Pe)throw new TypeError("Generator is already executing.");for(;we;)try{if(Pe=1,et&&($t=Fn[0]&2?et.return:Fn[0]?et.throw||(($t=et.return)&&$t.call(et),0):et.next)&&!($t=$t.call(et,Fn[1])).done)return $t;(et=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++,et=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],et=0}finally{Pe=$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 Pe=0,et=he.length,$t;Pe<et;Pe++)($t||!(Pe in he))&&($t||($t=Array.prototype.slice.call(he,0,Pe)),$t[Pe]=he[Pe]);return ur.concat($t||he)}for(var f=function(){function ur(he,we,Pe,et){this.left=he,this.top=we,this.width=Pe,this.height=et}return ur.prototype.add=function(he,we,Pe,et){return new ur(this.left+he,this.top+we,this.width+Pe,this.height+et)},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 Pe=Array.from(we).find(function(et){return et.width!==0});return Pe?new ur(Pe.left+he.windowBounds.left,Pe.top+he.windowBounds.top,Pe.width,Pe.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,Pe=he.documentElement;if(!we||!Pe)throw new Error("Unable to get document size");var et=Math.max(Math.max(we.scrollWidth,Pe.scrollWidth),Math.max(we.offsetWidth,Pe.offsetWidth),Math.max(we.clientWidth,Pe.clientWidth)),$t=Math.max(Math.max(we.scrollHeight,Pe.scrollHeight),Math.max(we.offsetHeight,Pe.offsetHeight),Math.max(we.clientHeight,Pe.clientHeight));return new f(0,0,et,$t)},r=function(he){for(var we=[],Pe=0,et=he.length;Pe<et;){var $t=he.charCodeAt(Pe++);if($t>=55296&&$t<=56319&&Pe<et){var jr=he.charCodeAt(Pe++);(jr&64512)===56320?we.push((($t&1023)<<10)+(jr&1023)+65536):(we.push($t),Pe--)}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 Pe=he.length;if(!Pe)return"";for(var et=[],$t=-1,jr="";++$t<Pe;){var an=he[$t];an<=65535?et.push(an):(an-=65536,et.push((an>>10)+55296,an%1024+56320)),($t+1===Pe||et.length>16384)&&(jr+=String.fromCharCode.apply(String,et),et.length=0)}return jr},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<n.length;l++)e[n.charCodeAt(l)]=l;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<t.length;s++)a[t.charCodeAt(s)]=s;for(var u=function(he){var we=he.length*.75,Pe=he.length,et,$t=0,jr,an,bn,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(et=0;et<Pe;et+=4)jr=a[he.charCodeAt(et)],an=a[he.charCodeAt(et+1)],bn=a[he.charCodeAt(et+2)],Fn=a[he.charCodeAt(et+3)],fi[$t++]=jr<<2|an>>4,fi[$t++]=(an&15)<<4|bn>>2,fi[$t++]=(bn&3)<<6|Fn&63;return wi},h=function(he){for(var we=he.length,Pe=[],et=0;et<we;et+=2)Pe.push(he[et+1]<<8|he[et]);return Pe},p=function(he){for(var we=he.length,Pe=[],et=0;et<we;et+=4)Pe.push(he[et+3]<<24|he[et+2]<<16|he[et+1]<<8|he[et]);return Pe},g=5,v=6+5,y=2,x=v-g,T=65536>>g,S=1<<g,b=S-1,O=1024>>g,I=T+O,L=I,N=2048>>6,D=L+N,R=65536>>v,k=1<<x,M=k-1,j=function(he,we,Pe){return he.slice?he.slice(we,Pe):new Uint16Array(Array.prototype.slice.call(he,we,Pe))},F=function(he,we,Pe){return he.slice?he.slice(we,Pe):new Uint32Array(Array.prototype.slice.call(he,we,Pe))},U=function(he,we){var Pe=u(he),et=Array.isArray(Pe)?p(Pe):new Uint32Array(Pe),$t=Array.isArray(Pe)?h(Pe):new Uint16Array(Pe),jr=24,an=j($t,jr/2,et[4]/2),bn=et[5]===2?j($t,(jr+et[4])/2):F(et,Math.ceil((jr+et[4])/4));return new K(et[0],et[1],et[2],et[3],an,bn)},K=function(){function ur(he,we,Pe,et,$t,jr){this.initialValue=he,this.errorValue=we,this.highStart=Pe,this.highValueIndex=et,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),Q=0;Q<V.length;Q++)z[V.charCodeAt(Q)]=Q;var Z="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==",le=50,ne=1,ve=2,xe=3,_e=4,Be=5,me=7,Fe=8,ie=9,te=10,Ge=11,oe=12,Y=13,G=14,X=15,fe=16,de=17,Ce=18,Me=19,ue=20,Ae=21,Te=22,Je=23,At=24,qe=25,Re=26,Lt=27,$e=28,Et=29,Ut=30,Bt=31,_t=32,jt=33,He=34,se=35,J=36,Ue=37,Le=38,ee=39,ct=40,Mt=41,ot=42,Yt=43,or=[9001,65288],Zr="!",ir="\xD7",dr="\xF7",qt=U(Z),Ht=[Ut,J],lt=[ne,ve,xe,Be],Hr=[te,Fe],dn=[Lt,Re],Nn=lt.concat(Hr),Wn=[Le,ee,ct,He,se],gi=[X,Y],yn=function(he,we){we===void 0&&(we="strict");var Pe=[],et=[],$t=[];return he.forEach(function(jr,an){var bn=qt.get(jr);if(bn>le?($t.push(!0),bn-=le):$t.push(!1),["normal","auto","loose"].indexOf(we)!==-1&&[8208,8211,12316,12448].indexOf(jr)!==-1)return et.push(an),Pe.push(fe);if(bn===_e||bn===Ge){if(an===0)return et.push(an),Pe.push(Ut);var Fn=Pe[an-1];return Nn.indexOf(Fn)===-1?(et.push(et[an-1]),Pe.push(Fn)):(et.push(an),Pe.push(Ut))}if(et.push(an),bn===Bt)return Pe.push(we==="strict"?Ae:Ue);if(bn===ot)return Pe.push(Ut);if(bn===Et)return Pe.push(Ut);if(bn===Yt)return jr>=131072&&jr<=196605||jr>=196608&&jr<=262141?Pe.push(Ue):Pe.push(Ut);Pe.push(bn)}),[et,Pe,$t]},Mn=function(he,we,Pe,et){var $t=et[Pe];if(Array.isArray(he)?he.indexOf($t)!==-1:he===$t)for(var jr=Pe;jr<=et.length;){jr++;var an=et[jr];if(an===we)return!0;if(an!==te)break}if($t===te)for(var jr=Pe;jr>0;){jr--;var bn=et[jr];if(Array.isArray(he)?he.indexOf(bn)!==-1:he===bn)for(var Fn=Pe;Fn<=et.length;){Fn++;var an=et[Fn];if(an===we)return!0;if(an!==te)break}if(bn!==te)break}return!1},Ft=function(he,we){for(var Pe=he;Pe>=0;){var et=we[Pe];if(et===te)Pe--;else return et}return 0},bt=function(he,we,Pe,et,$t){if(Pe[et]===0)return ir;var jr=et-1;if(Array.isArray($t)&&$t[jr]===!0)return ir;var an=jr-1,bn=jr+1,Fn=we[jr],wi=an>=0?we[an]:0,fi=we[bn];if(Fn===ve&&fi===xe)return ir;if(lt.indexOf(Fn)!==-1)return Zr;if(lt.indexOf(fi)!==-1)return ir;if(Hr.indexOf(fi)!==-1)return ir;if(Ft(jr,we)===Fe)return dr;if(qt.get(he[jr])===Ge)return ir;if((Fn===_t||Fn===jt)&&qt.get(he[bn])===Ge)return ir;if(Fn===me||fi===me)return ir;if(Fn===ie)return ir;if([te,Y,X].indexOf(Fn)===-1&&fi===ie)return ir;if([de,Ce,Me,At,$e].indexOf(fi)!==-1)return ir;if(Ft(jr,we)===Te)return ir;if(Mn(Je,Te,jr,we))return ir;if(Mn([de,Ce],Ae,jr,we))return ir;if(Mn(oe,oe,jr,we))return ir;if(Fn===te)return dr;if(Fn===Je||fi===Je)return ir;if(fi===fe||Fn===fe)return dr;if([Y,X,Ae].indexOf(fi)!==-1||Fn===G)return ir;if(wi===J&&gi.indexOf(Fn)!==-1)return ir;if(Fn===$e&&fi===J)return ir;if(fi===ue)return ir;if(Ht.indexOf(fi)!==-1&&Fn===qe||Ht.indexOf(Fn)!==-1&&fi===qe)return ir;if(Fn===Lt&&[Ue,_t,jt].indexOf(fi)!==-1||[Ue,_t,jt].indexOf(Fn)!==-1&&fi===Re)return ir;if(Ht.indexOf(Fn)!==-1&&dn.indexOf(fi)!==-1||dn.indexOf(Fn)!==-1&&Ht.indexOf(fi)!==-1)return ir;if([Lt,Re].indexOf(Fn)!==-1&&(fi===qe||[Te,X].indexOf(fi)!==-1&&we[bn+1]===qe)||[Te,X].indexOf(Fn)!==-1&&fi===qe||Fn===qe&&[qe,$e,At].indexOf(fi)!==-1)return ir;if([qe,$e,At,de,Ce].indexOf(fi)!==-1)for(var Ci=jr;Ci>=0;){var ba=we[Ci];if(ba===qe)return ir;if([$e,At].indexOf(ba)!==-1)Ci--;else break}if([Lt,Re].indexOf(fi)!==-1)for(var Ci=[de,Ce].indexOf(Fn)!==-1?an:jr;Ci>=0;){var ba=we[Ci];if(ba===qe)return ir;if([$e,At].indexOf(ba)!==-1)Ci--;else break}if(Le===Fn&&[Le,ee,He,se].indexOf(fi)!==-1||[ee,He].indexOf(Fn)!==-1&&[ee,ct].indexOf(fi)!==-1||[ct,se].indexOf(Fn)!==-1&&fi===ct)return ir;if(Wn.indexOf(Fn)!==-1&&[ue,Re].indexOf(fi)!==-1||Wn.indexOf(fi)!==-1&&Fn===Lt)return ir;if(Ht.indexOf(Fn)!==-1&&Ht.indexOf(fi)!==-1)return ir;if(Fn===At&&Ht.indexOf(fi)!==-1)return ir;if(Ht.concat(qe).indexOf(Fn)!==-1&&fi===Te&&or.indexOf(he[bn])===-1||Ht.concat(qe).indexOf(fi)!==-1&&Fn===Ce)return ir;if(Fn===Mt&&fi===Mt){for(var Ea=Pe[jr],ka=1;Ea>0&&(Ea--,we[Ea]===Mt);)ka++;if(ka%2!==0)return ir}return Fn===_t&&fi===jt?ir:dr},Oe=function(he,we){we||(we={lineBreak:"normal",wordBreak:"normal"});var Pe=yn(he,we.lineBreak),et=Pe[0],$t=Pe[1],jr=Pe[2];(we.wordBreak==="break-all"||we.wordBreak==="break-word")&&($t=$t.map(function(bn){return[qe,Ut,ot].indexOf(bn)!==-1?Ue:bn}));var an=we.wordBreak==="keep-all"?jr.map(function(bn,Fn){return bn&&he[Fn]>=19968&&he[Fn]<=40959}):void 0;return[et,$t,an]},Ee=function(){function ur(he,we,Pe,et){this.codePoints=he,this.required=we===Zr,this.start=Pe,this.end=et}return ur.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},ur}(),Ie=function(he,we){var Pe=r(he),et=Oe(Pe,we),$t=et[0],jr=et[1],an=et[2],bn=Pe.length,Fn=0,wi=0;return{next:function(){if(wi>=bn)return{done:!0,value:null};for(var Ci=ir;wi<bn&&(Ci=bt(Pe,jr,$t,++wi,an))===ir;);if(Ci!==ir||wi===bn){var ba=new Ee(Pe,Ci,Fn,wi);return Fn=wi,{value:ba,done:!1}}return{done:!0,value:null}}}},Ye=1<<0,rt=1<<1,ut=1<<2,Ot=1<<3,Ar=10,Pr=47,un=92,It=9,nt=32,at=34,rr=61,Pt=35,xt=36,Kt=37,yt=39,kt=40,Sr=41,hr=95,gr=45,Jr=33,$r=60,kn=62,Dn=64,Zn=91,li=93,Ai=61,Ii=123,Qe=63,Se=125,Ne=124,je=126,Xe=128,ze=65533,Ze=42,wt=43,st=44,Jt=58,Rr=59,Ir=46,Xr=0,er=8,pn=11,fr=14,mn=31,en=127,Mr=-1,Gn=48,di=97,_i=101,Br=102,sn=117,Sn=122,Dt=65,ft=69,St=70,Ct=85,Nt=90,gt=function(he){return he>=Gn&&he<=57},Qt=function(he){return he>=55296&&he<=57343},tr=function(he){return gt(he)||he>=Dt&&he<=St||he>=di&&he<=Br},ar=function(he){return he>=di&&he<=Sn},yr=function(he){return he>=Dt&&he<=Nt},xn=function(he){return ar(he)||yr(he)},vn=function(he){return he>=Xe},zn=function(he){return he===Ar||he===It||he===nt},Yr=function(he){return xn(he)||vn(he)||he===hr},xr=function(he){return Yr(he)||gt(he)||he===gr},ln=function(he){return he>=Xr&&he<=er||he===pn||he>=fr&&he<=mn||he===en},On=function(he,we){return he!==un?!1:we!==Ar},In=function(he,we,Pe){return he===gr?Yr(we)||On(we,Pe):Yr(he)?!0:!!(he===un&&On(he,we))},Un=function(he,we,Pe){return he===wt||he===gr?gt(we)?!0:we===Ir&>(Pe):he===Ir?gt(we):gt(he)},ti=function(he){var we=0,Pe=1;(he[we]===wt||he[we]===gr)&&(he[we]===gr&&(Pe=-1),we++);for(var et=[];gt(he[we]);)et.push(he[we++]);var $t=et.length?parseInt(i.apply(void 0,et),10):0;he[we]===Ir&&we++;for(var jr=[];gt(he[we]);)jr.push(he[we++]);var an=jr.length,bn=an?parseInt(i.apply(void 0,jr),10):0;(he[we]===ft||he[we]===_i)&&we++;var Fn=1;(he[we]===wt||he[we]===gr)&&(he[we]===gr&&(Fn=-1),we++);for(var wi=[];gt(he[we]);)wi.push(he[we++]);var fi=wi.length?parseInt(i.apply(void 0,wi),10):0;return Pe*($t+bn*Math.pow(10,-an))*Math.pow(10,Fn*fi)},ui={type:2},si={type:3},ki={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},vt={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!==vt;)he.push(we),we=this.consumeToken();return he},ur.prototype.consumeToken=function(){var he=this.consumeCodePoint();switch(he){case at:return this.consumeStringToken(at);case Pt:var we=this.peekCodePoint(0),Pe=this.peekCodePoint(1),et=this.peekCodePoint(2);if(xr(we)||On(Pe,et)){var $t=In(we,Pe,et)?rt:Ye,jr=this.consumeName();return{type:5,value:jr,flags:$t}}break;case xt:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),zi;break;case yt:return this.consumeStringToken(yt);case kt:return ui;case Sr:return si;case Ze:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Li;break;case wt:if(Un(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case st:return ki;case gr:var an=he,bn=this.peekCodePoint(0),Fn=this.peekCodePoint(1);if(Un(an,bn,Fn))return this.reconsumeCodePoint(he),this.consumeNumericToken();if(In(an,bn,Fn))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();if(bn===gr&&Fn===kn)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 Pr:if(this.peekCodePoint(0)===Ze)for(this.consumeCodePoint();;){var wi=this.consumeCodePoint();if(wi===Ze&&(wi=this.consumeCodePoint(),wi===Pr))return this.consumeToken();if(wi===Mr)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 Ct:var Ea=this.peekCodePoint(0),ka=this.peekCodePoint(1);return Ea===wt&&(tr(ka)||ka===Qe)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(he),this.consumeIdentLikeToken();case Ne:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),$n;if(this.peekCodePoint(0)===Ne)return this.consumeCodePoint(),Yi;break;case je:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),gn;break;case Mr:return vt}return zn(he)?(this.consumeWhiteSpace(),An):gt(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 Pe=!1;we===Qe&&he.length<6;)he.push(we),we=this.consumeCodePoint(),Pe=!0;if(Pe){var et=parseInt(i.apply(void 0,he.map(function(bn){return bn===Qe?Gn:bn})),16),$t=parseInt(i.apply(void 0,he.map(function(bn){return bn===Qe?St:bn})),16);return{type:30,start:et,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)===kt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===kt?(this.consumeCodePoint(),{type:19,value:he}):{type:20,value:he}},ur.prototype.consumeUrlToken=function(){var he=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Mr)return{type:22,value:""};var we=this.peekCodePoint(0);if(we===yt||we===at){var Pe=this.consumeStringToken(this.consumeCodePoint());return Pe.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Mr||this.peekCodePoint(0)===Sr)?(this.consumeCodePoint(),{type:22,value:Pe.value}):(this.consumeBadUrlRemnants(),Bi)}for(;;){var et=this.consumeCodePoint();if(et===Mr||et===Sr)return{type:22,value:i.apply(void 0,he)};if(zn(et))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Mr||this.peekCodePoint(0)===Sr?(this.consumeCodePoint(),{type:22,value:i.apply(void 0,he)}):(this.consumeBadUrlRemnants(),Bi);if(et===at||et===yt||et===kt||ln(et))return this.consumeBadUrlRemnants(),Bi;if(et===un)if(On(et,this.peekCodePoint(0)))he.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bi;else he.push(et)}},ur.prototype.consumeWhiteSpace=function(){for(;zn(this.peekCodePoint(0));)this.consumeCodePoint()},ur.prototype.consumeBadUrlRemnants=function(){for(;;){var he=this.consumeCodePoint();if(he===Sr||he===Mr)return;On(he,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ur.prototype.consumeStringSlice=function(he){for(var we=5e4,Pe="";he>0;){var et=Math.min(we,he);Pe+=i.apply(void 0,this._value.splice(0,et)),he-=et}return this._value.shift(),Pe},ur.prototype.consumeStringToken=function(he){var we="",Pe=0;do{var et=this._value[Pe];if(et===Mr||et===void 0||et===he)return we+=this.consumeStringSlice(Pe),{type:0,value:we};if(et===Ar)return this._value.splice(0,Pe),wr;if(et===un){var $t=this._value[Pe+1];$t!==Mr&&$t!==void 0&&($t===Ar?(we+=this.consumeStringSlice(Pe),Pe=-1,this._value.shift()):On(et,$t)&&(we+=this.consumeStringSlice(Pe),we+=i(this.consumeEscapedCodePoint()),Pe=-1))}Pe++}while(!0)},ur.prototype.consumeNumber=function(){var he=[],we=ut,Pe=this.peekCodePoint(0);for((Pe===wt||Pe===gr)&&he.push(this.consumeCodePoint());gt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());Pe=this.peekCodePoint(0);var et=this.peekCodePoint(1);if(Pe===Ir&>(et))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),we=Ot;gt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());Pe=this.peekCodePoint(0),et=this.peekCodePoint(1);var $t=this.peekCodePoint(2);if((Pe===ft||Pe===_i)&&((et===wt||et===gr)&>($t)||gt(et)))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),we=Ot;gt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());return[ti(he),we]},ur.prototype.consumeNumericToken=function(){var he=this.consumeNumber(),we=he[0],Pe=he[1],et=this.peekCodePoint(0),$t=this.peekCodePoint(1),jr=this.peekCodePoint(2);if(In(et,$t,jr)){var an=this.consumeName();return{type:15,number:we,flags:Pe,unit:an}}return et===Kt?(this.consumeCodePoint(),{type:16,number:we,flags:Pe}):{type:17,number:we,flags:Pe}},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());zn(this.peekCodePoint(0))&&this.consumeCodePoint();var Pe=parseInt(we,16);return Pe===0||Qt(Pe)||Pe>1114111?ze:Pe}return he===Mr?ze: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:[]},Pe=this.consumeToken();;){if(Pe.type===32||Jn(Pe,he))return we;this.reconsumeToken(Pe),we.values.push(this.consumeComponentValue()),Pe=this.consumeToken()}},ur.prototype.consumeFunction=function(he){for(var we={name:he.value,values:[],type:18};;){var Pe=this.consumeToken();if(Pe.type===32||Pe.type===3)return we;this.reconsumeToken(Pe),we.values.push(this.consumeComponentValue())}},ur.prototype.consumeToken=function(){var he=this._tokens.shift();return typeof he=="undefined"?vt: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=[],Pe=[];return he.forEach(function(et){if(et.type===4){if(Pe.length===0)throw new Error("Error parsing function args, zero tokens for arg");we.push(Pe),Pe=[];return}et.type!==31&&Pe.push(et)}),Pe.length&&we.push(Pe),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:ut},yi={type:16,number:50,flags:ut},vi={type:16,number:100,flags:ut},Ti=function(he,we,Pe){var et=he[0],$t=he[1];return[Ui(et,we),Ui(typeof $t!="undefined"?$t:et,Pe)]},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(Pe){return Pe.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 Pe=Ya[we.name];if(typeof Pe=="undefined")throw new Error('Attempting to parse an unsupported color function "'+we.name+'"');return Pe(he,we.values)}if(we.type===5){if(we.value.length===3){var et=we.value.substring(0,1),$t=we.value.substring(1,2),jr=we.value.substring(2,3);return _a(parseInt(et+et,16),parseInt($t+$t,16),parseInt(jr+jr,16),1)}if(we.value.length===4){var et=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(et+et,16),parseInt($t+$t,16),parseInt(jr+jr,16),parseInt(an+an,16)/255)}if(we.value.length===6){var et=we.value.substring(0,2),$t=we.value.substring(2,4),jr=we.value.substring(4,6);return _a(parseInt(et,16),parseInt($t,16),parseInt(jr,16),1)}if(we.value.length===8){var et=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(et,16),parseInt($t,16),parseInt(jr,16),parseInt(an,16)/255)}}if(we.type===20){var bn=Va[we.value.toUpperCase()];if(typeof bn!="undefined")return bn}return Va.TRANSPARENT}},ra=function(he){return(255&he)===0},pa=function(he){var we=255&he,Pe=255&he>>8,et=255&he>>16,$t=255&he>>24;return we<255?"rgba("+$t+","+et+","+Pe+","+we/255+")":"rgb("+$t+","+et+","+Pe+")"},_a=function(he,we,Pe,et){return(he<<24|we<<16|Pe<<8|Math.round(et*255)<<0)>>>0},Da=function(he,we){if(he.type===17)return he.number;if(he.type===16){var Pe=we===3?1:255;return we===3?he.number/100*Pe:Math.round(he.number/100*Pe)}return 0},Ra=function(he,we){var Pe=we.filter(Xn);if(Pe.length===3){var et=Pe.map(Da),$t=et[0],jr=et[1],an=et[2];return _a($t,jr,an,1)}if(Pe.length===4){var bn=Pe.map(Da),$t=bn[0],jr=bn[1],an=bn[2],Fn=bn[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 Pe=we.filter(Xn),et=Pe[0],$t=Pe[1],jr=Pe[2],an=Pe[3],bn=(et.type===17?Xi(et.number):Gi.parse(he,et))/(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,bn+1/3),ka=Ao(ba,Ci,bn),Do=Ao(ba,Ci,bn-1/3);return _a(Ea*255,ka*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(Pe){if(cn(Pe))switch(Pe.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 Pe=ga.parse(he,we[0]),et=we[1];return et&&Si(et)?{color:Pe,stop:et}:{color:Pe,stop:null}},uo=function(he,we){var Pe=he[0],et=he[he.length-1];Pe.stop===null&&(Pe.stop=xi),et.stop===null&&(et.stop=vi);for(var $t=[],jr=0,an=0;an<he.length;an++){var bn=he[an].stop;if(bn!==null){var Fn=Ui(bn,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),ka=1;ka<=Ci;ka++)$t[wi+ka-1]=Ea*ka;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,Pe){var et=we/2,$t=Pe/2,jr=Ui(he[0],we)-et,an=$t-Ui(he[1],Pe);return(Math.atan2(an,jr)+Math.PI*2)%(Math.PI*2)},Oo=function(he,we,Pe){var et=typeof he=="number"?he:Ga(he,we,Pe),$t=Math.abs(we*Math.sin(et))+Math.abs(Pe*Math.cos(et)),jr=we/2,an=Pe/2,bn=$t/2,Fn=Math.sin(et-Math.PI/2)*bn,wi=Math.cos(et-Math.PI/2)*bn;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,Pe,et,$t){var jr=[[0,0],[0,we],[he,0],[he,we]];return jr.reduce(function(an,bn){var Fn=bn[0],wi=bn[1],fi=oa(Pe-Fn,et-wi);return($t?fi<an.optimumDistance:fi>an.optimumDistance)?{optimumCorner:bn,optimumDistance:fi}:an},{optimumDistance:$t?Infinity:-Infinity,optimumCorner:null}).optimumCorner},oo=function(he,we,Pe,et,$t){var jr=0,an=0;switch(he.size){case 0:he.shape===0?jr=an=Math.min(Math.abs(we),Math.abs(we-et),Math.abs(Pe),Math.abs(Pe-$t)):he.shape===1&&(jr=Math.min(Math.abs(we),Math.abs(we-et)),an=Math.min(Math.abs(Pe),Math.abs(Pe-$t)));break;case 2:if(he.shape===0)jr=an=Math.min(oa(we,Pe),oa(we,Pe-$t),oa(we-et,Pe),oa(we-et,Pe-$t));else if(he.shape===1){var bn=Math.min(Math.abs(Pe),Math.abs(Pe-$t))/Math.min(Math.abs(we),Math.abs(we-et)),Fn=qa(et,$t,we,Pe,!0),wi=Fn[0],fi=Fn[1];jr=oa(wi-we,(fi-Pe)/bn),an=bn*jr}break;case 1:he.shape===0?jr=an=Math.max(Math.abs(we),Math.abs(we-et),Math.abs(Pe),Math.abs(Pe-$t)):he.shape===1&&(jr=Math.max(Math.abs(we),Math.abs(we-et)),an=Math.max(Math.abs(Pe),Math.abs(Pe-$t)));break;case 3:if(he.shape===0)jr=an=Math.max(oa(we,Pe),oa(we,Pe-$t),oa(we-et,Pe),oa(we-et,Pe-$t));else if(he.shape===1){var bn=Math.max(Math.abs(Pe),Math.abs(Pe-$t))/Math.max(Math.abs(we),Math.abs(we-et)),Ci=qa(et,$t,we,Pe,!1),wi=Ci[0],fi=Ci[1];jr=oa(wi-we,(fi-Pe)/bn),an=bn*jr}break}return Array.isArray(he.size)&&(jr=Ui(he.size[0],et),an=he.size.length===2?Ui(he.size[1],$t):jr),[jr,an]},Ro=function(he,we){var Pe=Xi(180),et=[];return ci(we).forEach(function($t,jr){if(jr===0){var an=$t[0];if(an.type===20&&an.value==="to"){Pe=ta($t);return}else if(Vi(an)){Pe=Gi.parse(he,an);return}}var bn=yo(he,$t);et.push(bn)}),{angle:Pe,stops:et,type:1}},Xa=function(he,we){var Pe=Xi(180),et=[];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){Pe=ta($t);return}else if(Vi(an)){Pe=(Gi.parse(he,an)+Xi(270))%Xi(360);return}}var bn=yo(he,$t);et.push(bn)}),{angle:Pe,stops:et,type:1}},_o=function(he,we){var Pe=Xi(180),et=[],$t=1,jr=0,an=3,bn=[];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]);et.push({stop:xi,color:Ci})}else if(fi.name==="to"){var Ci=ga.parse(he,fi.values[0]);et.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)&&et.push({stop:{type:16,number:Ea.number*100,flags:Ea.flags},color:Ci})}}}}),$t===1?{angle:(Pe+Xi(180))%Xi(360),stops:et,type:$t}:{size:an,shape:jr,stops:et,position:bn,type:$t}},go="closest-side",Ja="farthest-side",Fa="closest-corner",ha="farthest-corner",tt="circle",cr="ellipse",kr="cover",Lr="contain",_n=function(he,we){var Pe=0,et=3,$t=[],jr=[];return ci(we).forEach(function(an,bn){var Fn=!0;if(bn===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 tt:return Pe=0,!1;case cr:return Pe=1,!1;case"at":return wi=!0,!1;case go:return et=0,!1;case kr:case Ja:return et=1,!1;case Lr:case Fa:return et=2,!1;case ha:return et=3,!1}else if(pi(ba)||Si(ba))return Array.isArray(et)||(et=[]),et.push(ba),!1;return Ci},Fn)}if(Fn){var fi=yo(he,an);$t.push(fi)}}),{size:et,shape:Pe,stops:$t,position:jr,type:2}},Vr=function(he,we){var Pe=0,et=3,$t=[],jr=[];return ci(we).forEach(function(an,bn){var Fn=!0;if(bn===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):bn===1&&(Fn=an.reduce(function(fi,Ci){if(cn(Ci))switch(Ci.value){case tt:return Pe=0,!1;case cr:return Pe=1,!1;case Lr:case go:return et=0,!1;case Ja:return et=1,!1;case Fa:return et=2,!1;case kr:case ha:return et=3,!1}else if(pi(Ci)||Si(Ci))return Array.isArray(et)||(et=[]),et.push(Ci),!1;return fi},Fn)),Fn){var wi=yo(he,an);$t.push(wi)}}),{size:et,shape:Pe,stops:$t,position:jr,type:2}},_r=function(he){return he.type===1},Pn=function(he){return he.type===2},Ur={name:"image",parse:function(he,we){if(we.type===22){var Pe={url:we.value,type:0};return he.cache.addImage(we.value),Pe}if(we.type===18){var et=jn[we.name];if(typeof et=="undefined")throw new Error('Attempting to parse an unsupported image function "'+we.name+'"');return et(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 Pe=we[0];return Pe.type===20&&Pe.value==="none"?[]:we.filter(function(et){return Xn(et)&&En(et)}).map(function(et){return Ur.parse(he,et)})}},Bn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(he,we){return we.map(function(Pe){if(cn(Pe))switch(Pe.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(Pe){return Pe.filter(Si)}).map(Ni)}},Yn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(he,we){return ci(we).map(function(Pe){return Pe.filter(cn).map(function(et){return et.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 Pi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(he,we){return ci(we).map(function(Pe){return Pe.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(Pe,et){return Ni(et.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(Pe,et){switch(et){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ma=ca("top"),Pa=ca("right"),La=ca("bottom"),Za=ca("left"),eo=function(he){return{name:"border-"+he+"-width",initialValue:"0",type:0,prefix:!1,parse:function(Pe,et){return Fr(et)?et.number:0}}},ko=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(Pe,et){return Pe|Ta(et.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},Po={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(Pe){switch(Pe.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(Pe){for(var et={color:Va.TRANSPARENT,offsetX:xi,offsetY:xi,blur:xi},$t=0,jr=0;jr<Pe.length;jr++){var an=Pe[jr];pi(an)?($t===0?et.offsetX=an:$t===1?et.offsetY=an:et.blur=an,$t++):et.color=ga.parse(he,an)}return et})}},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 Pe=Vt[we.name];if(typeof Pe=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+we.name+'"');return Pe(we.values)}return null}},Ha=function(he){var we=he.filter(function(Pe){return Pe.type===17}).map(function(Pe){return Pe.number});return we.length===6?we:null},Tt=function(he){var we=he.filter(function(Fn){return Fn.type===17}).map(function(Fn){return Fn.number}),Pe=we[0],et=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],bn=we[13];return we[14],we[15],we.length===16?[Pe,et,$t,jr,an,bn]:null},Vt={matrix:Ha,matrix3d:Tt},hn={type:16,number:50,flags:ut},Vn=[hn,hn],pt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(he,we){var Pe=we.filter(Si);return Pe.length!==2?Vn:[Pe[0],Pe[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}}},pe;(function(ur){ur.NORMAL="normal",ur.BREAK_ALL="break-all",ur.KEEP_ALL="keep-all"})(pe||(pe={}));for(var be={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,we){switch(we){case"break-all":return pe.BREAK_ALL;case"keep-all":return pe.KEEP_ALL;case"normal":default:return pe.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")}},mt={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(Pe){switch(Pe.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Pe){return Pe!==0})}},fn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(he,we){var Pe=[],et=[];return we.forEach(function($t){switch($t.type){case 20:case 0:Pe.push($t.value);break;case 17:Pe.push($t.number.toString());break;case 4:et.push(Pe.join(" ")),Pe.length=0;break}}),Pe.length&&et.push(Pe.join(" ")),et.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(Pe){return Pe.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 Pe=we[0];return Pe.type===20&&Pe.value==="none"?[]:we}},Oa={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(he,we){if(we.length===0)return null;var Pe=we[0];if(Pe.type===20&&Pe.value==="none")return null;for(var et=[],$t=we.filter(Tn),jr=0;jr<$t.length;jr++){var an=$t[jr],bn=$t[jr+1];if(an.type===20){var Fn=bn&&nn(bn)?bn.number:1;et.push({counter:an.value,increment:Fn})}}return et}},fo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(he,we){if(we.length===0)return[];for(var Pe=[],et=we.filter(Tn),$t=0;$t<et.length;$t++){var jr=et[$t],an=et[$t+1];if(cn(jr)&&jr.value!=="none"){var bn=an&&nn(an)?an.number:0;Pe.push({counter:jr.value,reset:bn})}}return Pe}},wo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(he,we){return we.filter(Fr).map(function(Pe){return mt.parse(he,Pe)})}},lo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(he,we){if(we.length===0)return null;var Pe=we[0];if(Pe.type===20&&Pe.value==="none")return null;var et=[],$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,bn=$t[jr+1].value;et.push({open:an,close:bn})}return et}},Yo=function(he,we,Pe){if(!he)return"";var et=he[Math.min(we,he.length-1)];return et?Pe?et.open:et.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(Pe){for(var et={color:255,offsetX:xi,offsetY:xi,blur:xi,spread:xi,inset:!1},$t=0,jr=0;jr<Pe.length;jr++){var an=Pe[jr];Ln(an,"inset")?et.inset=!0:pi(an)?($t===0?et.offsetX=an:$t===1?et.offsetY=an:$t===2?et.blur=an:et.spread=an,$t++):et.color=ga.parse(he,an)}return et})}},No={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(he,we){var Pe=[0,1,2],et=[];return we.filter(cn).forEach(function($t){switch($t.value){case"stroke":et.push(1);break;case"fill":et.push(0);break;case"markers":et.push(2);break}}),Pe.forEach(function($t){et.indexOf($t)===-1&&et.push($t)}),et}},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 Pe,et;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,Pi,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,Pa,we.borderRightStyle),this.borderBottomStyle=la(he,La,we.borderBottomStyle),this.borderLeftStyle=la(he,Za,we.borderLeftStyle),this.borderTopWidth=la(he,ko,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,Po,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,(Pe=we.textDecorationColor)!==null&&Pe!==void 0?Pe:we.color),this.textDecorationLine=la(he,Gr,(et=we.textDecorationLine)!==null&&et!==void 0?et: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,pt,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,Pe){var et=new mr,$t=Pe!==null&&typeof Pe!="undefined"?Pe.toString():we.initialValue;et.write($t);var jr=new vr(et.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 bn=jr.parseComponentValue();return pi(bn)?bn:xi;case"length-percentage":var Fn=jr.parseComponentValue();return Si(Fn)?Fn:xi;case"time":return mt.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 Pe=Hs(he);return Pe===1||we===Pe},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(Pe){return Pe>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,Pe=he.length,et,$t=0,jr,an,bn,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(et=0;et<Pe;et+=4)jr=vl[he.charCodeAt(et)],an=vl[he.charCodeAt(et+1)],bn=vl[he.charCodeAt(et+2)],Fn=vl[he.charCodeAt(et+3)],fi[$t++]=jr<<2|an>>4,fi[$t++]=(an&15)<<4|bn>>2,fi[$t++]=(bn&3)<<6|Fn&63;return wi},As=function(he){for(var we=he.length,Pe=[],et=0;et<we;et+=2)Pe.push(he[et+1]<<8|he[et]);return Pe},nl=function(he){for(var we=he.length,Pe=[],et=0;et<we;et+=4)Pe.push(he[et+3]<<24|he[et+2]<<16|he[et+1]<<8|he[et]);return Pe},ks=5,po=6+5,Wa=2,Eo=po-ks,Xo=65536>>ks,$o=1<<ks,Co=$o-1,rs=1024>>ks,os=Xo+rs,Fs=os,ol=2048>>6,Zs=Fs+ol,dl=65536>>po,hl=1<<Eo,sl=hl-1,yl=function(he,we,Pe){return he.slice?he.slice(we,Pe):new Uint16Array(Array.prototype.slice.call(he,we,Pe))},Ns=function(he,we,Pe){return he.slice?he.slice(we,Pe):new Uint32Array(Array.prototype.slice.call(he,we,Pe))},ys=function(he,we){var Pe=Zo(he),et=Array.isArray(Pe)?nl(Pe):new Uint32Array(Pe),$t=Array.isArray(Pe)?As(Pe):new Uint16Array(Pe),jr=24,an=yl($t,jr/2,et[4]/2),bn=et[5]===2?yl($t,(jr+et[4])/2):Ns(et,Math.ceil((jr+et[4])/4));return new Ds(et[0],et[1],et[2],et[3],an,bn)},Ds=function(){function ur(he,we,Pe,et,$t,jr){this.initialValue=he,this.errorValue=we,this.highStart=Pe,this.highValueIndex=et,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>>ks],we=(we<<Wa)+(he&Co),this.data[we];if(he<=65535)return we=this.index[Xo+(he-55296>>ks)],we=(we<<Wa)+(he&Co),this.data[we];if(he<this.highStart)return we=Zs-dl+(he>>po),we=this.index[we],we+=he>>ks&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,Pl=5,yu=7,cu=8,eu=9,tu=10,Vl=11,Ys=12,il=13,fl=14,kl=15,du=function(he){for(var we=[],Pe=0,et=he.length;Pe<et;){var $t=he.charCodeAt(Pe++);if($t>=55296&&$t<=56319&&Pe<et){var jr=he.charCodeAt(Pe++);(jr&64512)===56320?we.push((($t&1023)<<10)+(jr&1023)+65536):(we.push($t),Pe--)}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 Pe=he.length;if(!Pe)return"";for(var et=[],$t=-1,jr="";++$t<Pe;){var an=he[$t];an<=65535?et.push(an):(an-=65536,et.push((an>>10)+55296,an%1024+56320)),($t+1===Pe||et.length>16384)&&(jr+=String.fromCharCode.apply(String,et),et.length=0)}return jr},nu=ys(Ss),Qs="\xD7",iu="\xF7",au=function(he){return nu.get(he)},bu=function(he,we,Pe){var et=Pe-2,$t=we[et],jr=we[Pe-1],an=we[Pe];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===Pl)return Qs;if(an===yu)return Qs;if(jr===El)return Qs;if(jr===il&&an===fl){for(;$t===Pl;)$t=we[--et];if($t===fl)return Qs}if(jr===kl&&an===kl){for(var bn=0;$t===kl;)bn++,$t=we[--et];if(bn%2===0)return Qs}return iu},bl=function(he){var we=du(he),Pe=we.length,et=0,$t=0,jr=we.map(au);return{next:function(){if(et>=Pe)return{done:!0,value:null};for(var bn=Qs;et<Pe&&(bn=bu(we,jr,++et))===Qs;);if(bn!==Qs||et===Pe){var Fn=ru.apply(null,we.slice($t,et));return $t=et,{value:Fn,done:!1}}return{done:!0,value:null}}}},Fl=function(he){for(var we=bl(he),Pe=[],et;!(et=we.next()).done;)et.value&&Pe.push(et.value.slice());return Pe},Hl=function(he){var we=123;if(he.createRange){var Pe=he.createRange();if(Pe.getBoundingClientRect){var et=he.createElement("boundtest");et.style.height=we+"px",et.style.display="block",he.body.appendChild(et),Pe.selectNode(et);var $t=Pe.getBoundingClientRect(),jr=Math.round($t.height);if(he.body.removeChild(et),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 Pe=he.createRange();we.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var et=we.firstChild,$t=r(et.data).map(function(Fn){return i(Fn)}),jr=0,an={},bn=$t.every(function(Fn,wi){Pe.setStart(et,jr),Pe.setEnd(et,jr+Fn.length);var fi=Pe.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),bn},Tl=function(){return typeof new Image().crossOrigin!="undefined"},Tu=function(){return typeof new XMLHttpRequest().responseType=="string"},Cu=function(he){var we=new Image,Pe=he.createElement("canvas"),et=Pe.getContext("2d");if(!et)return!1;we.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{et.drawImage(we,0,0),Pe.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"),Pe=100;we.width=Pe,we.height=Pe;var et=we.getContext("2d");if(!et)return Promise.reject(!1);et.fillStyle="rgb(0, 255, 0)",et.fillRect(0,0,Pe,Pe);var $t=new Image,jr=we.toDataURL();$t.src=jr;var an=hu(Pe,Pe,0,0,$t);return et.fillStyle="red",et.fillRect(0,0,Pe,Pe),su(an).then(function(bn){et.drawImage(bn,0,0);var Fn=et.getImageData(0,0,Pe,Pe).data;et.fillStyle="red",et.fillRect(0,0,Pe,Pe);var wi=he.createElement("div");return wi.style.backgroundImage="url("+jr+")",wi.style.height=Pe+"px",Cl(Fn)?su(hu(Pe,Pe,0,0,wi)):Promise.reject(!1)}).then(function(bn){return et.drawImage(bn,0,0),Cl(et.getImageData(0,0,Pe,Pe).data)}).catch(function(){return!1})},hu=function(he,we,Pe,et,$t){var jr="http://www.w3.org/2000/svg",an=document.createElementNS(jr,"svg"),bn=document.createElementNS(jr,"foreignObject");return an.setAttributeNS(null,"width",he.toString()),an.setAttributeNS(null,"height",we.toString()),bn.setAttributeNS(null,"width","100%"),bn.setAttributeNS(null,"height","100%"),bn.setAttributeNS(null,"x",Pe.toString()),bn.setAttributeNS(null,"y",et.toString()),bn.setAttributeNS(null,"externalResourcesRequired","true"),an.appendChild(bn),bn.appendChild($t),an},su=function(he){return new Promise(function(we,Pe){var et=new Image;et.onload=function(){return we(et)},et.onerror=Pe,et.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,Pe,et){var $t=lu(we,Pe),jr=[],an=0;return $t.forEach(function(bn){if(Pe.textDecorationLine.length||bn.trim().length>0)if(Rs.SUPPORT_RANGE_BOUNDS){var Fn=fu(et,an,bn.length).getClientRects();if(Fn.length>1){var wi=Xl(bn),fi=0;wi.forEach(function(ba){jr.push(new el(ba,f.fromDOMRectList(he,fu(et,fi+an,ba.length).getClientRects()))),fi+=ba.length})}else jr.push(new el(bn,f.fromDOMRectList(he,Fn)))}else{var Ci=et.splitText(bn.length);jr.push(new el(bn,wu(he,et))),et=Ci}else Rs.SUPPORT_RANGE_BOUNDS||(et=et.splitText(bn.length));an+=bn.length}),jr},wu=function(he,we){var Pe=we.ownerDocument;if(Pe){var et=Pe.createElement("html2canvaswrapper");et.appendChild(we.cloneNode(!0));var $t=we.parentNode;if($t){$t.replaceChild(et,we);var jr=c(he,et);return et.firstChild&&$t.replaceChild(et.firstChild,et),jr}}return f.EMPTY},fu=function(he,we,Pe){var et=he.ownerDocument;if(!et)throw new Error("Node has no owner document");var $t=et.createRange();return $t.setStart(he,we),$t.setEnd(he,we+Pe),$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(Pe){return Pe.segment})}return Fl(he)},Kl=function(he,we){if(Rs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Pe=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Pe.segment(he)).map(function(et){return et.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 Pe=Ie(he,{lineBreak:we.lineBreak,wordBreak:we.overflowWrap==="break-word"?"break-word":we.wordBreak}),et=[],$t,jr=function(){if($t.value){var bn=$t.value.slice(),Fn=r(bn),wi="";Fn.forEach(function(fi){pu.indexOf(fi)===-1?wi+=i(fi):(wi.length&&et.push(wi),et.push(i(fi)),wi="")}),wi.length&&et.push(wi)}};!($t=Pe.next()).done;)jr();return et},pl=function(){function ur(he,we,Pe){this.text=wl(we.data,Pe.textTransform),this.textBounds=Bl(he,this.text,Pe,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,Pe){return he.length>0?we+Pe.toUpperCase():he},Na=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this;return et.src=Pe.currentSrc||Pe.src,et.intrinsicWidth=Pe.naturalWidth,et.intrinsicHeight=Pe.naturalHeight,et.context.cache.addImage(et.src),et}return he}(as),ro=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this;return et.canvas=Pe,et.intrinsicWidth=Pe.width,et.intrinsicHeight=Pe.height,et}return he}(as),Io=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this,$t=new XMLSerializer,jr=c(we,Pe);return Pe.setAttribute("width",jr.width+"px"),Pe.setAttribute("height",jr.height+"px"),et.svg="data:image/svg+xml,"+encodeURIComponent($t.serializeToString(Pe)),et.intrinsicWidth=Pe.width.baseVal.value,et.intrinsicHeight=Pe.height.baseVal.value,et.context.cache.addImage(et.svg),et}return he}(as),Bs=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this;return et.value=Pe.value,et}return he}(as),Ol=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this;return et.start=Pe.start,et.reversed=typeof Pe.reversed=="boolean"&&Pe.reversed===!0,et}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,Pe){var et=ur.call(this,we,Pe)||this;et.type=Pe.type.toLowerCase(),et.checked=Pe.checked,et.value=Il(Pe),(et.type===Ll||et.type===Ks)&&(et.styles.backgroundColor=3739148031,et.styles.borderTopColor=et.styles.borderRightColor=et.styles.borderBottomColor=et.styles.borderLeftColor=2779096575,et.styles.borderTopWidth=et.styles.borderRightWidth=et.styles.borderBottomWidth=et.styles.borderLeftWidth=1,et.styles.borderTopStyle=et.styles.borderRightStyle=et.styles.borderBottomStyle=et.styles.borderLeftStyle=1,et.styles.backgroundClip=[0],et.styles.backgroundOrigin=[0],et.bounds=Al(et.bounds));switch(et.type){case Ll:et.styles.borderTopRightRadius=et.styles.borderTopLeftRadius=et.styles.borderBottomRightRadius=et.styles.borderBottomLeftRadius=_l;break;case Ks:et.styles.borderTopRightRadius=et.styles.borderTopLeftRadius=et.styles.borderBottomRightRadius=et.styles.borderBottomLeftRadius=ml;break}return et}return he}(as),Ou=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this,$t=Pe.options[Pe.selectedIndex||0];return et.value=$t&&$t.text||"",et}return he}(as),Vu=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this;return et.value=Pe.value,et}return he}(as),Fu=function(ur){E(he,ur);function he(we,Pe){var et=ur.call(this,we,Pe)||this;et.src=Pe.src,et.width=parseInt(Pe.width,10)||0,et.height=parseInt(Pe.height,10)||0,et.backgroundColor=et.styles.backgroundColor;try{if(Pe.contentWindow&&Pe.contentWindow.document&&Pe.contentWindow.document.documentElement){et.tree=Xu(we,Pe.contentWindow.document.documentElement);var $t=Pe.contentWindow.document.documentElement?Ia(we,getComputedStyle(Pe.contentWindow.document.documentElement).backgroundColor):Va.TRANSPARENT,jr=Pe.contentWindow.document.body?Ia(we,getComputedStyle(Pe.contentWindow.document.body).backgroundColor):Va.TRANSPARENT;et.backgroundColor=ra($t)?ra(jr)?et.styles.backgroundColor:jr:$t}}catch(an){}return et}return he}(as),ec=["OL","UL","MENU"],Bu=function ur(he,we,Pe,et){for(var $t=we.firstChild,jr=void 0;$t;$t=jr)if(jr=$t.nextSibling,_u($t)&&$t.data.trim().length>0)Pe.textNodes.push(new pl(he,$t,Pe.styles));else if(Ul($t))if(Xt($t)&&$t.assignedNodes)$t.assignedNodes().forEach(function(bn){return ur(he,bn,Pe,et)});else{var an=Gu(he,$t);an.styles.isVisible()&&(Yu($t,an,et)?an.flags|=4:Uu(an.styles)&&(an.flags|=2),ec.indexOf($t.tagName)!==-1&&(an.flags|=8),Pe.elements.push(an),$t.slot,$t.shadowRoot?ur(he,$t.shadowRoot,an,et):!Rt($t)&&!nr($t)&&!zt($t)&&ur(he,$t,an,et))}},Gu=function(he,we){return q(we)?new Na(he,we):zr(we)?new ro(he,we):nr(we)?new Io(he,we):Su(we)?new Bs(he,we):ge(we)?new Ol(he,we):We(we)?new uu(he,we):zt(we)?new Ou(he,we):Rt(we)?new Vu(he,we):ye(we)?new Fu(he,we):new as(he,we)},Xu=function(he,we){var Pe=Gu(he,we);return Pe.flags|=4,Bu(he,we,Pe,Pe),Pe},Yu=function(he,we,Pe){return we.styles.isPositionedWithZIndex()||we.styles.opacity<1||we.styles.isTransformed()||Tr(he)&&Pe.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"},ge=function(he){return he.tagName==="OL"},We=function(he){return he.tagName==="INPUT"},dt=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"},De=function(he){return he.tagName==="VIDEO"},q=function(he){return he.tagName==="IMG"},ye=function(he){return he.tagName==="IFRAME"},Ve=function(he){return he.tagName==="STYLE"},it=function(he){return he.tagName==="SCRIPT"},Rt=function(he){return he.tagName==="TEXTAREA"},zt=function(he){return he.tagName==="SELECT"},Xt=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(Pe){return we.counters[Pe].pop()})},ur.prototype.parse=function(he){var we=this,Pe=he.counterIncrement,et=he.counterReset,$t=!0;Pe!==null&&Pe.forEach(function(an){var bn=we.counters[an.counter];bn&&an.increment!==0&&($t=!1,bn.length||bn.push(1),bn[Math.max(0,bn.length-1)]+=an.increment)});var jr=[];return $t&&et.forEach(function(an){var bn=we.counters[an.counter];jr.push(an.counter),bn||(bn=we.counters[an.counter]=[]),bn.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,Pe,et,$t,jr){return he<we||he>Pe?$(he,$t,jr.length>0):et.integers.reduce(function(an,bn,Fn){for(;he>=bn;)he-=bn,an+=et.values[Fn];return an},"")+jr},oi=function(he,we,Pe,et){var $t="";do Pe||he--,$t=et(he)+$t,he/=we;while(he*we>=we);return $t},hi=function(he,we,Pe,et,$t){var jr=Pe-we+1;return(he<0?"-":"")+(oi(Math.abs(he),jr,et,function(an){return i(Math.floor(an%jr)+we)})+$t)},ji=function(he,we,Pe){Pe===void 0&&(Pe=". ");var et=we.length;return oi(Math.abs(he),et,!1,function($t){return we[Math.floor($t%et)]})+Pe},Oi=1<<0,wa=1<<1,Qi=1<<2,Ua=1<<3,Sa=function(he,we,Pe,et,$t,jr){if(he<-9999||he>9999)return $(he,4,$t.length>0);var an=Math.abs(he),bn=$t;if(an===0)return we[0]+bn;for(var Fn=0;an>0&&Fn<=4;Fn++){var wi=an%10;wi===0&&Fi(jr,Oi)&&bn!==""?bn=we[wi]+bn: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)?bn=we[wi]+(Fn>0?Pe[Fn-1]:"")+bn:wi===1&&Fn>0&&(bn=Pe[Fn-1]+bn),an=Math.floor(an/10)}return(he<0?et:"")+bn},So="\u5341\u767E\u5343\u842C",Fo="\u62FE\u4F70\u4EDF\u842C",P="\u30DE\u30A4\u30CA\u30B9",W="\uB9C8\uC774\uB108\uC2A4",$=function(he,we,Pe){var et=Pe?". ":"",$t=Pe?"\u3001":"",jr=Pe?", ":"",an=Pe?" ":"";switch(we){case 0:return"\u2022"+an;case 1:return"\u25E6"+an;case 2:return"\u25FE"+an;case 5:var bn=hi(he,48,57,!0,et);return bn.length<4?"0"+bn:bn;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,et).toLowerCase();case 7:return Cn(he,1,3999,Cr,3,et);case 8:return hi(he,945,969,!1,et);case 9:return hi(he,97,122,!1,et);case 10:return hi(he,65,90,!1,et);case 11:return hi(he,1632,1641,!0,et);case 12:case 49:return Cn(he,1,9999,Er,3,et);case 35:return Cn(he,1,9999,Er,3,et).toLowerCase();case 13:return hi(he,2534,2543,!0,et);case 14:case 30:return hi(he,6112,6121,!0,et);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",P,$t,0);case 25:return Sa(he,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",P,$t,Oi|wa|Qi);case 31:return Sa(he,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",W,jr,Oi|wa|Qi);case 33:return Sa(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",W,jr,0);case 32:return Sa(he,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",W,jr,Oi|wa|Qi);case 18:return hi(he,2406,2415,!0,et);case 20:return Cn(he,1,19999,qr,3,et);case 21:return hi(he,2790,2799,!0,et);case 22:return hi(he,2662,2671,!0,et);case 22:return Cn(he,1,10999,Kr,3,et);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,et);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,et);case 37:return hi(he,6160,6169,!0,et);case 38:return hi(he,4160,4169,!0,et);case 39:return hi(he,2918,2927,!0,et);case 40:return hi(he,1776,1785,!0,et);case 43:return hi(he,3046,3055,!0,et);case 44:return hi(he,3174,3183,!0,et);case 45:return hi(he,3664,3673,!0,et);case 46:return hi(he,3872,3881,!0,et);case 3:default:return hi(he,48,57,!0,et)}},re="data-html2canvas-ignore",ce=function(){function ur(he,we,Pe){if(this.context=he,this.options=Pe,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 Pe=this,et=ht(he,we);if(!et.contentWindow)return Promise.reject("Unable to find iframe window");var $t=he.defaultView.pageXOffset,jr=he.defaultView.pageYOffset,an=et.contentWindow,bn=an.document,Fn=pr(et).then(function(){return A(Pe,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")]:bn.fonts&&bn.fonts.ready?[4,bn.fonts.ready]:[3,2];case 1:Ci.sent(),Ci.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,sr(bn)]:[3,4];case 3:Ci.sent(),Ci.label=4;case 4:return typeof wi=="function"?[2,Promise.resolve().then(function(){return wi(bn,fi)}).then(function(){return et})]:[2,et]}})})});return bn.open(),bn.write(ei(document.doctype)+"<html></html>"),ni(this.referenceElement.ownerDocument,$t,jr),bn.replaceChild(bn.adoptNode(this.documentElement),bn.documentElement),bn.close(),Fn},ur.prototype.createElementClone=function(he){if(fs(he,2))debugger;if(zr(he))return this.createCanvasClone(he);if(De(he))return this.createVideoClone(he);if(Ve(he))return this.createStyleClone(he);var we=he.cloneNode(!1);return q(we)&&(q(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 Pe=[].slice.call(we.cssRules,0).reduce(function($t,jr){return jr&&typeof jr.cssText=="string"?$t+jr.cssText:$t},""),et=he.cloneNode(!1);return et.textContent=Pe,et}}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 Pe=he.ownerDocument.createElement("img");try{return Pe.src=he.toDataURL(),Pe}catch(Fn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",he)}}var et=he.cloneNode(!1);try{et.width=he.width,et.height=he.height;var $t=he.getContext("2d"),jr=et.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 bn=an.getContextAttributes();(bn==null?void 0:bn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",he)}jr.drawImage(he,0,0)}return et}catch(Fn){this.context.logger.info("Unable to clone canvas as it is tainted",he)}return et},ur.prototype.createVideoClone=function(he){var we=he.ownerDocument.createElement("canvas");we.width=he.offsetWidth,we.height=he.offsetHeight;var Pe=we.getContext("2d");try{return Pe&&(Pe.drawImage(he,0,0,we.width,we.height),this.options.allowTaint||Pe.getImageData(0,0,we.width,we.height)),we}catch($t){this.context.logger.info("Unable to clone video as it is tainted",he)}var et=he.ownerDocument.createElement("canvas");return et.width=he.offsetWidth,et.height=he.offsetHeight,et},ur.prototype.appendChildNode=function(he,we,Pe){(!Ul(we)||!it(we)&&!we.hasAttribute(re)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(we)))&&((!this.options.copyStyles||!Ul(we)||!Ve(we))&&he.appendChild(this.cloneNode(we,Pe)))},ur.prototype.cloneChildNodes=function(he,we,Pe){for(var et=this,$t=he.shadowRoot?he.shadowRoot.firstChild:he.firstChild;$t;$t=$t.nextSibling)if(Ul($t)&&Xt($t)&&typeof $t.assignedNodes=="function"){var jr=$t.assignedNodes();jr.length&&jr.forEach(function(an){return et.appendChildNode(we,an,Pe)})}else this.appendChildNode(we,$t,Pe)},ur.prototype.cloneNode=function(he,we){if(_u(he))return document.createTextNode(he.data);if(!he.ownerDocument)return he.cloneNode(!1);var Pe=he.ownerDocument.defaultView;if(Pe&&Ul(he)&&(Iu(he)||Wl(he))){var et=this.createElementClone(he);et.style.transitionProperty="none";var $t=Pe.getComputedStyle(he),jr=Pe.getComputedStyle(he,":before"),an=Pe.getComputedStyle(he,":after");this.referenceElement===he&&Iu(et)&&(this.clonedReferenceElement=et),Tr(et)&&Ma(et);var bn=this.counters.parse(new Go(this.context,$t)),Fn=this.resolvePseudoContent(he,et,jr,ke.BEFORE);Nr(he)&&(we=!0),De(he)||this.cloneChildNodes(he,et,we),Fn&&et.insertBefore(Fn,et.firstChild);var wi=this.resolvePseudoContent(he,et,an,ke.AFTER);return wi&&et.appendChild(wi),this.counters.pop(bn),($t&&(this.options.copyStyles||Wl(he))&&!ye(he)||we)&&Rn($t,et),(he.scrollTop!==0||he.scrollLeft!==0)&&this.scrolledElements.push([et,he.scrollLeft,he.scrollTop]),(Rt(he)||zt(he))&&(Rt(et)||zt(et))&&(et.value=he.value),et}return he.cloneNode(!1)},ur.prototype.resolvePseudoContent=function(he,we,Pe,et){var $t=this;if(!Pe)return;var jr=Pe.content,an=we.ownerDocument;if(!an||!jr||jr==="none"||jr==="-moz-alt-content"||Pe.display==="none")return;this.counters.parse(new Go(this.context,Pe));var bn=new Is(this.context,Pe),Fn=an.createElement("html2canvaspseudoelement");Rn(Pe,Fn),bn.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),ka=Ea[0],Do=Ea[1];if(ka&&cn(ka)){var mo=$t.counters.getCounterValue(ka.value),io=Do&&cn(Do)?zo.parse($t.context,Do.value):3;Fn.appendChild(an.createTextNode($(mo,io,!1)))}}else if(fi.name==="counters"){var ms=fi.values.filter(Xn),ka=ms[0],Cs=ms[1],Do=ms[2];if(ka&&cn(ka)){var ss=$t.counters.getCounterValues(ka.value),$a=Do&&cn(Do)?zo.parse($t.context,Do.value):3,Ps=Cs&&Cs.type===0?Cs.value:"",js=ss.map(function(Au){return $(Au,$a,!1)}).join(Ps);Fn.appendChild(an.createTextNode(js))}}}else if(fi.type===20)switch(fi.value){case"open-quote":Fn.appendChild(an.createTextNode(Yo(bn.quotes,$t.quoteDepth++,!0)));break;case"close-quote":Fn.appendChild(an.createTextNode(Yo(bn.quotes,--$t.quoteDepth,!1)));break;default:Fn.appendChild(an.createTextNode(fi.value))}}),Fn.className=ia+" "+na;var wi=et===ke.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}(),ke;(function(ur){ur[ur.BEFORE=0]="BEFORE",ur[ur.AFTER=1]="AFTER"})(ke||(ke={}));var ht=function(he,we){var Pe=he.createElement("iframe");return Pe.className="html2canvas-container",Pe.style.visibility="hidden",Pe.style.position="fixed",Pe.style.left="-10000px",Pe.style.top="0px",Pe.style.border="0",Pe.width=we.width.toString(),Pe.height=we.height.toString(),Pe.scrolling="no",Pe.setAttribute(re,"true"),he.body.appendChild(Pe),Pe},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,Pe){var et=he.contentWindow;if(!et)return Pe("No window assigned for iframe");var $t=et.document;et.onload=he.onload=function(){et.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 Pe=he.length-1;Pe>=0;Pe--){var et=he.item(Pe);wn.indexOf(et)===-1&&we.style.setProperty(et,he.getPropertyValue(et))}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,Pe){he&&he.defaultView&&(we!==he.defaultView.pageXOffset||Pe!==he.defaultView.pageYOffset)&&he.defaultView.scrollTo(we,Pe)},Mi=function(he){var we=he[0],Pe=he[1],et=he[2];we.scrollLeft=Pe,we.scrollTop=et},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 Pe=he.ownerDocument;if(Pe){var et=Pe.createElement("style");et.textContent=we,he.appendChild(et)}},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,Pe,et,$t,jr=this;return w(this,function(an){switch(an.label){case 0:return we=no.isSameOrigin(he),Pe=!ul(he)&&this._options.useCORS===!0&&Rs.SUPPORT_CORS_IMAGES&&!we,et=!ul(he)&&!we&&!cl(he)&&typeof this._options.proxy=="string"&&Rs.SUPPORT_CORS_XHR&&!Pe,!we&&this._options.allowTaint===!1&&!ul(he)&&!cl(he)&&!et&&!Pe?[2]:($t=he,et?[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(bn,Fn){var wi=new Image;wi.onload=function(){return bn(wi)},wi.onerror=Fn,(Gs($t)||Pe)&&(wi.crossOrigin="anonymous"),wi.src=$t,wi.complete===!0&&setTimeout(function(){return bn(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,Pe=this._options.proxy;if(!Pe)throw new Error("No proxy defined");var et=he.substring(0,256);return new Promise(function($t,jr){var an=Rs.SUPPORT_RESPONSE_TYPE?"blob":"text",bn=new XMLHttpRequest;bn.onload=function(){if(bn.status===200)if(an==="text")$t(bn.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(bn.response)}else jr("Failed to proxy resource "+et+" with status code "+bn.status)},bn.onerror=jr;var Fn=Pe.indexOf("?")>-1?"&":"?";if(bn.open("GET",""+Pe+Fn+"url="+encodeURIComponent(he)+"&responseType="+an),an!=="text"&&bn instanceof XMLHttpRequest&&(bn.responseType=an),we._options.imageTimeout){var wi=we._options.imageTimeout;bn.timeout=wi,bn.ontimeout=function(){return jr("Timed out ("+wi+"ms) proxying "+et)}}bn.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,Pe){return new ya(he.x+(we.x-he.x)*Pe,he.y+(we.y-he.y)*Pe)},Ls=function(){function ur(he,we,Pe,et){this.type=1,this.start=he,this.startControl=we,this.endControl=Pe,this.end=et}return ur.prototype.subdivide=function(he,we){var Pe=Ms(this.start,this.startControl,he),et=Ms(this.startControl,this.endControl,he),$t=Ms(this.endControl,this.end,he),jr=Ms(Pe,et,he),an=Ms(et,$t,he),bn=Ms(jr,an,he);return we?new ur(this.start,Pe,jr,bn):new ur(bn,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,Pe=he.bounds,et=Ti(we.borderTopLeftRadius,Pe.width,Pe.height),$t=et[0],jr=et[1],an=Ti(we.borderTopRightRadius,Pe.width,Pe.height),bn=an[0],Fn=an[1],wi=Ti(we.borderBottomRightRadius,Pe.width,Pe.height),fi=wi[0],Ci=wi[1],ba=Ti(we.borderBottomLeftRadius,Pe.width,Pe.height),Ea=ba[0],ka=ba[1],Do=[];Do.push(($t+bn)/Pe.width),Do.push((Ea+fi)/Pe.width),Do.push((jr+ka)/Pe.height),Do.push((Fn+Ci)/Pe.height);var mo=Math.max.apply(Math,Do);mo>1&&($t/=mo,jr/=mo,bn/=mo,Fn/=mo,fi/=mo,Ci/=mo,Ea/=mo,ka/=mo);var io=Pe.width-bn,ms=Pe.height-Ci,Cs=Pe.width-fi,ss=Pe.height-ka,$a=we.borderTopWidth,Ps=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(Pe.left+ls/3,Pe.top+$a/3,$t-ls/3,jr-$a/3,ns.TOP_LEFT):new ya(Pe.left+ls/3,Pe.top+$a/3),this.topRightBorderDoubleOuterBox=$t>0||jr>0?Uo(Pe.left+io,Pe.top+$a/3,bn-Ps/3,Fn-$a/3,ns.TOP_RIGHT):new ya(Pe.left+Pe.width-Ps/3,Pe.top+$a/3),this.bottomRightBorderDoubleOuterBox=fi>0||Ci>0?Uo(Pe.left+Cs,Pe.top+ms,fi-Ps/3,Ci-js/3,ns.BOTTOM_RIGHT):new ya(Pe.left+Pe.width-Ps/3,Pe.top+Pe.height-js/3),this.bottomLeftBorderDoubleOuterBox=Ea>0||ka>0?Uo(Pe.left+ls/3,Pe.top+ss,Ea-ls/3,ka-js/3,ns.BOTTOM_LEFT):new ya(Pe.left+ls/3,Pe.top+Pe.height-js/3),this.topLeftBorderDoubleInnerBox=$t>0||jr>0?Uo(Pe.left+ls*2/3,Pe.top+$a*2/3,$t-ls*2/3,jr-$a*2/3,ns.TOP_LEFT):new ya(Pe.left+ls*2/3,Pe.top+$a*2/3),this.topRightBorderDoubleInnerBox=$t>0||jr>0?Uo(Pe.left+io,Pe.top+$a*2/3,bn-Ps*2/3,Fn-$a*2/3,ns.TOP_RIGHT):new ya(Pe.left+Pe.width-Ps*2/3,Pe.top+$a*2/3),this.bottomRightBorderDoubleInnerBox=fi>0||Ci>0?Uo(Pe.left+Cs,Pe.top+ms,fi-Ps*2/3,Ci-js*2/3,ns.BOTTOM_RIGHT):new ya(Pe.left+Pe.width-Ps*2/3,Pe.top+Pe.height-js*2/3),this.bottomLeftBorderDoubleInnerBox=Ea>0||ka>0?Uo(Pe.left+ls*2/3,Pe.top+ss,Ea-ls*2/3,ka-js*2/3,ns.BOTTOM_LEFT):new ya(Pe.left+ls*2/3,Pe.top+Pe.height-js*2/3),this.topLeftBorderStroke=$t>0||jr>0?Uo(Pe.left+ls/2,Pe.top+$a/2,$t-ls/2,jr-$a/2,ns.TOP_LEFT):new ya(Pe.left+ls/2,Pe.top+$a/2),this.topRightBorderStroke=$t>0||jr>0?Uo(Pe.left+io,Pe.top+$a/2,bn-Ps/2,Fn-$a/2,ns.TOP_RIGHT):new ya(Pe.left+Pe.width-Ps/2,Pe.top+$a/2),this.bottomRightBorderStroke=fi>0||Ci>0?Uo(Pe.left+Cs,Pe.top+ms,fi-Ps/2,Ci-js/2,ns.BOTTOM_RIGHT):new ya(Pe.left+Pe.width-Ps/2,Pe.top+Pe.height-js/2),this.bottomLeftBorderStroke=Ea>0||ka>0?Uo(Pe.left+ls/2,Pe.top+ss,Ea-ls/2,ka-js/2,ns.BOTTOM_LEFT):new ya(Pe.left+ls/2,Pe.top+Pe.height-js/2),this.topLeftBorderBox=$t>0||jr>0?Uo(Pe.left,Pe.top,$t,jr,ns.TOP_LEFT):new ya(Pe.left,Pe.top),this.topRightBorderBox=bn>0||Fn>0?Uo(Pe.left+io,Pe.top,bn,Fn,ns.TOP_RIGHT):new ya(Pe.left+Pe.width,Pe.top),this.bottomRightBorderBox=fi>0||Ci>0?Uo(Pe.left+Cs,Pe.top+ms,fi,Ci,ns.BOTTOM_RIGHT):new ya(Pe.left+Pe.width,Pe.top+Pe.height),this.bottomLeftBorderBox=Ea>0||ka>0?Uo(Pe.left,Pe.top+ss,Ea,ka,ns.BOTTOM_LEFT):new ya(Pe.left,Pe.top+Pe.height),this.topLeftPaddingBox=$t>0||jr>0?Uo(Pe.left+ls,Pe.top+$a,Math.max(0,$t-ls),Math.max(0,jr-$a),ns.TOP_LEFT):new ya(Pe.left+ls,Pe.top+$a),this.topRightPaddingBox=bn>0||Fn>0?Uo(Pe.left+Math.min(io,Pe.width-Ps),Pe.top+$a,io>Pe.width+Ps?0:Math.max(0,bn-Ps),Math.max(0,Fn-$a),ns.TOP_RIGHT):new ya(Pe.left+Pe.width-Ps,Pe.top+$a),this.bottomRightPaddingBox=fi>0||Ci>0?Uo(Pe.left+Math.min(Cs,Pe.width-ls),Pe.top+Math.min(ms,Pe.height-js),Math.max(0,fi-Ps),Math.max(0,Ci-js),ns.BOTTOM_RIGHT):new ya(Pe.left+Pe.width-Ps,Pe.top+Pe.height-js),this.bottomLeftPaddingBox=Ea>0||ka>0?Uo(Pe.left+ls,Pe.top+Math.min(ss,Pe.height-js),Math.max(0,Ea-ls),Math.max(0,ka-js),ns.BOTTOM_LEFT):new ya(Pe.left+ls,Pe.top+Pe.height-js),this.topLeftContentBox=$t>0||jr>0?Uo(Pe.left+ls+Sl,Pe.top+$a+$l,Math.max(0,$t-(ls+Sl)),Math.max(0,jr-($a+$l)),ns.TOP_LEFT):new ya(Pe.left+ls+Sl,Pe.top+$a+$l),this.topRightContentBox=bn>0||Fn>0?Uo(Pe.left+Math.min(io,Pe.width+ls+Sl),Pe.top+$a+$l,io>Pe.width+ls+Sl?0:bn-ls+Sl,Fn-($a+$l),ns.TOP_RIGHT):new ya(Pe.left+Pe.width-(Ps+Au),Pe.top+$a+$l),this.bottomRightContentBox=fi>0||Ci>0?Uo(Pe.left+Math.min(Cs,Pe.width-(ls+Sl)),Pe.top+Math.min(ms,Pe.height+$a+$l),Math.max(0,fi-(Ps+Au)),Ci-(js+ql),ns.BOTTOM_RIGHT):new ya(Pe.left+Pe.width-(Ps+Au),Pe.top+Pe.height-(js+ql)),this.bottomLeftContentBox=Ea>0||ka>0?Uo(Pe.left+ls+Sl,Pe.top+ss,Math.max(0,Ea-(ls+Sl)),ka-(js+ql),ns.BOTTOM_LEFT):new ya(Pe.left+ls+Sl,Pe.top+Pe.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,Pe,et,$t){var jr=4*((Math.sqrt(2)-1)/3),an=Pe*jr,bn=et*jr,Fn=he+Pe,wi=we+et;switch($t){case ns.TOP_LEFT:return new Ls(new ya(he,wi),new ya(he,wi-bn),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-bn),new ya(Fn,wi));case ns.BOTTOM_RIGHT:return new Ls(new ya(Fn,we),new ya(Fn,we+bn),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+bn),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,Pe){this.offsetX=he,this.offsetY=we,this.matrix=Pe,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(Pe,et){return Pe===we[et]}):!1},vc=function(he,we,Pe,et,$t){return he.map(function(jr,an){switch(an){case 0:return jr.add(we,Pe);case 1:return jr.add(we+et,Pe);case 2:return jr.add(we+et,Pe+$t);case 3:return jr.add(we,Pe+$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 Pe=this.container.bounds.left+this.container.styles.transformOrigin[0].number,et=this.container.bounds.top+this.container.styles.transformOrigin[1].number,$t=this.container.styles.transform;this.effects.push(new Ql(Pe,et,$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,Pe=this.parent,et=this.effects.slice(0);Pe;){var $t=Pe.effects.filter(function(bn){return!Jl(bn)});if(we||Pe.container.styles.position!==0||!Pe.parent){if(et.unshift.apply(et,$t),we=[2,3].indexOf(Pe.container.styles.position)===-1,Pe.container.styles.overflowX!==0){var jr=Rl(Pe.curves),an=Nu(Pe.curves);Qu(jr,an)||et.unshift(new Ml(an,2|4))}}else et.unshift.apply(et,$t);Pe=Pe.parent}return et.filter(function(bn){return Fi(bn.target,he)})},ur}(),yc=function ur(he,we,Pe,et){he.container.elements.forEach(function($t){var jr=Fi($t.flags,4),an=Fi($t.flags,2),bn=new tc($t,he);Fi($t.styles.display,2048)&&et.push(bn);var Fn=Fi($t.flags,8)?[]:et;if(jr||an){var wi=jr||$t.styles.isPositioned()?Pe:we,fi=new Ac(bn);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(ka,Do){return Ci>ka.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(ka,Do){return Ci>=ka.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(bn,fi,jr?fi:Pe,Fn)}else $t.styles.isInlineLevel()?we.inlineLevel.push(bn):we.nonInlineLevel.push(bn),ur(bn,we,Pe,Fn);Fi($t.flags,8)&&sc($t,Fn)})},sc=function(he,we){for(var Pe=he instanceof Ol?he.start:1,et=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&&(Pe=jr.container.value),jr.listValue=$(Pe,jr.container.styles.listStyleType,!0),Pe+=et?-1:1}},Du=function(he){var we=new tc(he,null),Pe=new Ac(we),et=[];return yc(we,Pe,Pe,et),sc(we.container,et),Pe},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 Pe=[];return Ws(he)?Pe.push(he.subdivide(.5,!1)):Pe.push(he),Ws(we)?Pe.push(we.subdivide(.5,!0)):Pe.push(we),Pe},Zl=function(he,we,Pe,et){var $t=[];return Ws(he)?$t.push(he.subdivide(.5,!1)):$t.push(he),Ws(Pe)?$t.push(Pe.subdivide(.5,!0)):$t.push(Pe),Ws(et)?$t.push(et.subdivide(.5,!0).reverse()):$t.push(et),Ws(we)?$t.push(we.subdivide(.5,!1).reverse()):$t.push(we),$t},fc=function(he){var we=he.bounds,Pe=he.styles;return we.add(Pe.borderLeftWidth,Pe.borderTopWidth,-(Pe.borderRightWidth+Pe.borderLeftWidth),-(Pe.borderTopWidth+Pe.borderBottomWidth))},lc=function(he){var we=he.styles,Pe=he.bounds,et=Ui(we.paddingLeft,Pe.width),$t=Ui(we.paddingRight,Pe.width),jr=Ui(we.paddingTop,Pe.width),an=Ui(we.paddingBottom,Pe.width);return Pe.add(et+we.borderLeftWidth,jr+we.borderTopWidth,-(we.borderRightWidth+we.borderLeftWidth+et+$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,Pe){var et=Sc(zl(he.styles.backgroundOrigin,we),he),$t=Cc(zl(he.styles.backgroundClip,we),he),jr=Eu(zl(he.styles.backgroundSize,we),Pe,et),an=jr[0],bn=jr[1],Fn=Ti(zl(he.styles.backgroundPosition,we),et.width-an,et.height-bn),wi=Mu(zl(he.styles.backgroundRepeat,we),Fn,jr,et,$t),fi=Math.round(et.left+Fn[0]),Ci=Math.round(et.top+Fn[1]);return[wi,fi,Ci,an,bn]},Ru=function(he){return cn(he)&&he.value===ai.AUTO},Ku=function(he){return typeof he=="number"},Eu=function(he,we,Pe){var et=we[0],$t=we[1],jr=we[2],an=he[0],bn=he[1];if(!an)return[0,0];if(Si(an)&&bn&&Si(bn))return[Ui(an,Pe.width),Ui(bn,Pe.height)];var Fn=Ku(jr);if(cn(an)&&(an.value===ai.CONTAIN||an.value===ai.COVER)){if(Ku(jr)){var wi=Pe.width/Pe.height;return wi<jr!==(an.value===ai.COVER)?[Pe.width,Pe.width/jr]:[Pe.height*jr,Pe.height]}return[Pe.width,Pe.height]}var fi=Ku(et),Ci=Ku($t),ba=fi||Ci;if(Ru(an)&&(!bn||Ru(bn))){if(fi&&Ci)return[et,$t];if(!Fn&&!ba)return[Pe.width,Pe.height];if(ba&&Fn){var Ea=fi?et:$t*jr,ka=Ci?$t:et/jr;return[Ea,ka]}var Do=fi?et:Pe.width,mo=Ci?$t:Pe.height;return[Do,mo]}if(Fn){var io=0,ms=0;return Si(an)?io=Ui(an,Pe.width):Si(bn)&&(ms=Ui(bn,Pe.height)),Ru(an)?io=ms*jr:(!bn||Ru(bn))&&(ms=io/jr),[io,ms]}var Cs=null,ss=null;if(Si(an)?Cs=Ui(an,Pe.width):bn&&Si(bn)&&(ss=Ui(bn,Pe.height)),Cs!==null&&(!bn||Ru(bn))&&(ss=fi&&Ci?Cs/et*$t:Pe.height),ss!==null&&Ru(an)&&(Cs=fi&&Ci?ss/$t*et:Pe.width),Cs!==null&&ss!==null)return[Cs,ss];throw new Error("Unable to calculate background-size for element")},zl=function(he,we){var Pe=he[we];return typeof Pe=="undefined"?he[0]:Pe},Mu=function(he,we,Pe,et,$t){var jr=we[0],an=we[1],bn=Pe[0],Fn=Pe[1];switch(he){case 2:return[new ya(Math.round(et.left),Math.round(et.top+an)),new ya(Math.round(et.left+et.width),Math.round(et.top+an)),new ya(Math.round(et.left+et.width),Math.round(Fn+et.top+an)),new ya(Math.round(et.left),Math.round(Fn+et.top+an))];case 3:return[new ya(Math.round(et.left+jr),Math.round(et.top)),new ya(Math.round(et.left+jr+bn),Math.round(et.top)),new ya(Math.round(et.left+jr+bn),Math.round(et.height+et.top)),new ya(Math.round(et.left+jr),Math.round(et.height+et.top))];case 1:return[new ya(Math.round(et.left+jr),Math.round(et.top+an)),new ya(Math.round(et.left+jr+bn),Math.round(et.top+an)),new ya(Math.round(et.left+jr+bn),Math.round(et.top+an+Fn)),new ya(Math.round(et.left+jr),Math.round(et.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 Pe=this._document.createElement("div"),et=this._document.createElement("img"),$t=this._document.createElement("span"),jr=this._document.body;Pe.style.visibility="hidden",Pe.style.fontFamily=he,Pe.style.fontSize=we,Pe.style.margin="0",Pe.style.padding="0",Pe.style.whiteSpace="nowrap",jr.appendChild(Pe),et.src=uc,et.width=1,et.height=1,et.style.margin="0",et.style.padding="0",et.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)),Pe.appendChild($t),Pe.appendChild(et);var an=et.offsetTop-$t.offsetTop+2;Pe.removeChild($t),Pe.appendChild(this._document.createTextNode(cc)),Pe.style.lineHeight="normal",et.style.verticalAlign="super";var bn=et.offsetTop-Pe.offsetTop+2;return jr.removeChild(Pe),{baseline:an,middle:bn}},ur.prototype.getMetrics=function(he,we){var Pe=he+" "+we;return typeof this._data[Pe]=="undefined"&&(this._data[Pe]=this.parseMetrics(he,we)),this._data[Pe]},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,Pe){var et=ur.call(this,we,Pe)||this;return et._activeEffects=[],et.canvas=Pe.canvas?Pe.canvas:document.createElement("canvas"),et.ctx=et.canvas.getContext("2d"),Pe.canvas||(et.canvas.width=Math.floor(Pe.width*Pe.scale),et.canvas.height=Math.floor(Pe.height*Pe.scale),et.canvas.style.width=Pe.width+"px",et.canvas.style.height=Pe.height+"px"),et.fontMetrics=new xc(document),et.ctx.scale(et.options.scale,et.options.scale),et.ctx.translate(-Pe.x,-Pe.y),et.ctx.textBaseline="bottom",et._activeEffects=[],et.context.logger.debug("Canvas renderer initialized ("+Pe.width+"x"+Pe.height+") with scale "+Pe.scale),et}return he.prototype.applyEffects=function(we){for(var Pe=this;this._activeEffects.length;)this.popEffect();we.forEach(function(et){return Pe.applyEffect(et)})},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 Pe;return w(this,function(et){switch(et.label){case 0:return Pe=we.element.container.styles,Pe.isVisible()?[4,this.renderStackContent(we)]:[3,2];case 1:et.sent(),et.label=2;case 2:return[2]}})})},he.prototype.renderNode=function(we){return A(this,void 0,void 0,function(){return w(this,function(Pe){switch(Pe.label){case 0:if(Fi(we.container.flags,16))debugger;return we.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(we)]:[3,3];case 1:return Pe.sent(),[4,this.renderNodeContent(we)];case 2:Pe.sent(),Pe.label=3;case 3:return[2]}})})},he.prototype.renderTextWithLetterSpacing=function(we,Pe,et){var $t=this;if(Pe===0)this.ctx.fillText(we.text,we.bounds.left,we.bounds.top+et);else{var jr=Xl(we.text);jr.reduce(function(an,bn){return $t.ctx.fillText(bn,an,we.bounds.top+et),an+$t.ctx.measureText(bn).width},we.bounds.left)}},he.prototype.createFontStyle=function(we){var Pe=we.fontVariant.filter(function(jr){return jr==="normal"||jr==="small-caps"}).join(""),et=Nc(we.fontFamily).join(", "),$t=Fr(we.fontSize)?""+we.fontSize.number+we.fontSize.unit:we.fontSize.number+"px";return[[we.fontStyle,Pe,we.fontWeight,$t,et].join(" "),et,$t]},he.prototype.renderTextNode=function(we,Pe){return A(this,void 0,void 0,function(){var et,$t,jr,an,bn,Fn,wi,fi,Ci=this;return w(this,function(ba){return et=this.createFontStyle(Pe),$t=et[0],jr=et[1],an=et[2],this.ctx.font=$t,this.ctx.direction=Pe.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",bn=this.fontMetrics.getMetrics(jr,an),Fn=bn.baseline,wi=bn.middle,fi=Pe.paintOrder,we.textBounds.forEach(function(Ea){fi.forEach(function(ka){switch(ka){case 0:Ci.ctx.fillStyle=pa(Pe.color),Ci.renderTextWithLetterSpacing(Ea,Pe.letterSpacing,Fn);var Do=Pe.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,Pe.letterSpacing,Fn)}),Ci.ctx.shadowColor="",Ci.ctx.shadowOffsetX=0,Ci.ctx.shadowOffsetY=0,Ci.ctx.shadowBlur=0),Pe.textDecorationLine.length&&(Ci.ctx.fillStyle=pa(Pe.textDecorationColor||Pe.color),Pe.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:Pe.webkitTextStrokeWidth&&Ea.text.trim().length&&(Ci.ctx.strokeStyle=pa(Pe.webkitTextStrokeColor),Ci.ctx.lineWidth=Pe.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,Pe,et){if(et&&we.intrinsicWidth>0&&we.intrinsicHeight>0){var $t=lc(we),jr=Nu(Pe);this.path(jr),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(et,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 Pe,et,$t,jr,an,bn,Fn,Fn,wi,fi,Ci,ba,Ea,ka,Do,mo,io,ms,Cs,Fn,ss,Ea,mo;return w(this,function($a){switch($a.label){case 0:this.applyEffects(we.getEffects(4)),Pe=we.container,et=we.curves,$t=Pe.styles,jr=0,an=Pe.textNodes,$a.label=1;case 1:return jr<an.length?(bn=an[jr],[4,this.renderTextNode(bn,$t)]):[3,4];case 2:$a.sent(),$a.label=3;case 3:return jr++,[3,1];case 4:if(!(Pe instanceof Na))return[3,8];$a.label=5;case 5:return $a.trys.push([5,7,,8]),[4,this.context.cache.match(Pe.src)];case 6:return Fn=$a.sent(),this.renderReplacedElement(Pe,et,Fn),[3,8];case 7:return $a.sent(),this.context.logger.error("Error loading image "+Pe.src),[3,8];case 8:if(Pe instanceof ro&&this.renderReplacedElement(Pe,et,Pe.canvas),!(Pe instanceof Io))return[3,12];$a.label=9;case 9:return $a.trys.push([9,11,,12]),[4,this.context.cache.match(Pe.svg)];case 10:return Fn=$a.sent(),this.renderReplacedElement(Pe,et,Fn),[3,12];case 11:return $a.sent(),this.context.logger.error("Error loading svg "+Pe.svg.substring(0,255)),[3,12];case 12:return Pe instanceof Fu&&Pe.tree?(wi=new he(this.context,{scale:this.options.scale,backgroundColor:Pe.backgroundColor,x:0,y:0,width:Pe.width,height:Pe.height}),[4,wi.render(Pe.tree)]):[3,14];case 13:fi=$a.sent(),Pe.width&&Pe.height&&this.ctx.drawImage(fi,0,0,Pe.width,Pe.height,Pe.bounds.left,Pe.bounds.top,Pe.bounds.width,Pe.bounds.height),$a.label=14;case 14:if(Pe instanceof uu&&(Ci=Math.min(Pe.bounds.width,Pe.bounds.height),Pe.type===Ll?Pe.checked&&(this.ctx.save(),this.path([new ya(Pe.bounds.left+Ci*.39363,Pe.bounds.top+Ci*.79),new ya(Pe.bounds.left+Ci*.16,Pe.bounds.top+Ci*.5549),new ya(Pe.bounds.left+Ci*.27347,Pe.bounds.top+Ci*.44071),new ya(Pe.bounds.left+Ci*.39694,Pe.bounds.top+Ci*.5649),new ya(Pe.bounds.left+Ci*.72983,Pe.bounds.top+Ci*.23),new ya(Pe.bounds.left+Ci*.84,Pe.bounds.top+Ci*.34085),new ya(Pe.bounds.left+Ci*.39363,Pe.bounds.top+Ci*.79)]),this.ctx.fillStyle=pa(gu),this.ctx.fill(),this.ctx.restore()):Pe.type===Ks&&(Pe.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Pe.bounds.left+Ci/2,Pe.bounds.top+Ci/2,Ci/4,0,Math.PI*2,!0),this.ctx.fillStyle=pa(gu),this.ctx.fill(),this.ctx.restore()))),Oc(Pe)&&Pe.value.length){ba=this.createFontStyle($t),Ea=ba[0],ka=ba[1],Do=this.fontMetrics.getMetrics(Ea,ka).baseline,this.ctx.font=Ea,this.ctx.fillStyle=pa($t.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(Pe.styles.textAlign),mo=lc(Pe),io=0;switch(Pe.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(Pe.value,ms),$t.letterSpacing,Do),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Fi(Pe.styles.display,2048))return[3,20];if(!(Pe.styles.listStyleImage!==null))return[3,19];if(Cs=Pe.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,Pe.bounds.left-(Fn.width+10),Pe.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&&Pe.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(Pe.bounds.left,Pe.bounds.top+Ui(Pe.styles.paddingTop,Pe.bounds.width),Pe.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 Pe,et,$t,jr,an,$t,bn,Fn,$t,wi,fi,$t,Ci,ba,$t,Ea,ka,$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(),Pe=0,et=we.negativeZIndex,io.label=2;case 2:return Pe<et.length?($t=et[Pe],[4,this.renderStack($t)]):[3,5];case 3:io.sent(),io.label=4;case 4:return Pe++,[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:bn=0,Fn=we.nonPositionedFloats,io.label=11;case 11:return bn<Fn.length?($t=Fn[bn],[4,this.renderStack($t)]):[3,14];case 12:io.sent(),io.label=13;case 13:return bn++,[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,ka=we.zeroOrAutoZIndexOrTransformedOrOpacity,io.label=23;case 23:return Ea<ka.length?($t=ka[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 Pe=this;we.forEach(function(et,$t){var jr=Ws(et)?et.start:et;$t===0?Pe.ctx.moveTo(jr.x,jr.y):Pe.ctx.lineTo(jr.x,jr.y),Ws(et)&&Pe.ctx.bezierCurveTo(et.startControl.x,et.startControl.y,et.endControl.x,et.endControl.y,et.end.x,et.end.y)})},he.prototype.renderRepeat=function(we,Pe,et,$t){this.path(we),this.ctx.fillStyle=Pe,this.ctx.translate(et,$t),this.ctx.fill(),this.ctx.translate(-et,-$t)},he.prototype.resizeImage=function(we,Pe,et){var $t;if(we.width===Pe&&we.height===et)return we;var jr=($t=this.canvas.ownerDocument)!==null&&$t!==void 0?$t:document,an=jr.createElement("canvas");an.width=Math.max(1,Pe),an.height=Math.max(1,et);var bn=an.getContext("2d");return bn.drawImage(we,0,0,we.width,we.height,0,0,Pe,et),an},he.prototype.renderBackgroundImage=function(we){return A(this,void 0,void 0,function(){var Pe,et,$t,jr,an,bn;return w(this,function(Fn){switch(Fn.label){case 0:Pe=we.styles.backgroundImage.length-1,et=function(fi){var Ci,ba,Ea,ka,Do,mo,io,ms,Cs,ss,ka,Do,mo,io,ms,$a,Ps,js,ls,$l,Au,ql,Sl,rc,Cs,Pu,ka,Ju,Zu,io,ms,$u,Do,mo,nc,ku,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,Pe,[Ci.width,Ci.height,Ci.width/Ci.height]),ka=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(ka,Cs,Do,mo)),[3,6];case 5:_r(fi)?(ss=Hu(we,Pe,[null,null,null]),ka=ss[0],Do=ss[1],mo=ss[2],io=ss[3],ms=ss[4],$a=Oo(fi.angle,io,ms),Ps=$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,Ps).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(ka,Cs,Do,mo))):Pn(fi)&&(Pu=Hu(we,Pe,[null,null,null]),ka=Pu[0],Ju=Pu[1],Zu=Pu[2],io=Pu[3],ms=Pu[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),ku=nc[0],qu=nc[1],ku>0&&qu>0&&(ic=$t.ctx.createRadialGradient(Ju+Do,Zu+mo,0,Ju+Do,Zu+mo,ku),uo(fi.stops,ku*2).forEach(function(gc){return ic.addColorStop(gc.stop,pa(gc.color))}),$t.path(ka),$t.ctx.fillStyle=ic,ku!==qu?(ac=we.bounds.left+.5*we.bounds.width,Wu=we.bounds.top+.5*we.bounds.height,oc=qu/ku,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 Pe--,[2]}})},$t=this,jr=0,an=we.styles.backgroundImage.slice(0).reverse(),Fn.label=1;case 1:return jr<an.length?(bn=an[jr],[5,et(bn)]):[3,4];case 2:Fn.sent(),Fn.label=3;case 3:return jr++,[3,1];case 4:return[2]}})})},he.prototype.renderSolidBorder=function(we,Pe,et){return A(this,void 0,void 0,function(){return w(this,function($t){return this.path(hc(et,Pe)),this.ctx.fillStyle=pa(we),this.ctx.fill(),[2]})})},he.prototype.renderDoubleBorder=function(we,Pe,et,$t){return A(this,void 0,void 0,function(){var jr,an;return w(this,function(bn){switch(bn.label){case 0:return Pe<3?[4,this.renderSolidBorder(we,et,$t)]:[3,2];case 1:return bn.sent(),[2];case 2:return jr=bc($t,et),this.path(jr),this.ctx.fillStyle=pa(we),this.ctx.fill(),an=Tc($t,et),this.path(an),this.ctx.fill(),[2]}})})},he.prototype.renderNodeBackgroundAndBorders=function(we){return A(this,void 0,void 0,function(){var Pe,et,$t,jr,an,bn,Fn,wi,fi=this;return w(this,function(Ci){switch(Ci.label){case 0:return this.applyEffects(we.getEffects(2)),Pe=we.container.styles,et=!ra(Pe.backgroundColor)||Pe.backgroundImage.length,$t=[{style:Pe.borderTopStyle,color:Pe.borderTopColor,width:Pe.borderTopWidth},{style:Pe.borderRightStyle,color:Pe.borderRightColor,width:Pe.borderRightWidth},{style:Pe.borderBottomStyle,color:Pe.borderBottomColor,width:Pe.borderBottomWidth},{style:Pe.borderLeftStyle,color:Pe.borderLeftColor,width:Pe.borderLeftWidth}],jr=_c(zl(Pe.backgroundClip,0),we.curves),et||Pe.boxShadow.length?(this.ctx.save(),this.path(jr),this.ctx.clip(),ra(Pe.backgroundColor)||(this.ctx.fillStyle=pa(Pe.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(we.container)]):[3,2];case 1:Ci.sent(),this.ctx.restore(),Pe.boxShadow.slice(0).reverse().forEach(function(ba){fi.ctx.save();var Ea=Rl(we.curves),ka=ba.inset?0:pc,Do=vc(Ea,-ka+(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+ka,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,bn=0,Fn=$t,Ci.label=3;case 3:return bn<Fn.length?(wi=Fn[bn],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 bn++,[3,3];case 13:return[2]}})})},he.prototype.renderDashedDottedBorder=function(we,Pe,et,$t,jr){return A(this,void 0,void 0,function(){var an,bn,Fn,wi,fi,Ci,ba,Ea,ka,Do,mo,io,ms,Cs,ss,$a,ss,$a;return w(this,function(Ps){return this.ctx.save(),an=wc($t,et),bn=hc($t,et),jr===2&&(this.path(bn),this.ctx.clip()),Ws(bn[0])?(Fn=bn[0].start.x,wi=bn[0].start.y):(Fn=bn[0].x,wi=bn[0].y),Ws(bn[1])?(fi=bn[1].end.x,Ci=bn[1].end.y):(fi=bn[1].x,Ci=bn[1].y),et===0||et===2?ba=Math.abs(Fn-fi):ba=Math.abs(wi-Ci),this.ctx.beginPath(),jr===3?this.formatPath(an):this.formatPath(bn.slice(0,2)),Ea=Pe<3?Pe*3:Pe*2,ka=Pe<3?Pe*2:Pe,jr===3&&(Ea=Pe,ka=Pe),Do=!0,ba<=Ea*2?Do=!1:ba<=Ea*2+ka?(mo=ba/(2*Ea+ka),Ea*=mo,ka*=mo):(io=Math.floor((ba+ka)/(Ea+ka)),ms=(ba-io*Ea)/(io-1),Cs=(ba-(io+1)*Ea)/io,ka=Cs<=0||Math.abs(ka-ms)<Math.abs(ka-Cs)?ms:Cs),Do&&(jr===3?this.ctx.setLineDash([0,Ea+ka]):this.ctx.setLineDash([Ea,ka])),jr===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Pe):this.ctx.lineWidth=Pe*2+1.1,this.ctx.strokeStyle=pa(we),this.ctx.stroke(),this.ctx.setLineDash([]),jr===2&&(Ws(bn[0])&&(ss=bn[3],$a=bn[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(bn[1])&&(ss=bn[1],$a=bn[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 Pe;return w(this,function(et){switch(et.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)),Pe=Du(we),[4,this.renderStack(Pe)];case 1:return et.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,Pe){var et=ur.call(this,we,Pe)||this;return et.canvas=Pe.canvas?Pe.canvas:document.createElement("canvas"),et.ctx=et.canvas.getContext("2d"),et.options=Pe,et.canvas.width=Math.floor(Pe.width*Pe.scale),et.canvas.height=Math.floor(Pe.height*Pe.scale),et.canvas.style.width=Pe.width+"px",et.canvas.style.height=Pe.height+"px",et.ctx.scale(et.options.scale,et.options.scale),et.ctx.translate(-Pe.x,-Pe.y),et.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Pe.width+"x"+Pe.height+" at "+Pe.x+","+Pe.y+") with scale "+Pe.scale),et}return he.prototype.render=function(we){return A(this,void 0,void 0,function(){var Pe,et;return w(this,function($t){switch($t.label){case 0:return Pe=hu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,we),[4,Rc(Pe)];case 1:return et=$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(et,-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,Pe){var et=new Image;et.onload=function(){we(et)},et.onerror=Pe,et.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},Mc=function(){function ur(he){var we=he.id,Pe=he.enabled;this.id=we,this.enabled=Pe,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}(),Pc=function(){function ur(he,we){var Pe;this.windowBounds=we,this.instanceName="#"+ur.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:he.logging}),this.cache=(Pe=he.cache)!==null&&Pe!==void 0?Pe:new Wo(this,he)}return ur.instanceCount=1,ur}(),kc=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 Pe,et,$t,jr,an,bn,Fn,wi,fi,Ci,ba,Ea,ka,Do,mo,io,ms,Cs,ss,$a,Ps,js,Ps,ls,$l,Au,ql,Sl,rc,Pu,Ju,Zu,$u,nc,ku,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(Pe=he.ownerDocument,!Pe)throw new Error("Element is not attached to a Document");if(et=Pe.defaultView,!et)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:et.innerWidth,windowHeight:(rc=we.windowHeight)!==null&&rc!==void 0?rc:et.innerHeight,scrollX:(Pu=we.scrollX)!==null&&Pu!==void 0?Pu:et.pageXOffset,scrollY:(Ju=we.scrollY)!==null&&Ju!==void 0?Ju:et.pageYOffset},bn=new f(an.scrollX,an.scrollY,an.windowWidth,an.windowHeight),Fn=new Pc(jr,bn),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 "+bn.width+"x"+bn.height+" scrolled to "+-bn.left+","+-bn.top),Ci=new ce(Fn,he,fi),ba=Ci.clonedReferenceElement,ba?[4,Ci.toIFrame(Pe,bn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ea=zu.sent(),ka=Tr(ba)||dt(ba)?o(ba.ownerDocument):c(Fn,ba),Do=ka.width,mo=ka.height,io=ka.left,ms=ka.top,Cs=Bc(Fn,ba,we.backgroundColor),ss={canvas:we.canvas,backgroundColor:Cs,scale:(ku=(nc=we.scale)!==null&&nc!==void 0?nc:et.devicePixelRatio)!==null&&ku!==void 0?ku: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"),Ps=new Dc(Fn,ss),[4,Ps.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),Ps=new mc(Fn,ss),[4,Ps.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,Pe){var et=we.ownerDocument,$t=et.documentElement?Ia(he,getComputedStyle(et.documentElement).backgroundColor):Va.TRANSPARENT,jr=et.body?Ia(he,getComputedStyle(et.body).backgroundColor):Va.TRANSPARENT,an=typeof Pe=="string"?Ia(he,Pe):Pe===null?Va.TRANSPARENT:4294967295;return we===et.documentElement?ra($t)?ra(jr)?an:jr:$t:an};return kc})},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 l}),d.d(B,"g",function(){return t}),d.d(B,"c",function(){return a}),d.d(B,"d",function(){return s}),d.d(B,"j",function(){return p}),d.d(B,"e",function(){return g}),d.d(B,"f",function(){return v});var _=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 l(y){return y&&y.type&&y.type.isTreeNode}function t(y,x){var T=[y],S=x[y];function b(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];O.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,O=S.bottom,I=S.height,L=Math.max(I*c,o);return T<=b+L?-1:T>=O-L?1:0}function s(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,O=Array.isArray(y)?y:[y];return O.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 O=x[b];if(!O)return;T.add(b);var I=O.parent,L=O.node;if(L.disabled)return;I&&S(I.key)}return(y||[]).forEach(function(b){S(b)}),Object(_.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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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=_(m),C(m,f,c),m};H.exports=A,H.exports.mutate=C},wZgz:function(H,B,d){(function(_,E,C){H.exports=B=E(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(_){return function(){var E=_,C=E.lib,A=C.BlockCipher,w=E.algo,m=[],f=[],c=[],o=[],r=[],i=[],n=[],e=[],l=[],t=[];(function(){for(var u=[],h=0;h<256;h++)h<128?u[h]=h<<1:u[h]=h<<1^283;for(var p=0,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,l[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],s=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=[],O=0;O<x;O++){var S=x-O;if(O%4)var h=T[S];else var h=T[S-4];O<4||S<=4?b[O]=h:b[O]=n[m[h>>>24]]^e[m[h>>>16&255]]^l[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,l,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,O=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 k=v[O>>>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[O&255]^g[D++],j=v[L>>>24]^y[N>>>16&255]^x[O>>>8&255]^T[I&255]^g[D++],F=v[N>>>24]^y[O>>>16&255]^x[I>>>8&255]^T[L&255]^g[D++];O=k,I=M,L=j,N=F}var k=(S[O>>>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[O&255])^g[D++],j=(S[L>>>24]<<24|S[N>>>16&255]<<16|S[O>>>8&255]<<8|S[I&255])^g[D++],F=(S[N>>>24]<<24|S[O>>>16&255]<<16|S[I>>>8&255]<<8|S[L&255])^g[D++];h[p]=k,h[p+1]=M,h[p+2]=j,h[p+3]=F},keySize:256/32});E.AES=A._createHelper(s)}(),_.AES})},wbyO:function(H,B,d){(function(_,E){H.exports=B=E(d("Ib8C"))})(this,function(_){return function(){var E=_,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 l=[],t=0;t<n;t+=3)for(var a=i[t>>>2]>>>24-t%4*8&255,s=i[t+1>>>2]>>>24-(t+1)%4*8&255,u=i[t+2>>>2]>>>24-(t+2)%4*8&255,h=a<<16|s<<8|u,p=0;p<4&&t+p*.75<n;p++)l.push(e.charAt(h>>>6*(3-p)&63));var g=e.charAt(64);if(g)for(;l.length%4;)l.push(g);return l.join("")},parse:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=o.length,n=r?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<n.length;l++)e[n.charCodeAt(l)]=l}var t=n.charAt(64);if(t){var a=o.indexOf(t);a!==-1&&(i=a)}return f(o,i,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(c,o,r){for(var i=[],n=0,e=0;e<o;e++)if(e%4){var l=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=l|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),_.enc.Base64url})},wgjA:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0});var _={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=_},whJP:function(H,B,d){"use strict";var _=d("pVnL"),E=d.n(_),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"),l=d.n(e),t=d("Y1PL"),a=d("BGR+"),s=d("TSYQ"),u=d.n(s),h=d("LlR5"),p=d("H84U"),g=d("mh/l"),v=function(y){r()(T,y);var x=n()(T);function T(S){var b;m()(this,T),b=x.call(this,S),b.focus=function(){b.resizableTextArea.textArea.focus()},b.saveTextArea=function(I){b.resizableTextArea=I==null?void 0:I.resizableTextArea},b.saveClearableInput=function(I){b.clearableInput=I},b.handleChange=function(I){b.setValue(I.target.value),Object(g.d)(b.resizableTextArea.textArea,I,b.props.onChange)},b.handleReset=function(I){b.setValue("",function(){b.focus()}),Object(g.d)(b.resizableTextArea.textArea,I,b.props.onChange)},b.renderTextArea=function(I,L){return e.createElement(t.default,E()({},Object(a.default)(b.props,["allowClear","bordered"]),{className:u()(b.props.className,A()({},"".concat(I,"-borderless"),!L)),prefixCls:I,onChange:b.handleChange,ref:b.saveTextArea}))},b.renderComponent=function(I){var L=I.getPrefixCls,N=I.direction,D=b.state.value,R=b.props,k=R.prefixCls,M=R.bordered,j=M===void 0?!0:M,F=L("input",k);return e.createElement(h.a,E()({},b.props,{prefixCls:F,direction:N,inputType:"text",value:Object(g.b)(D),element:b.renderTextArea(F,j),handleReset:b.handleReset,ref:b.saveClearableInput,triggerFocus:b.focus,bordered:j}))};var O=typeof S.value=="undefined"?S.defaultValue:S.value;return b.state={value:O},b}return c()(T,[{key:"setValue",value:function(b,O){this.props.value===void 0&&this.setState({value:b},O)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(p.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(b){return b.value!==void 0?{value:b.value}:null}}]),T}(e.Component);B.a=v},whVF:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=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,_.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,_.deflate)(this.strm,_.Z_FULL_FLUSH),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(i<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[n],l=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,_.deflate)(this.strm,_.Z_FULL_FLUSH),i<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=t.length,e.push(t)}while(this.strm.avail_in>0);for(var a=new Uint8Array(l),s=0,u=0;u<e.length;u++)a.set(e[u],s),s+=e[u].length;n=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();B.default=f},wr5s:function(H,B,d){var _=d("IwbS"),E=_.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,l=w.clockwise,t=Math.cos(n),a=Math.sin(n),s=Math.cos(e),u=Math.sin(e),h=l?e-n<Math.PI*2:n-e<Math.PI*2;h&&(A.moveTo(t*c+m,a*c+f),A.arc(t*i+m,a*i+f,r,-Math.PI+n,n,!l)),A.arc(m,f,o,n,e,!l),A.moveTo(s*o+m,u*o+f),A.arc(s*i+m,u*i+f,r,e-Math.PI*2,e-Math.PI,!l),c!==0&&(A.arc(m,f,c,e,n,l),A.moveTo(t*c+m,u*c+f)),A.closePath()}});H.exports=C},wt3j:function(H,B,d){var _=d("ProS"),E=d("bYtY"),C=d("/IIm"),A=d("EMyp"),w=A.layoutCovers,m=_.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 _=d("KxBF");function E(C,A,w){var m=C.length;return w=w===void 0?m:w,!A&&w>=m?C:_(C,A,w)}H.exports=E},x3X8:function(H,B,d){var _=d("KxfA"),E=_.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 _=d("y+Vt"),E=d("VpOo"),C=d("nPnh"),A=C.subPixelOptimizeRect,w={},m=_.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 _=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(_.a)(Object(_.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 _=d;H.exports=_},xO64:function(H,B,d){"use strict";Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var _=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(s){return typeof s}:C=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},C(t)}function A(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function w(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function m(t,a,s){return a&&w(t.prototype,a),s&&w(t,s),t}function f(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),a&&c(t,a)}function c(t,a){return c=Object.setPrototypeOf||function(u,h){return u.__proto__=h,u},c(t,a)}function o(t){var a=n();return function(){var u=e(t),h;if(a){var p=e(this).constructor;h=Reflect.construct(u,arguments,p)}else h=u.apply(this,arguments);return r(this,h)}}function r(t,a){return a&&(C(a)==="object"||typeof a=="function")?a:i(t)}function i(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},e(t)}var l=function(t){f(s,t);var a=o(s);function s(){return A(this,s),a.apply(this,arguments)}return m(s,[{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")}}]),s}(_.default);B.default=l},xOOu:function(H,B,d){(function(_,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 l=typeof A=="function"&&A;if(!e&&l)return A(n,!0);if(r)return r(n,!0);var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}var a=f[n]={exports:{}};m[n][0].call(a.exports,function(s){var u=m[n][1][s];return o(u||s)},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,l,t,a,s,u,h=[],p=0,g=i.length,v=g,y=c.getTypeOf(i)!=="string";p<i.length;)v=g-p,l=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,s=1<v?(15&e)<<2|l>>6:64,u=2<v?63&l:64,h.push(r.charAt(t)+r.charAt(a)+r.charAt(s)+r.charAt(u));return h.join("")},f.decode=function(i){var n,e,l,t,a,s,u=0,h=0,p="data:";if(i.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var 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,l=(3&a)<<6|(s=r.indexOf(i.charAt(u++))),g[h++]=n,a!==64&&(g[h++]=e),s!==64&&(g[h++]=l);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,l,t,a,s){this.compressedSize=e,this.uncompressedSize=l,this.crc32=t,this.compression=a,this.compressedContent=s}n.prototype={getContentWorker:function(){var l=new o(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return l.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},n.createWorkerFrom=function(e,l,t){return e.pipe(new r).pipe(new i("uncompressedSize")).pipe(l.compressWorker(t)).pipe(new i("compressedSize")).withStreamInfo("compression",l)},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,l,t){var a=o,s=t+l;n^=-1;for(var u=t;u<s;u++)n=n>>>8^a[255&(n^e[u])];return-1^n}(0|i,r,r.length,0):function(n,e,l,t){var a=o,s=t+l;n^=-1;for(var u=t;u<s;u++)n=n>>>8^a[255&(n^e.charCodeAt(u))];return-1^n}(0|i,r,r.length,0):0}},{"./utils":32}],5:[function(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(l,t){i.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=t,this.meta={}}f.magic="\b\0",r.inherits(e,i),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(n,l.data),!1)},e.prototype.flush=function(){i.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(t){l.push({data:t,meta:l.meta})}},f.compressWorker=function(l){return new e("Deflate",l)},f.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(w,m,f){"use strict";function c(a,s){var u,h="";for(u=0;u<s;u++)h+=String.fromCharCode(255&a),a>>>=8;return h}function o(a,s,u,h,p,g){var v,y,x=a.file,T=a.compression,S=g!==n.utf8encode,b=r.transformTo("string",g(x.name)),O=r.transformTo("string",n.utf8encode(x.name)),I=x.comment,L=r.transformTo("string",g(I)),N=r.transformTo("string",n.utf8encode(I)),D=O.length!==x.name.length,R=N.length!==I.length,k="",M="",j="",F=x.dir,U=x.date,K={crc32:0,compressedSize:0,uncompressedSize:0};s&&!u||(K.crc32=a.crc32,K.compressedSize=a.compressedSize,K.uncompressedSize=a.uncompressedSize);var V=0;s&&(V|=8),S||!D&&!R||(V|=2048);var z=0,Q=0;F&&(z|=16),p==="UNIX"?(Q=798,z|=function(le,ne){var ve=le;return le||(ve=ne?16893:33204),(65535&ve)<<16}(x.unixPermissions,F)):(Q=20,z|=function(le){return 63&(le||0)}(x.dosPermissions)),v=U.getUTCHours(),v<<=6,v|=U.getUTCMinutes(),v<<=5,v|=U.getUTCSeconds()/2,y=U.getUTCFullYear()-1980,y<<=4,y|=U.getUTCMonth()+1,y<<=5,y|=U.getUTCDate(),D&&(M=c(1,1)+c(e(b),4)+O,k+="up"+c(M.length,2)+M),R&&(j=c(1,1)+c(e(L),4)+N,k+="uc"+c(j.length,2)+j);var Z="";return Z+=`
|
|
|
\0`,Z+=c(V,2),Z+=T.magic,Z+=c(v,2),Z+=c(y,2),Z+=c(K.crc32,4),Z+=c(K.compressedSize,4),Z+=c(K.uncompressedSize,4),Z+=c(b.length,2),Z+=c(k.length,2),{fileRecord:l.LOCAL_FILE_HEADER+Z+b+k,dirRecord:l.CENTRAL_FILE_HEADER+c(Q,2)+Z+c(L.length,2)+"\0\0\0\0"+c(z,4)+c(h,4)+b+k+L}}var r=w("../utils"),i=w("../stream/GenericWorker"),n=w("../utf8"),e=w("../crc32"),l=w("../signature");function t(a,s,u,h){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=s,this.zipPlatform=u,this.encodeFileName=h,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(t,i),t.prototype.push=function(a){var s=a.meta.percent||0,u=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,i.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:u?(s+100*(u-h-1))/u:100}}))},t.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var s=this.streamFiles&&!a.file.dir;if(s){var u=o(a,s,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},t.prototype.closedSource=function(a){this.accumulate=!1;var s=this.streamFiles&&!a.file.dir,u=o(a,s,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),s)this.push({data:function(h){return l.DATA_DESCRIPTOR+c(h.crc32,4)+c(h.compressedSize,4)+c(h.uncompressedSize,4)}(a),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},t.prototype.flush=function(){for(var a=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var u=this.bytesWritten-a,h=function(p,g,v,y,x){var T=r.transformTo("string",x(y));return l.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 s=this;return a.on("data",function(u){s.processChunk(u)}),a.on("end",function(){s.closedSource(s.previous.streamInfo),s._sources.length?s.prepareNextSource():s.end()}),a.on("error",function(u){s.error(u)}),this},t.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},t.prototype.error=function(a){var s=this._sources;if(!i.prototype.error.call(this,a))return!1;for(var u=0;u<s.length;u++)try{s[u].error(a)}catch(h){}return!0},t.prototype.lock=function(){i.prototype.lock.call(this);for(var a=this._sources,s=0;s<a.length;s++)a[s].lock()},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),l=0;try{r.forEach(function(t,a){l++;var s=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(s,u).withStreamInfo("file",{name:t,dir:h,date:p,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(t){e.error(t)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(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 l(t){return new o.Promise(function(a,s){var u=t.decompressed.getContentWorker().pipe(new n);u.on("error",function(h){s(h)}).on("end",function(){u.streamInfo.crc32!==t.decompressed.crc32?s(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}m.exports=function(t,a){var s=this;return a=c.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),e.isNode&&e.isStream(t)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",t,!0,a.optimizedBinaryString,a.base64).then(function(u){var h=new i(a);return h.load(u),h}).then(function(u){var h=[o.Promise.resolve(u)],p=u.files;if(a.checkCRC32)for(var g=0;g<p.length;g++)h.push(l(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);s.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||(s.file(x).unsafeOriginalName=y)}return h.zipComment.length&&(s.comment=h.zipComment),s})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(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(l,t){e.push(l)||e._helper.pause(),n&&n(t)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}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 _!="undefined",newBufferFrom:function(o,r){if(_.from&&_.from!==Uint8Array.from)return _.from(o,r);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new _(o,r)},allocBuffer:function(o){if(_.alloc)return _.alloc(o);var r=new _(o);return r.fill(0),r},isBuffer:function(o){return _.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,O=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=O==="string"&&I.binary===!1&&I.base64===!1;S&&S.binary!==void 0||(I.binary=!L),(T instanceof l&&T.uncompressedSize===0||I.dir||!T||T.length===0)&&(I.base64=!1,I.binary=!0,T="",I.compression="STORE",O="string");var N=null;N=T instanceof l||T instanceof i?T:s.isNode&&s.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"),l=w("./compressedObject"),t=w("./zipObject"),a=w("./generate"),s=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,O;for(S in this.files)O=this.files[S],(b=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&T(b,O)},filter:function(T){var S=[];return this.forEach(function(b,O){T(b,O)&&S.push(O)}),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 O=T;return this.filter(function(L,N){return!N.dir&&O.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),O=this.clone();return O.root=b.name,O},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}),O=0;O<b.length;O++)delete this.files[b[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(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 O=b.comment||this.comment||"";S=a.generateWorker(this,b,O)}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),l=r.charCodeAt(3),t=this.length-4;0<=t;--t)if(this.data[t]===i&&this.data[t+1]===n&&this.data[t+2]===e&&this.data[t+3]===l)return t-this.zero;return-1},o.prototype.readAndCheckSignature=function(r){var i=r.charCodeAt(0),n=r.charCodeAt(1),e=r.charCodeAt(2),l=r.charCodeAt(3),t=this.readData(4);return i===t[0]&&n===t[1]&&e===t[2]&&l===t[3]},o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},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(l){var t=c.getTypeOf(l);return c.checkSupport(t),t!=="string"||o.uint8array?t==="nodebuffer"?new n(l):o.uint8array?new e(c.transformTo("uint8array",l)):new r(c.transformTo("array",l)):new i(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(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"),l=null;if(n.nodestream)try{l=w("../nodejs/NodejsStreamOutputAdapter")}catch(s){}function t(s,u){return new e.Promise(function(h,p){var g=[],v=s._internalType,y=s._outputType,x=s._mimeType;s.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,O){switch(S){case"blob":return c.newBlob(c.transformTo("arraybuffer",b),O);case"base64":return i.encode(b);default:return c.transformTo(S,b)}}(y,function(S,b){var O,I=0,L=null,N=0;for(O=0;O<b.length;O++)N+=b[O].length;switch(S){case"string":return b.join("");case"array":return Array.prototype.concat.apply([],b);case"uint8array":for(L=new Uint8Array(N),O=0;O<b.length;O++)L.set(b[O],I),I+=b[O].length;return L;case"nodebuffer":return _.concat(b);default:throw new Error("concat : unsupported type '"+S+"'")}}(v,g),x);h(T)}catch(S){p(S)}g=[]}).resume()})}function a(s,u,h){var p=u;switch(u){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=u,this._mimeType=h,c.checkSupport(p),this._worker=s.pipe(new o(p)),s.lock()}catch(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 l(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 _!="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 l(){i.call(this,"utf-8 decode"),this.leftOver=null}function t(){i.call(this,"utf-8 encode")}f.utf8encode=function(a){return o.nodebuffer?r.newBufferFrom(a,"utf-8"):function(s){var u,h,p,g,v,y=s.length,x=0;for(g=0;g<y;g++)(64512&(h=s.charCodeAt(g)))==55296&&g+1<y&&(64512&(p=s.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=s.charCodeAt(g)))==55296&&g+1<y&&(64512&(p=s.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(s){var u,h,p,g,v=s.length,y=new Array(2*v);for(u=h=0;u<v;)if((p=s[u++])<128)y[h++]=p;else if(4<(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&s[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(l,i),l.prototype.processChunk=function(a){var s=c.transformTo(o.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var u=s;(s=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),s.set(u,this.leftOver.length)}else s=this.leftOver.concat(s);this.leftOver=null}var h=function(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}(s),p=s;h!==s.length&&(o.uint8array?(p=s.subarray(0,h),this.leftOver=s.subarray(h,s.length)):(p=s.slice(0,h),this.leftOver=s.slice(h,s.length))),this.push({data:f.utf8decode(p),meta:a.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=l,c.inherits(t,i),t.prototype.processChunk=function(a){this.push({data:f.utf8encode(a.data),meta:a.meta})},f.Utf8EncodeWorker=t},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(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 l={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=l.applyCanBeUsed.uint8array:p==="nodebuffer"&&(g=l.applyCanBeUsed.nodebuffer),g)for(;1<h;)try{return l.stringifyByChunk(u,p,h)}catch(v){h=Math.floor(h/2)}return l.stringifyByChar(u)}function a(u,h){for(var p=0;p<u.length;p++)h[p]=u[p];return h}f.applyFromCharCode=t;var s={};s.string={string:n,array:function(h){return e(h,new Array(h.length))},arraybuffer:function(h){return s.string.uint8array(h).buffer},uint8array:function(h){return e(h,new Uint8Array(h.length))},nodebuffer:function(h){return e(h,r.allocBuffer(h.length))}},s.array={string:t,array:n,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return r.newBufferFrom(h)}},s.arraybuffer={string:function(h){return t(new Uint8Array(h))},array:function(h){return a(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:n,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return r.newBufferFrom(new Uint8Array(h))}},s.uint8array={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:n,nodebuffer:function(h){return r.newBufferFrom(h)}},s.nodebuffer={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return s.nodebuffer.uint8array(h).buffer},uint8array:function(h){return a(h,new Uint8Array(h.length))},nodebuffer:n},f.transformTo=function(u,h){if(h=h||"",!u)return h;f.checkSupport(u);var p=f.getTypeOf(h);return s[p][u](h)},f.resolve=function(u){for(var h=u.split("/"),p=[],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(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(a)+", expected "+o.pretty(t)+")")}},isSignature:function(t,a){var s=this.reader.index;this.reader.setIndex(t);var u=this.reader.readString(4)===a;return this.reader.setIndex(s),u},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),a=n.uint8array?"uint8array":"array",s=o.transformTo(a,t);this.zipComment=this.loadOptions.decodeFileName(s)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,a,s,u=this.zip64EndOfCentralSize-44;0<u;)t=this.reader.readInt(2),a=this.reader.readInt(4),s=this.reader.readData(a),this.zip64ExtensibleData[t]={id:t,length:a,value:s}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,a;for(t=0;t<this.files.length;t++)a=this.files[t],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(t=new i({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var a=t;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var u=a-s;if(0<u)this.isSignature(a,r.CENTRAL_FILE_HEADER)||(this.reader.zero=u);else if(u<0)throw new Error("Corrupted zip: missing "+Math.abs(u)+" bytes.")},prepareReader:function(t){this.reader=c(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},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"),l=w("./support");function t(a,s){this.options=a,this.loadOptions=s}t.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var u,h;if(s.skip(22),this.fileNameLength=s.readInt(2),h=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((u=function(p){for(var 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,s.readData(this.compressedSize))},readCentralPart:function(s){this.versionMadeBy=s.readInt(2),s.skip(2),this.bitFlag=s.readInt(2),this.compressionMethod=s.readString(2),this.date=s.readDate(),this.crc32=s.readInt(4),this.compressedSize=s.readInt(4),this.uncompressedSize=s.readInt(4);var u=s.readInt(2);if(this.extraFieldsLength=s.readInt(2),this.fileCommentLength=s.readInt(2),this.diskNumberStart=s.readInt(2),this.internalFileAttributes=s.readInt(2),this.externalFileAttributes=s.readInt(4),this.localHeaderOffset=s.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");s.skip(u),this.readExtraFields(s),this.parseZIP64ExtraField(s),this.fileComment=s.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var s=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),s==0&&(this.dosPermissions=63&this.externalFileAttributes),s==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var s=c(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var u,h,p,g=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<g;)u=s.readInt(2),h=s.readInt(2),p=s.readData(h),this.extraFields[u]={id:u,length:h,value:p};s.setIndex(g)},handleUTF8:function(){var s=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=n.utf8decode(this.fileName),this.fileCommentStr=n.utf8decode(this.fileComment);else{var u=this.findExtraFieldUnicodePath();if(u!==null)this.fileNameStr=u;else{var h=o.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var g=o.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var u=c(s.value);return u.readInt(1)!==1||i(this.fileName)!==u.readInt(4)?null:n.utf8decode(u.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var u=c(s.value);return u.readInt(1)!==1||i(this.fileComment)!==u.readInt(4)?null:n.utf8decode(u.readData(s.length-5))}return null}},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(s,u,h){this.name=s,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=u,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var o=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 l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],t=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<l.length;a++)c.prototype[l[a]]=t;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(s),l=c.document.createTextNode("");e.observe(l,{characterData:!0}),o=function(){l.data=n=++n%2}}else if(c.setImmediate||c.MessageChannel===void 0)o="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var u=c.document.createElement("script");u.onreadystatechange=function(){s(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},c.document.documentElement.appendChild(u)}:function(){setTimeout(s,0)};else{var t=new c.MessageChannel;t.port1.onmessage=s,o=function(){t.port2.postMessage(0)}}var a=[];function s(){var u,h;r=!0;for(var p=a.length;p;){for(h=a,a=[],u=-1;++u<p;)h[u]();p=a.length}r=!1}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 l(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,p!==o&&u(this,p)}function t(p,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 s(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=l).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})})},l.prototype.catch=function(p){return this.then(null,p)},l.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(s,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},l.resolve=function(p){return p instanceof this?p:r.resolve(new this(o),p)},l.reject=function(p){var g=new this(o);return r.reject(g,p)},l.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;)O(p[S],S);return b;function O(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))})}},l.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,l=0,t=-1,a=0,s=8;function u(p){if(!(this instanceof u))return new u(p);this.options=o.assign({level:t,method:s,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},p||{});var 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!==l)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))!==l)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!==l)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===l):y!==2||(this.onEnd(l),!(x.avail_out=0))},u.prototype.onData=function(p){this.chunks.push(p)},u.prototype.onEnd=function(p){p===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},f.Deflate=u,f.deflate=h,f.deflateRaw=function(p,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"),l=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 l,c.inflateGetHeader(this.strm,this.header)}function s(u,h){var p=new a(h);if(p.push(u,!0),p.err)throw p.msg||n[p.err];return p.result}a.prototype.push=function(u,h){var p,g,v,y,x,T,S=this.strm,b=this.options.chunkSize,O=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&&O&&(T=typeof O=="string"?r.string2buf(O):t.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,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=s,f.inflateRaw=function(u,h){return(h=h||{}).raw=!0,s(u,h)},f.ungzip=s},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(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 l in e)e.hasOwnProperty(l)&&(i[l]=e[l])}}return i},f.shrinkBuf=function(i,n){return i.length===n?i:i.subarray?i.subarray(0,n):(i.length=n,i)};var o={arraySet:function(n,e,l,t,a){if(e.subarray&&n.subarray)n.set(e.subarray(l,l+t),a);else for(var s=0;s<t;s++)n[a+s]=e[l+s]},flattenChunks:function(n){var e,l,t,a,s,u;for(e=t=0,l=n.length;e<l;e++)t+=n[e].length;for(u=new Uint8Array(t),e=a=0,l=n.length;e<l;e++)s=n[e],u.set(s,a),a+=s.length;return u}},r={arraySet:function(n,e,l,t,a){for(var s=0;s<t;s++)n[a+s]=e[l+s]},flattenChunks:function(n){return[].concat.apply([],n)}};f.setTyped=function(i){i?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,o)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,r))},f.setTyped(c)},{}],42:[function(w,m,f){"use strict";var c=w("./common"),o=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(l){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){r=!1}for(var i=new c.Buf8(256),n=0;n<256;n++)i[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function e(l,t){if(t<65537&&(l.subarray&&r||!l.subarray&&o))return String.fromCharCode.apply(null,c.shrinkBuf(l,t));for(var a="",s=0;s<t;s++)a+=String.fromCharCode(l[s]);return a}i[254]=i[254]=1,f.string2buf=function(l){var t,a,s,u,h,p=l.length,g=0;for(u=0;u<p;u++)(64512&(a=l.charCodeAt(u)))==55296&&u+1<p&&(64512&(s=l.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(s-56320),u++),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=l.charCodeAt(u)))==55296&&u+1<p&&(64512&(s=l.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(s-56320),u++),a<128?t[h++]=a:(a<2048?t[h++]=192|a>>>6:(a<65536?t[h++]=224|a>>>12:(t[h++]=240|a>>>18,t[h++]=128|a>>>12&63),t[h++]=128|a>>>6&63),t[h++]=128|63&a);return t},f.buf2binstring=function(l){return e(l,l.length)},f.binstring2buf=function(l){for(var t=new c.Buf8(l.length),a=0,s=t.length;a<s;a++)t[a]=l.charCodeAt(a);return t},f.buf2string=function(l,t){var a,s,u,h,p=t||l.length,g=new Array(2*p);for(a=s=0;a<p;)if((u=l[a++])<128)g[s++]=u;else if(4<(h=i[u]))g[s++]=65533,a+=h-1;else{for(u&=h===2?31:h===3?15:7;1<h&&a<p;)u=u<<6|63&l[a++],h--;1<h?g[s++]=65533:u<65536?g[s++]=u:(u-=65536,g[s++]=55296|u>>10&1023,g[s++]=56320|1023&u)}return e(g,s)},f.utf8border=function(l,t){var a;for((t=t||l.length)>l.length&&(t=l.length),a=t-1;0<=a&&(192&l[a])==128;)a--;return a<0||a===0?t:a+i[l[a]]>t?a:t}},{"./common":41}],43:[function(w,m,f){"use strict";m.exports=function(c,o,r,i){for(var n=65535&c|0,e=c>>>16&65535|0,l=0;r!==0;){for(r-=l=2e3<r?2e3:r;e=e+(n=n+o[i++]|0)|0,--l;);n%=65521,e%=65521}return n|e<<16|0}},{}],44:[function(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,l=n+i;o^=-1;for(var t=n;t<l;t++)o=o>>>8^e[255&(o^r[t])];return-1^o}},{}],46:[function(w,m,f){"use strict";var c,o=w("../utils/common"),r=w("./trees"),i=w("./adler32"),n=w("./crc32"),e=w("./messages"),l=0,t=4,a=0,s=-2,u=-1,h=4,p=2,g=8,v=9,y=286,x=30,T=19,S=2*y+1,b=15,O=3,I=258,L=I+O+1,N=42,D=113,R=1,k=2,M=3,j=4;function F(te,Ge){return te.msg=e[Ge],Ge}function U(te){return(te<<1)-(4<te?9:0)}function K(te){for(var Ge=te.length;0<=--Ge;)te[Ge]=0}function V(te){var Ge=te.state,oe=Ge.pending;oe>te.avail_out&&(oe=te.avail_out),oe!==0&&(o.arraySet(te.output,Ge.pending_buf,Ge.pending_out,oe,te.next_out),te.next_out+=oe,Ge.pending_out+=oe,te.total_out+=oe,te.avail_out-=oe,Ge.pending-=oe,Ge.pending===0&&(Ge.pending_out=0))}function z(te,Ge){r._tr_flush_block(te,0<=te.block_start?te.block_start:-1,te.strstart-te.block_start,Ge),te.block_start=te.strstart,V(te.strm)}function Q(te,Ge){te.pending_buf[te.pending++]=Ge}function Z(te,Ge){te.pending_buf[te.pending++]=Ge>>>8&255,te.pending_buf[te.pending++]=255&Ge}function le(te,Ge){var oe,Y,G=te.max_chain_length,X=te.strstart,fe=te.prev_length,de=te.nice_match,Ce=te.strstart>te.w_size-L?te.strstart-(te.w_size-L):0,Me=te.window,ue=te.w_mask,Ae=te.prev,Te=te.strstart+I,Je=Me[X+fe-1],At=Me[X+fe];te.prev_length>=te.good_match&&(G>>=2),de>te.lookahead&&(de=te.lookahead);do if(Me[(oe=Ge)+fe]===At&&Me[oe+fe-1]===Je&&Me[oe]===Me[X]&&Me[++oe]===Me[X+1]){X+=2,oe++;do;while(Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&Me[++X]===Me[++oe]&&X<Te);if(Y=I-(Te-X),X=Te-I,fe<Y){if(te.match_start=Ge,de<=(fe=Y))break;Je=Me[X+fe-1],At=Me[X+fe]}}while((Ge=Ae[Ge&ue])>Ce&&--G!=0);return fe<=te.lookahead?fe:te.lookahead}function ne(te){var Ge,oe,Y,G,X,fe,de,Ce,Me,ue,Ae=te.w_size;do{if(G=te.window_size-te.lookahead-te.strstart,te.strstart>=Ae+(Ae-L)){for(o.arraySet(te.window,te.window,Ae,Ae,0),te.match_start-=Ae,te.strstart-=Ae,te.block_start-=Ae,Ge=oe=te.hash_size;Y=te.head[--Ge],te.head[Ge]=Ae<=Y?Y-Ae:0,--oe;);for(Ge=oe=Ae;Y=te.prev[--Ge],te.prev[Ge]=Ae<=Y?Y-Ae:0,--oe;);G+=Ae}if(te.strm.avail_in===0)break;if(fe=te.strm,de=te.window,Ce=te.strstart+te.lookahead,Me=G,ue=void 0,ue=fe.avail_in,Me<ue&&(ue=Me),oe=ue===0?0:(fe.avail_in-=ue,o.arraySet(de,fe.input,fe.next_in,ue,Ce),fe.state.wrap===1?fe.adler=i(fe.adler,de,ue,Ce):fe.state.wrap===2&&(fe.adler=n(fe.adler,de,ue,Ce)),fe.next_in+=ue,fe.total_in+=ue,ue),te.lookahead+=oe,te.lookahead+te.insert>=O)for(X=te.strstart-te.insert,te.ins_h=te.window[X],te.ins_h=(te.ins_h<<te.hash_shift^te.window[X+1])&te.hash_mask;te.insert&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[X+O-1])&te.hash_mask,te.prev[X&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=X,X++,te.insert--,!(te.lookahead+te.insert<O)););}while(te.lookahead<L&&te.strm.avail_in!==0)}function ve(te,Ge){for(var oe,Y;;){if(te.lookahead<L){if(ne(te),te.lookahead<L&&Ge===l)return R;if(te.lookahead===0)break}if(oe=0,te.lookahead>=O&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+O-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),oe!==0&&te.strstart-oe<=te.w_size-L&&(te.match_length=le(te,oe)),te.match_length>=O)if(Y=r._tr_tally(te,te.strstart-te.match_start,te.match_length-O),te.lookahead-=te.match_length,te.match_length<=te.max_lazy_match&&te.lookahead>=O){for(te.match_length--;te.strstart++,te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+O-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart,--te.match_length!=0;);te.strstart++}else te.strstart+=te.match_length,te.match_length=0,te.ins_h=te.window[te.strstart],te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+1])&te.hash_mask;else Y=r._tr_tally(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++;if(Y&&(z(te,!1),te.strm.avail_out===0))return R}return te.insert=te.strstart<O-1?te.strstart:O-1,Ge===t?(z(te,!0),te.strm.avail_out===0?M:j):te.last_lit&&(z(te,!1),te.strm.avail_out===0)?R:k}function xe(te,Ge){for(var oe,Y,G;;){if(te.lookahead<L){if(ne(te),te.lookahead<L&&Ge===l)return R;if(te.lookahead===0)break}if(oe=0,te.lookahead>=O&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+O-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),te.prev_length=te.match_length,te.prev_match=te.match_start,te.match_length=O-1,oe!==0&&te.prev_length<te.max_lazy_match&&te.strstart-oe<=te.w_size-L&&(te.match_length=le(te,oe),te.match_length<=5&&(te.strategy===1||te.match_length===O&&4096<te.strstart-te.match_start)&&(te.match_length=O-1)),te.prev_length>=O&&te.match_length<=te.prev_length){for(G=te.strstart+te.lookahead-O,Y=r._tr_tally(te,te.strstart-1-te.prev_match,te.prev_length-O),te.lookahead-=te.prev_length-1,te.prev_length-=2;++te.strstart<=G&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+O-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),--te.prev_length!=0;);if(te.match_available=0,te.match_length=O-1,te.strstart++,Y&&(z(te,!1),te.strm.avail_out===0))return R}else if(te.match_available){if((Y=r._tr_tally(te,0,te.window[te.strstart-1]))&&z(te,!1),te.strstart++,te.lookahead--,te.strm.avail_out===0)return R}else te.match_available=1,te.strstart++,te.lookahead--}return te.match_available&&(Y=r._tr_tally(te,0,te.window[te.strstart-1]),te.match_available=0),te.insert=te.strstart<O-1?te.strstart:O-1,Ge===t?(z(te,!0),te.strm.avail_out===0?M:j):te.last_lit&&(z(te,!1),te.strm.avail_out===0)?R:k}function _e(te,Ge,oe,Y,G){this.good_length=te,this.max_lazy=Ge,this.nice_length=oe,this.max_chain=Y,this.func=G}function Be(){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)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(b+1),this.heap=new o.Buf16(2*y+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*y+1),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function me(te){var Ge;return te&&te.state?(te.total_in=te.total_out=0,te.data_type=p,(Ge=te.state).pending=0,Ge.pending_out=0,Ge.wrap<0&&(Ge.wrap=-Ge.wrap),Ge.status=Ge.wrap?N:D,te.adler=Ge.wrap===2?0:1,Ge.last_flush=l,r._tr_init(Ge),a):F(te,s)}function Fe(te){var Ge=me(te);return Ge===a&&function(oe){oe.window_size=2*oe.w_size,K(oe.head),oe.max_lazy_match=c[oe.level].max_lazy,oe.good_match=c[oe.level].good_length,oe.nice_match=c[oe.level].nice_length,oe.max_chain_length=c[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=O-1,oe.match_available=0,oe.ins_h=0}(te.state),Ge}function ie(te,Ge,oe,Y,G,X){if(!te)return s;var fe=1;if(Ge===u&&(Ge=6),Y<0?(fe=0,Y=-Y):15<Y&&(fe=2,Y-=16),G<1||v<G||oe!==g||Y<8||15<Y||Ge<0||9<Ge||X<0||h<X)return F(te,s);Y===8&&(Y=9);var de=new Be;return(te.state=de).strm=te,de.wrap=fe,de.gzhead=null,de.w_bits=Y,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+O-1)/O),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=Ge,de.strategy=X,de.method=oe,Fe(te)}c=[new _e(0,0,0,0,function(te,Ge){var oe=65535;for(oe>te.pending_buf_size-5&&(oe=te.pending_buf_size-5);;){if(te.lookahead<=1){if(ne(te),te.lookahead===0&&Ge===l)return R;if(te.lookahead===0)break}te.strstart+=te.lookahead,te.lookahead=0;var Y=te.block_start+oe;if((te.strstart===0||te.strstart>=Y)&&(te.lookahead=te.strstart-Y,te.strstart=Y,z(te,!1),te.strm.avail_out===0))return R;if(te.strstart-te.block_start>=te.w_size-L&&(z(te,!1),te.strm.avail_out===0))return R}return te.insert=0,Ge===t?(z(te,!0),te.strm.avail_out===0?M:j):(te.strstart>te.block_start&&(z(te,!1),te.strm.avail_out),R)}),new _e(4,4,8,4,ve),new _e(4,5,16,8,ve),new _e(4,6,32,32,ve),new _e(4,4,16,16,xe),new _e(8,16,32,32,xe),new _e(8,16,128,128,xe),new _e(8,32,128,256,xe),new _e(32,128,258,1024,xe),new _e(32,258,258,4096,xe)],f.deflateInit=function(te,Ge){return ie(te,Ge,g,15,8,0)},f.deflateInit2=ie,f.deflateReset=Fe,f.deflateResetKeep=me,f.deflateSetHeader=function(te,Ge){return te&&te.state?te.state.wrap!==2?s:(te.state.gzhead=Ge,a):s},f.deflate=function(te,Ge){var oe,Y,G,X;if(!te||!te.state||5<Ge||Ge<0)return te?F(te,s):s;if(Y=te.state,!te.output||!te.input&&te.avail_in!==0||Y.status===666&&Ge!==t)return F(te,te.avail_out===0?-5:s);if(Y.strm=te,oe=Y.last_flush,Y.last_flush=Ge,Y.status===N)if(Y.wrap===2)te.adler=0,Q(Y,31),Q(Y,139),Q(Y,8),Y.gzhead?(Q(Y,(Y.gzhead.text?1:0)+(Y.gzhead.hcrc?2:0)+(Y.gzhead.extra?4:0)+(Y.gzhead.name?8:0)+(Y.gzhead.comment?16:0)),Q(Y,255&Y.gzhead.time),Q(Y,Y.gzhead.time>>8&255),Q(Y,Y.gzhead.time>>16&255),Q(Y,Y.gzhead.time>>24&255),Q(Y,Y.level===9?2:2<=Y.strategy||Y.level<2?4:0),Q(Y,255&Y.gzhead.os),Y.gzhead.extra&&Y.gzhead.extra.length&&(Q(Y,255&Y.gzhead.extra.length),Q(Y,Y.gzhead.extra.length>>8&255)),Y.gzhead.hcrc&&(te.adler=n(te.adler,Y.pending_buf,Y.pending,0)),Y.gzindex=0,Y.status=69):(Q(Y,0),Q(Y,0),Q(Y,0),Q(Y,0),Q(Y,0),Q(Y,Y.level===9?2:2<=Y.strategy||Y.level<2?4:0),Q(Y,3),Y.status=D);else{var fe=g+(Y.w_bits-8<<4)<<8;fe|=(2<=Y.strategy||Y.level<2?0:Y.level<6?1:Y.level===6?2:3)<<6,Y.strstart!==0&&(fe|=32),fe+=31-fe%31,Y.status=D,Z(Y,fe),Y.strstart!==0&&(Z(Y,te.adler>>>16),Z(Y,65535&te.adler)),te.adler=1}if(Y.status===69)if(Y.gzhead.extra){for(G=Y.pending;Y.gzindex<(65535&Y.gzhead.extra.length)&&(Y.pending!==Y.pending_buf_size||(Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),V(te),G=Y.pending,Y.pending!==Y.pending_buf_size));)Q(Y,255&Y.gzhead.extra[Y.gzindex]),Y.gzindex++;Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),Y.gzindex===Y.gzhead.extra.length&&(Y.gzindex=0,Y.status=73)}else Y.status=73;if(Y.status===73)if(Y.gzhead.name){G=Y.pending;do{if(Y.pending===Y.pending_buf_size&&(Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),V(te),G=Y.pending,Y.pending===Y.pending_buf_size)){X=1;break}X=Y.gzindex<Y.gzhead.name.length?255&Y.gzhead.name.charCodeAt(Y.gzindex++):0,Q(Y,X)}while(X!==0);Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),X===0&&(Y.gzindex=0,Y.status=91)}else Y.status=91;if(Y.status===91)if(Y.gzhead.comment){G=Y.pending;do{if(Y.pending===Y.pending_buf_size&&(Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),V(te),G=Y.pending,Y.pending===Y.pending_buf_size)){X=1;break}X=Y.gzindex<Y.gzhead.comment.length?255&Y.gzhead.comment.charCodeAt(Y.gzindex++):0,Q(Y,X)}while(X!==0);Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),X===0&&(Y.status=103)}else Y.status=103;if(Y.status===103&&(Y.gzhead.hcrc?(Y.pending+2>Y.pending_buf_size&&V(te),Y.pending+2<=Y.pending_buf_size&&(Q(Y,255&te.adler),Q(Y,te.adler>>8&255),te.adler=0,Y.status=D)):Y.status=D),Y.pending!==0){if(V(te),te.avail_out===0)return Y.last_flush=-1,a}else if(te.avail_in===0&&U(Ge)<=U(oe)&&Ge!==t)return F(te,-5);if(Y.status===666&&te.avail_in!==0)return F(te,-5);if(te.avail_in!==0||Y.lookahead!==0||Ge!==l&&Y.status!==666){var de=Y.strategy===2?function(Ce,Me){for(var ue;;){if(Ce.lookahead===0&&(ne(Ce),Ce.lookahead===0)){if(Me===l)return R;break}if(Ce.match_length=0,ue=r._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,ue&&(z(Ce,!1),Ce.strm.avail_out===0))return R}return Ce.insert=0,Me===t?(z(Ce,!0),Ce.strm.avail_out===0?M:j):Ce.last_lit&&(z(Ce,!1),Ce.strm.avail_out===0)?R:k}(Y,Ge):Y.strategy===3?function(Ce,Me){for(var ue,Ae,Te,Je,At=Ce.window;;){if(Ce.lookahead<=I){if(ne(Ce),Ce.lookahead<=I&&Me===l)return R;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=O&&0<Ce.strstart&&(Ae=At[Te=Ce.strstart-1])===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]){Je=Ce.strstart+I;do;while(Ae===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]&&Ae===At[++Te]&&Te<Je);Ce.match_length=I-(Je-Te),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=O?(ue=r._tr_tally(Ce,1,Ce.match_length-O),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(ue=r._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),ue&&(z(Ce,!1),Ce.strm.avail_out===0))return R}return Ce.insert=0,Me===t?(z(Ce,!0),Ce.strm.avail_out===0?M:j):Ce.last_lit&&(z(Ce,!1),Ce.strm.avail_out===0)?R:k}(Y,Ge):c[Y.level].func(Y,Ge);if(de!==M&&de!==j||(Y.status=666),de===R||de===M)return te.avail_out===0&&(Y.last_flush=-1),a;if(de===k&&(Ge===1?r._tr_align(Y):Ge!==5&&(r._tr_stored_block(Y,0,0,!1),Ge===3&&(K(Y.head),Y.lookahead===0&&(Y.strstart=0,Y.block_start=0,Y.insert=0))),V(te),te.avail_out===0))return Y.last_flush=-1,a}return Ge!==t?a:Y.wrap<=0?1:(Y.wrap===2?(Q(Y,255&te.adler),Q(Y,te.adler>>8&255),Q(Y,te.adler>>16&255),Q(Y,te.adler>>24&255),Q(Y,255&te.total_in),Q(Y,te.total_in>>8&255),Q(Y,te.total_in>>16&255),Q(Y,te.total_in>>24&255)):(Z(Y,te.adler>>>16),Z(Y,65535&te.adler)),V(te),0<Y.wrap&&(Y.wrap=-Y.wrap),Y.pending!==0?a:1)},f.deflateEnd=function(te){var Ge;return te&&te.state?(Ge=te.state.status)!==N&&Ge!==69&&Ge!==73&&Ge!==91&&Ge!==103&&Ge!==D&&Ge!==666?F(te,s):(te.state=null,Ge===D?F(te,-3):a):s},f.deflateSetDictionary=function(te,Ge){var oe,Y,G,X,fe,de,Ce,Me,ue=Ge.length;if(!te||!te.state)return s;if((X=(oe=te.state).wrap)===2||X===1&&oe.status!==N||oe.lookahead)return s;for(X===1&&(te.adler=i(te.adler,Ge,ue,0)),oe.wrap=0,ue>=oe.w_size&&(X===0&&(K(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),Me=new o.Buf8(oe.w_size),o.arraySet(Me,Ge,ue-oe.w_size,oe.w_size,0),Ge=Me,ue=oe.w_size),fe=te.avail_in,de=te.next_in,Ce=te.input,te.avail_in=ue,te.next_in=0,te.input=Ge,ne(oe);oe.lookahead>=O;){for(Y=oe.strstart,G=oe.lookahead-(O-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[Y+O-1])&oe.hash_mask,oe.prev[Y&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=Y,Y++,--G;);oe.strstart=Y,oe.lookahead=O-1,ne(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=O-1,oe.match_available=0,te.next_in=de,te.input=Ce,te.avail_in=fe,oe.wrap=X,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,l,t,a,s,u,h,p,g,v,y,x,T,S,b,O,I,L,N,D,R,k;r=c.state,i=c.next_in,R=c.input,n=i+(c.avail_in-5),e=c.next_out,k=c.output,l=e-(o-c.avail_out),t=e+(c.avail_out-257),a=r.dmax,s=r.wsize,u=r.whave,h=r.wnext,p=r.window,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>>>=O=b>>>24,v-=O,(O=b>>>16&255)===0)k[e++]=65535&b;else{if(!(16&O)){if((64&O)==0){b=y[(65535&b)+(g&(1<<O)-1)];continue t}if(32&O){r.mode=12;break e}c.msg="invalid literal/length code",r.mode=30;break e}I=65535&b,(O&=15)&&(v<O&&(g+=R[i++]<<v,v+=8),I+=g&(1<<O)-1,g>>>=O,v-=O),v<15&&(g+=R[i++]<<v,v+=8,g+=R[i++]<<v,v+=8),b=x[g&S];r:for(;;){if(g>>>=O=b>>>24,v-=O,!(16&(O=b>>>16&255))){if((64&O)==0){b=x[(65535&b)+(g&(1<<O)-1)];continue r}c.msg="invalid distance code",r.mode=30;break e}if(L=65535&b,v<(O&=15)&&(g+=R[i++]<<v,(v+=8)<O&&(g+=R[i++]<<v,v+=8)),a<(L+=g&(1<<O)-1)){c.msg="invalid distance too far back",r.mode=30;break e}if(g>>>=O,v-=O,(O=e-l)<L){if(u<(O=L-O)&&r.sane){c.msg="invalid distance too far back",r.mode=30;break e}if(D=p,(N=0)===h){if(N+=s-O,O<I){for(I-=O;k[e++]=p[N++],--O;);N=e-L,D=k}}else if(h<O){if(N+=s+h-O,(O-=h)<I){for(I-=O;k[e++]=p[N++],--O;);if(N=0,h<I){for(I-=O=h;k[e++]=p[N++],--O;);N=e-L,D=k}}}else if(N+=h-O,O<I){for(I-=O;k[e++]=p[N++],--O;);N=e-L,D=k}for(;2<I;)k[e++]=D[N++],k[e++]=D[N++],k[e++]=D[N++],I-=3;I&&(k[e++]=D[N++],1<I&&(k[e++]=D[N++]))}else{for(N=e-L;k[e++]=k[N++],k[e++]=k[N++],k[e++]=k[N++],2<(I-=3););I&&(k[e++]=k[N++],1<I&&(k[e++]=k[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,l=2,t=0,a=-2,s=1,u=852,h=592;function p(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function 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=s,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,k;return N&&N.state?(k=N.state,D<0?(R=0,D=-D):(R=1+(D>>4),D<48&&(D&=15)),D&&(D<8||15<D)?a:(k.window!==null&&k.wbits!==D&&(k.window=null),k.wrap=R,k.wbits=D,y(N))):a}function T(N,D){var R,k;return N?(k=new g,(N.state=k).window=null,(R=x(N,D))!==t&&(N.state=null),R):a}var S,b,O=!0;function I(N){if(O){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(l,N.lens,0,32,b,0,N.work,{bits:5}),O=!1}N.lencode=S,N.lenbits=9,N.distcode=b,N.distbits=5}function L(N,D,R,k){var M,j=N.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new c.Buf8(j.wsize)),k>=j.wsize?(c.arraySet(j.window,D,R-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(k<(M=j.wsize-j.wnext)&&(M=k),c.arraySet(j.window,D,R-k,M,j.wnext),(k-=M)?(c.arraySet(j.window,D,R-k,k,0),j.wnext=k,j.whave=j.wsize):(j.wnext+=M,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.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,k,M,j,F,U,K,V,z,Q,Z,le,ne,ve,xe,_e,Be,me,Fe,ie,te,Ge,oe,Y,G=0,X=new c.Buf8(4),fe=[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,K=N.avail_out,j=N.next_in,k=N.input,U=N.avail_in,V=R.hold,z=R.bits,Q=U,Z=K,Ge=t;e:for(;;)switch(R.mode){case s:if(R.wrap===0){R.mode=13;break}for(;z<16;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}if(2&R.wrap&&V===35615){X[R.check=0]=255&V,X[1]=V>>>8&255,R.check=r(R.check,X,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,te=8+(15&(V>>>=4)),R.wbits===0)R.wbits=te;else if(te>R.wbits){N.msg="invalid window size",R.mode=30;break}R.dmax=1<<te,N.adler=R.check=1,R.mode=512&V?10:12,z=V=0;break;case 2:for(;z<16;){if(U===0)break e;U--,V+=k[j++]<<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&&(X[0]=255&V,X[1]=V>>>8&255,R.check=r(R.check,X,2,0)),z=V=0,R.mode=3;case 3:for(;z<32;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}R.head&&(R.head.time=V),512&R.flags&&(X[0]=255&V,X[1]=V>>>8&255,X[2]=V>>>16&255,X[3]=V>>>24&255,R.check=r(R.check,X,4,0)),z=V=0,R.mode=4;case 4:for(;z<16;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}R.head&&(R.head.xflags=255&V,R.head.os=V>>8),512&R.flags&&(X[0]=255&V,X[1]=V>>>8&255,R.check=r(R.check,X,2,0)),z=V=0,R.mode=5;case 5:if(1024&R.flags){for(;z<16;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}R.length=V,R.head&&(R.head.extra_len=V),512&R.flags&&(X[0]=255&V,X[1]=V>>>8&255,R.check=r(R.check,X,2,0)),z=V=0}else R.head&&(R.head.extra=null);R.mode=6;case 6:if(1024&R.flags&&(U<(le=R.length)&&(le=U),le&&(R.head&&(te=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),c.arraySet(R.head.extra,k,j,le,te)),512&R.flags&&(R.check=r(R.check,k,le,j)),U-=le,j+=le,R.length-=le),R.length))break e;R.length=0,R.mode=7;case 7:if(2048&R.flags){if(U===0)break e;for(le=0;te=k[j+le++],R.head&&te&&R.length<65536&&(R.head.name+=String.fromCharCode(te)),te&&le<U;);if(512&R.flags&&(R.check=r(R.check,k,le,j)),U-=le,j+=le,te)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=8;case 8:if(4096&R.flags){if(U===0)break e;for(le=0;te=k[j+le++],R.head&&te&&R.length<65536&&(R.head.comment+=String.fromCharCode(te)),te&&le<U;);if(512&R.flags&&(R.check=r(R.check,k,le,j)),U-=le,j+=le,te)break e}else R.head&&(R.head.comment=null);R.mode=9;case 9:if(512&R.flags){for(;z<16;){if(U===0)break e;U--,V+=k[j++]<<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(U===0)break e;U--,V+=k[j++]<<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=K,N.next_in=j,N.avail_in=U,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(U===0)break e;U--,V+=k[j++]<<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(U===0)break e;U--,V+=k[j++]<<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(le=R.length){if(U<le&&(le=U),K<le&&(le=K),le===0)break e;c.arraySet(M,k,j,le,F),U-=le,j+=le,K-=le,F+=le,R.length-=le;break}R.mode=12;break;case 17:for(;z<14;){if(U===0)break e;U--,V+=k[j++]<<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(U===0)break e;U--,V+=k[j++]<<z,z+=8}R.lens[fe[R.have++]]=7&V,V>>>=3,z-=3}for(;R.have<19;)R.lens[fe[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,oe={bits:R.lenbits},Ge=n(0,R.lens,0,19,R.lencode,0,R.work,oe),R.lenbits=oe.bits,Ge){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(;_e=(G=R.lencode[V&(1<<R.lenbits)-1])>>>16&255,Be=65535&G,!((xe=G>>>24)<=z);){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}if(Be<16)V>>>=xe,z-=xe,R.lens[R.have++]=Be;else{if(Be===16){for(Y=xe+2;z<Y;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}if(V>>>=xe,z-=xe,R.have===0){N.msg="invalid bit length repeat",R.mode=30;break}te=R.lens[R.have-1],le=3+(3&V),V>>>=2,z-=2}else if(Be===17){for(Y=xe+3;z<Y;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}z-=xe,te=0,le=3+(7&(V>>>=xe)),V>>>=3,z-=3}else{for(Y=xe+7;z<Y;){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}z-=xe,te=0,le=11+(127&(V>>>=xe)),V>>>=7,z-=7}if(R.have+le>R.nlen+R.ndist){N.msg="invalid bit length repeat",R.mode=30;break}for(;le--;)R.lens[R.have++]=te}}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,oe={bits:R.lenbits},Ge=n(e,R.lens,0,R.nlen,R.lencode,0,R.work,oe),R.lenbits=oe.bits,Ge){N.msg="invalid literal/lengths set",R.mode=30;break}if(R.distbits=6,R.distcode=R.distdyn,oe={bits:R.distbits},Ge=n(l,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,oe),R.distbits=oe.bits,Ge){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<=U&&258<=K){N.next_out=F,N.avail_out=K,N.next_in=j,N.avail_in=U,R.hold=V,R.bits=z,i(N,Z),F=N.next_out,M=N.output,K=N.avail_out,j=N.next_in,k=N.input,U=N.avail_in,V=R.hold,z=R.bits,R.mode===12&&(R.back=-1);break}for(R.back=0;_e=(G=R.lencode[V&(1<<R.lenbits)-1])>>>16&255,Be=65535&G,!((xe=G>>>24)<=z);){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}if(_e&&(240&_e)==0){for(me=xe,Fe=_e,ie=Be;_e=(G=R.lencode[ie+((V&(1<<me+Fe)-1)>>me)])>>>16&255,Be=65535&G,!(me+(xe=G>>>24)<=z);){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}V>>>=me,z-=me,R.back+=me}if(V>>>=xe,z-=xe,R.back+=xe,R.length=Be,_e===0){R.mode=26;break}if(32&_e){R.back=-1,R.mode=12;break}if(64&_e){N.msg="invalid literal/length code",R.mode=30;break}R.extra=15&_e,R.mode=22;case 22:if(R.extra){for(Y=R.extra;z<Y;){if(U===0)break e;U--,V+=k[j++]<<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(;_e=(G=R.distcode[V&(1<<R.distbits)-1])>>>16&255,Be=65535&G,!((xe=G>>>24)<=z);){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}if((240&_e)==0){for(me=xe,Fe=_e,ie=Be;_e=(G=R.distcode[ie+((V&(1<<me+Fe)-1)>>me)])>>>16&255,Be=65535&G,!(me+(xe=G>>>24)<=z);){if(U===0)break e;U--,V+=k[j++]<<z,z+=8}V>>>=me,z-=me,R.back+=me}if(V>>>=xe,z-=xe,R.back+=xe,64&_e){N.msg="invalid distance code",R.mode=30;break}R.offset=Be,R.extra=15&_e,R.mode=24;case 24:if(R.extra){for(Y=R.extra;z<Y;){if(U===0)break e;U--,V+=k[j++]<<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(K===0)break e;if(le=Z-K,R.offset>le){if((le=R.offset-le)>R.whave&&R.sane){N.msg="invalid distance too far back",R.mode=30;break}ne=le>R.wnext?(le-=R.wnext,R.wsize-le):R.wnext-le,le>R.length&&(le=R.length),ve=R.window}else ve=M,ne=F-R.offset,le=R.length;for(K<le&&(le=K),K-=le,R.length-=le;M[F++]=ve[ne++],--le;);R.length===0&&(R.mode=21);break;case 26:if(K===0)break e;M[F++]=R.length,K--,R.mode=21;break;case 27:if(R.wrap){for(;z<32;){if(U===0)break e;U--,V|=k[j++]<<z,z+=8}if(Z-=K,N.total_out+=Z,R.total+=Z,Z&&(N.adler=R.check=R.flags?r(R.check,M,Z,F-Z):o(R.check,M,Z,F-Z)),Z=K,(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(U===0)break e;U--,V+=k[j++]<<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:Ge=1;break e;case 30:Ge=-3;break e;case 31:return-4;case 32:default:return a}return N.next_out=F,N.avail_out=K,N.next_in=j,N.avail_in=U,R.hold=V,R.bits=z,(R.wsize||Z!==N.avail_out&&R.mode<30&&(R.mode<27||D!==4))&&L(N,N.output,N.next_out,Z-N.avail_out)?(R.mode=31,-4):(Q-=N.avail_in,Z-=N.avail_out,N.total_in+=Q,N.total_out+=Z,R.total+=Z,R.wrap&&Z&&(N.adler=R.check=R.flags?r(R.check,M,Z,N.next_out-Z):o(R.check,M,Z,N.next_out-Z)),N.data_type=R.bits+(R.last?64:0)+(R.mode===12?128:0)+(R.mode===20||R.mode===15?256:0),(Q==0&&Z===0||D===4)&&Ge===t&&(Ge=-5),Ge)},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,k=D.length;return N&&N.state?(R=N.state).wrap!==0&&R.mode!==11?a:R.mode===11&&o(1,D,k,0)!==R.check?-3:L(N,D,k,k)?(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,l,t,a,s,u,h,p){var g,v,y,x,T,S,b,O,I,L=p.bits,N=0,D=0,R=0,k=0,M=0,j=0,F=0,U=0,K=0,V=0,z=null,Q=0,Z=new c.Buf16(16),le=new c.Buf16(16),ne=null,ve=0;for(N=0;N<=15;N++)Z[N]=0;for(D=0;D<a;D++)Z[l[t+D]]++;for(M=L,k=15;1<=k&&Z[k]===0;k--);if(k<M&&(M=k),k===0)return s[u++]=20971520,s[u++]=20971520,p.bits=1,0;for(R=1;R<k&&Z[R]===0;R++);for(M<R&&(M=R),N=U=1;N<=15;N++)if(U<<=1,(U-=Z[N])<0)return-1;if(0<U&&(e===0||k!==1))return-1;for(le[1]=0,N=1;N<15;N++)le[N+1]=le[N]+Z[N];for(D=0;D<a;D++)l[t+D]!==0&&(h[le[l[t+D]]++]=D);if(S=e===0?(z=ne=h,19):e===1?(z=o,Q-=257,ne=r,ve-=257,256):(z=i,ne=n,-1),N=R,T=u,F=D=V=0,y=-1,x=(K=1<<(j=M))-1,e===1&&852<K||e===2&&592<K)return 1;for(;;){for(b=N-F,I=h[D]<S?(O=0,h[D]):h[D]>S?(O=ne[ve+h[D]],z[Q+h[D]]):(O=96,0),g=1<<N-F,R=v=1<<j;s[T+(V>>F)+(v-=g)]=b<<24|O<<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++,--Z[N]==0){if(N===k)break;N=l[t+h[D]]}if(M<N&&(V&x)!==y){for(F===0&&(F=M),T+=R,U=1<<(j=N-F);j+F<k&&!((U-=Z[j+F])<=0);)j++,U<<=1;if(K+=1<<j,e===1&&852<K||e===2&&592<K)return 1;s[y=V&x]=M<<24|j<<16|T-u|0}}return V!==0&&(s[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 X=G.length;0<=--X;)G[X]=0}var n=0,e=29,l=256,t=l+1+e,a=30,s=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],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],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 k=new Array(e);i(k);var M,j,F,U=new Array(a);function K(G,X,fe,de,Ce){this.static_tree=G,this.extra_bits=X,this.extra_base=fe,this.elems=de,this.max_length=Ce,this.has_stree=G&&G.length}function V(G,X){this.dyn_tree=G,this.max_code=0,this.stat_desc=X}function z(G){return G<256?D[G]:D[256+(G>>>7)]}function Q(G,X){G.pending_buf[G.pending++]=255&X,G.pending_buf[G.pending++]=X>>>8&255}function Z(G,X,fe){G.bi_valid>p-fe?(G.bi_buf|=X<<G.bi_valid&65535,Q(G,G.bi_buf),G.bi_buf=X>>p-G.bi_valid,G.bi_valid+=fe-p):(G.bi_buf|=X<<G.bi_valid&65535,G.bi_valid+=fe)}function le(G,X,fe){Z(G,fe[2*X],fe[2*X+1])}function ne(G,X){for(var fe=0;fe|=1&G,G>>>=1,fe<<=1,0<--X;);return fe>>>1}function ve(G,X,fe){var de,Ce,Me=new Array(h+1),ue=0;for(de=1;de<=h;de++)Me[de]=ue=ue+fe[de-1]<<1;for(Ce=0;Ce<=X;Ce++){var Ae=G[2*Ce+1];Ae!==0&&(G[2*Ce]=ne(Me[Ae]++,Ae))}}function xe(G){var X;for(X=0;X<t;X++)G.dyn_ltree[2*X]=0;for(X=0;X<a;X++)G.dyn_dtree[2*X]=0;for(X=0;X<s;X++)G.bl_tree[2*X]=0;G.dyn_ltree[2*v]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function _e(G){8<G.bi_valid?Q(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 Be(G,X,fe,de){var Ce=2*X,Me=2*fe;return G[Ce]<G[Me]||G[Ce]===G[Me]&&de[X]<=de[fe]}function me(G,X,fe){for(var de=G.heap[fe],Ce=fe<<1;Ce<=G.heap_len&&(Ce<G.heap_len&&Be(X,G.heap[Ce+1],G.heap[Ce],G.depth)&&Ce++,!Be(X,de,G.heap[Ce],G.depth));)G.heap[fe]=G.heap[Ce],fe=Ce,Ce<<=1;G.heap[fe]=de}function Fe(G,X,fe){var de,Ce,Me,ue,Ae=0;if(G.last_lit!==0)for(;de=G.pending_buf[G.d_buf+2*Ae]<<8|G.pending_buf[G.d_buf+2*Ae+1],Ce=G.pending_buf[G.l_buf+Ae],Ae++,de===0?le(G,Ce,X):(le(G,(Me=R[Ce])+l+1,X),(ue=S[Me])!==0&&Z(G,Ce-=k[Me],ue),le(G,Me=z(--de),fe),(ue=b[Me])!==0&&Z(G,de-=U[Me],ue)),Ae<G.last_lit;);le(G,v,X)}function ie(G,X){var fe,de,Ce,Me=X.dyn_tree,ue=X.stat_desc.static_tree,Ae=X.stat_desc.has_stree,Te=X.stat_desc.elems,Je=-1;for(G.heap_len=0,G.heap_max=u,fe=0;fe<Te;fe++)Me[2*fe]!==0?(G.heap[++G.heap_len]=Je=fe,G.depth[fe]=0):Me[2*fe+1]=0;for(;G.heap_len<2;)Me[2*(Ce=G.heap[++G.heap_len]=Je<2?++Je:0)]=1,G.depth[Ce]=0,G.opt_len--,Ae&&(G.static_len-=ue[2*Ce+1]);for(X.max_code=Je,fe=G.heap_len>>1;1<=fe;fe--)me(G,Me,fe);for(Ce=Te;fe=G.heap[1],G.heap[1]=G.heap[G.heap_len--],me(G,Me,1),de=G.heap[1],G.heap[--G.heap_max]=fe,G.heap[--G.heap_max]=de,Me[2*Ce]=Me[2*fe]+Me[2*de],G.depth[Ce]=(G.depth[fe]>=G.depth[de]?G.depth[fe]:G.depth[de])+1,Me[2*fe+1]=Me[2*de+1]=Ce,G.heap[1]=Ce++,me(G,Me,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],function(At,qe){var Re,Lt,$e,Et,Ut,Bt,_t=qe.dyn_tree,jt=qe.max_code,He=qe.stat_desc.static_tree,se=qe.stat_desc.has_stree,J=qe.stat_desc.extra_bits,Ue=qe.stat_desc.extra_base,Le=qe.stat_desc.max_length,ee=0;for(Et=0;Et<=h;Et++)At.bl_count[Et]=0;for(_t[2*At.heap[At.heap_max]+1]=0,Re=At.heap_max+1;Re<u;Re++)Le<(Et=_t[2*_t[2*(Lt=At.heap[Re])+1]+1]+1)&&(Et=Le,ee++),_t[2*Lt+1]=Et,jt<Lt||(At.bl_count[Et]++,Ut=0,Ue<=Lt&&(Ut=J[Lt-Ue]),Bt=_t[2*Lt],At.opt_len+=Bt*(Et+Ut),se&&(At.static_len+=Bt*(He[2*Lt+1]+Ut)));if(ee!==0){do{for(Et=Le-1;At.bl_count[Et]===0;)Et--;At.bl_count[Et]--,At.bl_count[Et+1]+=2,At.bl_count[Le]--,ee-=2}while(0<ee);for(Et=Le;Et!==0;Et--)for(Lt=At.bl_count[Et];Lt!==0;)jt<($e=At.heap[--Re])||(_t[2*$e+1]!==Et&&(At.opt_len+=(Et-_t[2*$e+1])*_t[2*$e],_t[2*$e+1]=Et),Lt--)}}(G,X),ve(Me,Je,G.bl_count)}function te(G,X,fe){var de,Ce,Me=-1,ue=X[1],Ae=0,Te=7,Je=4;for(ue===0&&(Te=138,Je=3),X[2*(fe+1)+1]=65535,de=0;de<=fe;de++)Ce=ue,ue=X[2*(de+1)+1],++Ae<Te&&Ce===ue||(Ae<Je?G.bl_tree[2*Ce]+=Ae:Ce!==0?(Ce!==Me&&G.bl_tree[2*Ce]++,G.bl_tree[2*y]++):Ae<=10?G.bl_tree[2*x]++:G.bl_tree[2*T]++,Me=Ce,Je=(Ae=0)===ue?(Te=138,3):Ce===ue?(Te=6,3):(Te=7,4))}function Ge(G,X,fe){var de,Ce,Me=-1,ue=X[1],Ae=0,Te=7,Je=4;for(ue===0&&(Te=138,Je=3),de=0;de<=fe;de++)if(Ce=ue,ue=X[2*(de+1)+1],!(++Ae<Te&&Ce===ue)){if(Ae<Je)for(;le(G,Ce,G.bl_tree),--Ae!=0;);else Ce!==0?(Ce!==Me&&(le(G,Ce,G.bl_tree),Ae--),le(G,y,G.bl_tree),Z(G,Ae-3,2)):Ae<=10?(le(G,x,G.bl_tree),Z(G,Ae-3,3)):(le(G,T,G.bl_tree),Z(G,Ae-11,7));Me=Ce,Je=(Ae=0)===ue?(Te=138,3):Ce===ue?(Te=6,3):(Te=7,4)}}i(U);var oe=!1;function Y(G,X,fe,de){Z(G,(n<<1)+(de?1:0),3),function(Ce,Me,ue,Ae){_e(Ce),Ae&&(Q(Ce,ue),Q(Ce,~ue)),c.arraySet(Ce.pending_buf,Ce.window,Me,ue,Ce.pending),Ce.pending+=ue}(G,X,fe,!0)}f._tr_init=function(G){oe||(function(){var X,fe,de,Ce,Me,ue=new Array(h+1);for(Ce=de=0;Ce<e-1;Ce++)for(k[Ce]=de,X=0;X<1<<S[Ce];X++)R[de++]=Ce;for(R[de-1]=Ce,Ce=Me=0;Ce<16;Ce++)for(U[Ce]=Me,X=0;X<1<<b[Ce];X++)D[Me++]=Ce;for(Me>>=7;Ce<a;Ce++)for(U[Ce]=Me<<7,X=0;X<1<<b[Ce]-7;X++)D[256+Me++]=Ce;for(fe=0;fe<=h;fe++)ue[fe]=0;for(X=0;X<=143;)L[2*X+1]=8,X++,ue[8]++;for(;X<=255;)L[2*X+1]=9,X++,ue[9]++;for(;X<=279;)L[2*X+1]=7,X++,ue[7]++;for(;X<=287;)L[2*X+1]=8,X++,ue[8]++;for(ve(L,t+1,ue),X=0;X<a;X++)N[2*X+1]=5,N[2*X]=ne(X,5);M=new K(L,S,l+1,t,h),j=new K(N,b,0,a,h),F=new K(new Array(0),O,0,s,g)}(),oe=!0),G.l_desc=new V(G.dyn_ltree,M),G.d_desc=new V(G.dyn_dtree,j),G.bl_desc=new V(G.bl_tree,F),G.bi_buf=0,G.bi_valid=0,xe(G)},f._tr_stored_block=Y,f._tr_flush_block=function(G,X,fe,de){var Ce,Me,ue=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=function(Ae){var Te,Je=4093624447;for(Te=0;Te<=31;Te++,Je>>>=1)if(1&Je&&Ae.dyn_ltree[2*Te]!==0)return o;if(Ae.dyn_ltree[18]!==0||Ae.dyn_ltree[20]!==0||Ae.dyn_ltree[26]!==0)return r;for(Te=32;Te<l;Te++)if(Ae.dyn_ltree[2*Te]!==0)return r;return o}(G)),ie(G,G.l_desc),ie(G,G.d_desc),ue=function(Ae){var Te;for(te(Ae,Ae.dyn_ltree,Ae.l_desc.max_code),te(Ae,Ae.dyn_dtree,Ae.d_desc.max_code),ie(Ae,Ae.bl_desc),Te=s-1;3<=Te&&Ae.bl_tree[2*I[Te]+1]===0;Te--);return Ae.opt_len+=3*(Te+1)+5+5+4,Te}(G),Ce=G.opt_len+3+7>>>3,(Me=G.static_len+3+7>>>3)<=Ce&&(Ce=Me)):Ce=Me=fe+5,fe+4<=Ce&&X!==-1?Y(G,X,fe,de):G.strategy===4||Me===Ce?(Z(G,2+(de?1:0),3),Fe(G,L,N)):(Z(G,4+(de?1:0),3),function(Ae,Te,Je,At){var qe;for(Z(Ae,Te-257,5),Z(Ae,Je-1,5),Z(Ae,At-4,4),qe=0;qe<At;qe++)Z(Ae,Ae.bl_tree[2*I[qe]+1],3);Ge(Ae,Ae.dyn_ltree,Te-1),Ge(Ae,Ae.dyn_dtree,Je-1)}(G,G.l_desc.max_code+1,G.d_desc.max_code+1,ue+1),Fe(G,G.dyn_ltree,G.dyn_dtree)),xe(G),de&&_e(G)},f._tr_tally=function(G,X,fe){return G.pending_buf[G.d_buf+2*G.last_lit]=X>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&X,G.pending_buf[G.l_buf+G.last_lit]=255&fe,G.last_lit++,X===0?G.dyn_ltree[2*fe]++:(G.matches++,X--,G.dyn_ltree[2*(R[fe]+l+1)]++,G.dyn_dtree[2*z(X)]++),G.last_lit===G.lit_bufsize-1},f._tr_align=function(G){Z(G,2,3),le(G,v,L),function(X){X.bi_valid===16?(Q(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):8<=X.bi_valid&&(X.pending_buf[X.pending++]=255&X.bi_buf,X.bi_buf>>=8,X.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,l,t=1,a={},s=!1,u=o.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(o);h=h&&h.setTimeout?h:o,i={}.toString.call(o.process)==="[object process]"?function(y){C.nextTick(function(){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}}()?(l="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(y){o.postMessage(l+y,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(y){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(s)setTimeout(g,0,y);else{var x=a[y];if(x){s=!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),s=!1}}}}function v(y){y.source===o&&typeof y.data=="string"&&y.data.indexOf(l)===0&&g(+y.data.slice(l.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 _={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=_},xSat:function(H,B){var d={axisPointer:1,tooltip:1,brush:1};function _(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=_},xTNl:function(H,B){var d=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],_={color:d,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],d]};H.exports=_},xb2K:function(H,B,d){"use strict";var _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=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")}_.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=_;function _(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 _=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(_.a)(Object(_.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 _=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){_.call(this,i),this.path=null}o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var l=this.style,t=this.path||c,a=l.hasStroke(),s=l.hasFill(),u=l.fill,h=l.stroke,p=s&&!!u.colorStops,g=a&&!!h.colorStops,v=s&&!!u.image,y=a&&!!h.image;if(l.bind(n,this,e),this.setTransform(n),this.__dirty){var x;p&&(x=x||this.getBoundingRect(),this._fillGradient=l.getGradient(n,u,x)),g&&(x=x||this.getBoundingRect(),this._strokeGradient=l.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=l.lineDash,S=l.lineDashOffset,b=!!n.setLineDash,O=this.getGlobalScale();if(t.setScale(O[0],O[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)),s)if(l.fillOpacity!=null){var I=n.globalAlpha;n.globalAlpha=l.fillOpacity*l.opacity,t.fill(n),n.globalAlpha=I}else t.fill(n);if(T&&b&&(n.setLineDash(T),n.lineDashOffset=S),a)if(l.strokeOpacity!=null){var I=n.globalAlpha;n.globalAlpha=l.strokeOpacity*l.opacity,t.stroke(n),n.globalAlpha=I}else t.stroke(n);T&&b&&n.setLineDash([]),l.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,l){},createPathProxy:function(){this.path=new C},getBoundingRect:function(){var n=this._rect,e=this.style,l=!n;if(l){var t=this.path;t||(t=this.path=new C),this.__dirtyPath&&(t.beginPath(),this.buildPath(t,this.shape,!1)),n=t.getBoundingRect()}if(this._rect=n,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||l){a.copy(n);var s=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(s=Math.max(s,this.strokeContainThreshold||4)),u>1e-10&&(a.width+=s/u,a.height+=s/u,a.x-=s/u/2,a.y-=s/u/2)}return a}return n},contain:function(n,e){var l=this.transformCoordToLocal(n,e),t=this.getBoundingRect(),a=this.style;if(n=l[0],e=l[1],t.contain(n,e)){var s=this.path.data;if(a.hasStroke()){var u=a.lineWidth,h=a.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),A.containStroke(s,u/h,n,e)))return!0}if(a.hasFill())return A.contain(s,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):_.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var l=this.shape;if(l){if(E.isObject(n))for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t]);else l[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&f(n[0]-1)>1e-10&&f(n[3]-1)>1e-10?Math.sqrt(f(n[0]*n[3]-n[2]*n[1])):1}},o.extend=function(i){var n=function(t){o.call(this,t),i.style&&this.style.extendFrom(i.style,!1);var a=i.shape;if(a){this.shape=this.shape||{};var s=this.shape;for(var u in a)!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&(s[u]=a[u])}i.init&&i.init.call(this,t)};E.inherits(n,o);for(var e in i)e!=="style"&&e!=="shape"&&(n.prototype[e]=i[e]);return n},E.inherits(o,_);var r=o;H.exports=r},"y+lR":function(H,B,d){var _=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}},_.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 _=/margin|padding|width|height|max|min|offset/,E={left:!0,top:!0},C={cssFloat:1,styleFloat:1,float:1};function A(l){return l.nodeType===1?l.ownerDocument.defaultView.getComputedStyle(l,null):{}}function w(l,t,a){if(t=t.toLowerCase(),a==="auto"){if(t==="height")return l.offsetHeight;if(t==="width")return l.offsetWidth}return t in E||(E[t]=_.test(t)),E[t]?parseFloat(a)||0:a}function m(l,t){var a=arguments.length,s=A(l);return t=C[t]?"cssFloat"in l.style?"cssFloat":"styleFloat":t,a===1?s:w(l,t,s[t]||l.style[t])}function f(l,t,a){var s=arguments.length;if(t=C[t]?"cssFloat"in l.style?"cssFloat":"styleFloat":t,s===3)return typeof a=="number"&&_.test(t)&&(a="".concat(a,"px")),l.style[t]=a,a;for(var u in t)t.hasOwnProperty(u)&&f(l,u,t[u]);return A(l)}function c(l){return l===document.body?document.documentElement.clientWidth:l.offsetWidth}function o(l){return l===document.body?window.innerHeight||document.documentElement.clientHeight:l.offsetHeight}function r(){var l=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:l,height:t}}function i(){var l=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:l,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(l){var t=l.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(_(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(_(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(_(i,A),"dragleave",A.event),r&&r!==i&&this.dispatchToElement(_(r,A),"dragenter",A.event))}},_dragEnd:function(A){var w=this._draggingTarget;w&&(w.dragging=!1),this.dispatchToElement(_(w,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(_(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function _(C,A){return{target:C,topTarget:A&&A.topTarget}}var E=d;H.exports=E},y2l5:function(H,B,d){var _=d("MwEJ"),E=d("T4UG"),C=E.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,w){return _(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 _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="UpOutlined";var f=B.a=E.forwardRef(m)},y3NT:function(H,B,d){var _=d("OELB"),E=_.parsePercent,C=d("bYtY"),A=Math.PI/180;function w(c,o,r,i){o.eachSeriesByType(c,function(n){var e=n.get("center"),l=n.get("radius");C.isArray(l)||(l=[0,l]),C.isArray(e)||(e=[e,e]);var t=r.getWidth(),a=r.getHeight(),s=Math.min(t,a),u=E(e[0],t),h=E(e[1],a),p=E(l[0],s/2),g=E(l[1],s/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 O=0;C.each(T.children,function(z){!isNaN(z.getValue())&&O++});var I=T.getValue(),L=Math.PI/(I||O)*2,N=T.depth>0,D=T.height-(N?-1:1),R=(g-p)/(D||1),k=n.get("clockwise"),M=n.get("stillShowZeroSum"),j=k?1:-1,F=function(z,Q){if(!z)return;var Z=Q;if(z!==x){var le=z.getValue(),ne=I===0&&M?L:le*L;ne<y&&(ne=y),Z=Q+j*ne;var ve=z.depth-S-(N?-1:1),xe=p+R*ve,_e=p+R*(ve+1),Be=z.getModel();Be.get("r0")!=null&&(xe=E(Be.get("r0"),s/2)),Be.get("r")!=null&&(_e=E(Be.get("r"),s/2)),z.setLayout({angle:ne,startAngle:Q,endAngle:Z,clockwise:k,cx:u,cy:h,r0:xe,r:_e})}if(z.children&&z.children.length){var me=0;C.each(z.children,function(Fe){me+=F(Fe,Q+me)})}return Z-Q};if(N){var U=p,K=p+R,V=Math.PI*2;x.setLayout({angle:V,startAngle:v,endAngle:v+V,clockwise:k,cx:u,cy:h,r0:U,r:K})}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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("ProS"),E=d("bYtY"),C=d("zTMp"),A=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),_.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])}}),_.registerProcessor(_.PRIORITY.PROCESSOR.STATISTIC,function(w,m){w.getComponent("axisPointer").coordSysAxesInfo=C.collect(w,m)}),_.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(H,B,d){var _=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"]],l=e[n],t=[0,null,10],a={},s=0;s<3;s++)a[e[1-n][s]]=t[s],a[l[s]]=s===2?c[0]:o[l[s]];var u=[["x","width",3],["y","height",0]][n],h=C(a,i,o.padding);return l[(h.margin[u[2]]||0)+h[u[0]]+h[u[1]]*.5<i[u[1]]*.5?0:1]}function w(m,f){return _.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 _=d("cIOH"),E=d.n(_),C=d("gwTy"),A=d.n(C),w=d("1GLa")},yEEn:function(H,B,d){"use strict";var _=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(_.a)(Object(_.a)({},o),{},{ref:r,icon:A}))};m.displayName="ArrowDownOutlined";var f=B.a=E.forwardRef(m)},yO87:function(H,B,d){var _=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 _.isArray(t)||(t=[+t,+t]),t}function i(t,a){var s=a.rippleEffectColor||a.color;t.eachChild(function(u){u.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?s:null,fill:a.brushType==="fill"?s:null}})})}function n(t,a){w.call(this);var s=new c(t,a),u=new w;this.add(s),this.add(u),u.beforeUpdate=function(){this.attr(s.getScale())},this.updateData(t,a)}var e=n.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(t){for(var a=t.symbolType,s=t.color,u=this.childAt(1),h=0;h<o;h++){var p=C(a,-1,-1,2,2,s);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var 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,s=this.childAt(1),u=["symbolType","period","rippleScale"],h=0;h<u.length;h++){var p=u[h];if(a[p]!==t[p]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}i(s,t)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(t,a){var s=t.hostModel;this.childAt(0).updateData(t,a);var u=this.childAt(1),h=t.getItemModel(a),p=t.getItemVisual(a,"symbol"),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=s.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),O=function(){b.highlight(),S.showEffectOn!=="render"&&this.startEffectAnimation(S)},I=function(){b.downplay(),S.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",O,this).on("mouseout",I,this).on("emphasis",O,this).on("normal",I,this)}this._effectCfg=S},e.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},_.inherits(n,w);var l=n;H.exports=l},yS9w:function(H,B,d){var _=d("MEGo"),E=_.parseSVG,C=_.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 s=n(a).originRoot;if(s)return{root:s,boundingRect:n(a).boundingRect};var u=l(a);return n(a).originRoot=u.root,n(a).boundingRect=u.boundingRect,u},makeGraphic:function(t,a,s){var u=n(a),h=u.rootMap||(u.rootMap=c()),p=h.get(s);if(p)return p;var g=u.originRoot,v=u.boundingRect;return u.originRootHostKey?p=l(a,v).root:(u.originRootHostKey=s,p=g),h.set(s,p)},removeGraphic:function(t,a,s){var u=n(a),h=u.rootMap;h&&h.removeKey(s),s===u.originRootHostKey&&(u.originRootHostKey=null)}};function l(t,a){var s=t.svgXML,u,h;try{u=s&&E(s,{ignoreViewBox:!0,ignoreRootClip:!0})||{},h=u.root,f(h!=null)}catch(T){throw new Error(`Invalid svg format
|
|
|
`+T.message)}var p=u.width,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 _=d("IwbS"),E=d("oVpE"),C=E.createSymbol,A=d("OS9S"),w=4,m=_.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,i){var n=i.points,e=i.size,l=this.symbolProxy,t=l.shape,a=r.getContext?r.getContext():r,s=a&&e[0]<w;if(s)return;for(var u=0;u<n.length;){var h=n[u++],p=n[u++];if(isNaN(h)||isNaN(p))continue;if(this.softClipShape&&!this.softClipShape.contain(h,p))continue;t.x=h-e[0]/2,t.y=p-e[1]/2,t.width=e[0],t.height=e[1],l.buildPath(r,t,!0)}},afterBrush:function(r){var i=this.shape,n=i.points,e=i.size,l=e[0]<w;if(!l)return;this.setTransform(r);for(var t=0;t<n.length;){var a=n[t++],s=n[t++];if(isNaN(a)||isNaN(s))continue;if(this.softClipShape&&!this.softClipShape.contain(a,s))continue;r.fillRect(a-e[0]/2,s-e[1]/2,e[0],e[1])}this.restoreTransform(r)},findDataIndex:function(r,i){for(var n=this.shape,e=n.points,l=n.size,t=Math.max(l[0],4),a=Math.max(l[1],4),s=e.length/2-1;s>=0;s--){var u=s*2,h=e[u]-t/2,p=e[u+1]-a/2;if(r>=h&&i>=p&&r<=h+t&&i<=p+a)return s}return-1}});function f(){this.group=new _.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,l=n.startIndex*4*2;i=new Float32Array(i.buffer,l,e)}n.setShape("points",i)})},c.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clearIncremental(),r.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(r,i,n){var e;this._incremental?(e=new 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 l=i.hostModel;e=e||{};var t=i.getVisual("symbolSize");r.setShape("size",t instanceof Array?t:[t,t]),r.softClipShape=e.clipShape||null,r.symbolProxy=C(i.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var a=r.shape.size[0]<w;r.useStyle(l.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=i.getVisual("color");s&&r.setColor(s),n||(r.seriesIndex=l.seriesIndex,r.on("mousemove",function(u){r.dataIndex=null;var h=r.findDataIndex(u.offsetX,u.offsetY);h>=0&&(r.dataIndex=h+(r.startIndex||0))}))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var r=this._incremental;r&&r.clearDisplaybles()};var o=f;H.exports=o},ycre:function(H,B,d){var _=d("711d"),E=_("length");H.exports=E},ye1Q:function(H,B,d){"use strict";var _=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(_.a)(Object(_.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 _={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=_},yik8:function(H,B,d){var _=d("bZqE"),E=_.eachAfter,C=_.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,l){e.eachSeriesByType("tree",function(t){n(t,l)})}function n(e,l){var t=r(e,l);e.layoutInfo=t;var a=e.get("layout"),s=0,u=0,h=null;a==="radial"?(s=2*Math.PI,u=Math.min(t.height,t.width)/2,h=c(function(D,R){return(D.parentNode===R.parentNode?1:2)/D.depth})):(s=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,O=0,I=0,L=0;if(a==="radial")b=s/(y.getLayout().x+T+S),O=u/(x.depth-1||1),C(g,function(D){I=(D.getLayout().x+S)*b,L=(D.depth-1)*O;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"?(O=u/(y.getLayout().x+T+S),b=s/(x.depth-1||1),C(g,function(D){L=(D.getLayout().x+S)*O,I=N==="LR"?(D.depth-1)*b:s-(D.depth-1)*b,D.setLayout({x:I,y:L},!0)})):(N==="TB"||N==="BT")&&(b=s/(y.getLayout().x+T+S),O=u/(x.depth-1||1),C(g,function(D){I=(D.getLayout().x+S)*b,L=N==="TB"?(D.depth-1)*O:u-(D.depth-1)*O,D.setLayout({x:I,y:L},!0)}))}}}H.exports=i},ynwM:function(H,B,d){var _=d("MFOe"),E=_.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 _=d("bYtY"),E=d("4NO4"),C=d("bLfw"),A=_.each,w=_.clone,m=_.map,f=_.merge,c=/^(min|max)?(.+)$/;function o(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(a,s){a&&_.each(E.normalizeToArray(a.series),function(p){p&&p.data&&_.isTypedArray(p.data)&&_.setAsPrimitive(p.data)}),a=w(a);var u=this._optionBackup,h=r.call(this,a,s,!u);this._newBaseOption=h.baseOption,u?(l(u.baseOption,h.baseOption),h.timelineOptions.length&&(u.timelineOptions=h.timelineOptions),h.mediaList.length&&(u.mediaList=h.mediaList),h.mediaDefault&&(u.mediaDefault=h.mediaDefault)):this._optionBackup=h},mountOption:function(a){var s=this._optionBackup;return this._timelineOptions=m(s.timelineOptions,w),this._mediaList=m(s.mediaList,w),this._mediaDefault=w(s.mediaDefault),this._currentMediaIndices=[],w(a?s.baseOption:this._newBaseOption)},getTimelineOption:function(a){var s,u=this._timelineOptions;if(u.length){var h=a.getComponent("timeline");h&&(s=w(u[h.getCurrentIndex()],!0))}return s},getMediaOption:function(a){var s=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,s,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,s,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(_.map(p,function(T){return T.option})),function(T){A(s,function(S){S(T,u)})}),{baseOption:v,timelineOptions:h,mediaDefault:g,mediaList:p}}function i(a,s,u){var h={width:s,height:u,aspectratio:s/u},p=!0;return _.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,s,u){return u==="min"?a>=s:u==="max"?a<=s:a===s}function e(a,s){return a.join(",")===s.join(",")}function l(a,s){s=s||{},A(s,function(u,h){if(u==null)return;var p=a[h];if(!C.hasClass(h))a[h]=f(p,u,!0);else{u=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 _=d("y+Vt"),E=d("nPnh"),C=E.subPixelOptimizeLine,A={},w=_.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 _=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 _.map(this._dimList,E,this)},getAxesByScale:function(w){return w=w.toLowerCase(),_.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 _=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(_.a)(Object(_.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 _=d("xEkU"),E=d.n(_),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(),l=Object(C.a)(e,!0),t=Date.now(),a=function s(){var u=Date.now(),h=u-t,p=A(h>n?n:h,l,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()(s):typeof r=="function"&&r()};E()(a)}},zDms:function(H,B,d){var _=d("bYtY"),E=d("OELB"),C=d("UOVi"),A=d("72pK"),w=_.each,m=E.asc,f=function(e,l,t,a){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,this._dataZoomModel=t};f.prototype={constructor:f,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],l=this.ecModel;return l.eachSeries(function(t){if(C.isCoordSupported(t.get("coordinateSystem"))){var a=this._dimName,s=l.queryComponents({mainType:a+"Axis",index:t.get(a+"AxisIndex"),id:t.get(a+"AxisId")})[0];this._axisIndex===(s&&s.componentIndex)&&e.push(t)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,t=this.getAxisModel(),a=e==="x"||e==="y",s,u;a?(u="gridIndex",s=e==="x"?"y":"x"):(u="polarIndex",s=e==="angle"?"radius":"angle");var h;return l.eachComponent(s+"Axis",function(p){(p.get(u)||0)===(t.get(u)||0)&&(h=p)}),h},getMinMaxSpan:function(){return _.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,t=this.getAxisModel(),a=t.axis.scale,s=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],p=[],g;w(["start","end"],function(x,T){var S=e[x],b=e[x+"Value"];s[T]==="percent"?(S==null&&(S=u[T]),b=a.parse(E.linearMap(S,u,l))):(g=!0,b=b==null?l[T]:a.parse(b),S=E.linearMap(b,l,u)),p[T]=b,h[T]=S}),m(p),m(h);var v=this._minMaxSpan;g?y(p,h,l,u,!1):y(h,p,u,l,!0);function y(x,T,S,b,O){var I=O?"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),O&&(T[L]=a.parse(T[L]))}return{valueWindow:p,percentWindow:h}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,l),i(this);var t=this.calculateDataWindow(e.settledOption);this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,r(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,r(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var t=this._dimName,a=this.getTargetSeriesModels(),s=e.get("filterMode"),u=this._valueWindow;if(s==="none")return;w(a,function(p){var g=p.getData(),v=g.mapDimension(t,!0);if(!v.length)return;s==="weakFilter"?g.filterSelf(function(y){for(var x,T,S,b=0;b<v.length;b++){var O=g.get(v[b],y),I=!isNaN(O),L=O<u[0],N=O>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(s==="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,l,t){var a=[Infinity,-Infinity];return w(t,function(s){var u=s.getData();u&&w(u.mapDimension(l,!0),function(h){var p=u.getApproximateExtent(h);p[0]<a[0]&&(a[0]=p[0]),p[1]>a[1]&&(a[1]=p[1])})}),a[1]<a[0]&&(a=[NaN,NaN]),o(e,a),a}function o(e,l){var t=e.getAxisModel(),a=t.getMin(!0),s=t.get("type")==="category",u=s&&t.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?l[0]=a:s&&(l[0]=u>0?0:NaN);var h=t.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?l[1]=h:s&&(l[1]=u>0?u-1:NaN),t.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function r(e,l){var t=e.getAxisModel(),a=e._percentWindow,s=e._valueWindow;if(!a)return;var u=E.getPixelPrecision(s,[0,500]);u=Math.min(u,20);var h=l||a[0]===0&&a[1]===100;t.setRange(h?null:+s[0].toFixed(u),h?null:+s[1].toFixed(u))}function i(e){var l=e._minMaxSpan={},t=e._dataZoomModel,a=e._dataExtent;w(["min","max"],function(s){var u=t.get(s+"Span"),h=t.get(s+"ValueSpan");h!=null&&(h=e.getAxisModel().axis.scale.parse(h)),h!=null?u=E.linearMap(a[0]+h,a,[0,100],!0):u!=null&&(h=E.linearMap(u,[0,100],a,!0)-a[0]),l[s+"Span"]=u,l[s+"ValueSpan"]=h})}var n=f;H.exports=n},zM3Q:function(H,B,d){var _=d("4NO4"),E=_.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 _=d("bYtY"),E=d("Qxkt"),C=_.each,A=_.curry;function w(a,s){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return m(u,a,s),u.seriesInvolved&&c(u,a),u}function m(a,s,u){var h=s.getComponent("tooltip"),p=s.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 O=b.get("trigger")==="axis",I=b.get("axisPointer.type")==="cross",L=y.getTooltipAxes(b.get("axisPointer.axis"));(O||I)&&C(L.baseAxes,A(N,I?"cross":!0,O)),I&&C(L.otherAxes,A(N,"cross",!1))}function N(D,R,k){var M=k.model.getModel("axisPointer",p),j=M.get("show");if(!j||j==="auto"&&!D&&!l(M))return;R==null&&(R=M.get("triggerTooltip")),M=D?f(k,b,p,s,D,R):M;var F=M.get("snap"),U=t(k.model),K=R||F||k.type==="category",V=a.axesInfo[U]={key:U,axis:k,coordSys:y,axisPointerModel:M,triggerTooltip:R,involveSeries:K,snap:F,useHandle:l(M),seriesModels:[]};T[U]=V,a.seriesInvolved|=K;var z=o(g,k);if(z!=null){var Q=v[z]||(v[z]={axesInfo:{}});Q.axesInfo[U]=V,Q.mapper=g[z].mapper,V.linkGroup=Q}}})}function f(a,s,u,h,p,g){var v=s.getModel("axisPointer"),y={};C(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){y[b]=_.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&&_.defaults(x,S.textStyle)}}return a.model.getModel("axisPointer",new E(y,u,h))}function c(a,s){s.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,s){for(var u=s.model,h=s.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,s){return a==="all"||_.isArray(a)&&_.indexOf(a,s)>=0||a===s}function i(a){var s=n(a);if(!s)return;var u=s.axisPointerModel,h=s.axis.scale,p=u.option,g=u.get("status"),v=u.get("value");v!=null&&(v=h.parse(v));var y=l(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=s.axis.scale.isBlank()?"hide":"show")}function n(a){var s=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return s&&s.axesInfo[t(a)]}function e(a){var s=n(a);return s&&s.axisPointerModel}function l(a){return!!a.get("handle.show")}function t(a){return a.type+"||"+a.id}B.collect=w,B.fixValue=i,B.getAxisInfo=n,B.getAxisPointerModel=e,B.makeKey=t},zYTA:function(H,B,d){var _=d("bYtY"),E=256;function C(){var w=_.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"),l=this.pointSize+this.blurSize,t=this.canvas,a=t.getContext("2d"),s=w.length;t.width=m,t.height=f;for(var u=0;u<s;++u){var h=w[u],p=h[0],g=h[1],v=h[2],y=c(v);a.globalAlpha=y,a.drawImage(i,p-l,g-l)}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,O=this.minOpacity,I=this.maxOpacity,L=I-O;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+O),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=_.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 _=d("YH21"),E=_.addEventListener,C=_.removeEventListener,A=_.normalizeEvent,w=_.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"],k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=m.map(D,function(j){var F=j.replace("mouse","pointer");return k.hasOwnProperty(F)?F:j});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 l(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 s(D,R){return A(D.dom,new h(D,R),!0)}function u(D,R){for(var k=R,M=!1;k&&k.nodeType!==9&&!(M=k.domBelongToZr||k!==R&&k===D.painterRoot);)k=k.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 k=this._mayPointerCapture;k&&(R.zrX!==k[0]||R.zrY!==k[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 k=R.toElement||R.relatedTarget;R.zrIsToLocalDOM=u(this,k),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){l(R)||g.mousemove.call(this,R)},pointerup:function(R){g.mouseup.call(this,R)},pointerout:function(R){l(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){l(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 k=this._pointerCapturing;b(this,!1),this.trigger("mouseup",R),k&&(R.zrEventControl="only_globalout",this.trigger("mouseout",R))}};function y(D,R){var k=R.domHandlers;c.pointerEventsSupported?m.each(i.pointer,function(M){T(R,M,function(j){k[M].call(D,j)})}):(c.touchEventsSupported&&m.each(i.touch,function(M){T(R,M,function(j){k[M].call(D,j),t(R)})}),m.each(i.mouse,function(M){T(R,M,function(j){j=w(j),R.touching||k[M].call(D,j)})}))}function x(D,R){c.pointerEventsSupported?m.each(n.pointer,k):c.touchEventsSupported||m.each(n.mouse,k);function k(M){function j(F){F=w(F),u(D,F.target)||(F=s(D,F),R.domHandlers[M].call(D,F))}T(R,M,j,{capture:!0})}}function T(D,R,k,M){D.mounted[R]=k,D.listenerOpts[R]=M,E(D.domTarget,e(R),k,M)}function S(D){var R=D.mounted;for(var k in R)R.hasOwnProperty(k)&&C(D.domTarget,e(k),R[k],D.listenerOpts[k]);D.mounted={}}function b(D,R){if(D._mayPointerCapture=null,r&&D._pointerCapturing^R){D._pointerCapturing=R;var k=D._globalHandlerScope;R?x(D,k):S(k)}}function O(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 O(D,g),r&&(this._globalHandlerScope=new O(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 _=d("284h"),E=d("TqRt");Object.defineProperty(B,"__esModule",{value:!0}),B.default=void 0;var C=E(d("3tO9")),A=_(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 _=d("pVnL"),E=d.n(_),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,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)l.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t},i={small:8,middle:16,large:24},n=function(l){var t,a=w.useContext(o.b),s=a.getPrefixCls,u=a.space,h=a.direction,p=l.size,g=p===void 0?(u==null?void 0:u.size)||"small":p,v=l.align,y=l.className,x=l.children,T=l.direction,S=T===void 0?"horizontal":T,b=l.prefixCls,O=r(l,["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=s("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"),k=h==="rtl"?"marginLeft":"marginRight";return w.createElement("div",E()({className:D},O),w.Children.map(x,function(M,j){return w.createElement("div",{className:R,key:"".concat(R,"-").concat(j),style:j===I-1||M===null||M===void 0?{}:A()({},S==="vertical"?"marginBottom":k,typeof g=="string"?i[g]:g)},M)}))};B.a=n},zoYe:function(H,B,d){var _=d("nmnc"),E=d("eUgh"),C=d("Z0cm"),A=d("/9aa"),w=1/0,m=_?_.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 _=d("bYtY");function E(C){var A={};C.eachSeriesByType("map",function(w){var m=w.getMapType();if(w.getHostGeoModel()||A[m])return;var f={};_.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 l=i.getName(e),t=r.getRegion(l);if(!t||isNaN(n))return;var a=f[l]||0,s=r.dataToPoint(t.center);f[l]=a+1,i.setItemLayout(e,{point:s,offset:a})})});var c=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}}]);
|